how can i create new defined shapes in OpenGL ?

This is a discussion on how can i create new defined shapes in OpenGL ? within the Game Programming forums, part of the General Programming Boards category; Hello ,... since i didn't found functions to all plane i proboably will need to use i ask here. i ...

  1. #1
    Registered User
    Join Date
    Apr 2007
    Posts
    112

    how can i create new defined shapes in OpenGL ?

    Hello ,...

    since i didn't found functions to all plane i proboably will need to use i ask here.

    i guess i will need to use will be :
    z = max(|x||y|) - mountion like
    x^2 - y^2 = z ukaf point ..

    how do could i crate them ..


    thnx in advance
    why Gaos didn't had a wife ?
    http://bsh83.blogspot.com

  2. #2
    Registered User
    Join Date
    Apr 2006
    Posts
    43
    ???
    Seriously? What do you want to do?

  3. #3
    Registered User
    Join Date
    Apr 2007
    Posts
    112
    sorry,...

    after few courses in math i saw really cool shapes and planes and one of the hardest thing is to imagene the plane or to recreate it on paper.
    so i thout to write me one small prog to that (since i started to learn openGL)

    for this we often use Kalgebra but i would like to create my own plotting program
    Last edited by jabka; 07-31-2007 at 02:40 PM.
    why Gaos didn't had a wife ?
    http://bsh83.blogspot.com

  4. #4
    Amazingly beautiful user.
    Join Date
    Jul 2005
    Location
    If you knew I'd have to kill you
    Posts
    254
    You can't just give OpenGL an equation. You have to draw everything out of triangles (or squares or polygons, but triangles are faster). So, you would loop through, say 100 x/z coordinates, and for each point, calculate the y value and plot a point.
    Programming Your Mom. http://www.dandongs.com/

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Button handler
    By Nephiroth in forum Windows Programming
    Replies: 8
    Last Post: 03-12-2006, 05:23 AM
  2. Replies: 5
    Last Post: 02-12-2006, 07:42 PM
  3. opengl help
    By heat511 in forum Game Programming
    Replies: 4
    Last Post: 04-05-2004, 01:08 AM
  4. OpenGL .dll vs video card dll
    By Silvercord in forum Game Programming
    Replies: 14
    Last Post: 02-12-2003, 06:57 PM
  5. MISC questions about OpenGL
    By Silvercord in forum Game Programming
    Replies: 12
    Last Post: 01-25-2003, 03:20 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21