Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Simple SetTransform with D3DTS_WORLD Question

This topic is 5246 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'm rendering from two buffers, one my terrain, the other my character. When I try to move the model of my character to his position with SetTransform, it moves everything. I know there's an easy way to fix this, but I haven't done D3D in a while so I forgot. Here is the basic order of my code: ter->Render(&device); //render the terrain D3DXMatrixTranslation(&W,pos.x,pos.y,pos.z); (*device)->SetTransform(D3DTS_WORLD,&W); plyr->Render(&device); //render the player What am I doing wrong? EDIT:: pos is the position of the character; it is contained within the player class, but I'm just showing the order of the code. [edited by - jtmerchant on April 3, 2004 2:40:37 PM]

Share this post

Link to post
Share on other sites

  • 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!