jsjolund / gdxdemo3d Goto Github PK
View Code? Open in Web Editor NEW3D demo game built with libGDX
License: Apache License 2.0
3D demo game built with libGDX
License: Apache License 2.0
If the stick is on the ground when the man whistles then the dog should first pick it up.
I got
01-23 10:12:51.521 12326-12353/com.mygdx.game.android E/AndroidRuntime﹕ FATAL EXCEPTION: GLThread 10815
Process: com.mygdx.game.android, PID: 12326
com.badlogic.gdx.utils.GdxRuntimeException: Vertex shader compilation failed.
ERROR: 0:430: ')' : Syntax error: syntax error
ERROR: 1 compilation errors. No code generated.
Fragment shader compilation failed.
ERROR: 0:269: '(' : Syntax error: syntax error
ERROR: 1 compilation errors. No code generated.
at com.badlogic.gdx.graphics.g3d.shaders.BaseShader.init(BaseShader.java:167)
at com.badlogic.gdx.graphics.g3d.shaders.DefaultShader.init(DefaultShader.java:586)
at com.badlogic.gdx.graphics.g3d.utils.BaseShaderProvider.getShader(BaseShaderProvider.java:35)
at com.badlogic.gdx.graphics.g3d.ModelBatch.render(ModelBatch.java:269)
at com.mygdx.game.GameRenderer.update(GameRenderer.java:198)
at com.mygdx.game.GameScreen.render(GameScreen.java:221)
at com.badlogic.gdx.Game.render(Game.java:46)
at com.badlogic.gdx.backends.android.AndroidGraphics.onDrawFrame(AndroidGraphics.java:460)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1535)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)
01-23 10:12:55.647 12326-12326/com.mygdx.game.android E/AndroidGraphics﹕ waiting for pause synchronization took too long; assuming deadlock and killing
on my nexus 5,android 6.0.
PC works fine,but on android I got
01-22 23:16:49.077 27070-27156/? E/AndroidRuntime﹕ FATAL EXCEPTION: GLThread 8623
Process: com.mygdx.game.android, PID: 27070
com.badlogic.gdx.utils.SerializationException: Error reading file: models/json/scene0_model.json
at com.badlogic.gdx.utils.Json.fromJson(Json.java:705)
at com.mygdx.game.blender.BlenderObjectMap.deserialize(BlenderObjectMap.java:50)
at com.mygdx.game.blender.BlenderObjectMap.addFromJson(BlenderObjectMap.java:36)
at com.mygdx.game.blender.BlenderAssetManager.loadPlaceholders(BlenderAssetManager.java:149)
at com.mygdx.game.GameScreen.(GameScreen.java:92)
at com.mygdx.game.GdxDemo3D.create(GdxDemo3D.java:48)
at com.badlogic.gdx.backends.android.AndroidGraphics.onSurfaceChanged(AndroidGraphics.java:279)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1519)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)
Caused by: com.badlogic.gdx.utils.SerializationException: Error parsing file: models/json/scene0_model.json
at com.badlogic.gdx.utils.JsonReader.parse(JsonReader.java:77)
at com.badlogic.gdx.utils.Json.fromJson(Json.java:703)
at com.mygdx.game.blender.BlenderObjectMap.deserialize(BlenderObjectMap.java:50)
at com.mygdx.game.blender.BlenderObjectMap.addFromJson(BlenderObjectMap.java:36)
at com.mygdx.game.blender.BlenderAssetManager.loadPlaceholders(BlenderAssetManager.java:149)
at com.mygdx.game.GameScreen.(GameScreen.java:92)
at com.mygdx.game.GdxDemo3D.create(GdxDemo3D.java:48)
at com.badlogic.gdx.backends.android.AndroidGraphics.onSurfaceChanged(AndroidGraphics.java:279)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1519)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)
Caused by: com.badlogic.gdx.utils.GdxRuntimeException: File not found: models/json/scene0_model.json (Local)
at com.badlogic.gdx.files.FileHandle.read(FileHandle.java:136)
at com.badlogic.gdx.backends.android.AndroidFileHandle.read(AndroidFileHandle.java:80)
at com.badlogic.gdx.files.FileHandle.reader(FileHandle.java:163)
at com.badlogic.gdx.utils.JsonReader.parse(JsonReader.java:75)
at com.badlogic.gdx.utils.Json.fromJson(Json.java:703)
at com.mygdx.game.blender.BlenderObjectMap.deserialize(BlenderObjectMap.java:50)
at com.mygdx.game.blender.BlenderObjectMap.addFromJson(BlenderObjectMap.java:36)
at com.mygdx.game.blender.BlenderAssetManager.loadPlaceholders(BlenderAssetManager.java:149)
at com.mygdx.game.GameScreen.(GameScreen.java:92)
at com.mygdx.game.GdxDemo3D.create(GdxDemo3D.java:48)
at com.badlogic.gdx.backends.android.AndroidGraphics.onSurfaceChanged(AndroidGraphics.java:279)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1519)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)
Hello jsjolund,
I'm running into this problem "java.lang.NoSuchMethodError: com.badlogic.gdx.scenes.scene2d.Actor.getListeners()Lcom/badlogic/gdx/utils/Array;"
Can you point me in the right direction of how to fix this step by step? I just need a starting point.
Where in Android Studio I should add --verbose:class when running the app? I'm a newbie. Everywhere online says just add this code, that code, but where should it be added in the system? I can't seem to find it. The official Android website is no help. Thanks
blender_export.py how to use. pls
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.