PQ Torus Knot



PQ Torus Knot

I added in GLSL Hacker (v0.6.4.1) the support of PQ Torus Knot based on this code sample and on this this article. A demo showing how to create a mesh PQ torus with GLSL Hacker can be found in the host_api/Mesh_PQTorusKnot/ folder of the code sample pack.

A thread in the forum is available here with a code snippet.

PQ torus is cool because playing with two numbers (P and Q), you can generate many different knots. Here are some screenshots for particular values of P and Q parameters:

P=1 Q=0

PQ Torus Knot

P=2 Q=-1

PQ Torus Knot

P=2 Q=-3

PQ Torus Knot

P=3 Q=-5

PQ Torus Knot

P=3 Q=-7

PQ Torus Knot

P=2 Q=-8

PQ Torus Knot

P=2 Q=-20

PQ Torus Knot

P=7 Q=1

PQ Torus Knot

P=7 Q=10

PQ Torus Knot

P=9 Q=5

PQ Torus Knot

P=13 Q=7

PQ Torus Knot






2 comments