Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenGL Renderer #280

Open
10 of 34 tasks
Xottab-DUTY opened this issue Nov 21, 2018 · 10 comments
Open
10 of 34 tasks

OpenGL Renderer #280

Xottab-DUTY opened this issue Nov 21, 2018 · 10 comments

Comments

@Xottab-DUTY
Copy link
Member

Xottab-DUTY commented Nov 21, 2018

Post here all issues you have with OpenGL Renderer.

Current tasks and known bugs:

  • Fix crash after second Device restart (type vid_restart several times in console to reproduce) (e9427ac)
  • Fix bugs with dynamic lighting
    • Fix bugs with local lights (lamps, campfires, etc) (06bb765, 615152e)
  • Rewrite sun lighting calculation from D3DXMath (xrRenderPC_GL: Sun and rain rewrited from D3DXMath to glm #463, intersects with Replace D3DXMath #261)
  • Backend
    • Supported OpenGL versions:
      • 4.5
      • 4.1
      • 3.3
      • 3.1/3.0 maybe?
      • 2.2 maybe?
      • 2.0 maybe?
    • Implement OpenGL ES support
      • 3.x (make initial implementation for ES 3.x, if going straight to 2.0 isn't possible)
      • 2.0 (lower requirement to 2.0, if initial implementation was for 3.x)
    • Support for uniform buffer objects
    • Support MSAA
    • Support geometry shaders
    • Support compute shaders
    • Support tesselation shaders
  • Shaders (two ways, should be supported both)
    • Use cross-compiler to compile shaders from DirectX renderer
    • Implement all shaders in GLSL (shaders/gl folder)
      • Implement vertex and fragment (pixel) shaders
        • Make implemented shaders work in all situations
      • MSAA support
      • Implement volumetric fog
      • Implement HDAO Ultra (compute shaders)
      • Implement tesselation
@Zegeri
Copy link
Contributor

Zegeri commented Nov 21, 2018

Fix crash after second Device restart

Is this an OpenGL issue? I tried this in Wine and did not get a crash. Does it happen on Windows?

@Xottab-DUTY
Copy link
Member Author

Xottab-DUTY commented Nov 21, 2018

Is this an OpenGL issue? I tried this in Wine and did not get a crash. Does it happen on Windows?

Yes. It reports about OpenGL buffer overflow when it's trying to draw triangles... As far as I remember. Can't do it again at the moment.

I tried this in Wine and did not get a crash.

The important thing: it doesn't crash after the first Device restart.

@johndoe71rus
Copy link

if posible fix

! shader compilation failed
! dumb
! error: 0:1(10): error: GLSL 4.50 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, and 3.00 ES

happend for all shader.
maybe this reason of error

GL_INVALID_OPERATION in glUseProgramStages(program not linked) 76
FATAL ERROR
[error] Expression : glUseProgramStages(HW.pPP, GL_FRAGMENT_SHADER_BIT, ps)
[error] Function : set_PS
[error] File : /home/test/build/game/xray-16/src/Layers/xrRenderPC_GL/../../Layers/xrRenderGL/glR_Backend_Runtime.h
[error] Line : 80
[error] Description : (null)

radeon opensource driver

@SkyLoaderr
Copy link
Contributor

SkyLoaderr commented Nov 22, 2018

Fix bugs with dynamic sun lighting

Sun lighting doesn't work correctly when r3_gbuffer_opt is enabled. I think we don't need this command for opengl renderer. It has many bugs and from it there is little use.

Btw, need to add info about incorrect msaa, cleaning textures after drawing, rewrite rain/sun calculating on linux, pixelation skybox textures, crash when open menu (Invalid video stream: 0x505)

@Zegeri
Copy link
Contributor

Zegeri commented Nov 23, 2018

I suggest this task:

@Xottab-DUTY Xottab-DUTY added Bug The issue in the run-time. Player Experience labels Dec 12, 2018
@Xottab-DUTY Xottab-DUTY pinned this issue Dec 14, 2018
@tpimh
Copy link

tpimh commented Dec 30, 2018

Starting RENDER device...
Available video modes[0]:
[1920x1080]
* GPU vendor: [X.Org] device: [Radeon RX 550 Series (POLARIS12, DRM 3.27.0, 4.19.10-300.fc29.x86_64, LLVM 7.0.0)]
* GPU OpenGL version: 4.5 (Core Profile) Mesa 18.2.6
* GPU OpenGL shading language version: 4.50
* DVB created: 4096K
* DIB created: 512K
! Renderer doesn't support blender 'effects\shadow_world'

2018-12-30 21-11-27
Got it running with OpenGL renderer, started a new game. Is it how it is supposed to look now? Should I submit an issue about it being too dark or is it already submitted? Maybe I can tweak my settings for it to look better?

@johndoe71rus
Copy link

johndoe71rus commented Dec 30, 2018

" too dark"
confirmed on Intel, nvidia and amd with the mesa. Ligth only nvidia blob

you can use light

@Xottab-DUTY Xottab-DUTY unpinned this issue Sep 28, 2019
@Xottab-DUTY Xottab-DUTY removed the Bug The issue in the run-time. label Jan 22, 2020
@Lnd-stoL
Copy link
Contributor

Are SSAO and HBAO shaders actually broken by now or is the task list (in the first comment) outdated?
As far as I can see, some kind of ambient occlusion presents (looking at the rendered picture).

@Xottab-DUTY
Copy link
Member Author

Xottab-DUTY commented Oct 22, 2022

SSAO works, but there's issue with SSAO on AMD cards, that's why it is in the task list too.
HBAO shader compilation should be broken.
HDAO... Not sure, may be broken too.

Update:
Both HDAO and HBAO are disabled, because they are broken:
https://github.com/OpenXRay/xray-16/blob/dev/src/Layers/xrRender_R2/r2.cpp#L469

@Xottab-DUTY
Copy link
Member Author

Some old but useful work on OpenGL ES support:
dev...vertver:xray-gles:dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: To do
Development

No branches or pull requests

6 participants