A new version of Cineversity has been launched. This legacy site and its tutorials will remain accessible for a limited transition period

Visit the New Cineversity
   
 
Baking Particles as OBJ sequence
Posted: 29 March 2013 06:04 PM   [ Ignore ]  
Avatar
Total Posts:  44
Joined  2007-01-15

Hello I try to bake some particles with dynamics and text as a obj sequences
I can’t figure out how to bake the particles as a keyframes sequences

**I have include the files

Profile
 
 
Posted: 29 March 2013 06:11 PM   [ Ignore ]   [ # 1 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

Hi Gregg,

As usual, what is the target or the original idea? It sounds this is in the middle of a problem and not the start, so any answer will have less chance to get solved.

(Not files available in your post)

Perhaps there is a better way to do it. Particles to MoGraph and cache it first. Perhaps Alembic?

Single Particle as Keyframes? As they are “born” and “die” there is a point of non existence which can’t be natively key framed on a single particle base.

Baking particles have found some plug in developers love. Perhaps there is a solution!?
(E.g.,  http://aescripts.com/tp-partio/  http://nitro4d.com/blog/donationware/nitrobake/)
I haven’t used any of these, though. I think in Alembic lays the future.

I will check the standard (but which is not the native!) way for obj sequence export…

All the best

Sassi

 Signature 

Dr. Sassi V. Sassmannshausen Ph.D.
Cinema 4D Mentor since 2004
Maxon Master Trainer, VES, DCS

Photography For C4D Artists: 200 Free Tutorials.
https://www.youtube.com/user/DrSassiLA/playlists

NEW:

NEW: Cineversity [CV4]

Profile
 
 
Posted: 29 March 2013 11:42 PM   [ Ignore ]   [ # 2 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

Hey Gregg,

I have researched a little bit. With a little trick I got the standard particle to create obj sequences. (Which will work similarly with TP. You hadn’t specified it so far)

I used “Riptide” for it. It is a plug in that write obj sequences. I placed a 1x1cm polygon under the “Emitter” and set it to Show Object. The “Emitter” itself under a “Connect” object.

To my knowledge (http://en.wikipedia.org/wiki/Wavefront_.obj_file) obj can’t contain particles, hence the workaround.

If the scene is on frame zero, with no particles—not polygon, Riptide wont work, it checks the scene if there is a polygon. So press play and stop to make the app happy. Then export—see attachment.

Funnily enough it wont read this sequence back in. But that was not your question, right. Testing a single file, it merges, and in that way I was able to see that the obj has the polygons stored. Which made me curios: Deleting the empty obj (frame zero) and it worked with Riptide. Which means, I loaded the sequence in, and of course played with it. The result in the second file (CV2_r14_drs_13_objs_01.zip), and the source file from which I had exported the sequence is as well included (CV2_r14_drs_13_objs_00.zip).

To be president, I think Alembic should be tried as well, as that is for model export, what ACES is for color, perhaps soon the industry standards. Which I have both initially suggested to integrate in C4D.

I hope that helps.

All the best

Sassi

File Attachments
CV_object_wavef.zip  (File Size: 107KB - Downloads: 198)
CV2_r14_drs_13_objs_00.c4d.zip  (File Size: 33KB - Downloads: 188)
CV2_r14_drs_13_objs_01.c4d.zip  (File Size: 87KB - Downloads: 206)
 Signature 

Dr. Sassi V. Sassmannshausen Ph.D.
Cinema 4D Mentor since 2004
Maxon Master Trainer, VES, DCS

Photography For C4D Artists: 200 Free Tutorials.
https://www.youtube.com/user/DrSassiLA/playlists

NEW:

NEW: Cineversity [CV4]

Profile
 
 
Posted: 30 March 2013 08:36 AM   [ Ignore ]   [ # 3 ]  
Avatar
Total Posts:  44
Joined  2007-01-15

Hey Sassi,

I have came up with your solution using Alembic, and it works great,
I have also use Riptide for exporting my final obj sequences.
When I was trying to export all my simulation with riptide it didn’t work but as you say the first frame as 0 polys, tahnks for this tip smile
I have figure out a work around ....
This is the step I have follow

1) I have made my standard particles emitter with exemple a cube ( add a dynamics tags on the cube to make it fall for exemple)
2) I bake the particles emitter using the bake tag
3) I have cache the simulation of the dynamics
4) export all my sequence with alembic
5) import the abc file in a new project
6) export my abc sequence with Riptide

et voilĂ  .. after this point I have a perfect obj sequence.
thanks again for your precious knowledge

cheers !
GS

Profile
 
 
Posted: 30 March 2013 02:03 PM   [ Ignore ]   [ # 4 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

Hey Gregg,

Sounds very usable! You got your OBJ sequence - that is great news! Yes Alembic has quite some potential.

I didn’t had your scene-file or an example/proxy of it, otherwise I would have loved to test this of course.

If you need more ideas for other ways to bake things, I have discussed this quite a lot in the NLA (non linear animation) for teams tutorial series.

There are other ways with Python, as I learned it a while ago, to transfer keys via Python, but not so much for particles directly.

Anyway, you have done it, got the project running, perfect.

I wish you nice Holidays

Sassi

 Signature 

Dr. Sassi V. Sassmannshausen Ph.D.
Cinema 4D Mentor since 2004
Maxon Master Trainer, VES, DCS

Photography For C4D Artists: 200 Free Tutorials.
https://www.youtube.com/user/DrSassiLA/playlists

NEW:

NEW: Cineversity [CV4]

Profile