VBGamer |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
RE: X File Texture Mapping PyroBoy (3 replies, 0 views) (2000-Aug-29) Yeah, I suppose that could be done, but what I'm trying to do is to be able to open up 3ds max, model the geometry, apply mapping coords and assign textures, then export it to .x and tell my 3d object class to load it, and have it take care of loading the textures inside the xfile so I don't have to do it all individually when putting a scene together.
I know the texture filenames are in the x files (incidentally, they seem to be bundled into the object's material structure in the file. Does that affect things?), I just need to figure out what they are and more importantly, what internal object they apply to. You see, this problem stems from the fact that there are multiple objects and multiple texture filenames in a single x file and hence a single RM mesh object. These objects are grouped together to form a complex object, but my loading code needs to know what texture to apply to each sub-object.
The code that's fucking up is that line in the origional post that's supposed to determine if there's a texture map for a given sub-object inside a mesh. There's gotta be a reason it's not finding it!
|