Forums Gallery Downloads LOGIN |REGISTER

control camera while in trackview

Any game design topics should be posted in this forum, including SP/MP design and other related queries.


 

GLAdmin
Just getting started
Just getting started
 
Posts: 6
Member since: 25.08.2011, 20:40
Likes: 0

control camera while in trackview

Postby GLAdmin » 20.10.2011, 04:11

I want to be able to attach a camera to a vehicle or airborne platform. I would then like to be able to switch into camera mode while in game and control the camera with key presses. For example, i would like to be able to turn the camera left, right, up, down, zoom in, etc.

The vehicle could be an AI path ....i have set this up. To approach the camera issue, i have tried doing a trackview, which works. However, i do not know how to (freely) control the camera while in a cut-scene from trackview. Any ideas on how i would do this?

I have attempted Movement:RotatedEntityTo node in FG but this always seems to snap back to center and doesn't really give me free control of camera. Any help would be awesome. Thanks!
User avatar
modsuki
Has seen it all
Has seen it all
 
Posts: 5227
Member since: 02.02.2007, 07:25
Likes: 258

Re: control camera while in trackview

Postby modsuki » 20.10.2011, 04:56

Wait... first of all, I think... it's not necessary to make it as cutscene. :evil:

Your target is "controlable camera & other elements move in specific way", isn't it?
If it's so, it's not necessary to make it as cutscene. Just move in specific way except player, only it.
Move player to the specific position & position lock, then move other elements. Only it.
Last edited by modsuki on 20.10.2011, 05:15, edited 1 time in total.
My Crytek News Blog - http://bit.ly/aFSbnP
My Massive Crysis Maps Guide - http://bit.ly/f5ifhe
My CryEngine Screens - http://bit.ly/wIDNDJ
My Youtube - http://bit.ly/xIg1l1
My Twitter - http://bit.ly/yZtaoH0
wootwoots
Producer
Producer
 
Posts: 1730
Member since: 18.01.2010, 23:11
Likes: 2

Re: control camera while in trackview

Postby wootwoots » 20.10.2011, 05:09

Feeding a Pos to the camera:camera node ( using time:time or timer ) allow you to freely move the view with the mouse. You will need to make a roll correction starting from the player using the GetPos node( keep using a time:time or timer, for a constant check its the same )

So you dont need move the player or anything else, the camera:camera node is just perfect for that :love: ( only in the SB2 btw )

This functionnal node miss me too much in the SB3 :puppy:
User avatar
Hamers
Developer
Developer
 
Posts: 289
Member since: 06.10.2008, 18:38
Location: Berlin, Germany
Likes: 2

Re: control camera while in trackview

Postby Hamers » 20.10.2011, 10:34

@wootwoots
But in the SB3 you can use a trackview camera instead and use this tutorial http://freesdk.crydev.net/display/SDKDO ... ook+Ranges
GLAdmin
Just getting started
Just getting started
 
Posts: 6
Member since: 25.08.2011, 20:40
Likes: 0

Re: control camera while in trackview

Postby GLAdmin » 20.10.2011, 15:12

I have tried the above tutorial, does not appear to help me. As for the first post, i want to be able to freely control the camera as it moves on a specific path. For instance, i want it to be a dash cam on a vehicle that is driving a particular path, but i want to move it up,left, etc as the car drives. I just don't see any flowgraph nodes that can help me do this....i am all for not using trackview....any approach is fine with me.

Any other ideas? ...or the above ideas better explained?
wootwoots
Producer
Producer
 
Posts: 1730
Member since: 18.01.2010, 23:11
Likes: 2

Re: control camera while in trackview

Postby wootwoots » 20.10.2011, 21:14

Hamers wrote:@wootwoots
But in the SB3 you can use a trackview camera instead and use this tutorial http://freesdk.crydev.net/display/SDKDO ... ook+Ranges


trackview camera dont allow so much freedom than a SB2 camera:camera node allow

You cant control them with mouse ( like you can do when you tweak the camera Pos with the camera:camera node ) and since there isnt any mouse node to check the X/Y mouse movement you cant make thoses " :( " trackviewed camera rotate like you want.

in a word for somes application trackview camera are just bad like hell ( well, trackview cam, just turn many application impossible when they was possible in the SB2 with the cam node )

btw

GLAdmin wrote:I have tried the above tutorial, does not appear to help me. As for the first post, i want to be able to freely control the camera as it moves on a specific path. For instance, i want it to be a dash cam on a vehicle that is driving a particular path, but i want to move it up,left, etc as the car drives. I just don't see any flowgraph nodes that can help me do this....i am all for not using trackview....any approach is fine with me.

Any other ideas? ...or the above ideas better explained?


If you dont need rotate the view with your mouse, yes you can use this "thing" ( mean trackview camera ) attach it to your vehicle ( group-> attach )
Get his position with the EntityPos node use Debug:inputkey node to configure your desired keys for up / down / left / right movement

Starting from then camera default position ( EntityPos -> Pos output ) use Vec3 node to add ( Vec3:addvec3 X / Y or Z value to the camera position and link the changed position to your EntityPos node Input or to a MoveEntityTo node

or you can attach different tagPoint to your vehicle and beam the camera stuff when you press a key.

but yes basicly it will requier somes tweak, there isnt magic node for what you wanna do :))


 
Connect and collaborate with CRYENGINE developers in the official Forums.
Visit the Gallery to share what you have created and be inspired by what others are creating with CRYENGINE.
Community