Jump to content
  • Advertisement
Sign in to follow this  
PKS123

Problem in transforming body imported from NIF file

This topic is 4329 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am using Gamebryo 1.2 to render some objects in my demo. There is an object from the NIF file, and an object created on-the-fly (using NiLines). When I give the same translation to both the objects using the ApplyTransform function of NiNode, the body created on-the-fly translates properely, but the body loaded from the .NIF file doesn't move, and vanishes after sometime. Can anyone tell me why this might be happening.

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
Have you read the description in Gamebryo.chm about ApplyTransform? This function "bakes" the applied transformation into the model-space data. The reason the function exists is that the node-based transformation system allows only for translation, rotation, and _uniform_ scale. If you want nonuniform scale, the NiAVObject/NiGeometry/NiNode classes cannot store them, so your only alternative is to propagate the nonuniform scale to the leaf-node model-space data.

My guess is that you should use the NiAVObject functions such as SetTranslate, SetRotate, and SetScale to control your transformations.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!