October 18, 2007
Burton Radons wrote:
> Hey guys, I've been fooling around with GLSL recently 

Works well here.

Vendor: 'NVIDIA Corporation'
Renderer: 'GeForce 7600 GT/AGP/SSE/3DNOW!'
Version: '2.1.1'
October 18, 2007
"Burton Radons" <burton-radons@shaw.ca> wrote in message news:ff5ns5$2qb3$1@digitalmars.com...
> Hey guys, I've been fooling around with GLSL recently and realised I could do a Mandelbrot fractal at full frame rate, so I implemented a kind of mini-Ultra Fractal.
>
> It works in single pass, so, uh, save your work before you try it because it just might cause your card to freeze if its GLSL support sucks or it isn't VERY good at branching shaders. If it works on your machine, I'd like to hear of it; if it doesn't, I'd also like to hear of it. For reference, my setup is an NVIDIA 8800 GTX (beta drivers) on Windows Vista with an Intel Dual Core 2.66GHz processor. I can confirm that it doesn't work on an ATI Radeon 9800 on Windows XP.
>
> The interface is exclusively mouse based. Left mouse button to zoom in, right mouse button to zoom out, middle mouse button to scroll. Using the mouse wheel puts you in variable mode. The mouse wheel selects the current variable, dragging the left mouse button changes it (enumerations and floats are changed by dragging to the right or left), clicking the middle mouse button resets to the initial value, and right clicking returns to zoom/scroll mode.
>
> You can modify or add to the formulas while it's running, look in the subdirectories.
>
> http://members.shaw.ca/burton-radons/GPUFractal-1.7z (binary, 204KB)
> http://members.shaw.ca/burton-radons/GPUFractal-1-source.7z (source,
> 1,360KB)
>
> The source is pretty shit and will require slight modification of the makefile's paths to compile. I use D v1 and bud.

Works great, GeForce 8600.  I zoomed in really far and saw that fractals really _don't_ go on forever!  I knew it!

;)


October 18, 2007
Burton Radons wrote:
> Hey guys, I've been fooling around with GLSL recently

Vendor: 'ATI Technologies Inc.'
Renderer: 'RADEON X800 Series x86/MMX/3DNow!/SSE2'
Version: '2.0.6847 WinXP Release'

Hogs CPU, does nothing. If I #define ATI_9800 it draws what looks like just a circle.

-- 
E-mail address: matti.niemenmaa+news, domain is iki (DOT) fi
October 18, 2007
Reply to Chad,

> Vendor: 'ATI Technologies Inc.'
> Renderer: 'ATI MOBILITY RADEON X700 x86/MMX/3DNow!/SSE2'
> Version: '2.0.6645 WinXP Release'
> When I run it, the window comes up but doesn't display anything, well
> nothing besides what was underneath the window before.  It seems to be
> hung.  My computer heats up and the fan starts working really hard.
> 

same for me but

MOBILITY RADEON 9700 x86/SSE2
2.0.5012


October 18, 2007
Matti Niemenmaa Wrote:

> Burton Radons wrote:
> > Hey guys, I've been fooling around with GLSL recently
> 
> Vendor: 'ATI Technologies Inc.'
> Renderer: 'RADEON X800 Series x86/MMX/3DNow!/SSE2'
> Version: '2.0.6847 WinXP Release'
> 
> Hogs CPU, does nothing. If I #define ATI_9800 it draws what looks like just a circle.

ATI_9800 was a hack to allow me to test the compiler on that computer; nothing from 9800 or before can work, it's missing features. Try defining ATI_X850 instead. The next release defines ATI_R420 so that I can select that whole chipset, but again, it's not the target so it won't really work great.
October 19, 2007
Burton Radons wrote:
> Matti Niemenmaa Wrote:
>> Hogs CPU, does nothing. If I #define ATI_9800 it draws what looks like just a circle.
> 
> ATI_9800 was a hack to allow me to test the compiler on that computer; nothing from 9800 or before can work, it's missing features. Try defining ATI_X850 instead. The next release defines ATI_R420 so that I can select that whole chipset, but again, it's not the target so it won't really work great.

Should have been more specific: for all cases except #define ATI_9800, it appears to do nothing - including with #define ATI_X850.

-- 
E-mail address: matti.niemenmaa+news, domain is iki (DOT) fi
October 19, 2007
BCS Wrote:

> Reply to Chad,
> 
> > Vendor: 'ATI Technologies Inc.'
> > Renderer: 'ATI MOBILITY RADEON X700 x86/MMX/3DNow!/SSE2'
> > Version: '2.0.6645 WinXP Release'
> > When I run it, the window comes up but doesn't display anything, well
> > nothing besides what was underneath the window before.  It seems to be
> > hung.  My computer heats up and the fan starts working really hard.
> > 
> 
> same for me but
> 
> MOBILITY RADEON 9700 x86/SSE2
> 2.0.5012

Too old! You win the oldest driver version contest too. ;) The ATI functionality seems to be:

R520 (X1300-X1950) - Should work!
R420 (X700-X850) - Barely works with a hacked limited path.
R300 (9500-9800) - Hah! No way.
R200, R100, Rage, Mach - Err, no.

The GeForce functionality seems to be:

GeForce 8 - Yayyay!
GeForce 7 - Yay!
GeForce 6 - Dunno?
GeForce 1-5 - Guessing no.

Cg will be an option in the next release, once I figure out what arbitrary restrictions cause it to stop producing images.
October 19, 2007
Jascha Wetzel wrote:
> 
> 
> Vendor: 'NVIDIA Corporation'
> Renderer: 'GeForce 7600 GS/PCI/SSE2'
> Version: '2.0.3'
> Error: Could not successfully link program: Fragment info
> -------------
> (69) : error C5051: profile does not support conditional returns
> 
> 

I'm having that same error.

-- 
Bruno Medeiros - MSc in CS/E student
http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#D
October 19, 2007
Bruno Medeiros wrote:
> Jascha Wetzel wrote:
>>
>>
>> Vendor: 'NVIDIA Corporation'
>> Renderer: 'GeForce 7600 GS/PCI/SSE2'
>> Version: '2.0.3'
>> Error: Could not successfully link program: Fragment info
>> -------------
>> (69) : error C5051: profile does not support conditional returns
>>
>>
> 
> I'm having that same error.
> 

I think you just need to install a more recent driver.

--bb
October 19, 2007
Bill Baxter Wrote:

> Bruno Medeiros wrote:
> > Jascha Wetzel wrote:
> >>
> >>
> >> Vendor: 'NVIDIA Corporation'
> >> Renderer: 'GeForce 7600 GS/PCI/SSE2'
> >> Version: '2.0.3'
> >> Error: Could not successfully link program: Fragment info
> >> -------------
> >> (69) : error C5051: profile does not support conditional returns
> >>
> >>
> > 
> > I'm having that same error.
> > 
> 
> I think you just need to install a more recent driver.

Yuppers, the current driver version is 2.1.1. I've put a check in that'll very bluntly detect this by assuming that more recent drivers support more recent GLSL versions.

This part actually won't change with Cg because if the GLSL part of the driver can't handle branching, then it surely won't support the newer fragment/vertex program profiles which can handle it either.