Author Topic: My scene takes too long to render  (Read 6616 times)

2017-10-07, 00:33:28

PacoChan

  • Active Users
  • **
  • Posts: 5
    • View Profile
Hello everyone!

First post here but I've been using Corona for a while. I love its results.

I'm working on a retro point & click adventure game with pre-rendered backgrounds. All of them have been rendered with Corona and I'm very happy with their results. But I'm working on a scene now that will also require a small animation, but it takes too long to clear the noise.

It's still not finished but this is the basic setting: long big metal corridor with volumetric fog and a lot of lights that generate god rays through the fans. This render is the result after two hours. After 3/4 hours it's not much better. Other environments I can render them just fine in just half an hour (they don't have volumetric fog). I've tried with less lights, even with the fog disabled, but it still takes quite a while. Oh BTW, that render is without secondary solver and the volumetric fog is with single bounce enabled.

The thing is, is there some trick, or some setting that can help optimize this kind of setup? If I can, I'd like to preserve the fog and scale of the scene.

Thanks in advance!
« Last Edit: 2017-10-07, 00:38:42 by PacoChan »

2017-10-08, 16:35:52
Reply #1

PacoChan

  • Active Users
  • **
  • Posts: 5
    • View Profile
After a lot of time investigating, I managed to solve my issue. I can make renders with acceptable quality in 1 hour. The problem was that I was using meshes with CoronaLightMtl as lights. Changing to disc lights and replicating their parameters, noise gets cleared a lot faster.

What I don't understand is, aren't they supposed to be the same? The documentation says that using a CoronaMtl with emissive is slow and shouldn't be used as a main light, but a CoronaLightMtl should be exactly the same as a Corona Light. So why was CoronaLightMtl giving me those poor results? I'm using Corona 1.6.3 btw.

2017-10-08, 16:52:46
Reply #2

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
yes, they should. if you provide scene, we can investigate it
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2017-10-10, 04:28:50
Reply #3

PacoChan

  • Active Users
  • **
  • Posts: 5
    • View Profile
Sorry for the delay. I have uploaded a simplified version of the project, it is named: 1507602315_Lights-Test.zip

These are the results after 1min render, one with lights and one with CoronaLightMtl. It is clearly better the top image. The scene is ready to test both cases.

2017-10-11, 09:20:13
Reply #4

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 13747
  • Marcin
    • View Profile
Could it be because the geometry us more detailed than the lights?
Other than that, the scene could be probably optimized to cut render times. Materials are interesting - maybe they are too reflective? Also using rayswitch material could probably help, as the GI could be simplified.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2017-10-13, 22:51:24
Reply #5

PacoChan

  • Active Users
  • **
  • Posts: 5
    • View Profile
The geometry of the light is very similar.

However I discovered a trick that made my scene to render A LOT faster. For some reason, the grid on the walkway was the biggest performance issue. I don't know why. Even though it's completely 3D, it doesn't have so many polygons. I discovered it because I noticed that it was a lot slower from a specific camera angle where the grid filled more of the screen. Just hiding it made render more than twice faster. I tried to fill the area with a sphere of even more polygons and it was as fast. So it isn't related to number of polygons. So, I don't know what happened there. But since the grid wasn't going to be seen from too close, I replaced it with a plane with opacity and normal map recreating the old grid and it works great.

It would be nice to know the reason to learn for future projects, or in order to fix it in case it's some kind of bug, but on my part I'm able to keep with working on my scene.

Thanks for the support!

2017-10-13, 23:19:20
Reply #6

PROH

  • Active Users
  • **
  • Posts: 1219
    • View Profile
Hi. Have you checked if there are coplanar faces in the grid model? This does slow down render times (in all renderer).

2017-10-14, 03:19:52
Reply #7

PacoChan

  • Active Users
  • **
  • Posts: 5
    • View Profile
Hi. Have you checked if there are coplanar faces in the grid model? This does slow down render times (in all renderer).

Hi!

There aren't coplanar faces. There's a lot of intersecting geometry, sure, but not coplanar.