shybovycha
shybovycha

Reputation: 12265

Texture unwrap for arbitral mesh

How can one create a texture unwrap for an arbitral object? Just like ALICE's Graphite.

My idea was to pick each mesh' triangle and put it to the one looong texture "frame" sequence. It took nearly 1.5 GB RAM and nearly 1 minute of time to make an incrrect texture and re-assign vertex UV coordinates with Irrlicht. Are there any better ideas?

Upvotes: 0

Views: 3460

Answers (1)

rotoglup
rotoglup

Reputation: 5238

This is wildly vast topic, still being an active research topic.

I'm doing a few wilds guesses here, so :

If you have access to Direct3D, you could use D3DX to build the UV coordinates for your texture atlas : http://msdn.microsoft.com/en-us/library/windows/desktop/bb206321(v=vs.85).aspx

If display performance is not too much a concern, you could try to use Disney's PTEX : http://www.disneyanimation.com/library/ptex/

Charles Bloom's Galaxy 3 'engine' also contains code for LSCM UV generation that may be of interest : http://www.cbloom.com/3d/galaxy3/index.html

All in all, there are many solutions available, not so much robust source code available, you could google for 'mesh parameterization' to find various solutions.

Upvotes: 1

Related Questions