Join us on Discord!
You can help CodeWalrus stay online by donating here.

FBO Particle System

Started by Snektron, January 22, 2015, 10:31:58 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dream of Omnimaga

Nope, still no luck. It says Fps: 60 Particles: 2350296 (tex size: 1536).


I also tried uninstalling Java then installing it again (both 32 and 64 bits) and still no luck. I am thinking it's just my graphic card that cannot handle it properly. It's from late 2011 or early 2012, after all.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

CKH4

On the subject of errors this happens when I try to run on Android via phoneME.
  • Calculators owned: TI-83+, TI-84+


TheMachine02

#47
There is definitly something wrong with one unsupported extension, since my intel HD3000 (openGL 3.0 I think)  can't run this program, but my nvidia710M (openGL 4.4) can.

16000000 of particles  O.O

Snektron

Quote from: CKH4 on January 29, 2015, 02:11:10 AM
On the subject of errors this happens when I try to run on Android via phoneME.

Well what did you expect? PoneME is java ME and my particle program is java SE.
Also i don't think there are android lwjgl natives so that defenitely won't work.
Nice try though, i shall think about an Android port :P.

Quote from: TheMachine02 on January 29, 2015, 08:55:44 AM
There is definitly something wrong with one unsupported extension, since my intel HD3000 (openGL 3.0 I think)  can't run this program, but my nvidia710M (openGL 4.4) can.

16000000 of particles  O.O
Any error messages? And 16M *.* That's a lot. At what FPS is that? :P
My poor AMD R7 250 can just about hanlde 10M at 15 fps.

Quote from: DJ Omnimaga on January 28, 2015, 11:39:54 PM
Nope, still no luck. It says Fps: 60 Particles: 2350296 (tex size: 1536).


I also tried uninstalling Java then installing it again (both 32 and 64 bits) and still no luck. I am thinking it's just my graphic card that cannot handle it properly. It's from late 2011 or early 2012, after all.
Oops, looks like i accidently released my heavy version. Anyway i shall add some native error checks, to see
if they have some errors. strange you can't run this but can run Minecraft, since minecraft also uses FBO's, Shaders
etc (but not OpenGL 3 so maybe that's the case).
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


TheMachine02

16M is like at 4fps :p
Same error as DJ_O, nothing appears, no error is produce, just nothing is displayed. OpengGl 3.3 is available on this card though, and minecrfat run on it (badly, but run).
And minecraft don't use shader as my knowing .... it realllly bad code. It use openGL 2.0 or so.


CKH4

#50
Ok, that makes sense. I was expecting that it would work because I believe that phoneME has open gl and Java 3d support. So yep, failure to read on my part.

Is the source available? I'd like to try to learn Java (and get better at GLSL because I pretty much suck).
  • Calculators owned: TI-83+, TI-84+


Dream of Omnimaga

@Cumred I got an AMD Radeon HD 6700 series. I also have OpenGL 6.14.10.12002.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Snektron

#52
Quote from: DJ Omnimaga on January 29, 2015, 01:27:11 PM
@Cumred I got an AMD Radeon HD 6700 series. I also have OpenGL 6.14.10.12002.
Seems legit, the latest openGL version is 4.5
EDIT: looks like windows uses it's own version codes ??? classic Microsoft

Quote from: TheMachine02 on January 29, 2015, 10:37:44 AM
16M is like at 4fps :p
Same error as DJ_O, nothing appears, no error is produce, just nothing is displayed. OpengGl 3.3 is available on this card though, and minecrfat run on it (badly, but run).
And minecraft don't use shader as my knowing .... it realllly bad code. It use openGL 2.0 or so.
Hmm i really need to find out what's causing that... :(
Also minecraft does in fact use shaders and framebuffers (i occasionally make mods, so i can look through the source :P).

Quote from: CKH4 on January 29, 2015, 01:07:29 PM
Is the source available? I'd like to try to learn Java (and get better at GLSL because I pretty much suck).

Not yet, but it will. I was first just gonna finish the project, but i've decided to continue working on it...
As of right now the code is quite messy and the first thing i'm gonna do is rewrite and reorganise a lot of
code. I'm not a great fan of working with Github when i do a solo project, but after the code is cleaned up i'll
upload after every update :). Also if you ever need any help with Java/GLSL i'm glad to help :).
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Dream of Omnimaga

Yeah I checked online and was surprised that my version was this high. This is what AMD Catalyst control center reports, at least.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Snektron

Debug release
to anybody having problems, i've released a debug version, which checks for errors after every
OpenGL call.
Download
This does require to be ran via the command line, because i don't have a custom logger.
java -jar Particles-debug.jar
Please post the error message :)

oh, and a small hint for people who don't know:
on most systems you can use ' > file' after a command to print it to a file
java -jar Particles-debug.jar > out.txt
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Dream of Omnimaga

This one freezes... O.O


But here is the debug info:

QuoteException in thread "main" org.lwjgl.opengl.OpenGLException: Out of memory (1285)
        at org.lwjgl.opengl.Util.checkGLError(Util.java:59)
        at org.lwjgl.opengl.GL11.glDrawArrays(GL11.java:1205)
        at net.quantuminfinity.particles.VBOPointCloud.render(VBOPointCloud.java:25)
        at net.quantuminfinity.particles.Renderer.onDraw(Renderer.java:213)
        at net.quantuminfinity.simpleengine.Engine.loop(Engine.java:72)
        at net.quantuminfinity.simpleengine.Engine.start(Engine.java:37)
        at net.quantuminfinity.particles.Particles.<init>(Particles.java:17)
        at net.quantuminfinity.particles.Particles.main(Particles.java:24)
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Snektron

Yeah it's supposed to freeze, but it worked :D
now i finally have some error codes to work with.
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


TheMachine02

Well, I test it, and for me it does .... nothing. No error - no drawing ><

Snektron

wut. What's the exact command you ran it with?
Also @DJO my first guess is that you do not have enough (v)ram.
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Dream of Omnimaga

  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Powered by EzPortal