Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Softimage® / ICE - Interactive Creative Environment / Offset by vector from different ICE tree
  RSS 2.0 ATOM  

Offset by vector from different ICE tree
Rate this thread
 
28727
 
Permlink of this thread  
avatar
  • PetrZ
  • Posted: 01 December 2008 01:24 AM
  • Total Posts: 29
  • Joined: 19 February 2008 04:01 AM

Hi I stuck at this problem (I try simplified it to the basic scenerio)

I have pointcloud and Ice tree on them, in that tree I add one point on some location, so I get position vector (vector from origin to this position I supposed) = v1

Then on another pointcloud (mesh) I have second ICE tree and I want to move all points by the distance and direction of vector v1. So I get pointPosition of mesh, add node and then set pointPosition back. In add node I add pointPosition from first Ice tree, but I have to use switch context and then I didn’t got expected result. All pointPosition from the mesh are zero.

Is this possible at all?



Replies: 0
avatar
  • grahamef
  • Posted: 01 December 2008 05:00 AM

The problem is that you are trying to add each member of one set of values to the corresponding member in another set, but the two sets have different sizes.

What you can do instead is use one of the Math\Statistics nodes e.g. Get Set Max. This will change the context of the first cloud’s point position values from a set containing one vector (per point context) to simply one vector (singleton context). Then you can add it to the other cloud’s point positions with no problem.



Replies: 0