Results 1 to 3 of 3

Thread: Drawing 3d Cubes

  1. #1

    Thread Starter
    Hyperactive Member DerekM's Avatar
    Join Date
    Jun 2009
    Location
    Colorado
    Posts
    296

    Drawing 3d Cubes

    I'm fairly new to C# but I have a basic understanding of it, and I downloaded some source code the other day that drew a 3d cube into a picturebox. I thought it was pretty interesting, so I wanted to know how I could code it myself. So where yo begin.
    I was wondering if anyone could direct me on where to start with 3d/2d drawing with C#, or explain how it works. I found a good tutorial on how to make a 3d textured cube in C# a while back on youtube, but I can't find it again. I was wondering if anyone would be willing to tell me the basics of it. Thanks for anyone that helps, I'm not asking for much, and if you feel that I am I'll forgive you if you don't reply.

  2. #2
    Frenzied Member axion_sa's Avatar
    Join Date
    Jan 2002
    Location
    Joburg, RSA
    Posts
    1,724

    Re: Drawing 3d Cubes

    Would you forgive me if I did post, but it wasn't useful?

    First off, one would need a grip on 3D/vertex math(s). Secondly, the System.Drawing.Graphics class provides simple drawing methods like DrawLine. Once you've calculated the 8 vertices, Bob's your uncle! Introducing textures, that creeps up to 24 vertices: 4 per face, subtracting for faces that won't be rendered.

    As to your tutorial: pick one

  3. #3

    Thread Starter
    Hyperactive Member DerekM's Avatar
    Join Date
    Jun 2009
    Location
    Colorado
    Posts
    296

    Re: Drawing 3d Cubes

    Actually, axion, although I already knew a bit about the creation of the shapes, your post was fairly helpful

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width