Hi, Solkar:
The world coord you mentioned is cooresponding to the earth view, but the
world coord I calculate by osg::computeLocalToWorld function is not for earth
view.For some purpose, I want these two coords should be for a single view
position. How can I do it?
------------------
Failure is the mother of success.
Wu Zhicheng
------------------ Original ------------------
From: "Solkar Graphics";<[email protected]>;
Date: Wed, Jul 9, 2014 11:17 AM
To: "osg-users"<[email protected]>;
Subject: Re: [osg-users] how to get the real world coordinates(x, y,z) in
shader
ttaw wrote:
> But the problem still exists:
[/quote]
This
[quote="ttaw"the position coordinate of the text node remains mag
x000000[/quote]
is not a problem.
That is simply the world coordinate corresponding to the of the view the viewer
creates for the perspective projection of the sphere.
Your HUD cam simply inherits that from the root node; but because the mere
distance has no effect on an orthographic projection that is no problem for
your HUD.
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=60219#60219
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org