HW Stereo emulation wrapper library f... Log Out | Topics | Search
Moderators | Register | Edit Profile

stereo3d.com webboard » 3D News - announce and discuss new products & services here » HW Stereo emulation wrapper library for Linux « Previous Next »

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

Flavio Villanustre

Rating: N/A
Votes: 0 (Vote!)

Posted on Sunday, December 23, 2001 - 5:52 pm:   Edit PostDelete PostView Post/Check IPPrint Post

I've developed a small emulation layer that could allow running unmodified hardware based stereo binary only applications without quadbuffering drivers under linux.It converts hw based stereo into interlaced mode stereo that can be seen with standard LCD glasses.

It fools binaries into thinking that hw stereo is available while translates it into interlaced mode stereo using stencils. I works for many glut based stereo applications (I've placed some test utilities on my website). There's no performance penalty.

Just download it from http://geminis.myip.org, compile it using: "gcc -o interlace_preload.so interlace_preload.c -shared" and use it as a preload library with: "LD_PRELOAD=./interlace_preload.so application params"

Please, send me your feedback.

Flavio.
Top of pagePrevious messageNext messageBottom of page Link to this message

M.H.

Rating: N/A
Votes: 0 (Vote!)

Posted on Monday, December 24, 2001 - 4:43 pm:   Edit PostDelete PostView Post/Check IPPrint Post

I have studied this code. It is an excelent idea
for all UNIX/Linux based machines in combination with line-blanking HW or interlaced screen mode.
It will be useful if somebody could write na OpenGL .dll wraper for PC as well besed on this idea . I do not have unfortunately enought time nor enought .dll experiences to that ...
Michal Husak
Top of pagePrevious messageNext messageBottom of page Link to this message

Bill Saunders

Rating: N/A
Votes: 0 (Vote!)

Posted on Saturday, January 05, 2002 - 2:37 pm:   Edit PostDelete PostView Post/Check IPPrint Post

Hello,
Sounds like a great idea, I'd love to get it to work. Does it require OpenGL with Quadbufffering? I have an older GeForce 2MX card not the Quadra. Anyway here's what I get:

cat stereoize

#!/bin/sh
export LD_PRELOAD="/root/d2/graphics/interlace/interlace_preload.so $1"
$1
unset LD_PRELOAD

(doesnt pass arguments but should do the trick)

cd into tests

../stereoize ./pulsar
=>
../stereoize: line 4: 3503 Segmentation fault (core dumped) $1

(even without using my script I get the core dump)

Using:
XFree86 4.1.0, patch level 17mdk
Mandrake 8.1
NVIDIA_kernel-1.0-1541 drivers (might be newer ones but I havent checked)
Libraries:
libGLcore.so.1 -> libGLcore.so.1.0.1541
libGL.so.1 -> libGL.so.1.0.1541
libGL.so.1 -> libGL.so.1.2
libGLU.so.1 -> libGLU.so.1.1.030401
libglut.so.3 -> libglut.so.3.7.0
Not sure on where I got the Glut version...where did you get yours?

Sounds like a really cool program....
Bill
Top of pagePrevious messageNext messageBottom of page Link to this message

flavio

Rating: N/A
Votes: 0 (Vote!)

Posted on Sunday, January 13, 2002 - 2:48 pm:   Edit PostDelete PostView Post/Check IPPrint Post

Now we have a better working prototype at http://stereogl.sourceforge.net CVS. New exciting modes :-) are supported:

Traditional horizontally interlaced mode.
New vertically interlaced mode (for some 3D displays)
Above-below mode (for vert sync doublers)
Anaglyph mode

And F12 key for swapping between Stereo and Mono modes.

Regards,

Flavio Villanustre
Top of pagePrevious messageNext messageBottom of page Link to this message

M.H.

Rating: N/A
Votes: 0 (Vote!)

Posted on Sunday, January 13, 2002 - 8:17 pm:   Edit PostDelete PostView Post/Check IPPrint Post

I have partialy ported the Flavio code from
Linux back into Windows in the form of
modified opengl32.dll witch add stereoscopy
to any opengl implementation preserving HW
acceleration.

Wrapping only to horizontal and vertical
interlaced implemented now (no anaglyph
or above/below) ....

If somebody is interesting in cooperation
on the Winodows version let me know (no
beta testing yet, crashes horrible with
Quake3 in stereo now :-) ). Deep experiences with OpenGl unfortunately nessesery.
Top of pagePrevious messageNext messageBottom of page Link to this message

Maart

Rating: N/A
Votes: 0 (Vote!)

Posted on Sunday, January 13, 2002 - 8:38 pm:   Edit PostDelete PostView Post/Check IPPrint Post

Could a windows version of this program be used with quadro boards to get more support from games and apps?

Maart
Top of pagePrevious messageNext messageBottom of page Link to this message

flavio

Rating: N/A
Votes: 0 (Vote!)

Posted on Sunday, January 13, 2002 - 11:19 pm:   Edit PostDelete PostView Post/Check IPPrint Post

I'm afraid that making mono apps display in stereo mode is still not possible with stereogl Maart (if that's what you mean). However, it may be theoretically done. But that should imply recording opengl calls and using standard techniques to translate them into right and left buffers. That would be similiar to what NVidia does for their stereo enabled windows drivers.

Why couldn't you use Nvidia stereo enabled drivers for that purpose?
OTOH, quadro boards support native quadbuffered stereo under Windows so normal stereo enabled applications will run smoothly on them.

Regards,

Flavio Villanustre
Top of pagePrevious messageNext messageBottom of page Link to this message

Anonymous

Rating: N/A
Votes: 0 (Vote!)

Posted on Monday, January 14, 2002 - 7:32 pm:   Edit PostDelete PostView Post/Check IPPrint Post

Some test apps, w&w/o source:

http://www.stereographics.com/utilities/redblue.zip

http://www.stereographics.com/utilities/morph.zip

http://http.stereographics.com/utilities/scrsave.zip
Top of pagePrevious messageNext messageBottom of page Link to this message

M.H.

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, January 15, 2002 - 10:27 am:   Edit PostDelete PostView Post/Check IPPrint Post

Maart:
It can add interlaced, vertical interlaced,
above/below, anaglyph to any graphic card.

But it is targeted to aplication witch already
calculate the stereoscopic scene, from games:
Quake2, Quake3,Sin.

Support for non-stereoscopic aplication is in principle possible by commands buffering,
viewport changing, forcing double rendering.
But it is a bit more difficul than the existing
project.
Top of pagePrevious messageNext messageBottom of page Link to this message

Maart

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, January 15, 2002 - 9:53 pm:   Edit PostDelete PostView Post/Check IPPrint Post

viewport changing sounds interesting, could anything like caveut be done?

Maart
Top of pagePrevious messageNext messageBottom of page Link to this message

M.H.

Rating: N/A
Votes: 0 (Vote!)

Posted on Wednesday, January 16, 2002 - 9:29 am:   Edit PostDelete PostView Post/Check IPPrint Post

Maart: if you buffer the scene drawing coammand, you have full control about the viewport. In principle it is possible to write CAVE wrapers for PC games in this way ... Interesting idea ...
Top of pagePrevious messageNext messageBottom of page Link to this message

Maart

Rating: N/A
Votes: 0 (Vote!)

Posted on Wednesday, January 16, 2002 - 11:22 am:   Edit PostDelete PostView Post/Check IPPrint Post

If you think this would be realy possible, My quaestion is: How difficult would this be? I'm not a programmer and have no idea about what is needed to program such a wrapper. I'm building a cave like display with UTcave at the moment, but it would be awesome to get support for more programs. A wrapper for opengl or direct3d programs would be a perfect sollution.
MH: Would you be able to program such a wrapper?

Maart

Maart
Top of pagePrevious messageNext messageBottom of page Link to this message

M.H.

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, January 17, 2002 - 10:10 am:   Edit PostDelete PostView Post/Check IPPrint Post

I am familaiar only with the OpenGl problem.
The dificulty depends totaly on the wraped
application. Some sort of instruction
couls not be easy wrpaed at all ...

I do know how to encode something like that,
but I must focuse on project for witch I am payed
now.

The people from VRStandard probebaly have
solution for the D3D wraping.
You shuld study the WireGL project to catch
how OpenGl wraping - rendering redistribution
can work.
Top of pagePrevious messageNext messageBottom of page Link to this message

Anonymous

Rating: N/A
Votes: 0 (Vote!)

Posted on Wednesday, January 30, 2002 - 3:18 pm:   Edit PostDelete PostView Post/Check IPPrint Post

Does the WireGL project offer anything for stereoscopy? Wrapping for non-stereo support or splitting the left/right images to 2 different computers?
Top of pagePrevious messageNext messageBottom of page Link to this message

Anonymous

Rating: N/A
Votes: 0 (Vote!)

Posted on Wednesday, January 30, 2002 - 3:33 pm:   Edit PostDelete PostView Post/Check IPPrint Post

If you make a proper configuration of WireGL,
it can do what you want (e.g. CAVE like randering)

Add Your Message Here
Post:
Bold text Italics Underline Create a hyperlink Insert a clipart image

Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action:

Topics | Last Day | Last Week | Tree View | Search | User List | Help/Instructions | Program Credits Administration