About me

Vladimir Nabokov

Books
Programming
Biochemistry
Aim | Communicate

Search
 


 

 

     
 
 

     
One of my first forrays into the elliptical world of hi-res graphical programming - click to download this early demo
 
 
     

Smooth sphere drawer

This is one of my earlier forrays into the world of high resolution graphical programming, specifically in SVGA. I constructed shortly after the marathon formulation of my SVGA graphical engine, written purely in assembler. To take advantage of the reduced moiré effect, I wrote a simple look-up table based circle drawing routine and used it to generate what appears to be a supernaturally soft sphere. It may be an extremely simple program, and the product of around 20 minutes work, but it demonstrates the precision of the graphical engine, as well as its speed, and allowed me to fully appreciate the power of the assembly routines I had created. The circle drawing routine is not without its merits also; although it's decidedly memory hungry for such a simple rotuine, and certainly could be optimised for inclusion in a larger high-level graphics library. I have a strange affection for this little demo-it may not be particularly enteraining, but the memory of the completion of the graphics library will always render it nostalgic. I would suggest you take a look at the source code if you're interested in how to implement the methods in the SVGA graphics library, or if, for some bizaare reason, you're stuck as to how to practically assemble a circle drawing routine. Hell, you might just like circles like myself. Anyhow, demo and source code can be downloaded below.

Download 'Smooth sphere' demo (23 Kb, zipped) | Back to graphical trinkets

 
 
Letters from Terra | Updated 15th December 2004 | By Jonathan Ayling