Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  Lonely miner[Ludum dare]  (Read 2196 times)
0 Members and 1 Guest are viewing this topic.
Offline pitbuller

Sr. Member
**

Posts: 340
Medals: 9



« on: 2011-12-18 19: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

Sr. Member
**

Posts: 493
Medals: 24



« Reply #1 on: 2011-12-18 23: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

"Life is short, art long, opportunity fleeting, experience treacherous, judgment difficult." Smiley
Offline ra4king

JGO Kernel
*****

Posts: 3158
Medals: 196


I'm the King!


« Reply #2 on: 2011-12-18 23: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! Go get 'em!
Offline philfrei

Sr. Member
**

Posts: 493
Medals: 24



« Reply #3 on: 2011-12-18 23:26:49 »

What is required for shaders?

"Life is short, art long, opportunity fleeting, experience treacherous, judgment difficult." Smiley
Offline pitbuller

Sr. Member
**

Posts: 340
Medals: 9



« Reply #4 on: 2011-12-19 03: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

JGO n00b
*

Posts: 33
Medals: 2



« Reply #5 on: 2011-12-19 23: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

Sr. Member
**

Posts: 493
Medals: 24



« Reply #6 on: 2011-12-20 00: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.
 


"Life is short, art long, opportunity fleeting, experience treacherous, judgment difficult." Smiley
Offline ra4king

JGO Kernel
*****

Posts: 3158
Medals: 196


I'm the King!


« Reply #7 on: 2011-12-20 01:23:28 »

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

Offline pitbuller

Sr. Member
**

Posts: 340
Medals: 9



« Reply #8 on: 2011-12-20 04:50:06 »

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

Offline bach

JGO n00b
*

Posts: 33
Medals: 2



« Reply #9 on: 2011-12-20 16: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! Go get 'em!
Offline pitbuller

Sr. Member
**

Posts: 340
Medals: 9



« Reply #10 on: 2011-12-21 05: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

JGO Wizard
****

Posts: 1275
Medals: 19



« Reply #11 on: 2011-12-21 07:15:58 »

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

Offline Mickelukas

JGO Ninja
***

Posts: 731
Medals: 25


Java guru wanabee


« Reply #12 on: 2011-12-21 07: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

Offline pitbuller

Sr. Member
**

Posts: 340
Medals: 9



« Reply #13 on: 2011-12-22 04: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

Sr. Member
**

Posts: 340
Medals: 9



« Reply #14 on: 2011-12-28 05: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

Sr. Member
**

Posts: 340
Medals: 9



« Reply #15 on: 2011-12-28 18:28:53 »

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

Offline badlogicgames

Full Member
**

Posts: 145
Medals: 3152



« Reply #16 on: 2012-01-06 05: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

Sr. Member
**

Posts: 340
Medals: 9



« Reply #17 on: 2012-01-06 07: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]
  Print  
 
 
Jump to:  


Add your game by posting it in the showcase section.

The first screenshot will be displayed as a thumbnail.

obsidian_golem 2012-05-23 10:14:50

Danny02 2012-05-21 17:10:34

Danny02 2012-05-21 17:07:10

Danny02 2012-05-21 16:56:12

davedes 2012-05-21 13:59:23

obsidian_golem 2012-05-20 20:28:41

darkjava55 2012-05-12 16:14:40

Ultroman 2012-05-12 09:36:05

Ultroman 2012-05-11 22:49:53

Ultroman 2012-05-11 22:20:01
Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.216 seconds with 20 queries.