comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: NVidia Quadro4 980 XGL card + IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: NVidia Quadro4 980 XGL card + IDL [message #47246] Thu, 02 February 2006 08:59 Go to next message
Karl Schultz is currently offline  Karl Schultz
Messages: 341
Registered: October 1999
Senior Member
On Thu, 02 Feb 2006 00:01:57 -0800, raval.chintan wrote:

> Dear All,
>
> I am using NVidia Quadro 4 980 XGL. One can visualize stereo images
> using Quad Buffer , available on this card. Proper interface
> (functions) for rendering images using this buffer are given in
> OpenGL.. Quad Buffer includes Left and Right Buffer ,which will be
> rendered one by one.For Visulization of images one needs, shutter
> glasses with infrared emitter to be connected with graphics card.
>
>
> Will it be possible to render an image with use of this buffer on IDL
> Draw widget? or in other way ,Will it be possible call this
> interface(functions) of OpenGL through IDL?

This is not supported in IDL 6.2, nor will it be in 6.3. We're getting
enough requests for it that it may be in a release soon.

Although it is not documented or supported, you can make OpenGL calls from
C-language DLM's if you do things carefully. To do what you want, you'll
probably have to subclass IDLgrView with IDL code where you would override
the Draw method. You would also write a C DLM that calls glDrawBuffer
with GL_BACK_RIGHT.

By the time IDLgrView::Draw is called, the correct GL context is in
place and IDL has already called glDrawBuffer with GL_BACK (implies
GL_LEFT as well). Your new Draw method would call the C DLM code to call
the superclass Draw method, call the C DLM code to set GL_BACK_RIGHT, and
then call the superclass Draw method again.

Presumably, you would jiggle the viewing transform matrix before each call
to the superclass Draw to simulate the eye separation. Finally, there's
probably some call that needs to be made to activate the stereo mode, but
I don't know enough about that yet to do more than mention it here.

I can't say for sure if this will work, but may be worth a try.

> In IDL help i found that IDL uses two type of rendering 1) Hardware
> (OpenGL) 2) Software.
> I also found the difference between hardware and software rendering in
> IDL.

Sorry, I don't know what you are getting at.

Karl
Re: NVidia Quadro4 980 XGL card + IDL [message #47317 is a reply to message #47246] Thu, 02 February 2006 22:22 Go to previous message
raval.chintan is currently offline  raval.chintan
Messages: 54
Registered: May 2005
Member
Karl Schultz wrote:
> On Thu, 02 Feb 2006 00:01:57 -0800, raval.chintan wrote:
>
>> Dear All,
>>
>> I am using NVidia Quadro 4 980 XGL. One can visualize stereo images
>> using Quad Buffer , available on this card. Proper interface
>> (functions) for rendering images using this buffer are given in
>> OpenGL.. Quad Buffer includes Left and Right Buffer ,which will be
>> rendered one by one.For Visulization of images one needs, shutter
>> glasses with infrared emitter to be connected with graphics card.
>>
>>
>> Will it be possible to render an image with use of this buffer on IDL
>> Draw widget? or in other way ,Will it be possible call this
>> interface(functions) of OpenGL through IDL?
>
> This is not supported in IDL 6.2, nor will it be in 6.3. We're getting
> enough requests for it that it may be in a release soon.
>
> Although it is not documented or supported, you can make OpenGL calls from
> C-language DLM's if you do things carefully. To do what you want, you'll
> probably have to subclass IDLgrView with IDL code where you would override
> the Draw method. You would also write a C DLM that calls glDrawBuffer
> with GL_BACK_RIGHT.
>
> By the time IDLgrView::Draw is called, the correct GL context is in
> place and IDL has already called glDrawBuffer with GL_BACK (implies
> GL_LEFT as well). Your new Draw method would call the C DLM code to call
> the superclass Draw method, call the C DLM code to set GL_BACK_RIGHT, and
> then call the superclass Draw method again.


If i am correct with my limited knowledge of IDL, IDLgrView class does
not have the draw
method. IDLgrWindow , IDLgrModel,IDLgrBuffer have draw method. Now the
question comes that which class's draw method i should override.
IDLgrWindow , IDLgrModel or IDLgrBuffer? Where will C dlm render the
Left and right image? Will it be on IDL's window or on C's window?

It would be helpful if you can provide sample code or detailed
explaination of your suggested technique.



>
> Presumably, you would jiggle the viewing transform matrix before each call
> to the superclass Draw to simulate the eye separation. Finally, there's
> probably some call that needs to be made to activate the stereo mode, but
> I don't know enough about that yet to do more than mention it here.
>
> I can't say for sure if this will work, but may be worth a try.
>
>> In IDL help i found that IDL uses two type of rendering 1) Hardware
>> (OpenGL) 2) Software.
>> I also found the difference between hardware and software rendering in
>> IDL.
>
> Sorry, I don't know what you are getting at.

What I meant here is that Quad Buffer rendering is also a type of
hardware rendering and IDL should automatically detect this.


>
> Karl

-Chintan
Re: NVidia Quadro4 980 XGL card + IDL [message #47333 is a reply to message #47246] Thu, 02 February 2006 13:18 Go to previous message
Dick Jackson is currently offline  Dick Jackson
Messages: 347
Registered: August 1998
Senior Member
Hi Chintan,

"Karl Schultz" <k____schultz@rsinc.com> wrote in message
news:pan.2006.02.02.16.58.59.609000@rsinc.com...
> On Thu, 02 Feb 2006 00:01:57 -0800, raval.chintan wrote:
>
>> Dear All,
>>
>> I am using NVidia Quadro 4 980 XGL. One can visualize stereo images
>> using Quad Buffer , available on this card. Proper interface
>> (functions) for rendering images using this buffer are given in
>> OpenGL.. Quad Buffer includes Left and Right Buffer ,which will be
>> rendered one by one.For Visulization of images one needs, shutter
>> glasses with infrared emitter to be connected with graphics card.

Looking at Display Properties for my NVIDIA Quadro FX 1300, it looks like
some graphics cards can support a dozen or more different types of stereo
viewing (red/blue glasses included!). I haven't been able to use these
directly from IDL yet, but Karl's idea below is very promising. (what I
*have* done is figure how to get left-eye view to one monitor, right-eye
view to another, and let some nice hardware get those views to your two
eyes:
http://www.planar.com/Advantages/Innovation/docs/ds-planar-s tereo-mirror.pdf
)

>> Will it be possible to render an image with use of this buffer on IDL
>> Draw widget? or in other way ,Will it be possible call this
>> interface(functions) of OpenGL through IDL?
>
> This is not supported in IDL 6.2, nor will it be in 6.3. We're getting
> enough requests for it that it may be in a release soon.
>
> Although it is not documented or supported, you can make OpenGL calls from
> C-language DLM's if you do things carefully. To do what you want, you'll
> probably have to subclass IDLgrView with IDL code where you would override
> the Draw method. You would also write a C DLM that calls glDrawBuffer
> with GL_BACK_RIGHT.
>
> By the time IDLgrView::Draw is called, the correct GL context is in
> place and IDL has already called glDrawBuffer with GL_BACK (implies
> GL_LEFT as well). Your new Draw method would call the C DLM code to call
> the superclass Draw method, call the C DLM code to set GL_BACK_RIGHT, and
> then call the superclass Draw method again.
>
> Presumably, you would jiggle the viewing transform matrix before each call
> to the superclass Draw to simulate the eye separation. Finally, there's
> probably some call that needs to be made to activate the stereo mode, but
> I don't know enough about that yet to do more than mention it here.
>
> I can't say for sure if this will work, but may be worth a try.

--
Cheers,
--
-Dick

Dick Jackson / dick@d-jackson.com
D-Jackson Software Consulting / http://www.d-jackson.com
Calgary, Alberta, Canada / +1-403-242-7398 / Fax: 241-7392
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Constructive Solid Geometry
Next Topic: Re: Constructive Solid Geometry

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Nov 29 07:46:05 PST 2025

Total time taken to generate the page: 2.24219 seconds