Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Bug #556: .X Datasource-loaded meshes don't load textures
Product:
TV3D SDK 6.5
Language:
Visual Basic.NET
Current State:
Closed
Resolution:
Fixed
Created On:
February 7th, 2006
Last Modified:
February 9th, 2006
Reported By:
Zaknafein
First, I preload the textures I need and set their name as the filename without path, with extension. For example, the "test.jpg" file will be loaded with :
texFact.LoadTexture(dataSource, "test.jpg")
In the debug file, the textures say they're loaded successfully :
01-08-2006 02:02:57 | TEXTURE MANAGER : Loading of '##STREAM:' successful 'test.jpg'

Then, I load a .X file that has linked textures with a datasource (a memory pointer). The textures were all preloaded in the earlier step.
The problem is that the textures aren't assigned to the mesh. The mesh appears white.
I get no notice in the debug file about it.
01-08-2006 02:02:58 | MESH MANAGER : Loading of mesh file '##MEMORY:19867648|27456' succeeded in 31 ms ( 138 faces, 252 vertices ) ID 0

In the .X file (which is ASCII), the texture is linked as the exact filename, without path, same as the name I gave to the texture I loaded.
TextureFilename {
"test.jpg";
}

Comments:

Posted by Zaknafein on February 7th, 2006 at 8:14 AM
By the way, I know that the texture loading works, I can apply those textures to the landscape and they're fine.