- This topic has 8 replies, 4 voices, and was last updated 5 years, 4 months ago by
Yuri Kovelenov.
-
AuthorPosts
-
2020-07-05 at 3:16 am #29667
lee20
ParticipantHi:
Is any way have the same camera movement done in 3d max like this sample?
https://cdn.soft8soft.com/demo/examples/index.html#misc_controls_mapAny way can achieve the same effect? “enableDamping” in puzzle?
Thank you.
2020-07-13 at 4:55 pm #30063
Alexander KovelenovStaff2020-07-20 at 9:38 am #30372web
CustomerI would also be interested into using that feature, but couldnt get it work.
Do you need to call
app.controls.update()all the time via awhenMovedpuzzle?2020-07-21 at 11:10 am #30395
Alexander KovelenovStaff2020-07-21 at 12:01 pm #30398web
CustomerOkay, but why can’t I just use:
function runCode(app) { app.controls.enableDamping = true; app.controls.dampingFactor = 0.05; }Or does the damping simply not work in a puzzle based app? Do you need to go all the way and used the pure javascript method?
2020-07-21 at 12:46 pm #30404
Alexander KovelenovStaffAccording to the example, you need to use MapControls class which is exported from the jsm/controls/OrbitControls.js file (this is not the same OrbitControls we use in the engine!). Check out the following code for more info.
2020-07-21 at 1:11 pm #30413web
CustomerOkay, will look into it. For the future I think it would be really cool if you could implement this option as a puzzle.
2020-08-06 at 12:32 pm #31220lee20
ParticipantHi:
How can I incorporate the MapControls class in my project? I am using puzzle interface. The example in the library are using the hand coding script that calling the different orbit controller.
How can archive it by using the puzzle? I alway think the puzzle is the replacement for the hand coding. I have three.js experience. do u have example that how to manipulate script section v3d coding and puzzle working together. Like orbit map control function, how can I call in different orbit controller but not using the v3d default one.Thank yo every much.
2020-08-06 at 1:25 pm #31223
Yuri KovelenovStaffHi,
do u have example that how to manipulate script section v3d coding and puzzle working together.
Please check out this page: https://www.soft8soft.com/docs/manual/en/introduction/Using-JavaScript.html
-
AuthorPosts
- You must be logged in to reply to this topic.
