Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] Bug Reporting => [Max] Resolved Bugs => Topic started by: ringas on 2013-03-20, 12:41:20

Title: Slow viewport when CoronaSun set to "From Sky"
Post by: ringas on 2013-03-20, 12:41:20
Hello everyone,

This is my first post here, so I would like to first say "WOW!!!!!!!". This is one damn fine renderer!!!

I started using it yesterday and I came upon a very annoying bug:

When the daylight system is set to CoronaSun (or with a plain CoronaSun) is set to "From Sky" the viewports are practically non-usable, they crawl to a halt. Using "Direct Input" or "Kelvin Temp" makes this go away.

I am using Corona Alpha v4, in Max 2012 64bit, Win7 64bit with 16GB RAM, Nvidia 670.

I hope this makes sense,

Tassos Ringas

PS. BTW, why can't I access daily builds?
Title: Re: Slow viewport when CoronaSun set to "From Sky"
Post by: Ondra on 2013-03-20, 12:53:55
Hi,
I'll take look at it, it looks like 3dsmax is behaving differently in this version and not caching the color of the sun (which is costly to compute, because Corona uses a high-quality model for predictive rendering).

The daily builds are for seasoned, active betatesters only. I release every build I make there, working or not, there is no quality control, often it screws up scenes (won't load old scenes, saved scenes won't load in older builds), or some elementary features are broken, so I think it is best if I keep it only between a tight bunch of testers.

And right now, there are no differences between daily builds and Alpha4.
Title: Re: Slow viewport when CoronaSun set to "From Sky"
Post by: ringas on 2013-03-20, 13:07:48
Thanks for the reply,

It seems it is a bug with alpha 4, it was fine with alpha 3

Tassos Ringas
Title: Re: Slow viewport when CoronaSun set to "From Sky"
Post by: Ondra on 2013-03-20, 13:22:59
It's because A3 used much faster, lower quality method that did not take limb darkening (http://en.wikipedia.org/wiki/Limb_darkening (http://en.wikipedia.org/wiki/Limb_darkening)), and effect of solar disk size into account

I'll just make 3dsmax to cache the value again, and then it will be OK
Title: Re: Slow viewport when CoronaSun set to "From Sky"
Post by: maru on 2013-03-20, 22:18:27
But Ringas said it makes viewport slow, not rendering. It happens for me too, but not with the whole viewport, just the CoronaSun object. When it's set to "from sky" it gets very laggy when moving/changing it's parameters.
Title: Re: Slow viewport when CoronaSun set to "From Sky"
Post by: Ondra on 2013-03-20, 23:15:04
yes, the same procedure gets called for the color in viewport and in rendering (but in viewport it display black, because the new nitrous API is not documented...)
Title: Re: Slow viewport when CoronaSun set to "From Sky"
Post by: Ludvik Koutny on 2013-03-20, 23:15:48
Thats quite odd behavior. Any chance you could upload very simple scene exercising the behavior? Also, do you use D3D or Nitrous viewport driver? I know about slow CoronaSun bug, but i have never noticed it with daylight system, nor have i noticed switching sun mode would have any impact on it.
Title: Re: Slow viewport when CoronaSun set to "From Sky"
Post by: maru on 2013-03-20, 23:21:24
It happens every time I place CoronaSun in any scene. I'm running Nitrous, but not in realistic mode, just shaded.
Title: Re: Slow viewport when CoronaSun set to "From Sky"
Post by: ringas on 2013-03-21, 00:27:57
I am also using Nitrous, but in Realistic Mode with Scene Lighting and everything's black.
Title: Re: Slow viewport when CoronaSun set to "From Sky"
Post by: maru on 2013-03-21, 11:50:37
I am also using Nitrous, but in Realistic Mode with Scene Lighting and everything's black.

It's perfectly normal.
Title: Re: Slow viewport when CoronaSun set to "From Sky"
Post by: Ondra on 2013-03-27, 16:59:02
I was unable to reproduce, but I am pretty confident I know why it happened and I fixed it.