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

OpenGL2: r_cubeMapping doesn't work correctly. #513

Closed
ghost opened this issue Jul 8, 2021 · 1 comment
Closed

OpenGL2: r_cubeMapping doesn't work correctly. #513

ghost opened this issue Jul 8, 2021 · 1 comment

Comments

@ghost
Copy link

ghost commented Jul 8, 2021

@SmileTheory
Hi, nice to see that you still maintain your new renderer, maybe a good time to report a new issue :)
I thought renderer2 is no longer maintained, so I didn't report this issue until now, the issue is not related to the latest changes:

The issue/bug:
If r_cubeMapping is OFF (r_cubeMapping = 0), the backside of textures with an alpha channel (?) has a 'specular effect'.

How to reproduce the issue:

  1. Make sure to start ioquake3 with the second renderer enabled (cl_renderer opengl2).
  2. Start q3dm19 (e.g.: open the console and type: \devmap q3dm19).
  3. Move to one of the yellow metal pillars.
  4. Change r_cubeMapping from 0 to 1, and 1 to 0 and do a vid_restart command after each change.
  5. Have a look through the metal pillar into the inside to see the backside of the texture. The inside is very shiny.

Here are two screenshots to see the difference:

This is when r_cubeMapping is set to 0 (OFF):
cubem_off
And this is the correct way, how it should look like. r_cubeMapping is set to 1 (ON):
cubem_on

I'm not sure but I think you can squeeze out a few frames by culling the 'shininess' of the backside.

System:
Windows 8.1 64-bit.
Nvidia 1060 GTX.

@ghost
Copy link
Author

ghost commented Jul 20, 2021

Seems to be fixed, well done!
Thanks a lot!

@ghost ghost closed this as completed Jul 20, 2021
mgerhardy pushed a commit to PadWorld-Entertainment/worldofpadman-fork that referenced this issue Jul 24, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants