Author Topic: Interior Archviz - Reflection / Refraction Override  (Read 3488 times)

2020-08-15, 01:27:02

cjwidd

  • Active Users
  • **
  • Posts: 1077
    • View Profile
    • Artstation
Lighting a scene with only an HDRI, but glass (window) pane reflections are stretched, disproportionate, etc.

Thinking I should use a RaySwitch material to apply custom reflections to the windows so the reflections appear sensible, i.e. scene is lit with an HDRI of a train station, but it does not make sense to have reflections of a train station in the glass windows of a scene like this, e.g. office space.

Pretty sure this is a common problem, and I think I've articulated the basics of the workaround, but missing some details.

watch x1.5 speed

« Last Edit: 2020-08-22, 11:51:29 by cjwidd »

2020-08-15, 19:11:23
Reply #1

James Vella

  • Active Users
  • **
  • Posts: 542
    • View Profile
Usually I just put the image I want on a plane, set it to self illuminate and place it in front of the glass and set object settings to not cast/receive shadow and not be seen by camera. While interactive rendering you can just move it left or right to get the alignment you require.

« Last Edit: 2020-08-15, 19:15:28 by James Vella »

2020-08-15, 23:39:11
Reply #2

sprayer

  • Active Users
  • **
  • Posts: 794
    • View Profile
You should post it in daily build section, I cannot install it to check but could you check standard bitmap loader how it works?

2020-08-16, 20:45:30
Reply #3

cjwidd

  • Active Users
  • **
  • Posts: 1077
    • View Profile
    • Artstation
@james vella

I went ahead with a version of what you did, and instead of creating a plane and adding the reflection material to the plane, I just passed the reflection material directly into the Reflection Override of a RaySwitch material that was then applied to the glass windows.

The missing piece was enabling self-illumination. Why is that necessary?

2020-08-19, 06:45:41
Reply #4

cjwidd

  • Active Users
  • **
  • Posts: 1077
    • View Profile
    • Artstation
@James Vella Where do you source office / interior backplates for this sort of thing?

2020-08-19, 09:15:10
Reply #5

James Vella

  • Active Users
  • **
  • Posts: 542
    • View Profile
excellent, glad it worked for you.

I suppose it needs self illumination because its not being illuminated by the lights in your scene, with the added benefit of being able to control how intense the image appears in the reflection.

When it comes to back-plates I have a wide variety of different environments that I shoot on my camera in my down time. If I dont have something I need exactly I need ill just search for something online. Unsplash.com have some great high quality royalty free photography that I usually check first.

2020-08-19, 12:54:20
Reply #6

cjwidd

  • Active Users
  • **
  • Posts: 1077
    • View Profile
    • Artstation
oh man, great suggestion, thank you!

2020-08-19, 16:23:13
Reply #7

James Vella

  • Active Users
  • **
  • Posts: 542
    • View Profile

2020-08-19, 22:36:39
Reply #8

cjwidd

  • Active Users
  • **
  • Posts: 1077
    • View Profile
    • Artstation
Tried both options and I think your method is far superior, e.g. self-illumin mat on plane (non-visible to cam, no cast shadow, no receive shadow).

Problem with the RaySwitch only method is it's just too cumbersome compared to just moving the plane in the viewport, as opposed to adjusting tiling, offset, etc. in the texture.

2020-08-20, 17:25:10
Reply #9

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12739
  • Marcin
    • View Profile
Guys, do not use self-illumination as it ALWAYS generates some light and casts it into the scene, and you don't want that. Additionally self-illumination is sampled just like GI, so it may be noisy, as opposed to lights (and Corona Light Mtl) which are sampled in a much more efficient way.

So don't use self-illumination for this.


The proper solutions are:

Option 1) Plug an environment texture into your glass material's Reflect BG override and Refract BG override slots
See the bottom of this guide (it's a little bit outdated, sorry, we will fix it ASAP) - https://coronarenderer.freshdesk.com/support/solutions/articles/5000501978

or

Option 2) Create a backplate (like you did in the video), but use a Corona Light Material with "Emit light" option disabled. This will automatically disable light generation and disable shadow casting, so you don't have to touch the 3ds Max Object properties and at the same time it does not block environment lighting. It was designed exactly for this purpose.
See this guide - https://coronarenderer.freshdesk.com/support/solutions/articles/5000515605

Also, using the rayswitch material / map is not necessary here. It does not influence the reflections appearing in the material. It influences how the material appears in other reflections. (e.g. if you can make your glass panel appear red when reflected in other objects)
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2020-08-20, 18:25:47
Reply #10

James Vella

  • Active Users
  • **
  • Posts: 542
    • View Profile
Sorry I should clarify, I use a standard material with self illumination, thus not illuminating the scene. I dont use Corona materials for this particular job.

TBH I have used this method for years, and it has worked quite well for animations as well. Im sure the above method can work as well, however I stick with what is simple and what has worked for me - generally speaking. Feel free to experiment otherwise.

2020-08-22, 05:21:07
Reply #11

cjwidd

  • Active Users
  • **
  • Posts: 1077
    • View Profile
    • Artstation
Unfortunately, it seems like you cannot control the position of the reflection texture using a UVW modifier with Option 1.
« Last Edit: 2020-08-22, 11:23:01 by cjwidd »