Skip to main content
gamedev.net
🔒 Locked

create 2 objects?

Started by javincin Jun 8, 2004 at 2:35 PM 3 replies 350+ views
Original Post
javincin
javincin
I can load and render an object from an x file, but i don''t know load and render another x file. Please, can you copy me a little example. Thanks.
Etnu
Etnu
Make 2 different meshes, of course.

LoadMesh(mesh1);
LoadMesh(mesh2);

...

DrawMesh(mesh1);
DrawMesh(mesh2);
---------------------------Hello, and Welcome to some arbitrary temporal location in the space-time continuum.
3DXD
3DXD
Not sure what you mean. If you can load and render one, what stops you from loading another?

Is it a different type(meaning has different information), or do you want a secondary copy of the same X file or do you want to load multiple X Files into memory at one time and display them... etc etc

Need a little more info on the problem.
javincin
javincin
I want load multiple X Files into memory at one time and display them.
3DXD
3DXD
Yeah then do what etnu said.

Best case scenario, you create an XFile class. Then you have a collection (array) of your XFile class. Then you render them as you need them.

Topic Locked

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

Sign in to reply to this topic.