Author Topic: Triplanar mapping issues.  (Read 1671 times)

2020-03-22, 12:57:07

sirio76

  • Active Users
  • **
  • Posts: 146
    • View Profile
I'm testing triplanar mapping on some shaders and I'm noticing a few problem.
Let's start from the standard shader using cubic mapping:
 

2020-03-22, 13:01:25
Reply #1

sirio76

  • Active Users
  • **
  • Posts: 146
    • View Profile
Of course when the angle change there's an issue using cubic mapping so I insert all the texture inside a triplanar node, but the scale is wrong(more on that later) and the bump get inverted:



« Last Edit: 2020-03-22, 13:13:22 by sirio76 »

2020-03-22, 13:08:09
Reply #2

sirio76

  • Active Users
  • **
  • Posts: 146
    • View Profile
In order to fix that I've inverted the bump intensity and scaled down the size inside the triplanar node, now works decently but why the texture size has to be set double the size of the cubic projection? to match a 15x15x15cm cubic mapping size I have to set the triplanar node to 30cm so please fix this and the inverted bump.
Also the texture sampling seems to be affected and no longer look like the normal cubic mapping. I've also noticed that by loading the texture for the triplanar node using a Corona bitmap loader, the bump issue get resolved but sampling looks far worst then before.

« Last Edit: 2020-03-22, 13:12:32 by sirio76 »