Author Topic: Linked Hdri to corona sun Mirroring rotation  (Read 6050 times)

2015-03-25, 18:26:39

arqrenderz

  • Active Users
  • **
  • Posts: 996
  • https://www.behance.net/Arqrenderz1
    • View Profile
    • arqrenderz
Hi i have linked the hdri to corona sun as in this video tutorial from rommulus3d

But when i move the corona sun the hdri moves in the other direction, just like mirroring .
Im going nuts on this thing....

2015-03-25, 18:49:39
Reply #1

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12768
  • Marcin
    • View Profile
I think the solution would be to use (-U_Offset) or -360 in wire editor but I'm not sure.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2015-03-25, 19:27:38
Reply #2

arqrenderz

  • Active Users
  • **
  • Posts: 996
  • https://www.behance.net/Arqrenderz1
    • View Profile
    • arqrenderz
Hi Maru, i have tried that , but it wont work or worse, it starts to behave weird...
attached anotehr screenshot and max file.The hdri can be replaced with any other one (using one of peterè right now)

2015-03-25, 19:54:08
Reply #3

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12768
  • Marcin
    • View Profile
I think this should link the movement of sun and hdr offset:

(degtorad U_Offset*360)+(degtorad 270)

where "270" is the corona sun's "correction" like in Romullus' tutorial.

It works for me but I'm not sure if there isn't something utterly stupid in this code. :)

Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2015-03-25, 20:25:21
Reply #4

arqrenderz

  • Active Users
  • **
  • Posts: 996
  • https://www.behance.net/Arqrenderz1
    • View Profile
    • arqrenderz
not working here :( maybe some one has a file with a linked sun to and vray hdri (just to better control the hdri) ???

2015-03-25, 20:32:30
Reply #5

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8856
  • Let's move this topic, shall we?
    • View Profile
    • My Models
-HorizontalRotation and -Rotation. Should work.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2015-03-25, 20:52:54
Reply #6

arqrenderz

  • Active Users
  • **
  • Posts: 996
  • https://www.behance.net/Arqrenderz1
    • View Profile
    • arqrenderz
Romullus You are the man  :) IT worked! :) :) Many THX im ultra new to all the parameter wiring :)

2015-03-25, 21:15:42
Reply #7

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8856
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Me too. I'm just putting some numbers and look what will come out :]
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2015-03-26, 10:27:49
Reply #8

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12768
  • Marcin
    • View Profile
Me too. I'm just putting some numbers and look what will come out :]
Same here. And my code worked for me. o_O
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2015-05-09, 09:27:44
Reply #9

Vanya

  • Active Users
  • **
  • Posts: 21
    • View Profile
Quote from: maru
Quote from: romullus
Quote from: daniel266
:]
:]
:]

Many thanks to you guys, I finally met my "sunset" )