Jump to content

  • Log In with Google      Sign In   
  • Create Account

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: 146

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.


Sponsor:

#2 Ashaman73   Crossbones+   -  Reputation: 7991

Like
0Likes
Like

Posted 12 March 2013 - 08:04 AM

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



#3 GeneralQuery   Crossbones+   -  Reputation: 1263

Like
0Likes
Like

Posted 12 March 2013 - 08:08 AM

How do you have your projection matrix set up?



#4 Tommato   Members   -  Reputation: 146

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