Trying out some old programs from QB45.org
#1
These are programs from the (previously) "QB45.org" site that I find particularly interesting.  In the BAM version of the source code, you'll find the details of the original source code that you can grab for QB64pe. 

From "Graphics Demos" file category:

(More to come from the qb45.org site.)
Reply
#2
I just published "Chrome Rotating Disc", which increments the starting angle in each loop.

This eliminates the line we see in "Blue Rotating Disc" where the drawing angle ends at the same spot in each loop.

Compare the difference between the two programs by scrolling the web pages down to see the source code.
Reply
#3
Added "Rotating Parallel Planes".

It is a mod of a rotating square created with points at every x,y,z.  I found the square too hard to see from all the points, so  I changed it to have just three "slices" of points on the two outer points on the x axis and the mid points on the x axis.

And I gave the three slices (or panes) different colours to distinguish them.
Reply
#4
(01-15-2023, 05:51 AM)CharlieJV Wrote: Added "Rotating Parallel Planes".

It is a mod of a rotating square created with points at every x,y,z.  I found the square too hard to see from all the points, so  I changed it to have just three "slices" of points on the two outer points on the x axis and the mid points on the x axis.

And I gave the three slices (or panes) different colours to distinguish them.

Looks like you are a step away from a rotating cube. In some ways this might be harder, maybe a Rotating Sierpinski sponge?
https://en.wikipedia.org/wiki/Menger_sponge
b = b + ...
Reply
#5
(01-15-2023, 05:47 PM)bplus Wrote:
(01-15-2023, 05:51 AM)CharlieJV Wrote: Added "Rotating Parallel Planes".

It is a mod of a rotating square created with points at every x,y,z.  I found the square too hard to see from all the points, so  I changed it to have just three "slices" of points on the two outer points on the x axis and the mid points on the x axis.

And I gave the three slices (or panes) different colours to distinguish them.

Looks like you are a step away from a rotating cube. In some ways this might be harder, maybe a Rotating Sierpinski sponge?
https://en.wikipedia.org/wiki/Menger_sponge

The original code was a cube, but without the lines.  Rather a bunch of spaced out dots on the x, y, and z axes.  So many dots that it made it hard to see the cube.

A cube would be easy.  Just skip all of the dots instead of except the ones in the corners, then draw the lines between the corners.

The menger sponge, that would be a major jump for my abilities.

Right now, I'm kind of thinking a mod that rotates the planes via mouse position or clicks.  Baby steps ...
Reply
#6
(01-14-2023, 04:09 AM)CharlieJV Wrote: From "Graphics Demos" file category:


(More to come from the qb45.org site.)

Added "Funky Green Light Halos", part of testing PALETTE, _RGB2BGR, and 256 color attributes for Screen mode 13 seeded with EGA 64.
Reply
#7
Wow! I like Spiral and Vortex, Floor map pretty good too. So little code Smile
b = b + ...
Reply
#8
(01-21-2023, 04:05 AM)bplus Wrote: Wow! I like Spiral and Vortex, Floor map pretty good too. So little code Smile

Yeah, right?  I'm getting a kick going through all of these short programs in "9liners.zip" ( https://qb45.org/download.php?id=1076 ) and tweaking the ones I really like (first trying them in QB64) to get them working in BAM.
Reply
#9
Added to the list in the OP:
  • The Waves
  • The Lens
  • Screen Painter
  • Line Circle Thing
  • Gobs of Dripping Paint
  • Lightmapping (I find this one particularly cool)
Reply
#10
Added:

Reply




Users browsing this thread: 12 Guest(s)