Sign in to follow this  

Parsing Models with Multiple Textures

This topic is 1851 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

So I'm working on a graphics project for school and I got model loading set up a few weeks ago. Essentially I used lib3ds to get a list of all of the vertices of a model and then render them. This works fine for models with a single texture. My question is how should I go about managing models with more than one texture? Is there a common system in .3ds files for such a thing? Like is it a per mesh assignment? It seems like if each mesh was assigned a texture then doing this would not be a big deal, just a matter of rebinding the texture when the next mesh's vertices come along.

If this isn't possible or practical that's fine too. For the scope of this project single texture models will work, I just want to get fancy if I can.

Share this post


Link to post
Share on other sites
[indent=1]While I can't speak to the specific library, your per-mesh idea is what I would recommend with any 3d library. If a "model" is just composed of 1 to n meshes, each mesh can have its own texture, refer to the same texture, etc paralleling the "materials" concept seen in most modeling tools. It's just up to you to then improve efficiency through things like material-based batching (to reduce the number of rebindings needed to render a multi-material or multi-texture scene).[/indent]

Share this post


Link to post
Share on other sites
[quote name='Khatharr' timestamp='1353047987' post='5001459']
I've never worked with lib3ds so I can't advise, but you may want to ask in the graphics programming forum. I'd be amazed if there weren't a simple way to do so.
[/quote]

Is there a way to move this such that there isn't a duplicate?

Share this post


Link to post
Share on other sites

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this