|
|
|
Tell us what you think of the site.
|
Autodesk Media & Entertainment User Community
|
Autodesk® 3ds Max®
|
|
Autodesk® Maya®
|
|
Autodesk® Softimage®
|
|
Autodesk® MotionBuilder®
|
|
Autodesk® Mudbox™
|
|
Autodesk® ImageModeler™
|
|
Autodesk® Sketchbook® Pro
|
|
Autodesk® Smoke on Mac®
|
|
Hey, I’m an indie game designer, working on my engine.
I had a model loader/renderer based on .obj, but I decided to move to a more future proof format.
My problem is, that I can load the vertex data fine and render the model, but I cannot seem to figure out the weird texture configuration for the SDK.
So basically I need to know, how to get the texture?
Is it embedded and automatically loaded or I need to use my own image loader?
If it is embedded then how do I convert to a GLuint so I can render it.
If it is not, how can I get the filename?
Do not point me at those sample programs, there is so much code I do not need in there, I cannot find the stuff I do need.
|
|
|
|
Howdy,
Well, I’m sorry but I’m going to point you to the “ViewScene” example project, in particular the file “InitScene.cxx” and the functions “LoadSupportedTextures()”, “LoadSupportedTexturesRecursive()” and “LoadTexture()”.
That’s where I got all the info needed to load materials and textures.
Adios,
Cactus Dan
|
|
|
|
Howdy,
Oh, sorry. What FBX SDK are you using?
Edit:
OK, I see that the ViewScene example was the same up until FBX SDK 2012. In 2012 take a look at the MaterialCache class in the file SceneCache.cxx. Then in the DrawScene.cxx file, look at the DrawMesh() function.
Adios,
Cactus Dan
|
|
|
|
|
|