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

glPolygonOffset

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 core114   Members   

122
Like
Likes
Like

Posted 02 August 2001 - 01:38 PM

i am drawing a square-ish tile made out of two traingles, then redrawing it with blending on to show it is selected i am using glPolygonOffset to prevent problems with zbuffering however, when it is partly off of the screen it doesn''t work right, and there are what look to be z buffer problems it works fine otherwise is there some problem with using glPolygonOffset with clipped geometry? any help would be usefull

#2 Obelix   Members   

122
Like
Likes
Like

Posted 03 August 2001 - 11:14 PM

If it some problems should it be the driver. Do some more testing so you will know for sure what is not working.

#3 zedzeek   Members   

528
Like
Likes
Like

Posted 04 August 2001 - 10:48 AM

glPolygonOffset is quite a hard beast to get right. one possible reason is when a polygon is clipped the geometry does not go through the same pipelineand thus even though u use the same vertices u end up getting different depth values

#4 outRider   Members   

852
Like
Likes
Like

Posted 04 August 2001 - 02:48 PM

If you''re redrawing the tile over itself to look different so the user knows which tile is selected try drawing the tile only once, but just tinting it a different color or something.

use glColor*f before you start drawing.

------------
- outRider -




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.