Adding sampling time to per frame Alembic files

552 views
Skip to first unread message

Nicholas Yue

unread,
May 10, 2012, 4:51:45 AM5/10/12
to alembic-d...@googlegroups.com
Hi,

I am experimenting with writing out a numbered sequence of Alembic
files (one for each frame, assuming 24 fps)

Looking at the example of the API in
http://code.google.com/p/alembic/wiki/CookingWithAlembic, I see the
following.

void RunAndWriteParticles
(
OObject &iParent,
const ParticleSystem::Parameters &iParams,
size_t iNumFrames,
chrono_t iFps
)
{
// Make the particle system.
ParticleSystem parts( iParams);

// Create the time sampling.
TimeSampling ts(iFps, 0.0);
uint32_t tsidx= iParent.getArchive().addTimeSampling(ts);


In the situation of one sample/frame per file, how should one
construct the TimeSampling object ?

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

Lucas Miller

unread,
May 10, 2012, 12:51:33 PM5/10/12
to alembic-d...@googlegroups.com
chrono_t fps = 1.0 / 24.0;
TimeSampling  ts(fps,  FRAME * fps);
uint32_t tsidx=  iParent.getArchive().addTimeSampling(ts);


Lucas

--
You received this message because you are subscribed to the Google
Groups "alembic-discussion" group.
To post to this group, send email to alembic-discussion@googlegroups.com
To unsubscribe from this group, send email to
alembic-discussion+unsub...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/alembic-discussion?hl=en

For RSS or Atom feeds related to Alembic, see:

http://groups.google.com/group/alembic-dev/feeds

http://groups.google.com/group/alembic-discussion/feeds

Reply all
Reply to author
Forward
0 new messages