Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (580)
games submitted by our members
Games in WIP (500)
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 775 times)
0 Members and 1 Guest are viewing this topic.
Offline Belenghast

Junior Newbie





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

Hi,

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.

Mark
Online Riven
« League of Dukes »

JGO Overlord


Medals: 605
Projects: 4
Exp: 16 years


Hand over your head.


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

Quote
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 Member


Projects: 1


Used to be bleb


« Reply #2 - Posted 2007-09-20 11: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.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (50 views)
2014-04-15 18:08:23

BurntPizza (46 views)
2014-04-15 03:46:01

UprightPath (62 views)
2014-04-14 17:39:50

UprightPath (44 views)
2014-04-14 17:35:47

Porlus (61 views)
2014-04-14 15:48:38

tom_mai78101 (85 views)
2014-04-10 04:04:31

BurntPizza (143 views)
2014-04-08 23:06:04

tom_mai78101 (242 views)
2014-04-05 13:34:39

trollwarrior1 (201 views)
2014-04-04 12:06:45

CJLetsGame (208 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
java-gaming.org 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‑gaming.org
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!