Hi guys,
I'm still learning about ICE and to that end i'm trying a little effect that would be usefull in later (and bigger) projects of mine.
I made a row of lights (VRay lights in this instance but that shouldn't matter AFAIK) a null that passes by them - now i want the lights to get brighter when the null gets closer end dimmer when the null goes farther. Now i made an extremely simple setup for a single light that works:
The distance gets rescaled to a range of brightness.
But it gets troublesome when i want to add more lights. 2 big problems. First is that i don't know how to easily get multiple properties into the ICE tree, sort of like the way you can do a multi selection and control them in a single ppg. Because adding all the lights one by one is a hassle with 15 lights but would be impossible with say a 100.
Unfortunately that wasn't the only problem - when i added the other 14 lights the values got all screwed up in a very odd way. If i had a ppg open on one of the lights the values would be changed correctly when moving the null but the "unsupervised" lights keep giving me strange values or just sort of "freeze" at a certain value.
Now i'm planning to do another try with instanced lights or even mesh emmiters but i was very curious as to you guys' oppinion on the best way to tackle this effect, as a very experienced Softimage master said it to me recently: "sometimes it gets confusing with ICE as there are a many ways to solve the same problem" ;)
Light intensity by proximty - ICE noobness ;)- *SOLVED*
-
Kerro Perro
- Posts: 306
- Joined: 20 Mar 2011, 00:01
- Location: Leiden, the Netherlands
Light intensity by proximty - ICE noobness ;)- *SOLVED*
You do not have the required permissions to view the files attached to this post.
Last edited by Kerro Perro on 07 Dec 2011, 16:42, edited 1 time in total.
-
xsisupport
- Posts: 713
- Joined: 09 Jun 2009, 09:02
- Location: Montreal Canada
Re: Light intensity by proximty - ICE noobness ;)
I would create a compound and use ApplyICEOp (in a script) to apply that compound to the lights, rather than doing it all on the sphere (that's where I assume you have your ICE tree).
-
Kerro Perro
- Posts: 306
- Joined: 20 Mar 2011, 00:01
- Location: Leiden, the Netherlands
Re: Light intensity by proximty - ICE noobness ;)
Yup that totally works
That really confirms "when stuck ask for advice" - i was about to do a very complicated tree with vray light mesh instanced on a point could etc.
I had the ICE tree on a null wich the lights hung off and got in my head from doing some ICE rigging a while back that it's good practice to keep all the ICE operations on a single tree on a null - wich at the time it was but not in this case.
I used your addon from the thread "apply ICEOp on multiple objects" to apply the ICEOp on all the lights, nice one!
I had the ICE tree on a null wich the lights hung off and got in my head from doing some ICE rigging a while back that it's good practice to keep all the ICE operations on a single tree on a null - wich at the time it was but not in this case.
I used your addon from the thread "apply ICEOp on multiple objects" to apply the ICEOp on all the lights, nice one!
-
Chris_TC
- Posts: 411
- Joined: 22 Mar 2010, 16:43
Re: Light intensity by proximty - ICE noobness ;)
While we're at it, is there a technical reason why we can't set data on a group? Or better yet, use string operations to intelligently set data on objects called sth. like "object1" to "object50"?
-
xsisupport
- Posts: 713
- Joined: 09 Jun 2009, 09:02
- Location: Montreal Canada
Re: Light intensity by proximty - ICE noobness ;)
Scene references are part of a pre-evaluation stage in ICE. The references are resolved once only, and then the tree is evaluated (over and over as required).Chris_TC wrote:While we're at it, is there a technical reason why we can't set data on a group? Or better yet, use string operations to intelligently set data on objects called sth. like "object1" to "object50"?
http://xsisupport.wordpress.com/2010/08/06/ice-looping-over-group-members-and-setting-data/