1. #1

    help with "follow game camera"

    Hi after checking some tutorials i think this is fairly easy, but there is one thing i dont get (maby more).
    I have 1 object infront of the game camera that i want to stay there through the track.

    These are the triggers/events i use:

    1. distance operator
    (set to driving line)
    (source1 what is that?)
    (source2 the driver/rider)

    2. Object Position Event
    (connected to a Object Glue that i have attached to the object i have infront of the cam
    i dont now if a glue object is necessary as i only have one object)
    (positionX conected to the distance operator/driving line)

    3. interval trigger
    (connected to the OPE)
    (interval set to 1)

    ---

    In the tutorial video the distance operator source1 seem to be attached to something that look like a "ring of smoke"
    and i have no idea what that is?




    Here is a link to the youtube tutorial i found: http://www.youtube.com/watch?v=myMwjFxjzWw
    I hope some of you smart folks in here can give me a litle help with this
    Share this post

  2. #2

    Re: help with "follow game camera"

    The ring is a tyre (visability + physics off) used as fixed point ( source ) for the distance operater
    Share this post

  3. #3

    Re: help with "follow game camera"

    Originally Posted by BMXBandit
    The ring is a tyre (visability + physics off) used as fixed point ( source ) for the distance operater
    aha... so the tyre is glued to the bike or rider maby?
    Im gonna test that later today, im very happy for your answer
    Share this post

  4. #4

    Re: help with "follow game camera"

    You dont need to glue it to the rider its just a reference point to tell the distance operator
    where 0 is. Imagine the track is 100 meters long, the trye is 0 and the finish line is 100. The distance operator is set to Driving Line and measures how far you travel away from the tyre along the driving line
    Share this post

  5. #5

    Re: help with "follow game camera"

    Originally Posted by BMXBandit
    You dont need to glue it to the rider its just a reference point to tell the distance operator
    where 0 is. Imagine the track is 100 meters long, the trye is 0 and the finish line is 100. The distance operator is set to Driving Line and measures how far you travel away from the tyre along the driving line
    thank you


    Another problem ...
    Ofcourse it was not going to be as easy as i thought.
    Now the object follow the cam, but only for a second or two....?

    edit: anyone got the time to follow up on this thanks so much
    Share this post

  6. #6

    Re: help with "follow game camera"

    after reading the comment on the tut i'v been follow it looks like it's incomplete,
    i need to tie the Y direction also... to something...
    Share this post

  7. #7

    Re: help with "follow game camera"

    If you are just copying whats in the video watch it again and check all your settings match but if you are modifying it or intergrating the set-up into something you've already made then it could be any number of thing affecting it. The Y axis is done the same way but change the Distance operator to Height and have this connected to the ope same as the other but goin to the Y position axis
    Share this post

  8. #8

    Re: help with "follow game camera"

    hi, thnx for staying with me

    i just copy the stuff in the vid yes.
    Originally Posted by BMXBandit
    The Y axis is done the same way but change the Distance operator to Height and have this connected to the ope same as the other but goin to the Y position axis
    i tryed that now, and it kinda works a "little better" the object is now following the cam for several meters
    but then glides away... (i have a curved driving line, maby thats got something to do with it)
    the object reappear on a later cp but away from the camera and takes a completely different path.

    im going to test this further in the editor, im getting close thanks to you!

    edit: oh .. and dont feel obligated to cary me all the way, thanks so much for your help so far!!
    Share this post

  9. #9

    Re: help with "follow game camera"

    This was fairly easy

    - Just take the positions from the camera and the camera target block(aim marker) to Vector Object Info data sources.
    - Then Subtract the cameras position from the targets position with Vector -> Vector Operator calculation block, and you get the vector from the camera to the target.
    - Then normalize that with the same type of calculation block.
    - Multiply/divide/add it with the same kind of calculation block if you don't want the distance to be 1
    - Add that final result to the camera position vector with the same kind of calculation block and you have the things position for the position event.
    - Take the cameras angle vector with the Vector Object Info data source.
    - Put the position event to set the position and angle to these and it will follow the camera precisely on the same spot in front of it.

    If the object doesn't stay on the center the fault is in the cameras interpolation, position behaviour and target behaviours. I got it to work with both on driving line setting and interpolation speeds on 100.

    If you dont have the DLC. You can calculate the vector stuff separately on X, Y and Z coordinates.
    Share this post

  10. #10

    Re: help with "follow game camera"

    hi thanks for response Agatio!
    I do actually still work on this from time to time.
    I will have a look at your feedback.
    This thread are missing sevaral posts due to a forum hickup some time ago,
    and some of the answers i got work fairly well
    (especially barrys "rain-follow tutorial" x-y-z tied to the cam)

    im not 100% happy yet, but im working slowly on it.
    again.. thanks for your time, i will check it out
    Share this post