Author Topic: Possible bug? Triplanared textures are are mirrored in reflections  (Read 2518 times)

2018-06-08, 13:16:21

eilsoe

  • Active Users
  • **
  • Posts: 14
    • View Profile
This may be a bug, or just me not knowing what the h*ll I'm doing. I can't seems to find a fix though.

I was trying to wrap a car in mud, using a combined model of all the underlying parts with a mud splatter texture on it, and kept getting "black" spots in weird places. After some fiddling, I saw that they were mirrored verions of the wrapped texture. After some more fiddling, I found out that the spots were actually the reflections of the mud layer, only mirrored.

I re-created the issue on a simpler setup. See the attached image for reference.

It's a plane with a simple carpaint material on it, and an instanced plane on top. The instanced plane has a material with displaced lines. The texture I use for displacing the lines is also used as an opacity map. The texture is applied using a triplanar map.

Notice the reflections of the lines on the carpaint. They're mirrored! Using a blendedboxmap produces the same result. A typical plane UVW map does not. Excluding the plane from reflections also cleares the problem, but that's not a usable option.


Any ideas?

2018-06-08, 13:23:09
Reply #1

eilsoe

  • Active Users
  • **
  • Posts: 14
    • View Profile
I just realised that it might just be the mirrored backside of the top plane... The reflections still show up even if the planes are the exact same spot.

Is it possible to flag an object / materials as one-sided only?

2018-06-08, 13:29:40
Reply #2

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 13675
  • Marcin
    • View Profile
The description is a bit too complicated for my tiny brain to comprehend. Can you upload this scene? (or a similar one where the issue can be observed)
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2018-06-08, 13:56:12
Reply #3

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 9261
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Is it possible to flag an object / materials as one-sided only?
You can put CoronaFrontBack map in material's opacity slot, set front to white (opaque) and back to black (transparent). That will give you one sided material.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2018-06-08, 13:58:48
Reply #4

eilsoe

  • Active Users
  • **
  • Posts: 14
    • View Profile
@romullus: Thanks, I hadn't checked that one out yet :) 

@maru: Sure thing.

I pretty sure it's just the back side of the plane showing through. That would account for the mirrored texture. Corona triplanar seems to only support 3 texture on 3 axis, not 6 on 3, like blendedboxmap. Unless there's a checkbox I missed somewhere :)

2 textures per axis allows me to mirror the opposing side, which eliminates the issue completely.

2018-06-08, 14:02:47
Reply #5

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 9261
  • Let's move this topic, shall we?
    • View Profile
    • My Models
I wonder if fronBack could be used to adress that backside flipping issue? So you would plug your mud texture into front slot, then its reversed version into back slot and then feed the frontBack map to triplanar.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2018-06-08, 14:14:11
Reply #6

eilsoe

  • Active Users
  • **
  • Posts: 14
    • View Profile
Well apparently that works just fine, I just checked :D

TIL...

2018-06-08, 15:04:35
Reply #7

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 9261
  • Let's move this topic, shall we?
    • View Profile
    • My Models
It's good to know that there is workaround :] Nevertheless it would be nice if this issue would be fixed in the next version.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2018-06-11, 10:38:40
Reply #8

eilsoe

  • Active Users
  • **
  • Posts: 14
    • View Profile
Absolutely. It'd be nice if the triplanar map had an option to use 6 maps, instead of up to only 3.

I managed to get it right on my car wrapper (see attached image). Still working on it, but I think it's already looking good.