Terrain Blend Map help

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
Ktrainers
Posts: 10
Joined: Sun Mar 23, 2008 5:46 pm

Terrain Blend Map help

Post by Ktrainers »

Can anyone tell me exactly how to read in a blend map to create multi-textured terrain using irrlicht? I created some terrain using the scenemanager->addTerrainSceneNode() method which is nice cause it reads in a heightmap on its own, but it seems like when you make terrain this way you can only stretch one texture over the whole mesh. I want to be able to have dirt textures, grass textures, stone textures, etc. on my terrain. Can anyone show me how to do this with Irrlicht?
locosoftware
Posts: 15
Joined: Sat Mar 08, 2008 3:15 pm
Location: Shanghai

Post by locosoftware »

You mean texture splatting:
http://www.gamedev.net/reference/articl ... le2238.asp

Here's my solution without pixl shader.(But slower.)
http://irrlicht.sourceforge.net/phpBB2/ ... 950#151950

And Here's some reference:
http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=26959
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Post by BlindSide »

locosoftware wrote: Here's my solution without pixl shader.(But slower.)
What makes you say this? I find fixed function is usually faster. Also remember that you don't have to manually implement all the lighting types/colours/states and clipplanes, fog, texturematrix etc.
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
arras
Posts: 1622
Joined: Mon Apr 05, 2004 8:35 am
Location: Slovakia
Contact:

Post by arras »

What makes you say this? I find fixed function is usually faster. Also remember that you don't have to manually implement all the lighting types/colours/states and clipplanes, fog, texturematrix etc.
This is true in general. But consider situation when you render the same terrain tile 4 times in one texture blend mode with different vertex alpha in order to blend 4 textures (it is just an example I was not testing if it really is slower). You might have situation when shader will be faster.
Post Reply