Texture-splatting in combination with triplanar mapping

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
JFT90
Posts: 22
Joined: Sun Jan 03, 2016 6:53 pm

Texture-splatting in combination with triplanar mapping

Post by JFT90 »

Hi,
i am currently trying to combine texture-splatting with triplanar mapping on my terrain.
Has anyone experience in combining those two?

Combining the triplanar mapping code from http://irrlicht.sourceforge.net/forum/v ... hp?t=48109 with the multitexturingmanager http://irrlicht.sourceforge.net/forum/v ... =4&t=51151 for texture splatting didn't really work out yet.

Right now I am trying to use one shader for splatting and one for triplanar - maybe I have to use one for both?
Irrlicht with bgfx-Driver https://gitlab.com/JFT/Irrlicht_extended (forked from Irrlicht trunk)
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Re: Texture-splatting in combination with triplanar mapping

Post by hendu »

Write one shader that does both.
Mel
Competition winner
Posts: 2292
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

Re: Texture-splatting in combination with triplanar mapping

Post by Mel »

Combine both. You could use the triplanar coordinates to map the textures and the splat map to blend them.
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
JFT90
Posts: 22
Joined: Sun Jan 03, 2016 6:53 pm

Re: Texture-splatting in combination with triplanar mapping

Post by JFT90 »

Thanks for your Answers. I will try to combine them. Will let you know when it works ;)
Irrlicht with bgfx-Driver https://gitlab.com/JFT/Irrlicht_extended (forked from Irrlicht trunk)
Post Reply