Skip to main content
gamedev.net
🔒 Locked

progress bar

Started by Genius_Bobby Feb 21, 2005 at 5:21 PM 4 replies 1.2k views
Original Post
Genius_Bobby
Genius_Bobby
Hi, i m working on a project.I want to make progress bar in opengl.is there anybody who can help me out or give me an idea.My game is in 3d and i wan to show progress bar in 2d.plz if anybody can help me out. Thanks bye Bobby
disanti
disanti
You should be able to draw a 3d quad without depth testing, texture it with something cool and increase its width as more progress is made.

I don't readily have code on hand.
My game development blog: http://rykerlabs.com
nife
nife
Quote:
Original post by Genius_Bobby
Hi, i m working on a project.I want to make progress bar in opengl.is there anybody who can help me out or give me an idea.My game is in 3d and i wan to show progress bar in 2d.plz if anybody can help me out.
Thanks
bye
Bobby


This is one of the most discussed questions, so you should just search after it (Google: "2d opengl site:gamedev.net" since the search function doesn't work).

The idea is to set up a orthographic projection, which is really not 2D but is seen as 2D when drawing (transforming the vertices to world space coordinates) with that kind of projection enabled.
Killers don't end up in jailThey end up on a high-score!
Genius_Bobby
Genius_Bobby
Basically i didnt understand wat u mean ?
krez
krez
check out nehe lesson 21, part of it is about orthographic projections.

basically, instead of having the video card make things get smaller in the distance, they stay the same size no matter how "far away". in effect, this is like rendering something in 2D instead of 3D.
--- krez ([email="krez_AT_optonline_DOT_net"]krez_AT_optonline_DOT_net[/email])

Topic Locked

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

Sign in to reply to this topic.