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 

PositionAttitudeTransforms ignored when exporting


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


Joined: 23 Jan 2013
Posts: 5

PostPosted: Wed Aug 07, 2013 3:48 pm    Post subject:
PositionAttitudeTransforms ignored when exporting
Reply with quote

Hi,

I just compiled OSG 3.2.0 with fbx plugin support.

When exporting my scene in FBX or 3DS formats, some objects are not correctly placed. This does not happen when exporting to .osg or .ive.

Looking further on it, I realized that those objects not located properly were children of PositionAttitudeTransfroms.

Replacing PositinoAttitudeTransforms for MatrixTransforms results in correct FBX and 3DS models.

I had never tried this before since I have always used native formats, so I'm sorry if this is a known issue that I missed before.

Thank you!

Cheers,
Joseph
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 12144

PostPosted: Wed Aug 07, 2013 4:07 pm    Post subject:
PositionAttitudeTransforms ignored when exporting
Reply with quote

Hi Joseph,

I'm not famaliar with the DBX and 3DS formats as I'm not the author of
these plugins but I would say in general that 3rd party formats like
these will only be able to map a small subset of OSG functionality,
and in some case there may be no clear path to implementing it. In
the case of PositionAttitudeTransforms the only thing that might be
possible would be to convert to a MatrixTransform, potentially this
could be done by the exporter, but then what do you do for
AutoTransform, Billboards, PagedLODs etc. etc. There is huge parts of
the OSG that will be only be supportable by the native formats.

Robert.

On 7 August 2013 15:48, Joseph Sahexmeier <> wrote:
Quote:
Hi,

I just compiled OSG 3.2.0 with fbx plugin support.

When exporting my scene in FBX or 3DS formats, some objects are not correctly placed. This does not happen when exporting to .osg or .ive.

Looking further on it, I realized that those objects not located properly were children of PositionAttitudeTransfroms.

Replacing PositinoAttitudeTransforms for MatrixTransforms results in correct FBX and 3DS models.

I had never tried this before since I have always used native formats, so I'm sorry if this is a known issue that I missed before.

Thank you!

Cheers,
Joseph

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








------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
sahex
Newbie


Joined: 23 Jan 2013
Posts: 5

PostPosted: Wed Aug 07, 2013 4:37 pm    Post subject:
Reply with quote

Thanks for the answer Robert.

That was pretty much my guess, in fact I am customizating my scene graph when it has to be exported (replacing LOD, etc.). I just thought PositionAttitudeTransform is all too common to be left out.

In order to minimize the impact on my codebase, I'll try to replace osg::PAT with osg::MatrixTransform through a nodeVisitor, see if that works.

Thanks a lot.

Regards,
Joseph
Back to top
View user's profile Send private message
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 Exporting OpenFlight Models Daniel Emminizer, Code... General 2 Wed Jun 27, 2018 5:02 pm View latest post
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 Exporting to 3D studio? bbjorn General 2 Fri Dec 08, 2017 9:49 am View latest post
No new posts BVH and model axis centering: a model... Paradox Plugins [osgPlugins] 0 Mon Oct 16, 2017 4:27 pm View latest post
No new posts Bug in 3.4.0 when exporting .osgx file? wernerM General 3 Tue Mar 21, 2017 1:18 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