Author Topic: Portal object  (Read 9240 times)

2019-07-26, 16:18:42

mattjakob

  • Users
  • *
  • Posts: 2
    • View Profile
Hello,
Im trying to create a portal... basically it's a box with one side open and some objects inside. I want to be able to see the objects from the open side but the remainder of the box to be see through.

Any idea ?

2019-07-26, 16:22:05
Reply #1

houska

  • Corona Team
  • Active Users
  • ****
  • Posts: 1383
  • Cestmir Houska
    • View Profile
If I understand correctly, this would be easiest to do in post-production. Do you have any online reference pictures of what you want to achieve?

2019-07-26, 16:24:19
Reply #2

mattjakob

  • Users
  • *
  • Posts: 2
    • View Profile
Yes... with an object buffer it's super easy in post - I was wondering if there's a way to do it straight in the renderer

2019-07-26, 16:50:11
Reply #3

houska

  • Corona Team
  • Active Users
  • ****
  • Posts: 1383
  • Cestmir Houska
    • View Profile
I'm afraid not. Given that Corona is a photo-realistic renderer, you'd have come up with a way of simulating what you want with some arrangement of mirrors or something like that.

2019-07-30, 14:27:21
Reply #4

jrgby

  • Active Users
  • **
  • Posts: 57
    • View Profile
Is this what you mean?
(added a wiretex around the portal box to illustrate better)



This is in max, but it's all material properties so hopefully works just the same in C4D:

1. portal box one side deleted, give this a material with full refraction at IoR 1.0
2. objects inside box have a material with the following:
    - rayswitch map into opacity slot with color set to black for refraction, the rest white
    - rayswitch map into refraction slot with color set to white for global illumination, rest black

If you don't set rayswitch in refraction slot then you get shadows from your scene showing up in the portal box when it's 'empty', this is the bit that's tricky.

2019-07-30, 19:37:57
Reply #5

burnin

  • Active Users
  • **
  • Posts: 876
    • View Profile
Well, that's only half of the Portal & simpler to set in Cinema. ;)

1. Make a Portal Box (same as described above)
Remove front face and apply Glass material with IOR 1.0 (Note: "Thin" option doesn't work, since it has no refraction)

2. For Materials used inside the Portal Box simply untick and disable "Visibility in refractions" & "Visibility by GI" (under Material > Advanced tab)



But here's the problem: "How do you lit environment in the box differently?"
So it really looks like a portal to another dimension, space & time.
Something like Interior Mapping :)
« Last Edit: 2019-07-30, 19:52:47 by burnin »