• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Could Someone Make A Image For Me?

Gizmo j

Golden Member

I recently discovered this video of a tetrahedron turning into a sphere and I think it's very interesting.


I wanted to print a large poster at the library of all 5 of these shapes in the video.

I want a image of all 5 of the shapes in the video on the same image.
 
This seems like something that could be doable in any CAD program or even VRML. Asked Grok to make one.

Code:
#VRML V2.0 utf8

# A regular tetrahedron
# Edge length ≈ 2 units, centered at the origin

WorldInfo {
  title "Regular Tetrahedron"
  info ["Generated for you by Grok"]
}

Background {
  skyColor [0.0 0.7 1.0]
}

Shape {
  appearance Appearance {
    material Material {
      diffuseColor 0.9 0.3 0.1    # nice orange-red
      specularColor 0.9 0.9 0.9
      shininess 0.8
    }
  }
  geometry IndexedFaceSet {
    solid FALSE                 # set TRUE if you don’t want back-face culling
    coord Coordinate {
      point [
        # Four vertices of a regular tetrahedron (edge length ≈ √8 = 2√2)
        1.0  1.0  1.0,
       -1.0 -1.0  1.0,
       -1.0  1.0 -1.0,
        1.0 -1.0 -1.0
      ]
    }
    coordIndex [
      0, 1, 2, -1,   # face 1
      0, 2, 3, -1,   # face 2
      0, 3, 1, -1,   # face 3
      1, 3, 2, -1    # face 4
    ]
    color Color {
      color [
        1.0 0.3 0.1,   # each face can have its own color if you want
        0.2 0.8 0.3,
        0.1 0.4 1.0,
        0.8 0.8 0.2
      ]
    }
    colorPerVertex FALSE
    colorIndex [0, 1, 2, 3]
  }
}

# Optional: add a little rotation animation so you can see all sides
Transform {
  children [
    DEF Tetra Shape { }   # reference the shape above
  ]
  rotation 0 1 0  0
}

DEF Clock TimeSensor {
  cycleInterval 12
  loop TRUE
}

DEF Rotator OrientationInterpolator {
  key      [0.0, 0.5, 1.0]
  keyValue [
    0 0 1 0  0,
     0 1 0  3.1416,
     0 1 0  6.2832
  ]
}

ROUTE Clock.fraction_changed TO Rotator.set_fraction
ROUTE Rotator.value_changed TO Tetra.rotation

You can change the face colours and such too or play around with it to change it. Been a while since I played with VRML, I remember using a 3D program as a kid to create elaborate scenes and could walk through them like it was a video game.

Screenshot from 2025-12-09 11-56-29.png
 
Back
Top