InstancedGeometry InstancedGeometry::InstancedObject bug

What it says on the tin: a place to discuss proposed new features.
Post Reply
iigor
Gnome
Posts: 387
Joined: Thu May 08, 2008 3:46 pm
Location: Russia, Moscow

InstancedGeometry InstancedGeometry::InstancedObject bug

Post by iigor »

When i set scale at object it's boundng box didn't change at all, it's easy to see, just in Instancing Demo add folowing code to a cycle where objects position set( Instancing.xpp Line 264-290 ):

Code: Select all

obj->setScale( Vector3( 3, 3, 3 ) );
and all razors will be culled when you look at 2/3 and lesser of them.
It's very critical because all objects in my game have size 1.0, and scaled by nodes, so instanced objects are invisible until i see their middle point.
User avatar
sinbad
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 19269
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
x 66
Contact:

Post by sinbad »

Ok, it's not as quick a fix as you might think. I'll put it on my list to think about.
iigor
Gnome
Posts: 387
Joined: Thu May 08, 2008 3:46 pm
Location: Russia, Moscow

Post by iigor »

Before posting bug i looked around about 3 hours at code, but my knowledge at this field so far from yours and i think your solution would be about ten times better :).
Only idea which i have is to use object with multiple bounding boxes, but it takes all engine to refactor...
Post Reply