Author Topic: Illumination from Corona lights in viewport  (Read 20398 times)

2014-05-22, 15:53:27

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
Finally, Corona lights and sun cast proper illumination in the viewport, including shadows!
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2014-05-22, 15:57:15
Reply #1

nehale

  • Active Users
  • **
  • Posts: 283
    • View Profile
whoo hooo finally
I had a girlfriend once.....her name was Vray

2014-05-22, 16:27:43
Reply #2

hydeman

  • Active Users
  • **
  • Posts: 31
    • View Profile
Great ! Do we need to install a new thing for testing this , or it will be available in the next version ?

2014-05-22, 17:00:11
Reply #3

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12764
  • Marcin
    • View Profile
What a sexy, useless feature! ;)
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2014-05-22, 17:15:37
Reply #4

Tanakov

  • Active Users
  • **
  • Posts: 831
  • Corona is faster than diarrhea
    • View Profile
    • https://www.behance.net/Gringott
Yay now its shining!
Using Corona since 2014-01-02
https://www.behance.net/Gringott

2014-05-22, 17:16:30
Reply #5

johan belmans

  • Primary Certified Instructor
  • Active Users
  • ***
  • Posts: 761
    • View Profile
    • belly.be

2014-05-22, 18:47:39
Reply #6

mikegarcia84

  • Users
  • *
  • Posts: 1
    • View Profile
Holly Shhhhhhhhhhhhhh....adows. Can't wait for this release. Any plans for ambient occlusion and releases for other programs?

2014-05-22, 22:00:59
Reply #7

Avan

  • Active Users
  • **
  • Posts: 120
    • View Profile
You are master , you know ;)

2014-05-22, 22:13:00
Reply #8

Ludvik Koutny

  • VIP
  • Active Users
  • ***
  • Posts: 2557
  • Just another user
    • View Profile
    • My Portfolio
You are master , you know ;)

I think he knows...  he knew already when he was coming up with his nickname ;)

2014-05-22, 22:24:58
Reply #9

nerosama

  • Users
  • *
  • Posts: 2
    • View Profile
Omg finaly thanks alot :D

2014-05-22, 22:53:39
Reply #10

borisquezadaa

  • Active Users
  • **
  • Posts: 614
    • View Profile
Ondra is kicking all kind of asses.
What i do with Corona My Corona post of random stuff rendering
WARNING: English.dll still loading...

2014-05-23, 08:14:34
Reply #11

mentalnils

  • Users
  • *
  • Posts: 4
    • View Profile
    • Personal Site
Def. not a useless feature. Sitting with a client with a architectural project and deciding where the shadows should fall in the viewport is essential. Have been working on a scene where the time of day changed in the different cameras. So every time I switched the camera I had to change compass direction and time of day. (So I had to switch to realistic shading, change the sun to something other than corona and switch on exposure control. Then when rendering remembering to switch everything back.)
So a feature that is very welcome.

:)

2014-05-23, 19:42:06
Reply #12

Sam75

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

2014-05-23, 22:42:48
Reply #13

johan belmans

  • Primary Certified Instructor
  • Active Users
  • ***
  • Posts: 761
    • View Profile
    • belly.be
Hi Ondra

Would illumination from HDRI in Viewport be possible aswell?
Now while I am typing this, I am wondering of this is render engine related or Autodesk related.
The latter I will have to ask Neil for a solution.

regards

johan

2014-05-23, 23:05:44
Reply #14

Ludvik Koutny

  • VIP
  • Active Users
  • ***
  • Posts: 2557
  • Just another user
    • View Profile
    • My Portfolio
Hi Ondra

Would illumination from HDRI in Viewport be possible aswell?
Now while I am typing this, I am wondering of this is render engine related or Autodesk related.
The latter I will have to ask Neil for a solution.

regards

johan

It's possible with MentalRay, but just because you actually need to have physical light object (skylight) in a scene to be able to use HDRI. That's of couse a nonsense. So if Corona supported viewport illumination from HDRI, it would probably mean you would have to create some light first in order to use HDRI. That would be terrible workflow we want to avoid of course :)

2014-05-27, 14:04:23
Reply #15

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12764
  • Marcin
    • View Profile
I have two issues with this so far:
-please enable correct viewport shading for CoronaSun
-please disable shadow casting for portal mtl
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2014-05-30, 11:25:05
Reply #16

Javadevil

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


This is great news, no longer have to switch to MR SUN and back to corona !! lovin ' it !

2014-06-03, 17:53:07
Reply #17

Utroll

  • Active Users
  • **
  • Posts: 164
    • View Profile
It's possible with MentalRay, but just because you actually need to have physical light object (skylight) in a scene to be able to use HDRI. That's of couse a nonsense. So if Corona supported viewport illumination from HDRI, it would probably mean you would have to create some light first in order to use HDRI. That would be terrible workflow we want to avoid of course :)

It would be super nice to automatically analyse/find the "hotspot" of the hdri and transmit/simulate it as a light to nitrous then.
Don't know how flexible is 3dsmax on that aspect but I guess not that much.
A feedback on HDR lightning would be amazing, specially while everybody here says that having a good Hdri you don't need to add a sun :)

2014-06-03, 17:57:39
Reply #18

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
it is actually doable... anybody remember e-light script? :D But in 3Dsmax it would require a number of separate lights.

There are also much better and faster approaches, like pre-convolved enviro maps, that when combined with ambient occlusion could create very fast and high-quality previews (somehow relevant video:
)

You can ask autodesk to implement it, some basic version of preconvolved IBL  should take about 2 days for single developer ;).
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2014-06-04, 13:36:35
Reply #19

Utroll

  • Active Users
  • **
  • Posts: 164
    • View Profile
You can ask autodesk to implement it, some basic version of preconvolved IBL  should take about 2 days for single developer ;).

You're talking in human time.
In autodesk relative time that means 8 years +or-

Then it should be done :)
Not talking about having a realtime feedback of the whole hdr but just the location of the brightest spot... for now there no other solution than aligning/linking a sun to image, or launching small test render and adjust... bis repetita.

2014-06-04, 15:15:41
Reply #20

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8850
  • Let's move this topic, shall we?
    • View Profile
    • My Models
You can ask autodesk to implement it, some basic version of preconvolved IBL  should take about 2 days for single developer ;).

You're talking in human time.
In autodesk relative time that means 8 years +or-

Then it should be done :)
My first thought was, it would take 5 years for autodesk to implement that, but your term maybe more accurate :]
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2014-06-04, 15:37:09
Reply #21

Ludvik Koutny

  • VIP
  • Active Users
  • ***
  • Posts: 2557
  • Just another user
    • View Profile
    • My Portfolio
I don't get what's all the buzz about? 3ds Max can already illuminate using HDRI in viewport for a few versions. You just add your map in environment, add Skylight light object into scene, set it's mode to "use Scene environment" and switch viewport mode to realistic and illuminated by scene lights. Only problem is i am not sure corona ignores Skylight. If not, it should not be hard for Ondra to simply ignore Skylight light object, so it would be used only for viewport preview.

And actually, solution Autodesk has implemented is a lot better than pre-convolved trick, because it creates actual shadows from HDRI map, instead of just some omni ambient occlusion random shadows.

Here's an example straight from the viewport:


2014-06-05, 09:40:55
Reply #22

Utroll

  • Active Users
  • **
  • Posts: 164
    • View Profile
Lucky you then -_-
As far as I know I'm up to date but who knows what's struggling in core's pipe of the beast.
(I've tried to push lighting quality from x1 to x16, etc etc)

But for the sake of performance I would still privilege a simple light, eventually with temperature of the average hotspot... it's really all just about shadows positioning without rendering. I admit that some shameless station like yours makes it quite gadget though :)

How are you loading your hdr in env ? I mean which node are you using ?
« Last Edit: 2014-06-05, 09:47:02 by Utroll »

2014-06-05, 10:50:53
Reply #23

Ludvik Koutny

  • VIP
  • Active Users
  • ***
  • Posts: 2557
  • Just another user
    • View Profile
    • My Portfolio

2014-06-05, 20:04:19
Reply #24

Utroll

  • Active Users
  • **
  • Posts: 164
    • View Profile
Simple bitmap, set to spherical environment.
ok thanks for headup but nothing helps in my case... nor spherical nor jpg or hdri, bitmap or VrHdr, any exposure etc... nevermind.

2014-06-05, 20:30:22
Reply #25

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8850
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Try to uncheck skylights as ambient color - it worked like magic for me :]
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2014-06-05, 20:56:13
Reply #26

Ludvik Koutny

  • VIP
  • Active Users
  • ***
  • Posts: 2557
  • Just another user
    • View Profile
    • My Portfolio
Yeah, works for me...  just make sure light mode is set to use scene lights, that use map checkbox in enviro window is enabled and there there is no exposure control.

If you still can't get it working, i will upload some example scene.

2014-06-06, 12:21:12
Reply #27

Utroll

  • Active Users
  • **
  • Posts: 164
    • View Profile
Ahaha... after 1 more hour getting mad at it I just understood...
The most silly things ever. Really. Usually I try to avoid those very embarrassing situation. So I rebuild the HDRI to be sure it was an effective one, triple checked all gamma, drivers, clicked everywhere (that's the step before hammer repairing) etc...

I simply don't have daily but A6 :)
Reading the topic from start helped.

Thanks and sorry for your time.
« Last Edit: 2014-06-06, 12:26:02 by Utroll »

2014-06-10, 23:36:30
Reply #28

mike_kennedy

  • Active Users
  • **
  • Posts: 98
    • View Profile
For the HDRI preview in view I use the skylight now, seems to be good enough to locate the rotation and it is seamless with Corona because Corona seems to ignore it at render time :)

2014-07-02, 13:59:51
Reply #29

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12764
  • Marcin
    • View Profile
Hey, it still looks like there are incorrect shadows from Corona sun. At least for me and one user from the facebook group.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2014-07-11, 15:39:12
Reply #30

Dollmaker

  • Active Users
  • **
  • Posts: 164
    • View Profile
Using this (Realistic) almost hangs my scene which have many lights.. Impossible to navigate in viewport..  though I have 32 GB ram with 4 GB card.. Max 2013..