Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

Missed Line


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
3 replies to this topic

#1 Tommato   Members   -  Reputation: 122

Like
0Likes
Like

Posted 12 March 2013 - 07:01 AM

Hi All
 
In glOrtho I'm drawing a line with  2 points (x, y, z)
 
(434, 500, 400)
(1190, 500, -1152)
 
But the line is not displayed. However if I change z in debugger (from -1152 to 400), then all is Ok, a horizontal line appears. Same results with glDrawArrays, glDrawArrays and just glBegin/glEnd
 
Any advice?
 
Thanks
Tom

Edited by Tommato, 12 March 2013 - 07:02 AM.


Ad:

#2 Ashaman73   Members   -  Reputation: 4604

Like
0Likes
Like

Posted 12 March 2013 - 08:04 AM

I would guess, that your line is behind your orthogonal camera.



#3 GeneralQuery   Members   -  Reputation: 1052

Like
0Likes
Like

Posted 12 March 2013 - 08:08 AM

How do you have your projection matrix set up?



#4 Tommato   Members   -  Reputation: 122

Like
0Likes
Like

Posted 13 March 2013 - 04:32 AM

Hi All,

 

Solved, it was my mistake in bounding box calculation.!!

Thanks for your replies

 

Tom






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