Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. 3D cube

3D cube

Scheduled Pinned Locked Moved C#
csharpquestion
10 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Noharyiasa
    wrote on last edited by
    #1

    Hi, do you have c# program that draw cube? Noha.Y

    A 3 Replies Last reply
    0
    • N Noharyiasa

      Hi, do you have c# program that draw cube? Noha.Y

      A Offline
      A Offline
      Alaric_
      wrote on last edited by
      #2

      no...It doesn't work that way: But you can

      look into Microsoft's XNA framework, and you can look up Direct3D tutorials. Building a 3D cube will be one of the first things you will build

      or

      do it the old fashioned way...register a Win32 Window, register your callback and message loop, and hack away inside your render code to build a cube(in Direct3D, OpenGL...or whatever graphics library you like)

      My suggestion would be to look into the XNA. You'll be able to execute your DirectX code inside the CLR, so all of your resources will be inherently Managed. :)

      Welcome my son...Welcome..to the Machine

      N 1 Reply Last reply
      0
      • N Noharyiasa

        Hi, do you have c# program that draw cube? Noha.Y

        A Offline
        A Offline
        Alaric_
        wrote on last edited by
        #3

        try http://www.gamedev.net to find DirectX and OpenGL tutorials

        Welcome my son...Welcome..to the Machine

        N 1 Reply Last reply
        0
        • A Alaric_

          no...It doesn't work that way: But you can

          look into Microsoft's XNA framework, and you can look up Direct3D tutorials. Building a 3D cube will be one of the first things you will build

          or

          do it the old fashioned way...register a Win32 Window, register your callback and message loop, and hack away inside your render code to build a cube(in Direct3D, OpenGL...or whatever graphics library you like)

          My suggestion would be to look into the XNA. You'll be able to execute your DirectX code inside the CLR, so all of your resources will be inherently Managed. :)

          Welcome my son...Welcome..to the Machine

          N Offline
          N Offline
          Noharyiasa
          wrote on last edited by
          #4

          How can I enter to XNA is? Noha.Y

          1 Reply Last reply
          0
          • A Alaric_

            try http://www.gamedev.net to find DirectX and OpenGL tutorials

            Welcome my son...Welcome..to the Machine

            N Offline
            N Offline
            Noharyiasa
            wrote on last edited by
            #5

            Can you give me another website to find directX and OpenGL? because my computer is not able to enter to www.gamedev.net Thanks; Noha.Y

            A 1 Reply Last reply
            0
            • N Noharyiasa

              Hi, do you have c# program that draw cube? Noha.Y

              A Offline
              A Offline
              Alaric_
              wrote on last edited by
              #6

              ...I saw a post that you made earlier asking the same thing, but you specifically mentioned OpenGL, but you mentioned in this post that you specifically want to write in C#. If you REALLY want to write OpenGL code in C#, you're going to need to get the CsGL library from sourceforge. ..Only problem is that the project was ended back in 2003. If you run into any problems, it might be a bit difficult to find any support at all, especially since you don't know OpenGL coming into it. If you want to write OpenGL, you're probably going to want to write it in either C or C++. There are several toolkits available to make your life easier...especially the GLU, & the GLUT. ...There are 2 major reference manuals that you're going to want to get. They're called the "Red Book" and the "Blue Book" (There's also a "Green Book", an "Orange Book" and the "White Book") but the Red and Blue will get you started. You can find deprecated copies of Red and Blue all over the place.

              Red is the Programming Guide

              Blue is the Reference Manual

              Orange is for the OpenGL Shading Language(Don't worry about it for now)

              Green is for X Windows programming

              White explains how OpenGL interfaces with Windows (95 & NT specifically)

              Welcome my son...Welcome..to the Machine

              N 1 Reply Last reply
              0
              • N Noharyiasa

                Can you give me another website to find directX and OpenGL? because my computer is not able to enter to www.gamedev.net Thanks; Noha.Y

                A Offline
                A Offline
                Alaric_
                wrote on last edited by
                #7

                ...are you at work or something? I can't think of any other sites for certain. ...I'm sure GamaSutra would have tuts. ...Other than that, some simple web research should find tons of simple examples. Typically, tutorials follow this kind of structure:

                1.They'll start you off building the window...
                2.You'll draw a 2D triangle
                3.You'll rotate that triangle
                4.You'll build a 3D cube
                5.You'll build Halo
                6.Sell Halo for $30,000,000 , call John Carmack and go "HAHAHAHAHAHA"
                7.Start your own Gaming company
                8.Get hot chicks

                Welcome my son...Welcome..to the Machine

                1 Reply Last reply
                0
                • A Alaric_

                  ...I saw a post that you made earlier asking the same thing, but you specifically mentioned OpenGL, but you mentioned in this post that you specifically want to write in C#. If you REALLY want to write OpenGL code in C#, you're going to need to get the CsGL library from sourceforge. ..Only problem is that the project was ended back in 2003. If you run into any problems, it might be a bit difficult to find any support at all, especially since you don't know OpenGL coming into it. If you want to write OpenGL, you're probably going to want to write it in either C or C++. There are several toolkits available to make your life easier...especially the GLU, & the GLUT. ...There are 2 major reference manuals that you're going to want to get. They're called the "Red Book" and the "Blue Book" (There's also a "Green Book", an "Orange Book" and the "White Book") but the Red and Blue will get you started. You can find deprecated copies of Red and Blue all over the place.

                  Red is the Programming Guide

                  Blue is the Reference Manual

                  Orange is for the OpenGL Shading Language(Don't worry about it for now)

                  Green is for X Windows programming

                  White explains how OpenGL interfaces with Windows (95 & NT specifically)

                  Welcome my son...Welcome..to the Machine

                  N Offline
                  N Offline
                  Noharyiasa
                  wrote on last edited by
                  #8

                  Nice... I started with the Red Book, but my problem was how to start a new project. I mean what to choose? and how to initial the classes!! Noha.Y

                  B 1 Reply Last reply
                  0
                  • N Noharyiasa

                    Nice... I started with the Red Book, but my problem was how to start a new project. I mean what to choose? and how to initial the classes!! Noha.Y

                    B Offline
                    B Offline
                    Bekjong
                    wrote on last edited by
                    #9

                    Check out the tutorials at Nehe. They're pretty good, and C# source code is included for most tutorials...

                    Standards are great! Everybody should have one!

                    A 1 Reply Last reply
                    0
                    • B Bekjong

                      Check out the tutorials at Nehe. They're pretty good, and C# source code is included for most tutorials...

                      Standards are great! Everybody should have one!

                      A Offline
                      A Offline
                      Alaric_
                      wrote on last edited by
                      #10

                      ..Nehe is maintained by gamedev. ...what implementation of the OpenGL spec are you using? ...Which spec does your implementation build off of? Are you using Mesa? Glut? CsGL? ...Try going to opengl.org. There should be information in their wiki as well as getting started information

                      Welcome my son...Welcome..to the Machine

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups