We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Camera Move along a path

Home Forums General Questions Camera Move along a path

Viewing 15 posts - 1 through 15 (of 18 total)
  • Author
    Posts
  • #84422
    gf3d
    Customer

    Hi Guys,

    Working with 3D Max 2022 and Verge 4.8.0
    i´m working on a project where i need to move a camera along a path.
    This works fine….of course

    But i need to move it by using the scrolling wheel on the mouse….forewards and backwards

    cant find any puzzles to do that…..
    Any hints?

    Thanks in advance

    Ger

    #84435

    Hi Ger,
    This is quite easy to implement actually. You just make regular camera animation and control it’s frame based on the scroll delta (you obtain it using the “wheel” event). See a basic example attached:

    Soft8Soft Tech Chief
    Want more Verge3D updates? Follow me on X, Facebook, or LinkedIn

    #84444
    gf3d
    Customer

    Thanks Alexander…….so far so clear…..but i cannot find this “Set to” puzzle

    Greets

    Ger

    #84445
    gf3d
    Customer

    ok found it its variable

    #84475
    gf3d
    Customer

    Hi Alexander,

    I´ve set it up like you said……a simple camera movement……stopped the animation of the Camera with a puzzle……but nothing happens when i scroll …

    If I dont stop the animation with a puzzle the animation just runs…..

    Any hint whats wrong?

    Greets

    Ger

    #84482

    Hi,
    I think you can disable “Auto Start” animation in object settings. Regarding frame set, the idea is to increase / decrease current frame based on “wheel delta” (multiplied by some value). If in trouble, use print to console to debug.

    Soft8Soft Tech Chief
    Want more Verge3D updates? Follow me on X, Facebook, or LinkedIn

    #84491
    QiangGe
    Participant

    Using path animations exported from 3D software is super convenient, but when you try to control everything frame by frame it gets kinda awkward — especially with the camera, since it’s also tied to the orbit controls. Think of something like a VR roller coaster scene.
    So I hacked together a mini JavaScript demo to show the idea ,the camera runs along the path, but you can still use WASD to move the view and mouse wheel control to move forward. Just to provide ideas.

    #84494
    gf3d
    Customer

    Thank You QiangGE for yor effort but thats not what i need…

    Greets

    Ger

    #84495
    gf3d
    Customer

    Hi Alexander,

    I´ve send you some Data throungh your info@ Mail account…

    The print to console command doesn´t show any mistakes…

    What i don´t understand is what you mean by” based on “wheel delta” (multiplied by some value)”…..where do i define this multiply value?

    Maybe you could just have a look at the date i send you

    Greets

    Ger

    #84504

    Hi Ger,

    Here is the short puzzle snippet that moves the camera forwards/backwards:

    Hope it helps!

    Soft8Soft Tech Chief
    Want more Verge3D updates? Follow me on X, Facebook, or LinkedIn

    #84507
    gf3d
    Customer

    Hi Alexander,

    No changes…..even with a new Camera…..Did you have a look at the data i send you….

    If so …does it work at your site…..If so pls. send me the data so i keep working on that one….

    Thanks

    Greets

    Ger

    #84508

    Yep, I’ve applied the scenario above to your scene and it worked for me. Could you give it another shot?

    Soft8Soft Tech Chief
    Want more Verge3D updates? Follow me on X, Facebook, or LinkedIn

    #84510
    gf3d
    Customer

    what do you mean with another shot?………Did you change anything in the max file?

    As i mentioned its a Verge 4.8.0 version created with max 2022…..

    in what version of verge did you do it?

    #84511

    No, I use the glTF you provided in Verge3D 4.11. It appears to be fully compatible and does not require reexporting. So you could give it a try in a trial version (stable 4.10 or pre 4.11) just to confirm that we’re on the same foot here.

    Soft8Soft Tech Chief
    Want more Verge3D updates? Follow me on X, Facebook, or LinkedIn

    #84512
    gf3d
    Customer

    Ok….for some reason it seems to work now…although i don´t know why…

    Just needs some fine adjusting…..But another thing….is there a way to control the rotation better…..right now there is no rotation keys on the cam…..it moves as it should scrolling the mouse…when i stop scrolling and i rotate the cam ..so far so good…as soon as i start scrolling again it flips back to its origional position…..which i can understand why….but is there a way to avoid this….so the rotation angle doesn´t flip back?

    And another thing which is a bit anoing….the direction of the scrolling…..when i scrol the wheel backwards the cam moves foreward and the other way around……i´v seen this in other apps as well ….is there a way to change theis?

    Greets

    Ger

Viewing 15 posts - 1 through 15 (of 18 total)
  • You must be logged in to reply to this topic.