Which way would be better, what i have now or what you just suggested?
My rule of thumb is; unless you have a compelling reason (ie efficiency),
you should always prefer your own solutions.
That way if you have to bug fix it or improve
it in 1,2,3 years time you might remember what you did.
2009/5/22 Paul Griffiths gaffe...@gmail.com:
Hi,
I wish to compute an axis aligned bounding box of a given size whos position
is centered to a node.
This node cound be scaled, translated or rotated. it must be axis aligned.
I need to know this to test if a picked part of a node picked with
Simon Hammett wrote:
LineSegmentIntersector::Intersection has a member: matrix
which is the accumulated local to world coordinates matrix.
If you transform the nodes BoundingSphere center by that, you
can then construct an aabb around that at whatever size you want.
Sorry, i should of
Im clipping an osg::group with an osg::ClipNode so parts of it is invisible on
screen but when i click on the invisible parts the picker is still picking the
object . i dont want it like that, i want the invisible parts to be invisible
to the mouse as well. so i wish to create an aabb around
2009/5/22 Paul Griffiths gaffe...@gmail.com:
Im clipping an osg::group with an osg::ClipNode so parts of it is invisible
on screen but when i click on the invisible parts the picker is still picking
the object . i dont want it like that, i want the invisible parts to be
invisible to the
2009/5/22 Simon Hammett s.d.hamm...@googlemail.com:
2009/5/22 Paul Griffiths gaffe...@gmail.com:
Im clipping an osg::group with an osg::ClipNode so parts of it is invisible
on screen but when i click on the invisible parts the picker is still
picking the object . i dont want it like that, i
Ive came up with this but it returns outside true every time regardless:
Code:
bool outside = false;
if (obj-getParentWidget() obj-getParentWidget()-getUsingClipBoundingBox())
{
osg::ref_ptrosg::ClipNode clipNode =
obj-getParentWidget()-getClipNode();
if (clipNode)
{
for
2009/5/22 Paul Griffiths gaffe...@gmail.com:
Ive came up with this but it returns outside true every time regardless:
Code:
bool outside = false;
if (obj-getParentWidget()
obj-getParentWidget()-getUsingClipBoundingBox())
{
osg::ref_ptrosg::ClipNode clipNode =
Simon Hammett wrote:
Okies, if memory serves me correctly, the clip planes aren't in world
coordinates,
I think they are in eye coordinates.
So that would be take the local intersection coordinate and transform it using
computeLocalToEye (in osg/Transform) and test that point.
If that
2009/5/22 Paul Griffiths gaffe...@gmail.com:
Simon Hammett wrote:
Okies, if memory serves me correctly, the clip planes aren't in world
coordinates,
I think they are in eye coordinates.
So that would be take the local intersection coordinate and transform it
using
computeLocalToEye (in
2009/5/22 Simon Hammett s.d.hamm...@googlemail.com:
2009/5/22 Paul Griffiths gaffe...@gmail.com:
Simon Hammett wrote:
Okies, if memory serves me correctly, the clip planes aren't in world
coordinates,
I think they are in eye coordinates.
Right I've had time to play with ClipNode, and what
Simon Hammett wrote:
Right I've had time to play with ClipNode, and what I said above is rubbish.
You just need the matrix which transforms from the parent to the
intersection node.
Given you are writing a tool kit, I suspect you can quickly and easily work
out
that transform from
Hi,
I wish to compute an axis aligned bounding box of a given size whos position is
centered to a node.
This node cound be scaled, translated or rotated. it must be axis aligned.
I need to know this to test if a picked part of a node picked with the mouse is
inside the bounds a bounding box
13 matches
Mail list logo