Archived

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

wrong clipping in VBs...

This topic is 5011 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 copied some code over to make a simple model previewer which takes a model centered around (0,0,0) and renders it by first rotating a bit (45° in this case) and then translating all back a bit so you can view it. i''ve set up projection and world matrix right (the app i copied from works) and the vertices i store in a VB. now happens damn strange thing: my model gets clipped completly away all stuff with negative z values (thus the back of the torso and the tail is clipped away). i suspect the VB doing shit here. i use the DrawPrimitiveVB function to render. somehow DX does apply the clipping BEFORE applying the projection matrix. anybody has an idea why this happens? i searched and looked and could not come up with a solution.

Share this post


Link to post
Share on other sites