Opengl / c# source - Paul Bourke 3d Supershapes

(Programmers only !!! )

While checking out some stuff on my PC I noticed some old sloppy code lying around : A quick and dirty hack to show how Paul Bourke's supershape works in 3d. It was a quick hack from a c#/TAO nehe OpenGl Example, so don't expect to much from it.

It uses the same parameters for both dimensions, so it is not fully identical to the program of Paul Bourke...

More info on Paul Bourke's supershapes can be found here.

Update

The link does not work anymore; you can find it here: https://paulbourke.net/geometry/supershape3d/

 

a screenshot :

 

Keys to use :

U I O P

J K L M

=> Change supershape parameters

End : Reset  Supershape parameters to 1

F1 => Switch Fullscreen/Windowed mode

W => Show wireframe

PgUp/PgDn => faster/slower rotation

Home => Stop rotation

 

You can download it here : https://users.pandora.be/bull/core/SupershapeGL.cs .

 

Have fun !!!

 

 

Bookmark and Share