Hi,
I'd like to add a couple more attributes to the particle system I
am writing out.
Using the API calls, I can write out the positions, IDs and
velocities without any problems, without problems in the sense that when
I import them into Houdini, the attributes behaves as expected.
However, when I attempt to add additional attributes (using the
PointsTest.cpp as an example), the additional attribute are not visible
when I imported them into Houdini.
Houdini is the only other tools at my disposable for easily looking
at those attributes.
Here is my code segment and h5dump -H of the file (too large to
attached the actual Alembic file)
== CODE ==
Alembic::AbcGeom::OPointsSchema::Sample opmsSample;
NB_INFO ( "Position vector size " << abc_positions.size() );
NB_INFO ( "Velocity vector size " << abc_velocities.size() );
opmsSample.setIds(Alembic::AbcGeom::UInt64ArraySample(abc_indices));
opmsSample.setPositions(Alembic::AbcGeom::P3fArraySample(abc_positions));
opmsSample.setVelocities(Alembic::AbcGeom::V3fArraySample(
abc_velocities ));
// Additional channels
Alembic::AbcGeom::OFloatArrayProperty dropletOut( opms, "droplet");
Alembic::AbcGeom::OFloatArrayProperty emitIdOut( opms, "emitId");
NB_INFO ( "Droplet vector size " << abc_droplet.size() );
NB_INFO ( "EmitID vector size " << abc_emitId.size() );
dropletOut.set( Alembic::AbcGeom::FloatArraySample( abc_droplet
) );
emitIdOut.set( Alembic::AbcGeom::FloatArraySample( abc_emitId ) );
opms.set(opmsSample);
== h5dump -H == layout.txt
Regards
--
Nicholas Yue
Graphics - RenderMan, Visualization, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
Management - Recruitment, career management
http://www.proceduralinsight.com/
http://au.linkedin.com/in/nicholasyue