Textured Custom SceneNode
Posted: Tue Jun 21, 2005 6:22 pm
Hi all!
I've been playing around with Irrlicht for some time now, and I started a little project of mine. Well, in the distant future I hope it becomes something like Frontier: First Encounters (yeah I know I'm not the only one trying this )
For now, it is nothing more than a "Planet Simulator", wich means that I am able to display a Planet (no random Planet at the Moment, I'm still working with an Earth Texture) at different Levels of Detail regarding to the distance to the ground.
Everything works fine, and I am pretty pleased with the results (I used this http://www.gamedev.net/reference/articl ... le2074.asp algorithm and with a few modifications it looks really promising)
Anyways, at the moment I don't use any textures on the Mesh, just colours for the corners that I pick from the Earth Texture and the Earth BumpMap from the PerPixel Lightning Demo for the geometric detail
For more detail I add some random noise to the colors and the heighmap.
It would look much better if I were able to apply textures to the triangles, but I don't know how to do that. Applying one Texture to the whole Mesh is no option, because the Mesh is highly dynamic and changes quite often.
I have searched the API for some time, but I could not find any function to draw a texture to a single triangle. Does Irrlicht support this? Or if it does not, could I use some OpenGL functions?
I've been playing around with Irrlicht for some time now, and I started a little project of mine. Well, in the distant future I hope it becomes something like Frontier: First Encounters (yeah I know I'm not the only one trying this )
For now, it is nothing more than a "Planet Simulator", wich means that I am able to display a Planet (no random Planet at the Moment, I'm still working with an Earth Texture) at different Levels of Detail regarding to the distance to the ground.
Everything works fine, and I am pretty pleased with the results (I used this http://www.gamedev.net/reference/articl ... le2074.asp algorithm and with a few modifications it looks really promising)
Anyways, at the moment I don't use any textures on the Mesh, just colours for the corners that I pick from the Earth Texture and the Earth BumpMap from the PerPixel Lightning Demo for the geometric detail
For more detail I add some random noise to the colors and the heighmap.
It would look much better if I were able to apply textures to the triangles, but I don't know how to do that. Applying one Texture to the whole Mesh is no option, because the Mesh is highly dynamic and changes quite often.
I have searched the API for some time, but I could not find any function to draw a texture to a single triangle. Does Irrlicht support this? Or if it does not, could I use some OpenGL functions?