Archived

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

Simple SetTransform with D3DTS_WORLD Question

This topic is 5037 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