[Sidefx-houdini-list] PC cache from Mantra into SOP space?

jiversen jiversen at rhythm.com
Mon Aug 18 14:20:46 EDT 2008

Hey Peter,

I've found that if you write your point cloud in world space, it behaves 
as expected when I import it into SOPs.

Pout = ptransform("space:camera","space:world", P);
Nout = ntransform("space:camera","space:world", nN);  
rval = pcwrite(fname, "interpolate", 1,
                           "P", Pout,
                           "N:vector", Nout,
                            attrname, attrval     );

Mario Marengo wrote:
> On Saturday 16 August 2008 11:33:36 pm Peter Bowmar wrote:
>> Hi,
>> So, trying to load in a PC file written from a pcwrite() in mantra, into
>> SOPs.
>> It all works except it's in the wrong space :(
> Hey Peter,
> Hard to tell what might be going on without knowing the transformations used 
> when writing out the cloud...
> I just did a quick test writing with both camera->world and camera->object and 
> reading back into both an unparented object and one parented to the camera 
> respectively, and it all seems to line up.
> Why do you need the optransform() again? (remember that a camera->object 
> transform at the pcwrite() call should give you this implicitly -- basically 
> saying "put it where it came from"... unless I'm misinterpreting what you 
> wrote).

jason iversen
  fx supervisor

  is this awesome? (y/n)

More information about the Sidefx-houdini-list mailing list