Custom model has no texture
slayer20
Killed a man once. Join Date: 2007-12-13 Member: 63157Members, Reinforced - Shadow
in Mapping
So I made a custom model in 3ds Max, gave it a texture, exported it, and everything worked except the model will not show it's texture.
<img src="http://filesmelt.com/dl/whynotexture.jpg" border="0" class="linked-image" />
The output window gives no errors and neither does the builder. The viewer shows that it's there, but it has no texture on it.
My material file looks like this:
<!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec-->shader = "shaders/Model.surface_shader"
albedoMap = "models/arch_uv.dds"
specularMap = "models/arch_spec.dds"
surface = "thin_metal"<!--QuoteEnd--></div><!--QuoteEEnd-->
The only thing I can think of that could be causing this is that 3ds Max isn't actually assigning the material. It shows the material on the model in 3ds Max, so I assume I have that right.
What could I be doing wrong here?
<img src="http://filesmelt.com/dl/whynotexture.jpg" border="0" class="linked-image" />
The output window gives no errors and neither does the builder. The viewer shows that it's there, but it has no texture on it.
My material file looks like this:
<!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec-->shader = "shaders/Model.surface_shader"
albedoMap = "models/arch_uv.dds"
specularMap = "models/arch_spec.dds"
surface = "thin_metal"<!--QuoteEnd--></div><!--QuoteEEnd-->
The only thing I can think of that could be causing this is that 3ds Max isn't actually assigning the material. It shows the material on the model in 3ds Max, so I assume I have that right.
What could I be doing wrong here?
Comments
The key is to edit the DAE's "library_images" section, and make sure the textures are in the same source folder as the model.
Milkshape 3d completely skews the scale of the model when I import it.
Don't be confused how to export to NS2, wiki says it all.
Since 3dsmax already comes with a way to export to .DAE file which is a unsupported format, you need to load the plugin NS2 comes with which only works with 3dsmax9 and only then you can get models which show up correctly in the game.
Still need to edit the "library_images" section though, as stardog said. Should be addressed in the future, from what I know theyre trying to get things working well with the open collada plugin as their own only works with 2009.