Handling A|W .obj VTs?
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 16/02/2003 at 10:09, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.012
Platform:
Language(s) : C++ ;---------
Hi,
I'm getting ready to open, parse, and display a Wavefront .obj file (I'd use LoadDocument() if 1. it didn't create a new document for each file (don't know how to merge yet) and 2. it retained the 'usemtl' names instead of calling each and every one "polygon selection").
For the first two parts there is code and I don't expect much trouble in creating the geometry, but what do I do with the texture vertices (VT)?
If there is an easier way that I have overlooked, don't hesitate to mention it.
Thanks,
Robert -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 20/02/2003 at 07:06, xxxxxxxx wrote:
Same problem i'm running into too Robert, except I'm going the other way.
If it's anything like it is for going oppisite direction, It seems that you'd have to manually have to translate the local UV coordinates on the verts into global UVW coordinates, create them as a UVW struct, put them into UVWTag array, get them into a TextureTag, register the Tag on the material and polygon.
-eric