Page 1 of 1

I have a problem with gamma for envirionment map

Posted: Fri Apr 08, 2016 2:42 am
by neiwei845458454
Hi paul,

when I load one envirionment map for lighting, the gamma for envirionment map is 2.2,but it Show incorrect. I should set the gamma for envirionment map to 1. and I need to do it every time. Can you fix this problem? or could to do with Octane rhinoscript.

Thanks.
Alxen

Re: I have a problem with gamma for envirionment map

Posted: Fri Apr 08, 2016 4:38 am
by face_off
Hi Alxen. You are right - the default gamma for any Image node is 2.2, which is what the Environment Texture is using, even for a HDR which needs a gamma of 1. It is probably not viable to default the gamma to 1, since there might be plenty of valid cases where the environment is using a LDR which needs a gamma of 2.2. The OctaneChangePinValue will only set the pin directly attached to the Image, Environment, etc nodes - so can't be used in this case (but I can enhance the OctaneChangePinValue command if needed).

The easiest solution would be to "Save as Default" with the Environment Texture Gamma set to 1. Then all new scene will inherit that environment setup. Alternatively, you can set the gamma to 1 on a blank Image in the Environment, "Export Rendertarget Settings", then create a button which uses the OctaneImportRendertarget command (be aware that doing this will load the entire rendertarget in - so will clear all settings).

Paul

Re: I have a problem with gamma for envirionment map

Posted: Fri Apr 08, 2016 11:16 am
by formatio
Hi,

I use gamma to change lighting scheme of the hdr rather than set it to be exactly correct which I think is impossible to set.

Don't constraint yourself to numbers, set it so your image looks good and you'll be fine :)

Regards,
Mac

Re: I have a problem with gamma for envirionment map

Posted: Sat Apr 09, 2016 3:14 am
by neiwei845458454
face_off wrote:Hi Alxen. You are right - the default gamma for any Image node is 2.2, which is what the Environment Texture is using, even for a HDR which needs a gamma of 1. It is probably not viable to default the gamma to 1, since there might be plenty of valid cases where the environment is using a LDR which needs a gamma of 2.2. The OctaneChangePinValue will only set the pin directly attached to the Image, Environment, etc nodes - so can't be used in this case (but I can enhance the OctaneChangePinValue command if needed).

The easiest solution would be to "Save as Default" with the Environment Texture Gamma set to 1. Then all new scene will inherit that environment setup. Alternatively, you can set the gamma to 1 on a blank Image in the Environment, "Export Rendertarget Settings", then create a button which uses the OctaneImportRendertarget command (be aware that doing this will load the entire rendertarget in - so will clear all settings).

Paul

Hi Paul,

Yes,I need this OctaneScript command. If you have sometime, I wish you to enhance the OctaneChangePinValue command for this function.
And the OctaneChangePinValue [pin name] [pin value] command have all value for Modify internal parameters will very power. Now some internal parameters cant support. Can you make it? :D
like this:
4.png
I need to set it every time. I hope one script command for solve this.
sorry for my english.

Thanks for your help.

Alxen

Re: I have a problem with gamma for envirionment map

Posted: Mon Apr 11, 2016 1:22 pm
by face_off
Hi Alxen - I will see it that can be implemented in the next release.

Paul

Re: I have a problem with gamma for envirionment map

Posted: Tue Apr 12, 2016 2:45 am
by neiwei845458454
face_off wrote:Hi Alxen - I will see it that can be implemented in the next release.

Paul
Wow,Thank you very much! I wish it comming.
Looking forward to you!

Alxen