getting points from a cube?

Discussions about SOFTIMAGEs© Interactive Creative Environment©
wannabeArtist
Posts: 98
Joined: 10 Jun 2009, 06:34
Location: Finland

getting points from a cube?

Post by wannabeArtist » 15 Sep 2009, 06:01

Hi!

I'm new to ICE and this might be simple - however, I haven't found the answer yet.

What I want to do is to take 2 points from a cube and use them as mental ray's physical sun's bbox values. The problem is getting the points - I've tried pointposition with quite a bit of variations - but I guess it allways gives me all the 8 points? I also tried to make an array out of them, but I didn't get any vectors out that would work.

Here's my latest shot at this - what do I need to add to get the points from the upper part so I can use them in the lower part?

Image

User avatar
Hirazi Blue
Administrator
Posts: 5113
Joined: 04 Jun 2009, 10:15

Re: getting points from a cube?

Post by Hirazi Blue » 15 Sep 2009, 07:40

Under Deformation/Getters resides a Compound called "Get Bounding Box", which you can use to get the values to feed into your "Set Data" node... ;)
Stay safe, sane & healthy!

wannabeArtist
Posts: 98
Joined: 10 Jun 2009, 06:34
Location: Finland

Re: getting points from a cube?

Post by wannabeArtist » 15 Sep 2009, 10:36

Ah,

I tried to use the "get bounding box"-node on my own before - but I got confused, because it had no input. Is then just a matter of selecting the cube first and then as you add the node, the cube gets "magically" defined as the input for this node?

As you can guess, I'm very new to ICE :)

User avatar
Hirazi Blue
Administrator
Posts: 5113
Joined: 04 Jun 2009, 10:15

Re: getting points from a cube?

Post by Hirazi Blue » 15 Sep 2009, 11:05

Inside the "Bounding Box"-Compound there's a Compound "Get Particle Position" (but don't let the name "Particle" fool you), which in turn has a "Get Self.PointPosition" inside it. This "Get Self.PointPosition" gets the Point Positions of the Object/Cloud where the ICE Tree resides... ;)
Stay safe, sane & healthy!

wannabeArtist
Posts: 98
Joined: 10 Jun 2009, 06:34
Location: Finland

Re: getting points from a cube?

Post by wannabeArtist » 15 Sep 2009, 11:19

Thanks a lot for clearing that out!

It was the exactly the word particle that fooled me on my first try :D