Author Topic: Slow viewport when CoronaSun set to "From Sky"  (Read 6230 times)

2013-03-20, 12:41:20

ringas

  • Active Users
  • **
  • Posts: 10
    • View Profile
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?

2013-03-20, 12:53:55
Reply #1

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
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.
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2013-03-20, 13:07:48
Reply #2

ringas

  • Active Users
  • **
  • Posts: 10
    • View Profile
Thanks for the reply,

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

Tassos Ringas

2013-03-20, 13:22:59
Reply #3

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
It's because A3 used much faster, lower quality method that did not take 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
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2013-03-20, 22:18:27
Reply #4

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 13702
  • Marcin
    • View Profile
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.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2013-03-20, 23:15:04
Reply #5

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
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...)
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2013-03-20, 23:15:48
Reply #6

Ludvik Koutny

  • VIP
  • Active Users
  • ***
  • Posts: 2557
  • Just another user
    • View Profile
    • My Portfolio
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.

2013-03-20, 23:21:24
Reply #7

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 13702
  • Marcin
    • View Profile
It happens every time I place CoronaSun in any scene. I'm running Nitrous, but not in realistic mode, just shaded.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2013-03-21, 00:27:57
Reply #8

ringas

  • Active Users
  • **
  • Posts: 10
    • View Profile
I am also using Nitrous, but in Realistic Mode with Scene Lighting and everything's black.

2013-03-21, 11:50:37
Reply #9

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 13702
  • Marcin
    • View Profile
I am also using Nitrous, but in Realistic Mode with Scene Lighting and everything's black.

It's perfectly normal.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2013-03-27, 16:59:02
Reply #10

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
I was unable to reproduce, but I am pretty confident I know why it happened and I fixed it.
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)