Custom loading scene
Posted: Sat May 23, 2009 12:13 pm
Hi,
I have a few questions.
I have read tutorial about parallax mapping and I know how to do this but it's only describe problem when loading mesh from .3ds in code. I have made scene in IrrEdit (few models from .3ds). And I'm loading it in my code by LoadScene("file.irr") . But mesh in scene have no information about tangent. So what now? I have an idea to iterate all node in scene, generate new mesh with tangents (like in tutorial), delete in scene the old one and add the new. But this is stupid. Is there a better way to do this?
Second thing is that, that if I place a light near mesh with parallax mapping everything is ok, but if there is no lights the mesh have no texture. I want no lights, and want to display mesh properly with parallax.
And last thing. When I set in IrrEdit parallax (in material) mesh is black. Why? If IrrEdit don't support parallax why not display it simply with first texture? When I place some objects in my scene and set parallax, all is black and I don't recognize them, is there a way to display them correctly?
I use Irrlicht 1.5 and IrrEdit 1.5
I have a few questions.
I have read tutorial about parallax mapping and I know how to do this but it's only describe problem when loading mesh from .3ds in code. I have made scene in IrrEdit (few models from .3ds). And I'm loading it in my code by LoadScene("file.irr") . But mesh in scene have no information about tangent. So what now? I have an idea to iterate all node in scene, generate new mesh with tangents (like in tutorial), delete in scene the old one and add the new. But this is stupid. Is there a better way to do this?
Second thing is that, that if I place a light near mesh with parallax mapping everything is ok, but if there is no lights the mesh have no texture. I want no lights, and want to display mesh properly with parallax.
And last thing. When I set in IrrEdit parallax (in material) mesh is black. Why? If IrrEdit don't support parallax why not display it simply with first texture? When I place some objects in my scene and set parallax, all is black and I don't recognize them, is there a way to display them correctly?
I use Irrlicht 1.5 and IrrEdit 1.5