Hi! I'm new

This is a discussion on Hi! I'm new within the Game Programming forums, part of the General Programming Boards category; Originally Posted by Bubba Under the hood OpenGL uses Direct3D because Direct3D is the only way to access the graphics ...

  1. #16
    The Right Honourable psychopath's Avatar
    Join Date
    Mar 2004
    Location
    Where circles begin.
    Posts
    1,070
    Quote Originally Posted by Bubba
    Under the hood OpenGL uses Direct3D because Direct3D is the only way to access the graphics hardware in Windows.
    At the driver level, I'm assuming.
    Memorial University of Newfoundland
    Computer Science

    Mac and OpenGL evangelist.

  2. #17
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by Bubba View Post
    Under the hood OpenGL uses Direct3D because Direct3D is the only way to access the graphics hardware in Windows. I just found this information out recently and was taken aback by it. It should be noted that it is just my opinion you should use Direct3D. Inevitably the decision is yours on what API to use. Most, if not all, are quite similar in principle.
    Take it from someone who has written drivers for Windows graphics cards that this is not true. You may well be able to implement the OpenGL using D3D and thus not need to talk to hardware from the GL code, but it's not at all necessary to make the driver this way.

    I doubt even that Vista does it that way, although they have changed the driver architecture quite a bit for Vista, and I haven't followed this for some time [we had two people working on "Longhorn" drivers when I was writing XP/2K drivers].

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #18
    Registered User guesst's Avatar
    Join Date
    Feb 2008
    Location
    Lehi, UT
    Posts
    179
    Even if it does Direct3D only works in windows environment. While that does, at the moment, give something like a 85% market share and that percentage is DOWN from previous years. Windoze is slipping, and if you want to keep ahead of the curve you'll keep your code as platform independent as possible.

    By the way, that 85% is not based on any actual data I have in front of me. It's a number I think I heard somewhere in relation to this subject, but I could be wrong. Sorry if I mislead you, but you should know what 67.8% of statistics are made up on the spot.

  4. #19
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,598
    Take it from someone who has written drivers for Windows graphics cards that this is not true. You may well be able to implement the OpenGL using D3D and thus not need to talk to hardware from the GL code, but it's not at all necessary to make the driver this way.
    This was verified by Microsoft. I did not think this was the case either until I found this out from them. Of course it could have been a ploy to get us to use DirectX but who knows. Microsoft has made every attempt to make DirectX the API of choice and are now targeting the console market as well with their recent changes and XBOX to PC compatibility. I seriously think OpenGL has a huge fight on their hands on the Windows platform since Microsoft owns the graphics API and yet also owns the Windows API.

    Hopefully we will continue to have both choices on the Windows platform. Better yet it would be nice if Linux could start running more and more games.

    Regardless of which API you choose you will encounter the same graphics principles because the underlying hardware is the same. You will always have matrices, textures, vertices, indices, transformations, etc, etc.
    Choice of API has nothing to do with actually learning how to write games. Most of us here are still learning how to write games even if we have a very good grasp of C++ and a good grasp of the graphics API we are using.
    Last edited by VirtualAce; 03-27-2008 at 06:22 PM.

  5. #20
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by Bubba View Post
    This was verified by Microsoft. I did not think this was the case either until I found this out from them. Of course it could have been a ploy to get us to use DirectX but who knows.
    I think it may be true for Vista - but it's also possibly a misunderstanding that the latest hardware has support for DX10 for example, and that the graphics is "using DX10 hardware" - but you can naturally let DX10 hardware perform OpenGL drawing - it's pretty much doing the same thing anyways (texturing, pixel shading and what else based on various vertex lists and such).

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21