Comments (6)
You can see through portals and mirrors by turning off ‘r_fastsky’ (r_fastsky=0). There’s a workaround mentioned in the included autoexec.cfg file.
https://github.com/cdev-tux/q3lite/blob/dev/misc/q3lite/autoexec.cfg#L547
There’s a performance hit associated with turning r_fastsky off, so that’s why it’s on by default. It may be possible to modify the GLES renderer to render portals and mirrors differently, but that’s currently beyond my programming ability. It’s also possible that there’s a bug in the renderer or some missing code that prevents this from working as it does on OpenGL.
from q3lite.
Thank you very much for the quick reply! OK it seems r_fastsky was already 0, when I turn it on the mirror goes black instead (as expected).
This is actually a rendering issue it seems, BUT I have just tested on another device and it works OK so there is something which the first device does not support, or behaves differently somehow. Now I have a working example I can try and find the difference. Will let you know if there is any fix in the code. Thanks again.
from q3lite.
OK, I think this may be the issue:
https://issuetracker.google.com/issues/36983742
Possible bug in this device GPU swapping the clip plane axis. Just need to find the magic formular to swap the equation around.
from q3lite.
You might have some luck playing around with the code in this section to see if it changes anything.
https://github.com/cdev-tux/q3lite/blob/dev/code/renderergles1/tr_backend.c#L474
Also, searching the source code for these terms may point you to the relevant code.
https://github.com/cdev-tux/q3lite/blob/dev/code/renderergles1/tr_local.h#L469-L470
Hope that helps.
from q3lite.
Hi, Yes you were correct, this was the fix:
Remove clip plan code
https://github.com/emileb/q3lite/blob/a03ea6fcabf5a3816cc0264cc73bbbd801a1a920/code/renderergles1/tr_backend.c#L478
It wasn't my fix, I found it in another implementation. Looks like they reimplemented the equivilent clip plane using znear.
I don't think this fix is necessary for this repo as it's only needed for a subset of Android devices.
Thanks again for getting back, much appreciated!
from q3lite.
Great, glad that you were able to get it working.
from q3lite.
Related Issues (20)
- Unsupported OpenGL Version (OpenGL ES 2.0), OpenGL 1.2 is required HOT 2
- Build error when we compile with USE_MUMBLE=1 (default) HOT 1
- Servers HOT 2
- ut HOT 6
- smoking guns game HOT 2
- Mirrors are black HOT 3
- Raspberry pi 4 support HOT 5
- Compiling fails under Raspberry Pi OS Bullseye HOT 5
- q3a-server guide HOT 4
- can't compile on linux
- Q3lite compatible with Pi Zero 2 W running Raspberry Pi OS Buster HOT 2
- Compile Error HOT 2
- Unable to determine platform type from /proc/cpuinfo HOT 4
- not an issue.. but a thankyou!
- Another Map Editor HOT 2
- 2D objects invisible when VC4 driver used on Raspberry Pi HOT 9
- Can't not type words at 'Talk' funsion HOT 6
- Building on Mali platform HOT 16
- Logging out after quitting game HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from q3lite.