Author Topic: Removing Env Map while IR is on = crash  (Read 4015 times)

2016-06-06, 15:49:09

alexyork

  • Active Users
  • **
  • Posts: 745
  • Partner at Recent Spaces
    • View Profile
    • RECENT SPACES
Not entirely unexpected behaviour I guess, but easily done...

Simply run IR and then remove the environment map from E&E window = crash.

Cheers,
Alex York
Partner
RECENT SPACES
recentspaces.com

2016-06-06, 17:33:46
Reply #1

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 13747
  • Marcin
    • View Profile
Definitely shouldn't happen.
Definitely not happening for me.

...maybe that env map was VrayHDRI? :>
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2016-06-06, 17:38:04
Reply #2

alexyork

  • Active Users
  • **
  • Posts: 745
  • Partner at Recent Spaces
    • View Profile
    • RECENT SPACES
Definitely shouldn't happen.
Definitely not happening for me.

...maybe that env map was VrayHDRI? :>

Nope :) As per strict instructions we're using CoronaBitmap for HDR stuff (although it's painful... - rotations don't seem to work at all...). We're not having a lot of success working with it to be honest. Hope a dedicated CoronaHDRILoader is released... :)
Alex York
Partner
RECENT SPACES
recentspaces.com

2016-06-06, 18:05:09
Reply #3

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
CoronaBitmap IS the HDR loader, there wont be another dedicated shader. But we are open to tweaking its UI. Although I have a feeling people just cannot accept that HDRIs are bitmaps too ;).

as for the crash, if you can reproduce it, could you post a minidump?
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2016-06-07, 10:22:42
Reply #4

alexyork

  • Active Users
  • **
  • Posts: 745
  • Partner at Recent Spaces
    • View Profile
    • RECENT SPACES
CoronaBitmap IS the HDR loader, there wont be another dedicated shader. But we are open to tweaking its UI. Although I have a feeling people just cannot accept that HDRIs are bitmaps too ;).

as for the crash, if you can reproduce it, could you post a minidump?

That's cool, it's really the rotation control and gamma controls that should be exposed in the shader that would do the trick. I was not able to get any kind of rotation to work at all yesterday while trying this. I will test again today and see if I can reproduce either/both issues.
Alex York
Partner
RECENT SPACES
recentspaces.com

2016-06-08, 15:58:47
Reply #5

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 13747
  • Marcin
    • View Profile
Here are some examples:

Rotation:



Intensity:



Gamma method 1 - in the loader - note: >1 will make the image "darker".



Gamma method 2 - in color correction node - note: >1 will make the image "brighter".


I can understand that gamma can be sometimes used and it would be handy to have this setting directly in the CBitmap ui.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2016-06-08, 18:13:06
Reply #6

alexyork

  • Active Users
  • **
  • Posts: 745
  • Partner at Recent Spaces
    • View Profile
    • RECENT SPACES
Hey Maru thanks for these.

I've not had time to test this over the last couple of days. Crazy busy.

The gamma thing - yes - it's really, really useful. It's a great way to get more contrast and "vibrancy" out of the HDR for a shot. We use it literally every time, even if we're just shifting it around to 0.75 or 0.85 or so.

Will get back to you here once I've had a moment to bug test this rotation issue.

Cheers,
Alex York
Partner
RECENT SPACES
recentspaces.com

2016-06-08, 18:26:53
Reply #7

alexyork

  • Active Users
  • **
  • Posts: 745
  • Partner at Recent Spaces
    • View Profile
    • RECENT SPACES
Ok so it seems that basically the U Offset goes from infinitely small value to infinitely large value in the spinner/box but in reality 0-degrees to 360-degrees is mapped to 0-1, which explains why I wasn't getting any feedback in the render... I was using values like 45 and 90 and 270 etc. whereas we need to use a value of 0.25 for 90 degrees, 0.5 for 180 degrees and so on, which is not user-friendly :)

So the first thing I would do would be to have a dedicated section in the CoronaBitmap called something like SphMapRotation mapped from 0-360. This would make it 100% clear how it works.

I would then have a simple Gamma control and you're done. I don't think there's anything else that would be needed that isn't already exposed in the shader.

By the way, maybe it's just me but HDR/EXR seems really really slow to load into the CoronaBitmap and in the material slot, and then to update in the IR viewport. The first time you start the IR, the HDR loads almost instantly and renders fine. But then if you change the offset, it seems to take a long while to recalc before it renders again.

Just my feedback.

EDIT: I can't seem to reproduce my own crash by removing the HDR from env slot. I guess it might have been an isolated thing.
Alex York
Partner
RECENT SPACES
recentspaces.com

2016-07-13, 11:16:51
Reply #8

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
ok, moving to resolved as it cannot be reproduced, next time it happens please send us the minidump ;)
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)