nwpointer / three-landscape

React-three-fiber compatible abstractions that make it easier to render high quality landscapes scenes

Home Page:https://three-landscape.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tri-planar projection

nwpointer opened this issue · comments

This would help reduce texture stretching on part of the terrain with extreme hight differentials

Got triplannar projection working, will be adding to next release

Hi - firstly thanks for creating & sharing the project: I'm just poking around it as reference for something I'm working on (that currently has some very dull & uninspired landscape I need to improve!).

Could you point me to where (+ which branch) the changes for the triplanar projection were made?

Sorry @60days - didn't see your question - working on a refactor at the moment so code is a little messy.

In the mean time this is the most straightforward article I've seen on triplanar projection of diffuse textures:
http://www.martinpalko.com/triplanar-mapping/

This one goes over normal maps which are more complex:
https://bgolus.medium.com/normal-mapping-for-a-triplanar-shader-10bf39dca05a#d715

Is enabled in 0.7.2, see example folder for details