splat textures on a texture

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
roelor
Posts: 240
Joined: Wed Aug 13, 2008 8:06 am

splat textures on a texture

Post by roelor »

Hello, I am currently busy with coloring my terrain, my terrain consist of segments and I would like to be able to generate textures for induvidual section.

So, I want to overlay repeated textures on a larger texture, I already made the splat map generator, but I have no idea how to add masked tiling textures to my main texture..

Thus, can anyone give me some pointers on what I can use?
I am using the IImage manipulation functions to render the splat map.
p.s. textures dont neccecairily have to be rendered in real time, but it'd be nice if that is possible.. if it doesn't get too complicated.
I'm a beginner with shader programming (GLSL) so I know some about it.
roelor
Posts: 240
Joined: Wed Aug 13, 2008 8:06 am

Re: splat textures on a texture

Post by roelor »

I think I know what to do,
create the main IImage,
Use the IImage copyTo function to lay out a basic texture (if there is one).

create a temporary IImage
in which the new texture layer gets repeated like in the main IImage but this time we will apply an alpha map.
I am unsure about the method I should use for applying the alpha map. I will probally have to create a loop with getPixel and setPixel. This way I can use RGB splat maps.

apply the temporary IImage to the main IImage

repeat last two steps.

If anyone has a further suggestion, feel free to state it.
Post Reply