Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


coordinatess and point on mouse click QT


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
No replies to this topic

#1 giugio   Members   -  Reputation: 215

Like
0Likes
Like

Posted 22 November 2012 - 07:01 AM

hello.
I have create a system that draws little circles or points in opengl 3 where I click the mouse in a qt opengl widget.
The problem are the coordinates: the circle is not drawed in the position of the mouse when i click.
I divide the point x for the width and the point y for the height for and I have a point from 0 to 1
But how i can trasform these points from 0 to 1 to the opengl coordinates?
i must use the opengl viewport?
or the ortho matrix?
how?

ps.
the glwidget is on a mdi window
thanks.

Sponsor:



Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS