Game Development Community

Eye Node Animation?

by Mike Treanor · in Torque Game Engine · 02/29/2008 (3:09 pm) · 2 replies

Hello,

Is it possible to animate a player's eye transform in a modeling/animation application (Maya), export a dsq and have then in game have the player's eyeTransform move around like it was animated in the 3d application?

I took a stab at this and it didn't work (not surprisingly) - this means that the animation info for the eye node is either not being outputted by the dsq exporter, not being utilized in the engine or likely both... Does anyone happen to know this part of the engine well that can help shed some light on where to start looking to modify the engine, or if this is a terrible idea and that I should just get comfortable with my trig and player.cc files...

Sorry for the very general question, but I am in the process of making fairly important design/implementation decision with my project and I was just hoping to get some input from all you very smart and helpful fellow torque users!

#1
03/01/2008 (12:53 pm)
Yes its possible to animate the eye node. Doing so is the easiest way to get a "foot step" effect going on with your players view. There isn't anything special you need to do - it should be no different than animating a mesh or bone or any other standard object.

Although Im a max user, and am only vaguely familiar with the maya exporter, so i could be way off base.
#2
03/01/2008 (8:58 pm)
Thanks Adam,

The last time I tried, in Maya (to animate the eye node) I must have screwed up some export setting or something. I realize that this must be possible because the blue guy's root animation has some eye node animation in it...