Re: [osg-users] matrix transformation order

2020-09-03 Thread OpenSceneGraph Users
What is exactly the problem you are facing?  To the best of my
knowledge, getting the transformation sequence that lead to a given
matrix is not possible (unless trivial like only one transformation and
one rotation), so it is more sensible to save all the intermediate
matrices in order to redo the altered one.
-- 
Alberto

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

-- 
You received this message because you are subscribed to the Google Groups 
"OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osg-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osg-users/mailman.13448.1599125453.3541.osg-users-openscenegraph.org%40lists.openscenegraph.org.


Re: [osg-users] matrix transformation order

2020-09-02 Thread OpenSceneGraph Users
12 year bump, anyone figure this out? I cannot.

On Thursday, 25 September 2008 at 10:59:05 UTC-4 robert@gmail.com wrote:

> On Thu, Sep 25, 2008 at 3:24 PM, David _  wrote:
> > i hate you all
> >
> > ;)
>
> I'm afraid we know more about joking around that Matrix::decompose :-)
>
> Looking at the svn log the code is from Vivek Rajan, back in Februrary
> 2007, so if he's still lurking on the list he'd be the best person to
> answer your question.
>
> Robert.
>
>
> ___
> osg-users mailing list
> osg-...@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>

-- 
You received this message because you are subscribed to the Google Groups 
"OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osg-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osg-users/410bc690-efae-4bb6-85f1-d65dd1204287n%40googlegroups.com.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] matrix transformation order

2008-09-25 Thread David _

up!

From: [EMAIL PROTECTED]
To: osg-users@lists.openscenegraph.org
Date: Wed, 24 Sep 2008 14:51:28 +0200
Subject: [osg-users] matrix transformation order








Hi, right now i have a matrix which contains N transformations. One of these is 
a scale, and i want to modify that scale

i call the decompose method of the matrix  

matrix.decompose(traslation, rotation_quat, scale, scale_orientation);

then i modify the scale with the new value and when i try to compose the 
matrix back i´m not sure about the order of matrix multiplying i should use to 
get the same transformated object than before with the new scale applied

what looks ok to me is osg::Matrix(scale_orientation) * scale * 
osg::Matrix(rotation_quat) * traslation, but this is not working so if anyone 
have any idea it will be appreciated

i´ve also tried with scale * osg::Matrix(rotation_quat) * traslation

the rotation and scale should both be around the object space origin and the 
original object matrix was built using scale * rotation * translate

thanks



La cartera, las gafas. ¿te falta algo?   Ahora llévate Messenger en tu móvil

_
¿Sigue el calor? Consulta MSN El tiempo
http://eltiempo.es.msn.com/___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] matrix transformation order

2008-09-25 Thread Robert Osfield
On Thu, Sep 25, 2008 at 10:48 AM, David _ [EMAIL PROTECTED] wrote:
 up!

left!
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] matrix transformation order

2008-09-25 Thread Tomlinson, Gordon
 

On Thu, Sep 25, 2008 at 10:48 AM, David _ [EMAIL PROTECTED]
wrote:
 up!

left!

Right!
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or
g
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] matrix transformation order

2008-09-25 Thread Jean-Sébastien Guay

I'll beat you all:


up!



left!


Right!


Frustum!

Ha! I got all your answers and 3 more!

J-S
--
__
Jean-Sebastien Guay[EMAIL PROTECTED]
   http://www.cm-labs.com/
http://whitestar02.webhop.org/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] matrix transformation order

2008-09-25 Thread David _

i hate you all

;)

 Date: Thu, 25 Sep 2008 09:19:19 -0400
 From: [EMAIL PROTECTED]
 To: osg-users@lists.openscenegraph.org
 Subject: Re: [osg-users] matrix transformation order
 
 I'll beat you all:
 
  up!
  
  left!
  
  Right!
 
 Frustum!
 
 Ha! I got all your answers and 3 more!
 
 J-S
 -- 
 __
 Jean-Sebastien Guay[EMAIL PROTECTED]
 http://www.cm-labs.com/
  http://whitestar02.webhop.org/
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_
¿Eres un cotilla? Disfruta de todas las novedades en MSN Corazón
http://entretenimiento.es.msn.com/corazon/___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] matrix transformation order

2008-09-25 Thread Robert Osfield
On Thu, Sep 25, 2008 at 3:24 PM, David _ [EMAIL PROTECTED] wrote:
 i hate you all

 ;)

I'm afraid we know more about joking around that Matrix::decompose :-)

Looking at the svn log the code is from Vivek Rajan, back in Februrary
2007, so if he's still lurking on the list he'd be the best person to
answer your question.

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] matrix transformation order

2008-09-24 Thread David _

Hi, right now i have a matrix which contains N transformations. One of these is 
a scale, and i want to modify that scale

i call the decompose method of the matrix  

matrix.decompose(traslation, rotation_quat, scale, scale_orientation);

then i modify the scale with the new value and when i try to compose the 
matrix back i´m not sure about the order of matrix multiplying i should use to 
get the same transformated object than before with the new scale applied

what looks ok to me is osg::Matrix(scale_orientation) * scale * 
osg::Matrix(rotation_quat) * traslation, but this is not working so if anyone 
have any idea it will be appreciated

i´ve also tried with scale * osg::Matrix(rotation_quat) * traslation

the rotation and scale should both be around the object space origin and the 
original object matrix was built using scale * rotation * translate

thanks



_
Llega la nueva temporada. Consulta las nuevas tendencias en MSN Estilo
http://estilo.es.msn.com/moda/___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org