Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

askthedev.com Logo askthedev.com Logo
Sign InSign Up

askthedev.com

Search
Ask A Question

Mobile menu

Close
Ask A Question
  • Ubuntu
  • Python
  • JavaScript
  • Linux
  • Git
  • Windows
  • HTML
  • SQL
  • AWS
  • Docker
  • Kubernetes
Home/ Questions/Q 39688
In Process

askthedev.com Latest Questions

Asked: June 17, 20252025-06-17T22:14:29+05:30 2025-06-17T22:14:29+05:30

How do I accurately define vertex positions for a dodecahedron in R3 without using a modeling program?

anonymous user

I’ve been diving into graphics programming lately, but I have to admit, it’s been a bit of a slog. I’m trying to wrap my head around Vertex shaders and the whole transformation process, but I find myself tangled up in all the math and concepts. So, I’ve got this dodecahedron I want to work with, and I thought about defining its vertices manually since the whole modeling program route feels daunting right now.

I mean, how hard can it be to come up with the vertex positions in R3 for a dodecahedron, right? Well, let’s just say my confidence is waning. The problem is that this isn’t like a box where you just pop in the corner coordinates. The dodecahedron’s got a lot more going on with its golden ratio elegance, and I’m just struggling to visualize and calculate those vertex positions accurately. I just want a clean set of vertices for each face, but I feel like I’m drowning in math.

On top of that, I’m trying to orbit the polyhedron to understand the world-to-view matrix. This “change of basis” transformation is really tripping me up. I’ve read multiple articles, watched videos, but it still feels like a jigsaw puzzle with missing pieces. How do I think about the camera in this context? What does it mean to change my basis? If my camera position shifts, how should I adapt my view space?

Has anyone else been in a similar boat? Any solid advice on defining those vertex positions without relying on fancy software? Maybe tips on visualizing the dodecahedron in 3D space would help too. I’m just looking for a little clarity so I can get a solid grip on this transformation stuff—especially as it relates to the camera. Thanks for any insights!

  • 0
  • 0
  • 2 2 Answers
  • 0 Followers
  • 0
Share
  • Facebook

    Leave an answer
    Cancel reply

    You must login to add an answer.

    Continue with Google
    or use

    Forgot Password?

    Need An Account, Sign Up Here
    Continue with Google

    2 Answers

    • Voted
    • Oldest
    • Recent
    1. anonymous user
      2025-06-17T22:14:31+05:30Added an answer on June 17, 2025 at 10:14 pm

      Diving into Dodecahedrons and Vertex Shaders

      Totally get where you’re coming from! Jumping into graphics programming can definitely feel overwhelming, especially with the math and all the 3D concepts swirling around.

      Defining Dodecahedron Vertices

      So, about those vertices for a dodecahedron—you’re right, it’s not as straightforward as a box! But the good news is, you can actually define the vertices using some simple geometric principles. Here’s a basic list of the coordinates for the vertices of a regular dodecahedron:

          V1: (1, 1, 1)
          V2: (1, 1, -1)
          V3: (1, -1, 1)
          V4: (1, -1, -1)
          V5: (-1, 1, 1)
          V6: (-1, 1, -1)
          V7: (-1, -1, 1)
          V8: (-1, -1, -1)
          V9: (0, ±φ, ±1/φ)
          V10: (±1/φ, 0, ±φ)
          V11: (±φ, ±1/φ, 0)
          

      Where φ (phi) is the golden ratio, approximately 1.6180339887. You might feel a bit lost with these values at first, but if you plot them out, you’ll start to see the shape come together!

      Understanding the Camera and View Transformation

      As for the world-to-view matrix and camera transformation, just think of the camera as your viewpoint in the scene. When you move or rotate the camera, you’re effectively changing how the entire world appears to you.

      Imagine you’re flying above the dodecahedron. When you look down, you might see it from a different angle. The “change of basis” is just a fancy way of saying you’re converting the world coordinates into camera coordinates. If your camera moves, you need to apply transformations to keep the dodecahedron oriented correctly. You can think of using translation and rotation matrices to achieve this.

      Visualization Tips

      To help visualize things:

      • Draw it out: Sketching can sometimes help solidify your understanding of the shapes and their relationships.
      • Use simple models: Before diving into complex transformations, try to get a good grasp on simpler shapes and their transformations.
      • Play with software: Even if you want to manually define things, using a basic modeling tool can help you see what you’re aiming for.

      It’s a learning process, so don’t be too hard on yourself! Keep experimenting and asking questions, and it’ll all start to click eventually.

        • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    2. anonymous user
      2025-06-17T22:14:31+05:30Added an answer on June 17, 2025 at 10:14 pm

      You’re definitely not alone in finding the precise geometry of the dodecahedron challenging—it’s rooted deeply in the elegance of the golden ratio (φ ≈ 1.618). A practical way to define its vertices is to use well-known coordinate sets that leverage the golden ratio. Typically, the 20 vertices are placed symmetrically around the origin and defined by a neat set of permutations involving ±1, ±φ, and ±1/φ. You don’t have to calculate them from scratch; there are clear-cut sets of vertices available online or documented in geometry references and Wikipedia. Once you’ve defined these vertices explicitly, manually creating the mesh’s faces by grouping vertices into pentagons is more manageable and can significantly deepen your intuition of polyhedral structures.

      Regarding transformations and the infamous world-to-view or “camera” matrix, remember that changing basis in graphics programming is essentially about switching reference frames—from a global reference (world space) to a camera-centric one (view space). Think of your camera as defining a new set of axes: the Z-axis points forward (the viewing direction), the Y-axis upward, and the X-axis to the right. When the camera moves, you recalculate this coordinate frame relative to its new position and orientation, constructing a simple rotation-and-translation matrix that transforms points from world to camera coordinates. A helpful technique is to first visualize the camera axes clearly—labeling directions clearly in diagrams—as vector directions from the camera’s position. This can clarify your mental model significantly and make the math feel considerably more intuitive.

        • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp

    Sidebar

    Recent Answers

    1. anonymous user on How do games using Havok manage rollback netcode without corrupting internal state during save/load operations?
    2. anonymous user on How do games using Havok manage rollback netcode without corrupting internal state during save/load operations?
    3. anonymous user on How can I efficiently determine line of sight between points in various 3D grid geometries without surface intersection?
    4. anonymous user on How can I efficiently determine line of sight between points in various 3D grid geometries without surface intersection?
    5. anonymous user on How can I update the server about my hotbar changes in a FabricMC mod?
    • Home
    • Learn Something
    • Ask a Question
    • Answer Unanswered Questions
    • Privacy Policy
    • Terms & Conditions

    © askthedev ❤️ All Rights Reserved

    Explore

    • Ubuntu
    • Python
    • JavaScript
    • Linux
    • Git
    • Windows
    • HTML
    • SQL
    • AWS
    • Docker
    • Kubernetes

    Insert/edit link

    Enter the destination URL

    Or link to existing content

      No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.