HI Roman,

As I send in my previous email you shouldn't use two separate views
for what you are doing, it's neither conceptually a good fit, nor
programatically.  Use a single View with two slave Camaras, it's
simpler coding wise, and you conceptually just have a single view,
either though it's composed of two eye images.  Lots has been
discussed on this topic on osg-users in the past so please do a search
for the topics of Camera / Viewer / CompositeViewer.

Robert.

On Thu, Dec 11, 2008 at 1:02 PM, Roman Grigoriev <[EMAIL PROTECTED]> wrote:
> Thanx Robert!
> I try to use this config:
> CompositeViewer (2 View)
> First View1 800*600 (left eye first DVI output) Left eye camera
> Second View2 800*600 (right eye second DVI output) right eye camera
>  So I only need to execute
> view1.setSceneData(root);
> view2.setSceneData(root);
> Roman
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Robert
> Osfield
> Sent: Thursday, December 11, 2008 2:58 PM
> To: OpenSceneGraph Users
> Subject: Re: [osg-users] RTT and stereo (corrected)
>
> Hi Roman,
>
> When doing stereo you would typically use a single View with a single
> master Camera that controls the what the overall view of the scene is.
>  This View would then have two slave Cameras that are offset from the
> master Camera's view/projection matrix to provide the appropriate
> view.  The scene graph is shared between the two slave Cameras.  If
> the slave Camera have different graphics contexts then you can have
> separate OpenGL objects per context, but the OSG will automatically
> manage this all for you, it also offers the opportunity for threading
> the graphics contexts.
>
> Robert.
>
> On Thu, Dec 11, 2008 at 11:20 AM, Roman Grigoriev <[EMAIL PROTECTED]>
> wrote:
>>>When doing stereo with two 280's use two viewer Camera's to make the
>>>most of multi-threading performance that the OSG has to offer.
>> Could you please explain it?
>> But if I have 2 views I have to share scenegraph between windows. So OSG
>> simply duplicate geometries?
>> Or maybe I don't understand something?
>> Roman
>>
>>
>> -----Original Message-----
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On Behalf Of Robert
>> Osfield
>> Sent: Thursday, December 11, 2008 1:33 PM
>> To: OpenSceneGraph Users
>> Subject: Re: [osg-users] RTT and stereo (corrected)
>>
>> Hi Roman,
>>
>> The performance you are getting it not to surprising.  Your GPU costs
>> are obviously the biggest bottleneck.
>>
>> Moving to a single GTX280 will radically improve this, there is little
>> reason why you shouldn't be able to do 60Hz in stereo.  Using two
>> GTX280 would give you an even wider margin for hitting a solid 60Hz.
>>
>> Once you move to the 280's you probably find that the GPU is no longer
>> the bottleneck and your cull could well be the longest element, but if
>> you're hitting a solid 60Hz in stereo already no need to worry.
>>
>> When doing stereo with two 280's use two viewer Camera's to make the
>> most of multi-threading performance that the OSG has to offer.
>>
>>
>> Robert.
>>
>> On Thu, Dec 11, 2008 at 9:41 AM, Roman Grigoriev <[EMAIL PROTECTED]>
>> wrote:
>>> Thanx Robert for your reply.
>>> With single view I have 50 fps with stereo I have 25 fps. It is very
>>> predictable result.
>>> Event 0.05
>>> Update 1.36 (two Intersense InertiaCube3 sensors)
>>> Cull   5.2 (clouds)
>>> Draw   2.16 (ephemeris,clouds)
>>> GPU      27.2
>>> I simply try to improve it.
>>> I have single 8600GT. But for stereo config I will use double GTX280.
>> Hopes
>>> that It will change situation.
>>> Bye
>>>
>>>
>>> -----Original Message-----
>>> From: [EMAIL PROTECTED]
>>> [mailto:[EMAIL PROTECTED] On Behalf Of Robert
>>> Osfield
>>> Sent: Thursday, December 11, 2008 12:20 PM
>>> To: OpenSceneGraph Users
>>> Subject: Re: [osg-users] RTT and stereo (corrected)
>>>
>>> Hi Roman,
>>>
>>> On Thu, Dec 11, 2008 at 6:57 AM, Roman Grigoriev <[EMAIL PROTECTED]>
>>> wrote:
>>>> So for now I solve problem by doing all postprocess operations for left
>>> and
>>>> right eye and have huge frame drop to 25 fps L
>>>
>>> Stereo rendering normally incurrs a performacne hit, as you are
>>> doubling the amount of work done.  Is ther performance
>>> disproportional?
>>>
>>>> Could someone please give me recommendations what is better render to
> one
>>>> big texture both left and right eye (1600*600) or render to two small
>>>> textures (800*600)?
>>>
>>> Design wise it would be much easier to have one texture pure eye.
>>> Performance wise it probably won't make too much difference as the
>>> bottlenecks aren't likely to be related to setup of FBO's/teuxtures.
>>> You "might" see a performance improvement with using a single texture,
>>> but I doubt it would be worthwhile.
>>>
>>> I'd recommend looking at your wider performance bottlenecks.  What is
>>> your cull/draw costs? Due you have two graphics cards and a multi-core
>>> GPU available?
>>>
>>> Robert.
>>> _______________________________________________
>>> 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
>>
> _______________________________________________
> 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