flat assembler
Message board for the users of flat assembler.

Index > Linux > OpenGL Mandelbrot renderer

Author
Thread Post new topic Reply to topic
randall



Joined: 03 Dec 2011
Posts: 155
Location: Poland
randall 20 Mar 2012, 17:54
I have written real-time Mandelbrot renderer using OpenGL. It is NVIDIA only program and requires GeForce 8xxx or newer. It is interactive program you can move around and zoom to explore different areas of the fractal (A,Z keys to zoom/unzoom, arrow keys to move the camera). I hope it will be useful for someone.

Thanks.


Description:
Download
Filename: mandelbrot_ogl.asm
Filesize: 26.74 KB
Downloaded: 748 Time(s)

Post 20 Mar 2012, 17:54
View user's profile Send private message Visit poster's website Reply with quote
tthsqe



Joined: 20 May 2009
Posts: 767
tthsqe 20 Mar 2012, 18:13
Yes. This is very nice!
Could you explain exactaly what you are doing?
And, possibly write a windows verison as well?
I tink I could learn a bunch from this.......
Post 20 Mar 2012, 18:13
View user's profile Send private message Reply with quote
randall



Joined: 03 Dec 2011
Posts: 155
Location: Poland
randall 21 Mar 2012, 09:18
tthsqe wrote:
Yes. This is very nice!
Could you explain exactaly what you are doing?
And, possibly write a windows verison as well?
I tink I could learn a bunch from this.......


What exactly would you like to know?
I don't use windows, sorry.
Post 21 Mar 2012, 09:18
View user's profile Send private message Visit poster's website Reply with quote
tthsqe



Joined: 20 May 2009
Posts: 767
tthsqe 21 Mar 2012, 09:53
Well, I would like to know:
- how to use opengl extensions
- how to use custom shaders
I guess I'll try to reproduce your code in windows and see what happens...
Post 21 Mar 2012, 09:53
View user's profile Send private message Reply with quote
randall



Joined: 03 Dec 2011
Posts: 155
Location: Poland
randall 21 Mar 2012, 10:10
To use custom assembly shaders on NVIDIA hardware read this:
http://www.opengl.org/registry/specs/NV/gpu_program4.txt

First thing you need to do is to create window and OpenGL context. I use SDL 1.2 library for this (it is cross-platform lib so you can also use it on windows).

After you created context you can load OpenGL extensions with SDL_GL_GetProcAddress function.
Post 21 Mar 2012, 10:10
View user's profile Send private message Visit poster's website Reply with quote
gunblade



Joined: 19 Feb 2004
Posts: 209
gunblade 25 Mar 2012, 11:09
Heh, thats pretty neat, didnt know OpenGL provided the option to run code on the GPU..

It looks like a pre-existing version of what is now CUDA (NVIDIA) DirectCompute (AMD/ATI) or OpenCL (both)..

If your gfx card is CUDA-capable, you should maybe look at tthsqe's code for CUDA here:
http://board.flatassembler.net/topic.php?t=13293

Its windows-only, but I ported it to linux (64-bit) near the bottom of the thread, so you could try that one, and maybe adapt your mandrelbot code to it?
Post 25 Mar 2012, 11:09
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.