wrong clipping in VBs...

Started by
-1 comments, last by RPTD 20 years, 1 month ago
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.

Life's like a Hydra... cut off one problem just to have two more popping out.
Leader and Coder: Project Epsylon | Drag[en]gine Game Engine

This topic is closed to new replies.

Advertisement