User Profile

Collapse

Profile Sidebar

Collapse
Code Bug
Code Bug
Last Activity: Jun 8 '12, 04:13 PM
Joined: Apr 4 '12
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • How do I get the 2d position of a 3d object, relative to the camera?

    Basically I want to find the x and y coords position of a 3d object as it's appears on the screen, and not the actual x and y values of the object in "space".

    I am not aware of a built in way for grabbing the
    X/Y coords as they appear to the camera.
    See more | Go to post

  • how to perform collision detection in a 3d pyopengl & pygame environment.

    Obviously collision detection in 3d is/can-be complicated, but I just need some ideas on how to take the 2d perspective of a 3d scene, and use that to allow the user to interact with objects.
    pseudocode:

    Code:
    for scene:
        two_dim = get 2d version (all objects now have only 2d coords)
    
        return two_dim 
    
    #then I could use two_dim to find the position of the   #mouse, and if there is
    ...
    See more | Go to post

  • Want connect planes to eachother in OpenGl example, but can't pass a tuple as vertex.

    Basically, I want to connect the tip of each plane to the other. So I thought I might try creating a variable specifically for the points I want to connect: The tip of each plane.

    Then, for each plane in the planes list, I would get the point of that specified tuple of each plane, add it to a list of points, and draw a line to each.

    But it's not working. When I try to pass planes[n].tip: glVertex3f(plan es[n].tip), I...
    See more | Go to post
No activity results to display
Show More
Working...