Smothing Terrain Textures

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
Matix522
Posts: 15
Joined: Wed Jul 02, 2014 11:48 am
Location: Poland

Smothing Terrain Textures

Post by Matix522 »

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?
kornwaretm
Competition winner
Posts: 189
Joined: Tue Oct 16, 2007 3:53 am
Location: Indonesia
Contact:

Re: Smothing Terrain Textures

Post by kornwaretm »

it's called texture splatting my friend
check this topic http://irrlicht.sourceforge.net/forum/v ... hp?t=38676
Matix522
Posts: 15
Joined: Wed Jul 02, 2014 11:48 am
Location: Poland

Re: Smothing Terrain Textures

Post by Matix522 »

Mayby this code is to older version of irrlicht because i get compilation error in this line:

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
 
I don't know why this function is missing.
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Smothing Terrain Textures

Post by CuteAlien »

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
Post Reply