Qbasicnews.com

Full Version: Quadric shapes in Hi-Res raytracing validated
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I finally made it ! It took a long time, but I had first to build a 4th degree equations solver, then to switch to double precision calculations, then to correct the cosine in QB, and finally had to integrate a dynamic pixel filter to correct the pixels in error during plotting (which is made in SVGA 16.7 million colours mode with the TC-Lib). I started mapping fractals on these shapes today...

All that stuff, along with the complete documentation of the TC-Lib, will be posted soon on the Mandelbrot Dazibao, with a Hi-Res raytracing pictures gallery...

[Image: Tclib.jpg][/img]
this in qb? oooh *faints*
Yes, that was with QB...

My first goal was to plot the Moebius strip : I first thought it was a quadric, because I made a mistake in the equation... Big Grin

In fact, the moebius strip polynomial form is a 12th degree equation : it is not solvable via a straight algorithm.

The initial equations are:

x=(r+l*cos(a/2))*cos(a)
y=(r+l*cos(a/2))*sin(a)
z=l*sin(a/2)

I managed to find a way to solve that, but I still have to program that...

As for now, I already plotted a classical Torus stamped with Mandelbrot Sets around the shape... the project being to plot a Moebius strip with Julia Sets, interleaved with a torus with Mandelbrot sets.

I will also try bumping techniques and transparency on shapes, but days are only 24h long :wink:
Hand me a Kleenex I'm drewling! :o
Babelfish does know the verb drewl, but I guess it's something like crying ? Just because you use a Trademark to describe your reaction :rotfl:
You should use the term "disposable paper handkerchief" to tell about your moods.

Hey let's be serious, a couple of seconds... The classical mouse interrupts don't work with the VESA modes Cry
The question is :

What can I use to integrate the mouse in the TC-Lib ?
a sprite blitter and a double buffer *duh duh, DA!*