mellinoe / veldrid-samples

Sample projects for Veldrid
https://mellinoe.github.io/veldrid-docs/
121 stars 49 forks source link

OpenGLES Android black screen in release #7

Open taumuon opened 6 years ago

taumuon commented 6 years ago

Hi, I got the android sample to work on an LG G4 (which supports ES 3.1) by removing the call that sets Debug=true (I raised an earlier issue for this).

When I try to run the release build of the sample, I only get a black screen. I changed the clear color to grey to see if it was actually drawing anything (to eliminate problems loading texture etc) but it still results in a black screen.

Can you think of any differences in the code between debug and release that could cause this?

I tried debugging, but I got a message something like "your project settings don't allow debugging".

Kind of related, but I could see if I get more information from running a local build of Veldrid - how do I do this? Do I need to setup a local nuget repository from a local build of Veldrid?

Thanks,

gary

mellinoe commented 6 years ago

I'll take a look with the latest version and see if I can repro on my device. Which sample are you hitting trouble with, TexturedCube?

Kind of related, but I could see if I get more information from running a local build of Veldrid - how do I do this? Do I need to setup a local nuget repository from a local build of Veldrid?

Yeah, it's a bit painful unfortunately. You can set up a local repository and then add it to the NuGet.Config file. For the desktop projects, you can just change the version in Directory.Build.props and it will affect all desktop projects, but unfortunately all of the Android projects list their own versions. So you have to go into each individual Android project and change the version there.

taumuon commented 6 years ago

Hi, yep, it's the TexturedCube. I'm not near a computer much the next couple of weeks, but I remember I couldn't get any of the other examples that rely on assimp to run - I'm still having the issues I mentioned in: https://github.com/mellinoe/veldrid/issues/52 ) Thanks, Gary