Jump to content
  • Advertisement

Archived

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

javincin

create 2 objects?

This topic is 5303 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 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.

Share this post


Link to post
Share on other sites
Advertisement
Make 2 different meshes, of course.

LoadMesh(mesh1);
LoadMesh(mesh2);

...

DrawMesh(mesh1);
DrawMesh(mesh2);

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!