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 

Matrices interpreted wrong in AC loader it appears..


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


Joined: 13 Dec 2016
Posts: 7

PostPosted: Sun Mar 12, 2017 4:37 am    Post subject:
Matrices interpreted wrong in AC loader it appears..
Reply with quote

Hi,

The matrices read from the 'rot' token appears to be read in wrong manner:

Here is an example line from AC3D file:

rot 1 2 3 4 5 6 7 8 9

Inivis AC3D interprets that as:

1 4 7
2 5 8
3 6 9

While OpenSceneGraph reads it as:

1 2 3
4 5 6
7 8 9

Here is a valid Inivis AC3D file, that demonstrate:

https://drive.google.com/open?id=0B49qitQsNy34VGVlb3ZyTGloTGc

Thank you!

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


Joined: 18 Mar 2009
Posts: 11024

PostPosted: Sun Mar 12, 2017 9:37 am    Post subject:
Matrices interpreted wrong in AC loader it appears..
Reply with quote

Hi freqfly,

What OSG version what you tested?

Could you post a screenshot of what the model is supposed to look like?

Robert.

On 12 March 2017 at 04:37, Nikolai Christensen <> wrote:
Quote:
Hi,

The matrices read from the 'rot' token appears to be read in wrong manner:

Here is an example line from AC3D file:

rot 1 2 3 4 5 6 7 8 9

Inivis AC3D interprets that as:

1 4 7
2 5 8
3 6 9

While OpenSceneGraph reads it as:

1 2 3
4 5 6
7 8 9

Here is a valid Inivis AC3D file, that demonstrate:

https://drive.google.com/open?id=0B49qitQsNy34VGVlb3ZyTGloTGc

Thank you!

Cheers,
freqfly

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








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


Joined: 13 Dec 2016
Posts: 7

PostPosted: Sun Mar 12, 2017 3:26 pm    Post subject:
Reply with quote

Hi,

version 3.4.0

Notice in attached picture the objects have been aligned so the torus touches approx the same plane that the cone rests on.

Thank you!

Cheers,
Nikolai
Back to top
View user's profile Send private message
freqfly
Newbie


Joined: 13 Dec 2016
Posts: 7

PostPosted: Sun Mar 12, 2017 3:27 pm    Post subject:
Reply with quote

Hi,

version 3.4.0

Notice in attached picture the objects have been aligned so the torus touches approx the same plane that the cone rests on.

Thank you!

Cheers,
Nikolai
Back to top
View user's profile Send private message
freqfly
Newbie


Joined: 13 Dec 2016
Posts: 7

PostPosted: Sun Mar 12, 2017 3:36 pm    Post subject:
Reply with quote

Hi,

Sorry, you my first post probably didn't get to you on mailing list as it had attachment. So here I try again:

OSG version 3.4.0

Notice in picture the objects have been aligned so the torus touches approx the same plane that the cone rests on.

Image:



Thank you!

Cheers,
Nikolai
Back to top
View user's profile Send private message
freqfly
Newbie


Joined: 13 Dec 2016
Posts: 7

PostPosted: Sat Mar 25, 2017 6:35 am    Post subject:
Reply with quote

Hi,

I can can make a github issue for this, if needed?

Thank you!

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


Joined: 18 Mar 2009
Posts: 11024

PostPosted: Sat Mar 25, 2017 8:32 am    Post subject:
Matrices interpreted wrong in AC loader it appears..
Reply with quote

On 25 March 2017 at 06:35, Nikolai Christensen <> wrote:
Quote:
I can can make a github issue for this, if needed?

I have been busy tackling other issues so haven't had time to look at
this particular issue further. It would be useful to post it as an
issue as a placeholder of things we need to resolve, just linking to
this thread would be fine.

If anyone else has fix then they'd be even more useful :-)

Cheers,
Robert.


------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 11024

PostPosted: Mon Mar 27, 2017 7:51 pm    Post subject:
Matrices interpreted wrong in AC loader it appears..
Reply with quote

Hi Nikolai,

I have checked in a fix, I think it looks correct to me, could you
please test it out. The commit to OSG master is:

https://github.com/openscenegraph/OpenSceneGraph/commit/76afbc9bcfa5ed1e86de2865bbec416f55740cef


Cheers,
Robert.

On 12 March 2017 at 15:37, Nikolai Christensen <> wrote:
Quote:
Hi,

Sorry, you my first post probably didn't get to you on mailing list as it had attachment. So here I try again:

OSG version 3.4.0

Notice in picture the objects have been aligned so the torus touches approx the same plane that the cone rests on.

Image:

[Image: https://s19.postimg.org/40u9kkuar/rotation_Test.png ]

Thank you!

Cheers,
Nikolai

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








------------------
Post generated by Mail2Forum
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 Setting the transform matrices robertosfield General 4 Wed Aug 09, 2017 8:35 am View latest post
No new posts FBX loader convert units options robertosfield Submission 1 Tue Apr 18, 2017 4:20 pm View latest post
No new posts AC3D Loader freqfly Plugins [osgPlugins] 2 Tue Dec 13, 2016 5:46 am View latest post
No new posts FBX loader convert units options Farshid Lashkari Submission 1 Tue Nov 22, 2016 6:35 pm View latest post
No new posts ScalarsToColors returns a wrong color... hartwigw Submission 2 Sun Nov 20, 2016 4:40 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