Hi !
Featured games (87)
games approved by the League of Dukes
Games in Showcase (671)
Games in Android Showcase (194)
games submitted by our members
Games in WIP (727)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Help with understanding where OpenGL lives  (Read 1002 times)
0 Members and 1 Guest are viewing this topic.
Offline Belenghast

Junior Newbie

« Posted 2007-09-20 08:20:39 »


I've used OpenGL before, but I was wondering if someone can tell me exactly where OpenGL actually "lives".

Does it reside in software (like in some Vista code or driver code) or hardware (like in the gfx card) ? I've just bought a brand new PC with an ATI Radeon X1300 graphics card. Of course the card comes with drivers from ATI that presumably let Windows Vista communicate with the card.

When I give OpenGL a command (like to draw a square, say) I am having trouble working out exactly how the computer ends up drawing it on the screen.

I assume that the command travels from my code to JOGL, and then to the ATI graphics driver which then breaks this OpenGL "command" down into pieces that the graphics card can understand. Is this correct?

Does the "hardware acceleration" for OpenGL occur automatically (by feeding the calls directly to the graphics card) or do I have to do something special to "tell" the card to accelerate the command? How do I know that my CPUs are not responsible for the rendering and that I'm actually using the power of the gfx card?

On a related note, I noticed that I can run Google Earth using OpenGL if I want. When I do the rendering of the earth slows down incredibly (remember I have a new machine, a 1.8GHz core 2 duo). Why is the rendering so incredibly awful? Is it some Microsoft thing? It looks to me like the rendering is being done either very inefficiently or in software rather than being accelerated.

Thanks in advance.

Offline Riven

« JGO Overlord »

Medals: 1208
Projects: 4
Exp: 16 years

Hand over your head.

« Reply #1 - Posted 2007-09-20 08:46:33 »

I assume that the command travels from my code to JOGL, and then to the ATI graphics driver which then breaks this OpenGL "command" down into pieces that the graphics card can understand. Is this correct?

Yup, the driver translates it into hardware-specific code. The Catalyst driver (for ATI) can generate different code for a 9600, 9700 or a X800 express, it's up to the driver. So inside your driver-installer, you will find all drivers for all series of cards, that's one of the reasons it's so big. That hardware specific code is wrapped in a protocol and sent to the gfx-card.

About the slowdowns you experience: try to install the latest drivers, but Vista translates all OpenGL calls into DirectX, in windowed-mode. If you see major speedups in fullscreen mode (if there is such a thing in that app), it might be the wrapper-overhead.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings!
Offline ryanm

Senior Devvie

Projects: 1
Exp: 15 years

Used to be bleb

« Reply #2 - Posted 2007-09-20 09:06:18 »

Also, there's no need to cross-post. This forum isn't so busy that your post will be lost.
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

IanParcs (40 views)
2016-04-18 14:18:53

KaiHH (38 views)
2016-04-18 08:35:41

KaiHH (70 views)
2016-04-15 12:43:58

theagentd (71 views)
2016-04-14 02:16:17

theagentd (84 views)
2016-04-14 02:15:43

IanParcs (97 views)
2016-04-12 03:51:16

IanParcs (39 views)
2016-04-12 03:50:03

IanParcs (36 views)
2016-04-12 03:49:54

IanParcs (34 views)
2016-04-12 03:49:52

IanParcs (40 views)
2016-04-12 03:49:52
Website offering 3D Models specifically for games for free
by vusman
2016-04-29 12:56:17

List of Learning Resources
by SilverTiger
2016-02-05 09:39:47

List of Learning Resources
by SilverTiger
2016-02-05 09:38:38

List of Learning Resources
by SilverTiger
2016-02-05 09:35:50

Rendering resources
by Roquen
2015-11-13 14:37:59

Rendering resources
by Roquen
2015-11-13 14:36:58

Math: Resources
by Roquen
2015-10-22 07:46:10

Networking Resources
by Roquen
2015-10-16 07:12:30 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!