Skip to main content
GameDev.net gamedev.net
🔒 Locked

My models are busted

Started by DukeAtreides076 Apr 19, 2004 at 8:04 PM 2 replies 1.5k views
Original Post
DukeAtreides076
DukeAtreides076
I''m having some problems loading and drawing .X model files. I''m currently using ID3DXMesh and D3DXLoadMeshFromX to load them. The tiger.x model from the SDK loads and draws correctly...but none of my other models draw at all, which is wierd because the mesh viewer opens them fine. I know theyre loading properly because I checked with the debugger...they just don''t draw at all. I know I had this problem a while back and I cant remember how I fixed it . Should I be using the Frame or XFile classes instead of ID3DXMesh? Any ideas?
circlesoft
circlesoft
First of all, which 3D modeller/exporter are you using? Second, where did you get the mesh loading/rendering code from? The SDK tutorial depicts it perfectly - I''ve never had any problems with it.

That is unusual that the one model works, but the others don''t. Could it be something with the vertex texturing or transformation? How about something weird with those models themselves?


Dustin Franklin
Mircrosoft DirectX MVP
DukeAtreides076
DukeAtreides076
They were exported from 3d studio max with the plugin supplied in the extras. I used the code from Tutorial 6 in the SDK...I think it is a problem with the models. I''ll play around with the exporter some.
DukeAtreides076
DukeAtreides076
Ahh I fixed it. It turned out my model had really huge vertex sizes on it. I couldnt see anything because the model was so huge that the camera ended up inside it, and backfaces were being culled. Thanks circlesoft

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.