Forum Replies Created
-
AuthorPosts
-
saalemv3d
ParticipantThanks for the explanations.
I will try to use Blender constraints and will see if I can get what I am looking for.
saalemv3d
ParticipantThanks for the reply.
I added the different screenshots with the illustrations over the images.
saalemv3d
ParticipantIn the screenshot, the top part of the model is scaled (bigger than normal) after zoom-in. The main reason to use your solution is to enable a limited pan. So, if we remove the camera view offset code, we lose the limited pan functionality.
saalemv3d
ParticipantHi kdv,
Have you checked this solution with the taller models, for example, building?
When you zoom in more, the visible part of the model scales (enlarges) too much.Thanks
-
This reply was modified 1 year, 9 months ago by
saalemv3d.
saalemv3d
ParticipantThanks for the instructions.
I played other ways around to achieve what I was looking for.saalemv3d
Participanthttps://www.soft8soft.com/topic/how-to-limit-the-camera-panning/page/2/
This code will work if the panning is off. If not, you can use app.camera.allowPan = false;
saalemv3d
ParticipantDo you want to center the model with the wheel up action? Yes, and the above puzzle is working fine. I just wanted to give some smooth animation to setViewOffset and instead of jumping instantly, it should happen in (ex. 1sec).
saalemv3d
ParticipantThanks for the reply.
We have a panning option in the model. So after panning, bring the model back to the center of the page when the user scrolls up.
Actually,
offsetX
andoffsetY
with value 0 always keep it in the center when I scroll up but need to give it a smooth animation instead of just jumping.saalemv3d
ParticipantHi @kdv,
Thanks for the reply.
We do not have a puzzle for the setViewOffset. So, I executed the code in “on update animation” which is not working. Screenshot attached. Can you take a look at it?
Thank you
Attachments:
You must be logged in to view attached files.saalemv3d
ParticipantHi @kdv,
How can we animate setViewOffset instead of just jumping?
For example, animation like tween camera or look at.saalemv3d
ParticipantHi,
Please read this form discussion, it may help you. Browser to the second page to see the JavaScript code.
saalemv3d
ParticipantGreat
, it works now.
Thanks
saalemv3d
ParticipantHi,
Good solution but did you check it on the Firefox browser? It is not working.saalemv3d
ParticipantHi Yuri,
function runCode(app) {
//some code
}
app.scene.appInstance.outline(test, ‘ENABLE’);
app.postprocessing.outlinePass.visibleEdgeColor = new v3d.Vector4(0, 0, 1, 1);How to enable outline and change its color outside the runCode function?
My code structure is something like the above but enabling outline and changing its color give error.saalemv3d
ParticipantHey Xeon,
I want to enable outline inside the runCode(app) function. How can I call correctly?
appInstance.outline(test, ‘ENABLE’);function runCode(app) {
appInstance.outline(test, ‘ENABLE’);
app.scene.appInstance.outline(test, ‘ENABLE’);
}The above lines give error (outline undefined).
I am trying to enable outline inside runCode(app).Thanks in advance.
-
This reply was modified 1 year, 9 months ago by
-
AuthorPosts