Jump to content

View more

Image of the Day

雑魚は多めにして、爽快感重視にしつつ・・・(´・ω・`)
早いとこ、ベースを作って、完成にもっていかないとね。
タイトルもまだ迷ってるだよなぁ。 
#indiedev  #indiegame #screenshotsaturday https://t.co/IwVbswGrhe
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Missed Line

4: Adsense

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   

229
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.


#2 Ashaman73   Members   

13714
Like
0Likes
Like

Posted 12 March 2013 - 08:04 AM

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


Ashaman

 

Gnoblins: Website - Facebook - Twitter - Youtube - Steam Greenlit - IndieDB - Gamedev Log


#3 GeneralQuery   Members   

1263
Like
0Likes
Like

Posted 12 March 2013 - 08:08 AM

How do you have your projection matrix set up?



#4 Tommato   Members   

229
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.