OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

blender osgExport with IPO Curve


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Plugins [osgPlugins]
View previous topic :: View next topic  
Author Message
Markooz
Newbie


Joined: 01 Jan 2010
Posts: 3

PostPosted: Fri Jan 01, 2010 9:13 pm    Post subject:
blender osgExport with IPO Curve
Reply with quote

Hi,

First of all, great job to Cedric (and colleagues) for creating the osgExport from Blender. It has helped immensely.

The armature animations export perfectly, but I still have not been able to export an animation with an IPO curve (as animation path). The IPO curve seems to work fine in Blender, but when I export, in the log file I get "WARNING Curve Curve not exported".

Cedric, I see in your July 02 changelog, you write "To bake ipo correctly the object must be check in the active scene, else the bake of ipo will fail". I guess this is the answer to my issue, but I can't seem to implement it correctly. Can someone please elaborate on how this should be done?

I have attached a very simple blender example file of an object that animates via armature and IPO curve. When I export this file, the IPO curve is lost.

Thank you very much!
Markooz
Back to top
View user's profile Send private message
Cedric Pinson
Guest





PostPosted: Fri Jan 01, 2010 9:43 pm    Post subject:
blender osgExport with IPO Curve
Reply with quote

Hi Markooz,

I will check the issue tomorrow with your blender file, then i will fix
the blender exporter if needed. I will give your more information
tomorrow.

Happy new year

Cheers,
Cedric

--
Provide OpenGL services around OpenSceneGraph and more
+33 659 598 614 Cedric Pinson mailto:
http://www.plopbyte.net


On Fri, 2010-01-01 at 21:13 +0000, Mark Evin wrote:
Quote:
Hi,

First of all, great job to Cedric (and colleagues) for creating the osgExport from Blender. It has helped immensely.

The armature animations export perfectly, but I still have not been able to export an animation with an IPO curve (as animation path). The IPO curve seems to work fine in Blender, but when I export, in the log file I get "WARNING Curve Curve not exported".

Cedric, I see in your July 02 changelog, you write "To bake ipo correctly the object must be check in the active scene, else the bake of ipo will fail". I guess this is the answer to my issue, but I can't seem to implement it correctly. Can someone please elaborate on how this should be done?

I have attached a very simple blender example file of an object that animates via armature and IPO curve. When I export this file, the IPO curve is lost.

Thank you very much!
Markooz

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=22027#22027




Attachments:
http://forum.openscenegraph.org//files/test_path_121.zip







------------------
Post generated by Mail2Forum
Back to top
Cedric Pinson
Guest





PostPosted: Sat Jan 02, 2010 1:46 pm    Post subject:
blender osgExport with IPO Curve
Reply with quote

Hi Markooz,

i added a file with what you need to export your animation.
In fact a curve is not an ipo, and the exporter does know what a curve
is. So the way to proceed is to create a baked ipo from the curve. I
added a script in your scene that is able to do that.

* create a cube and set it to 0,0,0
* select the cube a and the curve then ctrl p and select follow path
* select the cube alt p and select clear parent inverse
* select only the cube and go on the Text path2ipo then alt p
* now remove you constrain on your armature object and set the ipo

Note that with the current setup of your scene i dont have the same
result as your constraint. But you have the idea.

Have a try and let me know. Ideally it would be good to have it in
exporter, but sometime it's easier to manage it in blender because of
the background mode in blender. In background mode there are some
functions not available that make stuff harder to bake.

Cheers,
Cedric


--
Provide OpenGL services around OpenSceneGraph and more
+33 659 598 614 Cedric Pinson mailto:
http://www.plopbyte.net


On Fri, 2010-01-01 at 22:43 +0100, Cedric Pinson wrote:
Quote:
Hi Markooz,

I will check the issue tomorrow with your blender file, then i will fix
the blender exporter if needed. I will give your more information
tomorrow.

Happy new year

Cheers,
Cedric





------------------
Post generated by Mail2Forum
Back to top
Markooz
Newbie


Joined: 01 Jan 2010
Posts: 3

PostPosted: Sat Jan 02, 2010 8:52 pm    Post subject:
RE: blender osgExport with IPO Curve
Reply with quote

Hi Cedric,

Happy New Year to you too!

Thanks for your quick reply and guidance. I tried the script and the baking to ipo worked fine, however my export still disregards the IPO curve.

I may not have completely understood your instructions. Here is what I did:

1) Using the file you sent me, in Object Mode, I clicked on the armature, and then ran the path2ipo script.

** Note: I am aware that you instructed "to select the cube alt p and select clear parent inverse", but by doing this, the object became perpendicular to the armature, which is undesirable.... so I skipped this step)

*** Note: I am aware you instructed to "select only the cube and go on the Text path2ipo then alt p". However, by doing this, I lost the armature animation. So since the cube is a child of the armature, I figured I could run the path2ipo script on the armature, and the cube will follow suit. This was a success.

2) I removed the constraint on the armature. It looked perfect.

3) I ran the osgExport script. The log file said:
"processing Armature Armature
bake ipo Armature to object Armature
exporting mesh Cube"

4) In osg, the armature animation worked, but the IPO curve did not.

See attached the blender file. I worked off the file you sent me.

Thanks very much, Cedric.

Cheers,
Mark
Back to top
View user's profile Send private message
Cedric Pinson
Guest





PostPosted: Sun Jan 03, 2010 12:39 pm    Post subject:
blender osgExport with IPO Curve
Reply with quote

Hi Mark,

Ok i get it, i exported the file you sent me. I have in the file data
expected, but in the osgAnimation there is an issue trying to animate
Skeleton node. So the work around is to animate an Empty in blender but
not an Armature. It's because a Skeleton is Bone and not a
MatrixTransform.

I refactored a part of osgAnimation last month that will simplify a lot
osgAnimation about Bone/Skeleton and will solved this problem, because
bone will be a MatrixTransform. So while it's not yet commited, i
suggest you to animate Empty instead of Armature.

Cheers,
Cedric

--
Provide OpenGL services around OpenSceneGraph and more
+33 659 598 614 Cedric Pinson mailto:
http://www.plopbyte.net


On Sat, 2010-01-02 at 20:52 +0000, Mark Evin wrote:
Quote:
Hi Cedric,

Happy New Year to you too!

Thanks for your quick reply and guidance. I tried the script and the baking to ipo worked fine, however my export still disregards the IPO curve.

I may not have completely understood your instructions. Here is what I did:

1) Using the file you sent me, in Object Mode, I clicked on the armature, and then ran the path2ipo script.

** Note: I am aware that you instructed "to select the cube alt p and select clear parent inverse", but by doing this, the object became perpendicular to the armature, which is undesirable.... so I skipped this step)

*** Note: I am aware you instructed to "select only the cube and go on the Text path2ipo then alt p". However, by doing this, I lost the armature animation. So since the cube is a child of the armature, I figured I could run the path2ipo script on the armature, and the cube will follow suit. This was a success.

2) I removed the constraint on the armature. It looked perfect.

3) I ran the osgExport script. The log file said:
"processing Armature Armature
bake ipo Armature to object Armature
exporting mesh Cube"

4) In osg, the armature animation worked, but the IPO curve did not.

See attached the blender file. I worked off the file you sent me.

Thanks very much, Cedric.

Cheers,
Mark

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=22036#22036




Attachments:
http://forum.openscenegraph.org//files/test_path2_532.zip







------------------
Post generated by Mail2Forum
Back to top
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Plugins [osgPlugins] All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts No specular maps, exporting from blen... Klemen Červ Plugins [osgPlugins] 1 Wed May 16, 2018 1:08 pm View latest post
No new posts Collada Importer with Blender Flogo General 0 Fri Dec 01, 2017 10:04 am View latest post
No new posts Moved to BUILD FORUM - Best Pipeline ... dsargrad General 3 Sun Jun 05, 2016 5:03 pm View latest post
No new posts BTG to blender with textures? J05HYYY General 2 Sat Aug 01, 2015 2:33 am View latest post
No new posts Get the world position of a node by i... schorsch_76 General 0 Tue Apr 28, 2015 6:35 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP