Hi,
I need help understanding what may be at play here...
With the testCollision option to secure a boat for myself on the ocean, I
promptly used a different boat I got from a collada dae file (a wooden dory
from google sketchup 3dwarehouse), and ignored the one coming with the example
because
Hi,
well...
I finally got my boat INTO the water after findiing that the one supplied with
the example was perfectly happy sitting IN the water instead of floating around
in the air...
I also got a shark model which exhibited the same characteristic of floating 10
feet ABOVE the water instead
Hi Tim,
I still would like to know the whys and wherefors and how comes surrounding
this effect do different models have built in heights with respect to 0,0,0?
It all depends on how the model was built in the modeling program...
Clearly if one model's local origin (its own (0,0,0)) is
>
> Or you could make a small function that would find the bounding box of the
> model
There's an app for that :)
http://code.google.com/p/osgworks/
*osgwbvv:* A bounding volume visualizer to display bounding spheres and
boxes.
K.
On 4 March 2011 02:49, Jean-Sébastien Guay
wrote:
> Hi Tim,
>
J.S, Kim...
Thank you!
I wasn't expecting multiple models to exhibit the same behaviour. I'll try some
different types other than collada models to see how they do.
I'll see about the bounding box idea... sounds useful... Thanks for the tips.
I'll keep studying... there is much I would like to
Hi,
Here's what I've done so far towards this end (height of model vs reality)...
Code:
if(boat.valid())
{
boat->setNodeMask( scene->getOceanScene()->getNormalSceneMask() |
scene->getOceanScene()->getReflectedSceneMask() |
scene->getOceanScene()->getRefractedSceneMask() );
6 matches
Mail list logo