Re: [osg-users] Drawing complex labels of 3D points in screen space

2010-10-22 Thread J.P. Delport

Hi,

On 21/10/10 18:26, Yurii Monakov wrote:

Hi All

After some googling I've discovered an AutoTransform node )) When
setting it's auto-rotate mode to ROTATE_TO_SCREEN and
setAutoScaleToScreen(true) it gives me exactly what I want. The only
problem is that after looking at AutoTransform node I noticed that it
does a lot of computation inside. The only thing I need is to push
root's MVPW matrix to some part of the graph (Transform nodes, which
are children of the screen-spaced node) to update their positions
properly. Is there any other way to do this?


not that I know of, but I think you've now discovered enough to create 
your own node, either based on AutoTransform (but for already 
screen-spaced geometry) or your own.


jp



Thank you!

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



--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. 
The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.


This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.  MailScanner thanks Transtec Computers for their support.


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


Re: [osg-users] Drawing complex labels of 3D points in screen space

2010-10-22 Thread Yurii Monakov
Hi,

Thank you for the answer. Now I'm searching for the right way to get
to some level (for example, base level, e.g. root) of MVPW matrix
stack from callback or accept() call. But all I see is top level,
which is actual only for the current node.

Yurii

2010/10/22 J.P. Delport jpdelp...@csir.co.za:
 Hi,

 On 21/10/10 18:26, Yurii Monakov wrote:

 Hi All

 After some googling I've discovered an AutoTransform node )) When
 setting it's auto-rotate mode to ROTATE_TO_SCREEN and
 setAutoScaleToScreen(true) it gives me exactly what I want. The only
 problem is that after looking at AutoTransform node I noticed that it
 does a lot of computation inside. The only thing I need is to push
 root's MVPW matrix to some part of the graph (Transform nodes, which
 are children of the screen-spaced node) to update their positions
 properly. Is there any other way to do this?

 not that I know of, but I think you've now discovered enough to create your
 own node, either based on AutoTransform (but for already screen-spaced
 geometry) or your own.

 jp


 Thank you!

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


 --
 This message is subject to the CSIR's copyright terms and conditions, e-mail
 legal notice, and implemented Open Document Format (ODF) standard. The full
 disclaimer details can be found at http://www.csir.co.za/disclaimer.html.

 This message has been scanned for viruses and dangerous content by
 MailScanner, and is believed to be clean.  MailScanner thanks Transtec
 Computers for their support.

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

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


Re: [osg-users] Drawing complex labels of 3D points in screen space

2010-10-22 Thread J.P. Delport

Hi,

On 22/10/10 12:36, Yurii Monakov wrote:

Hi,

Thank you for the answer. Now I'm searching for the right way to get
to some level (for example, base level, e.g. root) of MVPW matrix
stack from callback or accept() call. But all I see is top level,
which is actual only for the current node.


I'm not 100% sure, but I think start by searching for use of 
node-getParentalNodePaths() or the use of CullStack.


jp



Yurii

2010/10/22 J.P. Delportjpdelp...@csir.co.za:

Hi,

On 21/10/10 18:26, Yurii Monakov wrote:


Hi All

After some googling I've discovered an AutoTransform node )) When
setting it's auto-rotate mode to ROTATE_TO_SCREEN and
setAutoScaleToScreen(true) it gives me exactly what I want. The only
problem is that after looking at AutoTransform node I noticed that it
does a lot of computation inside. The only thing I need is to push
root's MVPW matrix to some part of the graph (Transform nodes, which
are children of the screen-spaced node) to update their positions
properly. Is there any other way to do this?


not that I know of, but I think you've now discovered enough to create your
own node, either based on AutoTransform (but for already screen-spaced
geometry) or your own.

jp



Thank you!

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



--
This message is subject to the CSIR's copyright terms and conditions, e-mail
legal notice, and implemented Open Document Format (ODF) standard. The full
disclaimer details can be found at http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by
MailScanner, and is believed to be clean.  MailScanner thanks Transtec
Computers for their support.

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


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


--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. 
The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.


This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.  MailScanner thanks Transtec Computers for their support.


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


Re: [osg-users] Drawing complex labels of 3D points in screen space

2010-10-21 Thread Yurii Monakov
Hi All

After some googling I've discovered an AutoTransform node )) When
setting it's auto-rotate mode to ROTATE_TO_SCREEN and
setAutoScaleToScreen(true) it gives me exactly what I want. The only
problem is that after looking at AutoTransform node I noticed that it
does a lot of computation inside. The only thing I need is to push
root's MVPW matrix to some part of the graph (Transform nodes, which
are children of the screen-spaced node) to update their positions
properly. Is there any other way to do this?

Thank you!

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