Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (499)
Games in Android Showcase (118)
games submitted by our members
Games in WIP (567)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Lonely miner[Ludum dare]  (Read 4207 times)
0 Members and 1 Guest are viewing this topic.
Offline pitbuller
« Posted 2011-12-19 00:23:49 »

My ludum dare 48 entry.
http://www.ludumdare.com/compo/ludum-dare-22/?action=preview&uid=8170

Android version need more work. Performance need to be doubled at least.

I will tell more when I have slept couple days.
Offline philfrei
« Reply #1 - Posted 2011-12-19 04:07:15 »


Exception in thread "LWJGL Application" java.lang.NullPointerException
   at com.badlogic.gdx.graphics.glutils.ShaderProgram.loadShader(ShaderProgram.java:188)
   at com.badlogic.gdx.graphics.glutils.ShaderProgram.compileShaders(ShaderProgram.java:165)
   at com.badlogic.gdx.graphics.glutils.ShaderProgram.<init>(ShaderProgram.java:152)
   at kallen.Shaders.createShader(Shaders.java:52)
   at kallen.Fluids.create(Fluids.java:173)
   at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:143)
   at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:130)


Occurs after loading and extracting, before anything else happens.

I'm on WindowsXP, using Mozilla Firefox

"Greetings my friends! We are all interested in the future, for that is where you and I are going to spend the rest of our lives!" -- The Amazing Criswell
Offline ra4king

JGO Kernel


Medals: 347
Projects: 3
Exp: 5 years


I'm the King!


« Reply #2 - Posted 2011-12-19 04:20:59 »

It works fine for me. Maybe your system doesn't support shaders.

How do you play/What do you do? I just put bombs everywhere and waited for that hole in the ground to fill up with waste. Now what? :S

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline philfrei
« Reply #3 - Posted 2011-12-19 04:26:49 »

What is required for shaders?

"Greetings my friends! We are all interested in the future, for that is where you and I are going to spend the rest of our lives!" -- The Amazing Criswell
Offline pitbuller
« Reply #4 - Posted 2011-12-19 08:52:43 »

What is required for shaders?
I made it to work with gles 2.0. Don't know how that will mirror to desktop side. I used FBO and custom alpha test shader + alpha eraser. Becouse gles 1.1 do not support  FBO:s without extensions the fbo helper class do not support them without 2.0.

Quick fix would be using screenutils screenshot as FBO. Little hacky, ugly and slow but least it should work. Alpha test (if >0.25 then 0.4)should be doable with clever fixed pipeline usage and eraser would be just one big black quad with transparency.

Ra4king: there are doors at bottom. Dig to there.
Offline bach

Senior Member


Medals: 3
Projects: 2



« Reply #5 - Posted 2011-12-20 04:55:42 »


Exception in thread "LWJGL Application" java.lang.NullPointerException
   at com.badlogic.gdx.graphics.glutils.ShaderProgram.loadShader(ShaderProgram.java:188)
   at com.badlogic.gdx.graphics.glutils.ShaderProgram.compileShaders(ShaderProgram.java:165)
   at com.badlogic.gdx.graphics.glutils.ShaderProgram.<init>(ShaderProgram.java:152)
   at kallen.Shaders.createShader(Shaders.java:52)
   at kallen.Fluids.create(Fluids.java:173)
   at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:143)
   at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:130)


Occurs after loading and extracting, before anything else happens.

I'm on WindowsXP, using Mozilla Firefox

This is interesting. I got the same bug reported for my libgdx game using es 2.0 - I wonder if this is a libgdx problem or a hardware issue?

What's your gpu philfrei?

Bach
Offline philfrei
« Reply #6 - Posted 2011-12-20 05:50:55 »

GPU? I've never been asked that before.

Would that be the "NVIDIA GeForce FX 5200"? (Display Adapter)

I suspect I'm about to be told my graphics processor is hopelessly out of date.
 


"Greetings my friends! We are all interested in the future, for that is where you and I are going to spend the rest of our lives!" -- The Amazing Criswell
Offline ra4king

JGO Kernel


Medals: 347
Projects: 3
Exp: 5 years


I'm the King!


« Reply #7 - Posted 2011-12-20 06:23:28 »

Your GPU is hopelessly out of date (April 2003) Grin

Offline pitbuller
« Reply #8 - Posted 2011-12-20 09:50:06 »

Your GPU is hopelessly out of date (April 2003) Grin
Still my fault for not supporting it better.
Offline bach

Senior Member


Medals: 3
Projects: 2



« Reply #9 - Posted 2011-12-20 21:29:20 »

Your GPU is hopelessly out of date (April 2003) Grin
Still my fault for not supporting it better.

I'd like to get to the bottom of this .. Hmm. Any ideas how to solve this issue pitbuller?

Smiley
Bach
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline pitbuller
« Reply #10 - Posted 2011-12-21 10:08:13 »

Your GPU is hopelessly out of date (April 2003) Grin
Still my fault for not supporting it better.

I'd like to get to the bottom of this .. Hmm. Any ideas how to solve this issue pitbuller?

Smiley
Bach

Back to fixed pipeline? I would want to see how you could do your shader with 1.1 Smiley
Offline ReBirth
« Reply #11 - Posted 2011-12-21 12:15:58 »

Nice game. About performance... it lags a bit when the fluid splashing around.

Online Mike

JGO Wizard


Medals: 84
Projects: 1
Exp: 6 years


Java guru wanabee


« Reply #12 - Posted 2011-12-21 12:31:43 »

After about 5 minutes it started lagging so badly that it became unplayable (it slowly built up the lag). I also seem to not be able to loose life no matter how much I try.

Mike

My current game, Minecraft meets Farmville and goes online Smiley
State of Fortune | Discussion thread @ JGO
Offline pitbuller
« Reply #13 - Posted 2011-12-22 09:11:46 »

After about 5 minutes it started lagging so badly that it became unplayable (it slowly built up the lag). I also seem to not be able to loose life no matter how much I try.

Mike
Performance tuning with fluid physic was kinda pretty hasty. I end up capping the water parciles to 1000 and that is too much sometimes. For some reason I forget to multiple damage from fluid with delta time so its get easier when fps go down. But I have made some improvement and it currently work OK'ish even with android. I also have made progress with soften the lights effects.
Offline pitbuller
« Reply #14 - Posted 2011-12-28 10:42:12 »

http://www.ludumdare.com/compo/2011/12/28/how-to-make-water-simulation-in-couple-hours/

Little tutorial how to make water sim.
Offline pitbuller
« Reply #15 - Posted 2011-12-28 23:28:53 »

http://www.ludumdare.com/compo/2011/12/28/how-to-make-water-simulation-in-couple-hours/
Accidentally posted wrong link.
Offline badlogicgames
« Reply #16 - Posted 2012-01-06 10:56:56 »

You can request a 2.0 context and then check if it's available (Gdx.graphics.forgotTheNameOfTheMethod Cheesy). If the system the app runs on doesn't support GLES 2.0, ask for a driver update or fall back to a fixed function renderer.

The GeForce FX 5200 supports OpenGL 1.5 where shader's were only exposed through extensions. We could map GLES 2.0 to that if shader extensions are available. I'd rather not though Smiley


http://www.badlogicgames.com - musings on Android and Java game development
Offline pitbuller
« Reply #17 - Posted 2012-01-06 12:15:53 »

Thanks. My first gles2.0 and ludum dare game. That was bit risky aproach.
Still I should have remember to use.
1  
Gdx.graphics.isGL20Available()
Pages: [1]
  ignore  |  Print  
 
 

 
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!