Re: [K3d-development] md2 file format [was:] SVG improvement
Brought to you by:
barche
From: Carlos D. <car...@gm...> - 2008-07-29 01:35:35
|
Hi, I was actually looking at the possibility of doing it with a TweakPoint node but isn't it better to use just a simple_deformation_modifier node? and do something similar as what I did in clothing using an m_time variable and connecting it to the default TimeSource. With this in mind, I have a question regarding the creation of a plug-in. If I create a node in a document (simple_deformation_modifier in this case) how can I access the code of a function (in this case on_deform_mesh) so I can actually tweak the points for the animation? Thanks in advance Bests, Carlos On Sun, Jul 27, 2008 at 7:02 AM, Joaquín Duo <hoa...@ya...> wrote: > Carlos Dominguez wrote: > > Well, md2 doesn't use any interpolation for the animation, it basically > > stores the vertex coordinates on each frame of the animation. Right now > > in the mesh reader I added a variable named "frame" which you can use to > > travel in the model animation and stay with the pose you want. I was > > thinking on implementing the complete animation in an importer. As you > This is a good approach for a MeshReader, great solution. :-) > > But for a Document Importer I don't think this is the right solution, in > fact > some sort of new node should be done. Like Md2MeshSource, but that wouldn't > be nice. > > Instead i guess you should add animation support to the TweakPoint > modifier. > That would be the right thing when Importing. Although I don't know if it > is > worth making this change now. In case you make the Importer do it without > animation and then add it. > > > pointed out it will probably be a little wierd but I think I can manage > > it, I'm gonna document the procedure on wiki. As of know what I can > > think of for the first approach is to connect the model to the > > timesource and actually changing the points on each timechange. > > > Cheers! > Joaquín. > > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > K3d-development mailing list > K3d...@li... > https://lists.sourceforge.net/lists/listinfo/k3d-development > -- Carlos Andres Dominguez Caballero TEL: (52 443) 3147845 CEL: (52 443) 2028344 fismat.umich.mx/~carlosadc |