Chaos Corona Forum

Official Stuff => News => Topic started by: Ondra on 2014-05-22, 15:53:27

Title: Illumination from Corona lights in viewport
Post by: Ondra on 2014-05-22, 15:53:27
Finally, Corona lights and sun cast proper illumination in the viewport, including shadows!
(http://i.imgur.com/GIOHWnZ.png)
Title: Re: Illumination from Corona lights in viewport
Post by: nehale on 2014-05-22, 15:57:15
whoo hooo finally
Title: Re: Illumination from Corona lights in viewport
Post by: hydeman on 2014-05-22, 16:27:43
Great ! Do we need to install a new thing for testing this , or it will be available in the next version ?
Title: Re: Illumination from Corona lights in viewport
Post by: maru on 2014-05-22, 17:00:11
What a sexy, useless feature! ;)
Title: Re: Illumination from Corona lights in viewport
Post by: Tanakov on 2014-05-22, 17:15:37
Yay now its shining!
Title: Re: Illumination from Corona lights in viewport
Post by: johan belmans on 2014-05-22, 17:16:30
Excelent!!
Title: Re: Illumination from Corona lights in viewport
Post by: mikegarcia84 on 2014-05-22, 18:47:39
Holly Shhhhhhhhhhhhhh....adows. Can't wait for this release. Any plans for ambient occlusion and releases for other programs?
Title: Re: Illumination from Corona lights in viewport
Post by: Avan on 2014-05-22, 22:00:59
You are master , you know ;)
Title: Re: Illumination from Corona lights in viewport
Post by: Ludvik Koutny on 2014-05-22, 22:13:00
You are master , you know ;)

I think he knows...  he knew already when he was coming up with his nickname ;)
Title: Re: Illumination from Corona lights in viewport
Post by: nerosama on 2014-05-22, 22:24:58
Omg finaly thanks alot :D
Title: Re: Illumination from Corona lights in viewport
Post by: borisquezadaa on 2014-05-22, 22:53:39
Ondra is kicking all kind of asses.
Title: Re: Illumination from Corona lights in viewport
Post by: mentalnils on 2014-05-23, 08:14:34
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.

:)
Title: Re: Illumination from Corona lights in viewport
Post by: Sam75 on 2014-05-23, 19:42:06
Nice.
Title: Re: Illumination from Corona lights in viewport
Post by: johan belmans on 2014-05-23, 22:42:48
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
Title: Re: Illumination from Corona lights in viewport
Post by: Ludvik Koutny on 2014-05-23, 23:05:44
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 :)
Title: Re: Illumination from Corona lights in viewport
Post by: maru on 2014-05-27, 14:04:23
I have two issues with this so far:
-please enable correct viewport shading for CoronaSun
-please disable shadow casting for portal mtl
Title: Re: Illumination from Corona lights in viewport
Post by: Javadevil on 2014-05-30, 11:25:05


This is great news, no longer have to switch to MR SUN and back to corona !! lovin ' it !
Title: Re: Illumination from Corona lights in viewport
Post by: Utroll on 2014-06-03, 17:53:07
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 :)
Title: Re: Illumination from Corona lights in viewport
Post by: Ondra on 2014-06-03, 17:57:39
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 ;).
Title: Re: Illumination from Corona lights in viewport
Post by: Utroll on 2014-06-04, 13:36:35
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.
Title: Re: Illumination from Corona lights in viewport
Post by: romullus on 2014-06-04, 15:15:41
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 :]
Title: Re: Illumination from Corona lights in viewport
Post by: Ludvik Koutny on 2014-06-04, 15:37:09
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:

(https://forum.corona-renderer.com/index.php?action=dlattach;topic=3850.0;attach=15791)
Title: Re: Illumination from Corona lights in viewport
Post by: Utroll on 2014-06-05, 09:40:55
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 ?
Title: Re: Illumination from Corona lights in viewport
Post by: Ludvik Koutny on 2014-06-05, 10:50:53
Simple bitmap, set to spherical environment.
Title: Re: Illumination from Corona lights in viewport
Post by: Utroll on 2014-06-05, 20:04:19
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.
Title: Re: Illumination from Corona lights in viewport
Post by: romullus on 2014-06-05, 20:30:22
Try to uncheck skylights as ambient color - it worked like magic for me :]
Title: Re: Illumination from Corona lights in viewport
Post by: Ludvik Koutny on 2014-06-05, 20:56:13
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.
Title: Re: Illumination from Corona lights in viewport
Post by: Utroll on 2014-06-06, 12:21:12
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.
Title: Re: Illumination from Corona lights in viewport
Post by: mike_kennedy on 2014-06-10, 23:36:30
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 :)
Title: Re: Illumination from Corona lights in viewport
Post by: maru on 2014-07-02, 13:59:51
Hey, it still looks like there are incorrect shadows from Corona sun. At least for me and one user from the facebook group.
Title: Re: Illumination from Corona lights in viewport
Post by: Dollmaker on 2014-07-11, 15:39:12
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..