Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 04-09-06, 03:02 PM   #1
MacSlow
Registered User
 
MacSlow's Avatar
 
Join Date: Jul 2002
Location: Aachen, Germany
Posts: 76
Send a message via ICQ to MacSlow Send a message via AIM to MacSlow Send a message via MSN to MacSlow
Default The new 1.0-8756 allows some stylish way to present GL-apps

Greetings everybody!

Even without Xgl, AIGLX, compiz and xwinwrap one can now write some funky OpenGL-apps. Take a look a my first try here (video-screencast and sourcecode available).

Share and enjoy!

Best regards...

MacSlow
__________________
First they ignore you...
then they laugh at you...
then they fight you...
then you win!
(Gandhi)
MacSlow is offline   Reply With Quote
Old 04-09-06, 04:51 PM   #2
energyman76b
Registered User
 
Join Date: Dec 2002
Location: Clausthal/Germany
Posts: 1,104
Default Re: The new 1.0-8756 allows some stylish way to present GL-apps

Beim Laden von http://macslow.thepimp.net/?p=40 ist folgender Fehler aufgetreten:
Unbekannter Rechner macslow.thepimp.net

are you sure that the url is correct?
energyman76b is offline   Reply With Quote
Old 04-09-06, 05:05 PM   #3
MacSlow
Registered User
 
MacSlow's Avatar
 
Join Date: Jul 2002
Location: Aachen, Germany
Posts: 76
Send a message via ICQ to MacSlow Send a message via AIM to MacSlow Send a message via MSN to MacSlow
Default Re: The new 1.0-8756 allows some stylish way to present GL-apps

Quote:
Originally Posted by energyman76b
Beim Laden von http://macslow.thepimp.net/?p=40 ist folgender Fehler aufgetreten:
Unbekannter Rechner macslow.thepimp.net

are you sure that the url is correct?
The URL is correct. Damn the server seems to be dead or something. I cannot do anything about this right now... crap! Sorry for the inconvenience!

EDIT: Ah, should be back up now.

Best regards...

MacSlow
__________________
First they ignore you...
then they laugh at you...
then they fight you...
then you win!
(Gandhi)
MacSlow is offline   Reply With Quote
Old 04-09-06, 05:17 PM   #4
energyman76b
Registered User
 
Join Date: Dec 2002
Location: Clausthal/Germany
Posts: 1,104
Default Re: The new 1.0-8756 allows some stylish way to present GL-apps

slashdot effect?

energyman76b is offline   Reply With Quote
Old 04-09-06, 05:36 PM   #5
MacSlow
Registered User
 
MacSlow's Avatar
 
Join Date: Jul 2002
Location: Aachen, Germany
Posts: 76
Send a message via ICQ to MacSlow Send a message via AIM to MacSlow Send a message via MSN to MacSlow
Default Re: The new 1.0-8756 allows some stylish way to present GL-apps

Quote:
Originally Posted by energyman76b
slashdot effect?

How so? I surely didn't supply the link to my blog about this to /. Also the logs currently don't suggest that anyone else did. Besides I don't think it's that news-worthy to be posted on /.

Best regards...

MacSlow
__________________
First they ignore you...
then they laugh at you...
then they fight you...
then you win!
(Gandhi)
MacSlow is offline   Reply With Quote
Old 04-09-06, 06:09 PM   #6
klaus33
Registered User
 
Join Date: Feb 2005
Posts: 3
Default Re: The new 1.0-8756 allows some stylish way to present GL-apps

doesn't work for me :-(

$ cc -Wall -g -DXK_MISCELLANY -lXi -lGL -lGLU -lXrender -lglut -L/usr/X11R6/lib rgba-glx.c -o rgba-glx
$ ./rgba-glx
Segmentation fault
$ gdb ./rgba-glx
[...]
(gdb) run
[...]
Program received signal SIGSEGV, Segmentation fault.
0x402c0af7 in XCreateWindow () from /usr/X11R6/lib/libX11.so.6
(gdb) backtrace
#0 0x402c0af7 in XCreateWindow () from /usr/X11R6/lib/libX11.so.6
#1 0x080496a1 in main (argc=1, argv=0xbffff144) at rgba-glx.c:287

any idea?

---
klaus
klaus33 is offline   Reply With Quote
Old 04-09-06, 07:21 PM   #7
MacSlow
Registered User
 
MacSlow's Avatar
 
Join Date: Jul 2002
Location: Aachen, Germany
Posts: 76
Send a message via ICQ to MacSlow Send a message via AIM to MacSlow Send a message via MSN to MacSlow
Default Re: The new 1.0-8756 allows some stylish way to present GL-apps

Quote:
Originally Posted by klaus33
...
$ cc -Wall -g -DXK_MISCELLANY -lXi -lGL -lGLU -lXrender -lglut -L/usr/X11R6/lib rgba-glx.c -o rgba-glx
...
You had to add -L/usr/X11R6/lib ?! Hm... what version of X11 are you running? Post the output of:

xdpyinfo | grep -i vendor

Quote:
Originally Posted by klaus33
... Program received signal SIGSEGV, Segmentation fault.
0x402c0af7 in XCreateWindow () from /usr/X11R6/lib/libX11.so.6
(gdb) backtrace
#0 0x402c0af7 in XCreateWindow () from /usr/X11R6/lib/libX11.so.6
...
My first guess into the blue is that you're running some setup that fails to get a Render-compatible GLX-visual. At the lines 249 to 269 I was lazy and don't test for success regarding the Render-compatible GLX-visual and eject on failure to acquire this. So pVisInfo gets freed any accidently dereferenced in the call to XCreateWindow(). I'll fix that and upload the corrected version. BTW, do you get the line "Strike, found a GLX visual with alpha-support!" on the console?

Just a sanity-check... you did read my comments in the code (right at the top), therefore are the 1.0-8756 nvidia-driver, enabled "Composite" and "AddARGBGLXVisuals" in your /etc/X11/xorg.conf and have xcompmgr running?

BTW, I only run all this with metacity (from Gnome 2.14) and fire up xcompmgr with this command:

xcompmgr -cCfF -r15 -o.75 -l-20 -t-17 -D6

Some people already reported that not all window-managers get well along with a composited environment.

Best regards...

MacSlow
__________________
First they ignore you...
then they laugh at you...
then they fight you...
then you win!
(Gandhi)
MacSlow is offline   Reply With Quote
Old 04-09-06, 08:13 PM   #8
MacSlow
Registered User
 
MacSlow's Avatar
 
Join Date: Jul 2002
Location: Aachen, Germany
Posts: 76
Send a message via ICQ to MacSlow Send a message via AIM to MacSlow Send a message via MSN to MacSlow
Default Re: The new 1.0-8756 allows some stylish way to present GL-apps

Updated the source.

Best regards...

MacSlow
__________________
First they ignore you...
then they laugh at you...
then they fight you...
then you win!
(Gandhi)
MacSlow is offline   Reply With Quote

Old 04-10-06, 03:40 AM   #9
klaus33
Registered User
 
Join Date: Feb 2005
Posts: 3
Default Re: The new 1.0-8756 allows some stylish way to present GL-apps

hi,
thanks for the response.

my x version is 6.9.
$ xdpyinfo | grep -i vendor
vendor string: The X.Org Foundation
vendor release number: 60900000


Quote:
Originally Posted by MacSlow
You had to add -L/usr/X11R6/lib ?! Hm... what version of
xdpyinfo | grep -i vendor

My first guess into the blue is that you're running some setup that fails to get a Render-compatible GLX-visual. At the lines 249 to 269 I was lazy and don't test for success regarding the Render-compatible GLX-visual and eject on failure to acquire this. So pVisInfo gets freed any accidently dereferenced in the call to XCreateWindow(). I'll fix that and upload the corrected version. BTW, do you get the line "Strike, found a GLX visual with alpha-support!" on the console?

Just a sanity-check... you did read my comments in the code (right at the top), therefore are the 1.0-8756 nvidia-driver, enabled "Composite" and "AddARGBGLXVisuals" in your /etc/X11/xorg.conf and have xcompmgr running?
ok. i checked my config and the line
Option "AddARGBGLXVisuals" "true"
is commented out ...
so ARGB glx visuals are not enabled in my config.
i guessed to get an X11 error (BadMatch or so), or a NULL window from
XCreateWindow(), but not a segfault.

the compmgr is the 'builtin' kde composite manager.

sorry for the noise
---
klaus
klaus33 is offline   Reply With Quote
Old 04-10-06, 04:02 AM   #10
MacSlow
Registered User
 
MacSlow's Avatar
 
Join Date: Jul 2002
Location: Aachen, Germany
Posts: 76
Send a message via ICQ to MacSlow Send a message via AIM to MacSlow Send a message via MSN to MacSlow
Default Re: The new 1.0-8756 allows some stylish way to present GL-apps

Quote:
Originally Posted by klaus33
... i guessed to get an X11 error (BadMatch or so), or a NULL window from
XCreateWindow(), but not a segfault.

the compmgr is the 'builtin' kde composite manager.

sorry for the noise
So, does the updated source work for you or not? This is not clear to me from your reply.

Best regards...

MacSlow
__________________
First they ignore you...
then they laugh at you...
then they fight you...
then you win!
(Gandhi)
MacSlow is offline   Reply With Quote
Old 04-10-06, 04:44 AM   #11
klaus33
Registered User
 
Join Date: Feb 2005
Posts: 3
Default Re: The new 1.0-8756 allows some stylish way to present GL-apps

Quote:
Originally Posted by MacSlow
So, does the updated source work for you or not? This is not clear to me from your reply.
MacSlow
i've just tried it with argb visuals enabled and it works. looks cool
without argb visuals it fails (with the error msg from line 312).

can you explain me why you don't need the -L/usr/X11/lib

thanks, klaus
klaus33 is offline   Reply With Quote
Old 04-10-06, 05:20 AM   #12
AaronP
NVIDIA Corporation
 
AaronP's Avatar
 
Join Date: Mar 2005
Posts: 2,487
Default Re: The new 1.0-8756 allows some stylish way to present GL-apps

I was going to post a thread about ARGB visuals, but MacSlow beat me to it! I modified ATI's "fgl_glxgears" demo to add support for these new visuals. The source code, as well as x86 and x86_64 builds of the app, are available at http://people.freedesktop.org/~aplat...ears32.tar.bz2. Here are the requirements for running this sort of program, in case anyone is having trouble:
  1. X.org 6.9 or higher.
  2. Version 1.0-8756 of the NVIDIA driver.
  3. The Composite extension and a composite manager.
  4. ARGB GLX visuals. Use "nvidia-xconfig --composite --add-argb-glx-visuals". You can tell if these are working if glxinfo shows several entries with 32 in the second column.
  5. A window manager that supports translucent windows. KDE is known to work.

Last edited by AaronP; 04-10-06 at 05:36 AM. Reason: Use [LIST]
AaronP is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Great apps for Release Preview: third-party Metro apps in Windows 8 News Archived News Items 0 06-02-12 03:10 AM

All times are GMT -5. The time now is 05:01 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.