|
|
#1 | |
|
Registered User
Join Date: Jul 2004
Posts: 2
|
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 |
|
|
|
|
|
|
#2 | |
|
Registered User
Join Date: Sep 2003
Location: Sao Paulo, Brazil
Posts: 23
|
__________________
PowerBook G4 12" 1.33 GHz, 1.25 GB (DDR PC2700) GeForce FX Go5200 64 MB |
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Jul 2004
Posts: 2
|
Ok, now... what do I have to do to make it compile?
I only get a very long list with errors and warnings ![]() |
|
|
|
|
|
#4 | |
|
Registered User
Join Date: Sep 2003
Location: Sao Paulo, Brazil
Posts: 23
|
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 |
|
|
|
|
|
|
#5 |
|
Registered User
Join Date: Dec 2003
Posts: 2
|
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?
|
|
|
|
|
|
#6 | |
|
Join Date: Jul 2002
Location: Netherlands, Europe
Posts: 2,105
|
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. |
|
|
|
|
|
|
#7 |
|
Registered User
Join Date: Jul 2004
Posts: 19
|
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? |
|
|
|
![]() |
| Thread Tools | |
|
|
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 |