Results 1 to 2 of 2

Thread: simple problem of plotting 4 points

  1. #1
    Guest

    simple problem of plotting 4 points

    Hi,

    I am very new to Opengl and having what seems to be a basic problem. I want to plot four points at the corner of my window at different depths. I need to figure out x, and y for a given depth (z). The points should be on top of each other.
    I want to stay away from orthographic mode and stick with perspectiv projections.

    I have spent hours with gluUnProject(), getting no where.

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,595

    Re: simple problem of plotting 4 points

    Hi !

    It's pretty messy to figure that out so what's wrong with orthographic mode ? it would save you those lost hours of work...

    A quick switch to orthographic mode, plot the points, switch back to perspective and go on with what ever you where doing, I can't find a reason not to use it....

    Mikael

Similar Threads

  1. Plotting Points inside a function
    By damian89 in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 05-01-2013, 04:31 PM
  2. Plotting points on Earth
    By j_lyf in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 04-06-2011, 11:09 AM
  3. problem with drawing four points around the mouse
    By frescovivir in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 11-22-2010, 12:33 PM
  4. simple graph plotting
    By peet51 in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 03-02-2009, 11:31 AM
  5. Problem: I can only draw points
    By TheAlbinoGorilla in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 02-10-2004, 09:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean