OpenXRay / xray-16

Improved version of the X-Ray Engine, the game engine used in the world-famous S.T.A.L.K.E.R. game series by GSC Game World. Join OpenXRay! ;)
https://discord.gg/sjRMQwv
Other
2.89k stars 455 forks source link

OpenGL Renderer #280

Open Xottab-DUTY opened 5 years ago

Xottab-DUTY commented 5 years ago

Post here all issues you have with OpenGL Renderer.

Current tasks and known bugs:

Zegeri commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

I suggest this task:

tpimh commented 5 years ago
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 commented 5 years ago

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

you can use light

Lnd-stoL commented 1 year ago

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 commented 1 year ago

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 commented 1 month ago

Some old but useful work on OpenGL ES support: https://github.com/OpenXRay/xray-16/compare/dev...vertver:xray-gles:dev