Skip to main content
GameDev.net gamedev.net
🔒 Locked

Missed Line

Started by Tommato Mar 12, 2013 at 1:01 PM 2 replies 1.2k views
Original Post
Tommato
Tommato
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
GeneralQuery
GeneralQuery

How do you have your projection matrix set up?

Tommato
Tommato

Hi All,

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

Thanks for your replies

Tom

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.