I have a problem with gamma for envirionment map

Rhino 3D (Export script developed by SamPage; Integrated Plugin developed by Paul Kinnane)

Moderator: face_off

Post Reply
neiwei845458454
Licensed Customer
Posts: 86
Joined: Fri Jan 23, 2015 3:32 am

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
User avatar
face_off
Octane Plugin Developer
Posts: 15697
Joined: Fri May 25, 2012 10:52 am
Location: Adelaide, Australia

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
Win7/Win10/Mavericks/Mint 17 - GTX550Ti/GT640M
Octane Plugin Support : Poser, ArchiCAD, Revit, Inventor, AutoCAD, Rhino, Modo, Nuke
Pls read before submitting a support question
User avatar
formatio
Licensed Customer
Posts: 131
Joined: Sun May 18, 2014 11:00 am
Location: EU
Contact:

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
neiwei845458454
Licensed Customer
Posts: 86
Joined: Fri Jan 23, 2015 3:32 am

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
User avatar
face_off
Octane Plugin Developer
Posts: 15697
Joined: Fri May 25, 2012 10:52 am
Location: Adelaide, Australia

Hi Alxen - I will see it that can be implemented in the next release.

Paul
Win7/Win10/Mavericks/Mint 17 - GTX550Ti/GT640M
Octane Plugin Support : Poser, ArchiCAD, Revit, Inventor, AutoCAD, Rhino, Modo, Nuke
Pls read before submitting a support question
neiwei845458454
Licensed Customer
Posts: 86
Joined: Fri Jan 23, 2015 3:32 am

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
Post Reply

Return to “Rhinoceros 3D”