[fixed]textures not working properly
-
- Posts: 41
- Joined: Mon Jun 16, 2008 12:20 pm
[fixed]textures not working properly
Hi everybody,
Sorry for being boring with textures again but something is not right with textures.
I export an X-file from Truespace7.6 and load it in Irrlicht. Mesh and bones load properly but textures do not.
The object is brown...because the texture is brownish, if I paint texture in red, for example, the object is red. It appears that loader takes color of one texel in texture and paints the model in that color.
Could someone take a look at this model, please:
http://download136.mediafire.com/owq9zh ... /Horse.rar
(Truespace also exports normal maps for textures but normal mapping is not applied here)
Thanks
Sorry for being boring with textures again but something is not right with textures.
I export an X-file from Truespace7.6 and load it in Irrlicht. Mesh and bones load properly but textures do not.
The object is brown...because the texture is brownish, if I paint texture in red, for example, the object is red. It appears that loader takes color of one texel in texture and paints the model in that color.
Could someone take a look at this model, please:
http://download136.mediafire.com/owq9zh ... /Horse.rar
(Truespace also exports normal maps for textures but normal mapping is not applied here)
Thanks
You haven't given the mesh texture coordinates. Or you haven't exported them. So each vertex in your model probably has texture coords of 0,0 and so just use the upper left pixel of the texture.
I don't know anything about Truespace but there could be an option to texture wrap the model or in the exporter there may be an option to export texture coords or materials or something...
I don't know anything about Truespace but there could be an option to texture wrap the model or in the exporter there may be an option to export texture coords or materials or something...
-
- Posts: 41
- Joined: Mon Jun 16, 2008 12:20 pm
-
- Posts: 41
- Joined: Mon Jun 16, 2008 12:20 pm
I downloaded latest version of irrlicht from svn, there is no console showing.(can I enable it somehow?)
Do you have this line somewhere in one of your application files? If so, remove it, or comment it out, or make it conditional on being a release build.
Do you have this line somewhere in one of your application files? If so, remove it, or comment it out, or make it conditional on being a release build.
Code: Select all
#pragma comment(linker, "/subsystem:windows /ENTRY:mainCRTStartup")
-
- Posts: 41
- Joined: Mon Jun 16, 2008 12:20 pm
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
I'll fix this issue sometimes soon. The thing here is that texture coords are not stored explicitly, but inside the DeclData. Most tools avoid this behavior for better backwads compatibility, so we didn't need to support it until now. But since also Binormals and Tangents are stored in this format it seems reasonable to support it. Moreover, it doesn't seem to be too complex to support.
The normal map support of your file seems rather uncommon, though, because the DX SDK doesn't know about such a group... But it would be even simpler to support this second texture filename, so I'll add it as well.
The normal map support of your file seems rather uncommon, though, because the DX SDK doesn't know about such a group... But it would be even simpler to support this second texture filename, so I'll add it as well.
-
- Posts: 41
- Joined: Mon Jun 16, 2008 12:20 pm
Thanks for answer.hybrid wrote:I'll fix this issue sometimes soon. The thing here is that texture coords are not stored explicitly, but inside the DeclData. Most tools avoid this behavior for better backwads compatibility, so we didn't need to support it until now. But since also Binormals and Tangents are stored in this format it seems reasonable to support it. Moreover, it doesn't seem to be too complex to support.
The normal map support of your file seems rather uncommon, though, because the DX SDK doesn't know about such a group... But it would be even simpler to support this second texture filename, so I'll add it as well.
Could you tell me approximately when this could be supported? (just to know if I should change the tool I'm working with)
Or, could I modify my X-file manually to make it compatible with your loader?