Hi
I'm making my own terrrain which texture is genereted in program from this image:
http://zapodaj.net/58897eb5664eb.png.html
texturing is based on Tcoords.
Render:
http://zapodaj.net/c2c0baaf248ca.jpg.html
This isn't look good i want to do something like this:
(Edited in gimp)
http://zapodaj.net/1defe9cf5a4c2.jpg.html
And my question, is posible to do this in irrlicht?
Smothing Terrain Textures
-
- Competition winner
- Posts: 189
- Joined: Tue Oct 16, 2007 3:53 am
- Location: Indonesia
- Contact:
Re: Smothing Terrain Textures
it's called texture splatting my friend
check this topic http://irrlicht.sourceforge.net/forum/v ... hp?t=38676
check this topic http://irrlicht.sourceforge.net/forum/v ... hp?t=38676
Re: Smothing Terrain Textures
Mayby this code is to older version of irrlicht because i get compilation error in this line:
I don't know why this function is missing.
Code: Select all
material.MaterialTypeParam =pack_texureBlendFunc(video::EBF_DST_COLOR,video::EBF_ONE);
Code: Select all
error: 'pack_texureBlendFunc' was not declared in this scope
Re: Smothing Terrain Textures
That function got renamed. The "texture" was missing the "t", so use pack_textureBlendFunc with newer Irrlicht versions.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm