Recent

Author Topic: Rotating Sierpinski 3D Tetrahedron (Also done with GL thanks to Gigatron)  (Read 930 times)

Boleeman

  • Hero Member
  • *****
  • Posts: 1158
A rotating Sierpinski Tetrahedron

Used Tbgrabmp. Now also done in GL (thanks Gigatron)


It slows right down at level 4
« Last Edit: August 09, 2025, 03:47:10 am by Boleeman »

Gigatron

  • Sr. Member
  • ****
  • Posts: 415
  • Amiga Rulez !!
    • Gigatron Shader Network Demo
Re: Rotating Sierpinski 3D Tetrahedron (Probably better done with GL)
« Reply #1 on: August 06, 2025, 06:41:44 pm »
Hi

I tried to do a conversion with the glLine command, it's good for level 4 and 5 no more. I will send you the source code as soon as I have finished the new version of the glCanvas library.

Regards

** Edit ***

@Boleeman , here is the project1.zip with the GL version;
« Last Edit: August 08, 2025, 02:58:08 pm by Gigatron »
Coding faster than Light !

Boleeman

  • Hero Member
  • *****
  • Posts: 1158
Re: Rotating Sierpinski 3D Tetrahedron (Probably better done with GL)
« Reply #2 on: August 09, 2025, 03:46:07 am »
Thanks Gigatron for the GL upgrade. Much appreciated.

The rotation is much smoother.

Even got level 6 to work reasonably well by lowering the alpha to about 70 and line width to 0.5.
At that level and with those settings it takes on a fine glass appearance.

I have got to use GL more often for animations, as it seems to be much smoother (buffered). I have seen some excellent WebGL JavaScript animations, also using shaders so it would be nice to learn to do it with Lazarus.

I was also curious about Guva's RayLib animation codes, but as I am running out of HDD space of my old laptop, I will need to install that on a newer laptop.

Gigatron, I noticed that when I compile your code I get a much smaller exe file (just under 2 Mb) whereas my usual exe size is just over 3Mb. Not sure how you did that?

Gigatron, thanks for doing that conversion. I will learn from that, as my GL knowledge it not that great.
I did some Koch GL curve ages ago and kinda struggled to get things working. I got it in the end though.

 

TinyPortal © 2005-2018