Git Product home page Git Product logo

Comments (6)

cdev-tux avatar cdev-tux commented on May 26, 2024

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.

emileb avatar emileb commented on May 26, 2024

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.

emileb avatar emileb commented on May 26, 2024

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.

cdev-tux avatar cdev-tux commented on May 26, 2024

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.

emileb avatar emileb commented on May 26, 2024

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

And then:
https://github.com/emileb/q3lite/blob/a03ea6fcabf5a3816cc0264cc73bbbd801a1a920/code/renderergles1/tr_main.c#L997

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.

cdev-tux avatar cdev-tux commented on May 26, 2024

Great, glad that you were able to get it working.

from q3lite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.