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

Newegg Daily Deals

Reply
 
Thread Tools
Old 07-25-04, 04:42 AM   #1
bux
Registered User
 
Join Date: Jul 2004
Posts: 2
Default OpenGL Shader Language

Hi!

I saw that the newest driver supports OGSL and I would really like to start doing some shader programming. But I don't know how I should start.
I found a open source "compiler" at 3dlabs, but I have not yet found any examples.

Could anyone point me to a example or a info page (how I can do this on linux)?

// Alexander Bussman
bux is offline   Reply With Quote
Old 07-25-04, 08:09 AM   #2
dulley
Registered User
 
dulley's Avatar
 
Join Date: Sep 2003
Location: Sao Paulo, Brazil
Posts: 23
Default Re: OpenGL Shader Language

Take a look at this post:

http://www.nvnews.net/vbulletin/show...3&postcount=38
__________________
PowerBook G4 12" 1.33 GHz, 1.25 GB (DDR PC2700)
GeForce FX Go5200 64 MB
dulley is offline   Reply With Quote
Old 07-25-04, 08:40 AM   #3
bux
Registered User
 
Join Date: Jul 2004
Posts: 2
Default Re: OpenGL Shader Language

Ok, now... what do I have to do to make it compile?
I only get a very long list with errors and warnings
bux is offline   Reply With Quote
Old 08-04-04, 10:41 PM   #4
dulley
Registered User
 
dulley's Avatar
 
Join Date: Sep 2003
Location: Sao Paulo, Brazil
Posts: 23
Default OpenGL Shading Language in 5 steps

OpenGL Shading Language in 5 steps (Use this tarball: glslang_simple.tar.gz)
----------------------------------

1. Download the driver with GLSL support:
wget -c ftp://download.nvidia.com/XFree86/Li...-6106-pkg0.run

2. Install the driver:
sh NVIDIA-Linux-x86-1.0-6106-pkg0.run --opengl-headers

3. Build and install the shading compiler library (libglslang.so)
cd OpenGLCompilerJuly072004
make && make install
ldconfig
cd ../

4. Compile and run the example program:
make
./simple

5. Read the source code and create your own shaders!
__________________
PowerBook G4 12" 1.33 GHz, 1.25 GB (DDR PC2700)
GeForce FX Go5200 64 MB
dulley is offline   Reply With Quote
Old 08-05-04, 03:23 AM   #5
enodev
Registered User
 
Join Date: Dec 2003
Posts: 2
Default Re: OpenGL Shader Language

So, what's the minimum geforce board you need for this? my 4600 doesn't seem to support GL_ARB_fragment_shader (I'm looking at ogl2brick) . Commenting out the check results in a segfault. Commenting out /fragment/i results in a window with nothing in it... So, what do I need to get this to run?
enodev is offline   Reply With Quote
Old 08-05-04, 08:05 AM   #6
Thunderbird
 
Join Date: Jul 2002
Location: Netherlands, Europe
Posts: 2,105
Default Re: OpenGL Shader Language

If you want to use features not supported on your card you can allways enable geforcefx emulation (perhaps there's nv40 emulation now too). You can enable geforcefx (nv30) emulation using: export __GL_NV30_EMULATE=1

Note that this emulation is quite slow but using it you can get started.
Thunderbird is offline   Reply With Quote
Old 08-05-04, 08:01 PM   #7
FreeCatalonia
Registered User
 
Join Date: Jul 2004
Posts: 19
Default Re: OpenGL Shader Language

The __GL_NV30_EMULATE=1 doesn't work with my gf4 mx and I still get the same errors at load-time. I assume that emulation would be software only, so where's the problem?

Is it possible that the __GL_NV30_EMULATE=1 mode only works with cg programs and not with OpenGL SL?
FreeCatalonia 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
OpenGL book Airstrip1 Software Development 2 08-12-12 08:55 AM
Major WineX prob... I think it has to do with the vidcard... Linewbie NVIDIA Linux 20 10-09-02 09:58 PM
Thoughts on the command line as an interface. lunix Microsoft Windows XP And Vista 10 09-12-02 08:44 PM
linux opengl extension chijacky NVIDIA Linux 5 08-23-02 11:16 AM
Slow OpenGL on 7.3 kl899 NVIDIA Linux 1 08-04-02 07:58 PM

All times are GMT -5. The time now is 07:29 AM.


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