Hi, to all! My Name is Giuseppe and I write from Italy . I have a question about Irrlicht and the textures. I want to create a dynamic texturing system for my terrain, but I don't know the procedures to create it. For example, I have a "brush", and I paint my terrain, with different textures (ES: grass, sand, rock, etc.).
Can you help me?
Thank you very much.
PS: Excuse me, if I committed many grammar mistakes, but I know only little bit of this language.
How to create a dynamic texture
First load any "empty" texture.
Then use the getColorFormat() function of texture to get the color format and lock() function to get pointer to pixels.
Also load the texture of grass, sand... and do the same.
Now it's up to you to calculate the position of "brush" and blend the fragment of grass/sand/rock into the main texture.
After this (painting) unlock() all textures.
Maybe I will paste some code later
Then use the getColorFormat() function of texture to get the color format and lock() function to get pointer to pixels.
Also load the texture of grass, sand... and do the same.
Now it's up to you to calculate the position of "brush" and blend the fragment of grass/sand/rock into the main texture.
After this (painting) unlock() all textures.
Maybe I will paste some code later
We all gonna die...