3 ms·
What the big difference between the OpenGL and D3D renderer? Are they performing and look the same across Windows and Linux? What about MacOS? I guess if it ru
by dimillian 10y ago
What the big difference between the OpenGL and D3D renderer? Are they performing and look the same across Windows and Linux?
What about MacOS? I guess if it run on Linux I can fiddle with the source and make it run on it?
Look awesome! Always good to have diversity in 3D engine.
- daemin 10y agoGenerally Direct3D is for Windows and OpenGL is for all other platforms. Sometimes the OpenGL renderer works on Windows as well for easier testing and development.
- mikulas_florek 10y agoIndeed, I only implemented OGL on Windows so I do not have to switch to Linux to implement some rendering feature/new shader. I do that mostly on Windows, because I am the most efficient there, and only test the result on Linux.
- pjmlp 10y agoWhen "all other platforms" does not include gaming consoles, as there is this urban myth of OpenGL support on them. Only partially true on the PS3 (GL ES 1.0 with Cg), which was largely ignored.
- laythea 10y agoThe other myth is that graphics drivers from different manufacturers - heck even the same manufacturer - are all created equal because they have standards name on the box :)
- daemin 10y agoYes, consoles have their own rendering libraries, well for the XBoxOne it's DirectX, but for the PS4 it's a proprietary library (Source: currently working at a AAA studio). But that is a technicality, because most developers that are making an engine (especially indie or hobby developers) don't have access to development hardware and SDK's. So it's valid to say that OpenGL runs on all other platforms (that the developer is targeting).
- mikulas_florek 10y agoI'm using https://github.com/bkaradzic/bgfx https://github.com/bkaradzic/bgfx for low-level rendering abstraction. IIRC in the engine there is no difference between opengl and d3d other than a projection matrix. On the outside there can be a difference, e.g. if opengl does not support some operation d3d does (because of drivers). On my computer D3D a tiny bit faster than OGL on windows. I've not tried Linux for a long time, so it's possible there are some issues. But it's definitely compilable and it used to run few months ago. MacOS port should be easy, there once was a branch with a lot of stuff already ported, but it was done by other programmer and he did not finish it.