Git Product home page Git Product logo

Comments (5)

jnsmalm avatar jnsmalm commented on August 21, 2024

Could you please specify where in the code you did these changes?

from pixi3d.

vujadin avatar vujadin commented on August 21, 2024

I've replaced Uint32Array with Uint16Array in two places where geometry index buffers are created:
https://github.com/jnsmalm/pixi3d/blob/develop/src/mesh/mesh-shader.ts#L33
https://github.com/jnsmalm/pixi3d/blob/develop/src/shadow/shadow-shader.ts#L23

from pixi3d.

vujadin avatar vujadin commented on August 21, 2024

And for shaders, where ever I found "gl_FragColor". There were 5 of them in js file so I guess its these:
https://github.com/jnsmalm/pixi3d/search?q=highp

Game was crashing on this one specifically, its probably the first one to be used:
https://github.com/jnsmalm/pixi3d/blob/76338386dba9a153009cd7a262df1a0e113a86f6/src/shadow/shader/gaussian-blur.frag

from pixi3d.

jnsmalm avatar jnsmalm commented on August 21, 2024

I may have fixed the issues with Uint32Array and "highp". Please get latest from develop branch, build it, and let me know if it works better for you.

Something to have in mind though: If the model contains very many triangles (with indices) you will still get some error from PIXI if the device doesn't support uint32 (can't do anything about that - in that case the user of PIXI3D have to use simpler models). About highp/mediump, if the device doesn't support highp it may not render correctly (depending on the setup of the material and lighting).

from pixi3d.

vujadin avatar vujadin commented on August 21, 2024

Tested on two devices with a problem - Samsung J2 and Infinix Hot 5 Lite, works fine on both.
I'm aware of those limitations. We're using super low-poly models and very basic lighting - single directional light. This works for us, everything is rendered correctly.
Thanks!

from pixi3d.

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.