Jump to content
  • Advertisement


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


wrong clipping in VBs...

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

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