[sldev] force object redraw?
Anna Gulaev
annagulaev at gmail.com
Tue Feb 5 03:37:47 PST 2008
On 2/5/08, Anna Gulaev wrote:
>
> On 2/4/08, Dave Parks wrote:
> >
> > If "registerFace" is called and does nothing, then there is no way for
> > the object to be drawn.
>
>
> As I said, these are objects that were previously drawn. Perhaps instead
> of looking for a way to not draw them I should be looking for a way to
> un-draw them?
>
I've done one better than that. Before registerFace, the face list is built
in rebuildGeom. After the face list is cleared there's a loop that rebuilds
it. There's a conditional in there to skip invisible objects. I added the
condition for my invisible objects. Verified that the condition is
triggered; that is, faces for these objects never even get added to the face
list. Not added, not registered.
Still, the objects persist until selected. Sortof.
In the current state of my code (skipping objects as HideSelected does, not
adding invisible faces to the face list, dirtying geometry for invisible
objects) objects that are very large and near the camera do eventually
disappear. In about 10 seconds. Objects that are less that very large (lets
say house-sized) never disappear unless the avatar collides with them. That
is, a lighthouse-sized object will eventually disappear. A house-sized
object will not. And we aren't talking large distances, either. We're
talking house-sized objects at a range of 20m, which render much larger than
the avatar. Even they do not receive enough priority to re-draw. Ever.
So, it seems to be an unrealistic priority problem, with objects that
shouldn't even have faces to render.
There is apparently still some positive action that I must take to remove
geometry that has already been rendered.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.secondlife.com/pipermail/sldev/attachments/20080205/cf640a19/attachment-0001.htm
More information about the SLDev
mailing list