Exactly.  Thanks Jason.

In my working copy I've removed the setNumChildrenRequiringUpdateTraversal
call and ON_DEMAND rendering in osgViewer works again.  I would not propose
this as a fix because it probably broke something else and so that's why I'd
like to see why this change was included and investigate if there is another
feasible solution that allows ON_DEMAND functionality to continue to work
like it did before rev 11307.

Thanks
-Brad

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Jason
Beverage
Sent: Wednesday, October 20, 2010 7:50 AM
To: OpenSceneGraph Users
Subject: Re: [osg-users] osgTerrain -- ON_DEMAND rendering broken?

Hi Robert,

Brad is talking about OSG's ON_DEMAND mode to  (osgviewer
--run-on-demand).  The setting of the
setNumChildrenRequiringUpdateTraversal to get an update traversal in
osgTerrain (as well in osgEarth) causes the frameloop to run
continuously instead of only when something changes.  So even if
you're sitting still and nothing needs paged in and no tiles need
processed in the osgTerrain::Terrain's update callback the frameloop
still runs as fast as it can.

Jason

On Wed, Oct 20, 2010 at 4:34 AM, Robert Osfield
<[email protected]> wrote:
> HI Brad,
>
> What do you mean by ON_DEMAND rendering in osgTerrain?  Is this an
> osgEarth feature, rather than an osgTerrain one?
>
> Robert.
>
> On Wed, Oct 20, 2010 at 12:01 AM, Brad Huber <[email protected]>
wrote:
>> It appears that ON_DEMAND rendering is broken in osgTerrain as of rev
>> 11307.  The offend lines appear to be the manual setting of
>> numchildrenrequiringupdatetraversal in the constructors for
>> osgTerrain::Terrain.
>>
>>
>>
>> We are using osgEarth (using osgTerrain) and would really like to use
>> ON_DEMAND to greatly reduce our cpu/gpu footprint.
>>
>>
>>
>> Obviously this change was introduced to fix something (boundary
>> equalization?).  Is there another option?
>>
>>
>>
>> Thanks
>>
>> -Brad
>>
>> _______________________________________________
>> 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
>
_______________________________________________
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

Reply via email to