Author Topic: DX 9/10/11 / OPEN GL 2.0 support  (Read 2295 times)

emscape

  • Guest
DX 9/10/11 / OPEN GL 2.0 support
« on: 11 November 2009, 18:40:46 »
Woudn't it be nice to have support for more modern technigues? YOu can show your oppinion here

ZaggyDad

  • Guest
Re: DX 9/10/11 / OPEN GL 2.0 support
« Reply #1 on: 12 November 2009, 00:37:00 »
You should use a poll for this. But yes, I do think it would be nice.

silnarm

  • Local Moderator
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: DX 9/10/11 / OPEN GL 2.0 support
« Reply #2 on: 12 November 2009, 01:44:24 »
OpenGL2 would be nice, Direct3D support is unlikely to happen, we'd rather reduce, not add, platform specific components.
Glest Advanced Engine - Code Monkey

Timeline | Downloads

ZaggyDad

  • Guest
Re: DX 9/10/11 / OPEN GL 2.0 support
« Reply #3 on: 12 November 2009, 03:17:22 »
Well, it could somehow be made to check if there's DirectX on the platform, and then if you set the renderer to DirectX (or something) it would use DirectX. And, I think it might be a benefit to some, since it may allow more Windows users to play it, and I think that DirectX may be a bit easier on the CPU/GPU.

Although, I don't really disagree that it should stay as Cross-Platform as possible.

Btw, isn't OpenGL2 already in Glest? It's got the option for setting it to OpenGL2 in the ini.

Yggdrasil

  • Local Moderator
  • Ornithopter
  • ********
  • Posts: 408
    • View Profile
Re: DX 9/10/11 / OPEN GL 2.0 support
« Reply #4 on: 12 November 2009, 17:43:50 »
DirectX is simply not the way to go. It's win-only. And what's the benefit of having two renderer backends, direct3d on windows and opengl for the rest? And who writes and maintains the new renderer for direct3d?

OpenGL2 would be nice, Direct3D support is unlikely to happen, we'd rather reduce, not add, platform specific components.
+1 for using openal and sdl on all platforms

emscape

  • Guest
Re: DX 9/10/11 / OPEN GL 2.0 support
« Reply #5 on: 13 November 2009, 11:39:44 »
I think I'll try that one, but yeah I think we should make openGL 3.0/Direct x 11 support in that case edit: there isnt any option for open gl 2.0
« Last Edit: 13 November 2009, 20:35:35 by emscape »

ZaggyDad

  • Guest
Re: DX 9/10/11 / OPEN GL 2.0 support
« Reply #6 on: 13 November 2009, 23:27:02 »
I think I'll try that one, but yeah I think we should make openGL 3.0/Direct x 11 support in that case edit: there isnt any option for open gl 2.0

Yes, there is. In glest.ini, look for:

Code: [Select]
GraphicsFactory=OpenGL
and change it to:

Code: [Select]
GraphicsFactory=OpenGL2
If you have Glest Advanced, in glestadv.ini look for:

Code: [Select]
RenderGraphicsFactory=OpenGL
and change it to:

Code: [Select]
RenderGraphicsFactory=OpenGL2
I don't know if this actually makes Glest use OpenGL 2.0, but it does work, and I suppose we'll have to go with it. =\

emscape

  • Guest
Re: DX 9/10/11 / OPEN GL 2.0 support
« Reply #7 on: 14 November 2009, 15:59:31 »
Nicely. thx i will try iy out immediately when i finished my homework. I really look forward to playing it with some quite more modern techniques. Does anyone know if it also will support AA?

emscape

  • Guest
Re: DX 9/10/11 / OPEN GL 2.0 support
« Reply #8 on: 14 November 2009, 16:47:41 »
I made a few screens to compare the results, but there was no difference, so it isnt even worth posting them :-\

ZaggyDad

  • Guest
Re: DX 9/10/11 / OPEN GL 2.0 support
« Reply #9 on: 15 November 2009, 21:32:39 »
I know it's not much different, that's why I didn't know whether there was a difference. And even if it added new graphical features, the models and textures would have to be made to support them.
« Last Edit: 15 November 2009, 21:34:27 by ZaggyDad »

daniel.santos

  • Guest
Re: DX 9/10/11 / OPEN GL 2.0 support
« Reply #10 on: 15 November 2009, 22:22:32 »
Well, it could somehow be made to check if there's DirectX on the platform, and then if you set the renderer to DirectX (or something) it would use DirectX. And, I think it might be a benefit to some, since it may allow more Windows users to play it, and I think that DirectX may be a bit easier on the CPU/GPU.

This is never going to happen.  And no, DirectX is not one instruction cycle or bit of data easier on CPU/GPU -- it's just supported one one platform.  Occasionally, Direct3D will have support for new GPU features that OpenGL doesn't have yet, but give them about 2 or 3 months and there's a release of OpenGL that has them.  Currently, OpenGL is at version 3.1.  As a matter of fact, we're planning on removing support for direct sound, since openal works just find on both platforms.  We're also going to remove pretty much every other line of windows-specific code where open libraries can fulfill the needs (like openal, SDL, etc.).

The overarching idea is that when maintaining code for two different platforms is a superior pain in the arse!  When a single set of code works on all platforms, now we're making sense!

As far as OpenGL 2.0 support, there are currently classes for pixel shaders, but they were never fully implemented.  Unfortunately, appearances are a bit low on the list but I agree, I think it would be nice to have support for a lot of modern features (bump mapping parallax mapping, skeletal animations, flying rabbits and pixel shaders).

emscape

  • Guest
Re: DX 9/10/11 / OPEN GL 2.0 support
« Reply #11 on: 16 November 2009, 20:34:32 »
i think i must agree with that, i hope there will come open gl 4.0 support:D