Skip to main content
gamedev.net
🔒 Locked

Meshes

Started by Madprog Jan 29, 2004 at 1:00 PM 3 replies 450+ views
Original Post
Madprog
Madprog
ok i loaded a mesh in my app tiger.x from the SDK but if I try to load a mesh that i downloaded the app hangs how can i make it so it loads any mesh i feed to it and how do I move the mesh around the screen... sorry but im a begginer at this thanks in advance
KosmiC_Khaoz
KosmiC_Khaoz
to move the meshe:
do u know how Direct Input works? (u use Dx?)

to load:
the meshe that u downloaded probably isn''t the same type that the SDK meshes...or then...i don''t know what u did and ur meshe...

sorry about my english
jimmynelson
jimmynelson
First it shouldn''t hang while loading the mesh unless the mesh is invalid. If the mesh is something like an animation mesh with more set it will default and load the first. So I believe your mesh is invalid or you aren''t including all the textures.

As for moving around it around the screen is a little tougher. In fact you really move it around the world unless you are taking screen coordinates and projecting to the worlds space.

But for moving in the worlds space it is simple. Just find a tutorial on it, it is basically just rotating and translating a matrix and then setting that as the world matrix before it is rendered.
Madprog
Madprog
ok I figured it out, now the problem is the meshes are WAY BIG the only one that comes out ok is the tiger one all the others apear BIG i have to move the camera back a while to see them completely is there a quick fix for this?
jimmynelson
jimmynelson
Directx has a method to create a bounding box around the mesh, once you get that you know it''s width and height and then scale to width or height when you draw the mesh. You could also just resize the mesh with the program you used to draw it.

Topic Locked

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

Sign in to reply to this topic.