Git Product home page Git Product logo

Comments (7)

Luke100000 avatar Luke100000 commented on June 3, 2024

Roughly related to #57
It looks to me like a reduced bit depth for the depth buffer may cause issues, I will investigate that. Thanks for the report and kind words!

from 3dreamengine.

SugarRayLua avatar SugarRayLua commented on June 3, 2024

Thanks for your prompt reply and checking into it :-)

(PS, I'm also going to write the love.js maintainer; I was hoping to be able to use love.js to port 3DreamEngine projects I make to the web but the port wouldn't run-- it said it couldn't find a "remote file")

I look forward to seeing what I can create with the 3DreamEngine.

Have a good rest of your weekend.

from 3dreamengine.

SugarRayLua avatar SugarRayLua commented on June 3, 2024

PS, @Luke100000,
One of the developers on the love2d github site that I previously asked about mobile/desktop Love graphic compatibility, wrote this tip:

"For those shaders, on mobile devices love uses OpenGL ES, whose shading language is a little more strict and limited compared to desktop OpenGL.

You can write shaders that are compatible with both as long as a few things are kept in mind. For example uniform/extern variables can't be initialized to constant values in the shader code, you have to use Shader:send instead. And there's no implicit conversion between float and int variables in OpenGL ES' shading language - typically you'd want to stick with floats most places, but when you do need to use ints you can explicitly cast between float and int:

float myFloatVariable = float(myIntVariable);
int myNewIntVariable = int(myFloatVariable);"

Not sure if some of that information might be why the 3DreamEngine works perfectly on desktop and doesn't render some things on my iOS and the Android device you mentioned. Not sure if you were intending to have the 3DreamEngine compatible with both desktop and mobile Love devices nor if it would now be difficult to modify the 3DreamEngine to be equally as compatible with iOS and Android devices running the 3Dream Engine.

Fyi and have a good rest of your week.

from 3dreamengine.

SugarRayLua avatar SugarRayLua commented on June 3, 2024

Thanks for working on this, @Luke100000. :-)

It sounds like from the discord forum that its working now well on your phone (android)? Unfortunately now none of the shaders seem to work on iOS (iPad). I can run the main screen but when I try and start any of the examples I get the following error:

Error

Cannot link shader program object:
WARNING: Output of vertex shader 'VaryingColor' not read by fragment shader
ERROR: Input of fragment shader 'varyingTangent' not written by vertex shader
ERROR: Input of fragment shader 'varyingBitangent' not written by vertex shader

Traceback

[love "callbacks.lua"]:228: in function 'handler'
[C]: in function 'newShader'
3DreamEngine/shader.lua:387: in function 'getRenderShader'
3DreamEngine/classes/scene.lua:188: in function 'addMesh'
3DreamEngine/classes/scene.lua:136: in function 'addObject'
3DreamEngine/classes/scene.lua:131: in function 'addObject'
3DreamEngine/classes/scene.lua:72: in function 'add'
3DreamEngine/render.lua:31: in function 'buildScene'
3DreamEngine/render.lua:146: in function 'render'
3DreamEngine/render.lua:342: in function 'renderFull'
3DreamEngine/render.lua:495: in function 'present'
examples/AlphaBlending/main.lua:46: in function 'draw'
run.lua:34: in function run.lua:10
[C]: in function 'xpcall'

not sure if a simple correction or actually running shader code on Android that much different than iOS. I tested the latest repository today (download from github today).

from 3dreamengine.

Luke100000 avatar Luke100000 commented on June 3, 2024

That's the curse of every glsl compiler being different :( I can fix the error you mentioned, but then something else will pop up, and I do not have access to an iOS.

from 3dreamengine.

SugarRayLua avatar SugarRayLua commented on June 3, 2024

Understood-- thank you.

from 3dreamengine.

Luke100000 avatar Luke100000 commented on June 3, 2024

Fixed the errors you sent

from 3dreamengine.

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.