Page 1 of 1

Texture-splatting in combination with triplanar mapping

Posted: Fri Jan 29, 2016 11:32 pm
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?

Re: Texture-splatting in combination with triplanar mapping

Posted: Sat Jan 30, 2016 10:56 am
by hendu
Write one shader that does both.

Re: Texture-splatting in combination with triplanar mapping

Posted: Sat Jan 30, 2016 11:32 am
by Mel
Combine both. You could use the triplanar coordinates to map the textures and the splat map to blend them.

Re: Texture-splatting in combination with triplanar mapping

Posted: Sun Jan 31, 2016 8:49 pm
by JFT90
Thanks for your Answers. I will try to combine them. Will let you know when it works ;)