question

Jonas Thomsen avatar image
Jonas Thomsen asked ·

Skydome updates background - but not lighting

Hello.

Settings up a lookdev environment with a custom UI - Im using a couple of different HDRI's.


The HDRI's is loaded as an image seqeunce via the aiimage node - and then plugged into the skydome.

Im using a multiply divide node to swich between the frames instead of using the timeline.

When i swap the HDRI with the IPR running the HDRI change in the background - however the lighting doesnt update untill i do a full scene update in the arnold renderview.

Is there a way around this ?

skydome
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Jonas Thomsen avatar image
Jonas Thomsen answered ·

I used the multiplydivide just to get a float value i could easily change via mel (My ui button uses a simple mel script to change the value). I plugged the translatex from multiplydivide into the frame on the aiimage.

Im just not sure how to drive a value through an expression

1 comment
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Here i tried making a interger atribute on a null and putting it through an expression and then into the aiimage node - It works the same as before - background updates - lighting doesnt.

0 Likes 0 ·
expression.png (61.2 KiB)
Stephen Blair avatar image
Stephen Blair answered ·

I don't know what you do with the multiply divide, so I don't know what to do with an expression. But probably the ui could set a value in the scene, and that value would be used in the expression.

Images are loaded only if used in the render.

10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Jonas Thomsen avatar image
Jonas Thomsen answered ·

and how would i set it up with an expression ? I have my own custom UI atm that loaded the HDRI via mel (setAttr - on my multiplydivide)

Is there a way for me to setup multiple skydomes and change them - without loading up the scene with 2 aiswitch and 35 big images.

Its for a little skydome script that runs a UI with a preset of 35 HDRI's to swap between - so i really only want the one selected hdri in the scene - and not all 35.

It was originally made for redshift where it works just fine with the 1 file node - so i was hoping for something similar

10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Stephen Blair avatar image
Stephen Blair answered ·

An expression would update IPR

For an aiSwitch, you would have an aiImage for each

10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Jonas Thomsen avatar image
Jonas Thomsen answered ·

Ahh that sucks.. Was able to do it that way in redshift - I have around 35 4k hdri images.

Was hoping I didn't have to load all of them into the scene at the beginning - but only load the needed one when clicked on in my ui - which was linked the to multipltdivide.

With the switch I need an aiimage for each right?

10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Stephen Blair avatar image
Stephen Blair answered ·

You can't use a shader to drive the frame of an aiImage. Typically you would use the <attr> token, but I don't know that that works with a skydome.

How many images in the sequence? 10? 100? 1000?

An aiSwitch plugged into the skydome color will update IPR

10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Stephen Blair avatar image
Stephen Blair answered ·

No, the image.filename is resolved at translation time. There won't be any "multiplyDivide" node (or the Arnold equivalent) in the exported scene.

10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Welcome to the Arnold Answers community.

This is the place for Arnold renderer users everywhere to ask and answer rendering questions, and share knowledge about using Arnold, Arnold plugins, workflows and developing tools with Arnold.

If you are a new user to Arnold Answers, please first check out our FAQ and User Guide for more information.

When posting questions, please be sure to select the appropriate Space for your Arnold plugin and include the plugin version you are using.

Please include images, scene and log files whenever possible as this helps the community answer your questions.

Instructions for generating full verbosity log files are available for MtoA, MaxtoA, C4DtoA, HtoA, KtoA, and Kick.

If you are looking for Arnold Documentation and Support please visit the Arnold Support site.

To try Arnold please visit the Arnold Trial page.

Bottom No panel present for this section.