You can help CodeWalrus stay online by donating here. | New CodeWalrus | Old (dark mode) | Old (light) | Discord server

FBO Particle System

b/PC, Mac & Vintage Computers Started by Snektron, January 22, 2015, 10:31:58 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

u/Dream of Omnimaga 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.
u/CKH4 January 29, 2015, 02:11:10 AM
On the subject of errors this happens when I try to run on Android via phoneME.
u/TheMachine02 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
Last Edit: January 29, 2015, 08:57:21 AM by TheMachine02
u/Snektron January 29, 2015, 09:14:28 AM
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).
u/TheMachine02 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.

u/CKH4 January 29, 2015, 01:07:29 PM
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).
Last Edit: January 29, 2015, 01:32:16 PM by CKH4
u/Dream of Omnimaga January 29, 2015, 01:27:11 PM
@Cumred I got an AMD Radeon HD 6700 series. I also have OpenGL 6.14.10.12002.
u/Snektron January 29, 2015, 02:30:42 PM
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 :).
Last Edit: January 29, 2015, 02:48:10 PM by Cumred_Snektron
u/Dream of Omnimaga January 29, 2015, 03:15:32 PM
Yeah I checked online and was surprised that my version was this high. This is what AMD Catalyst control center reports, at least.
u/Snektron January 29, 2015, 03:42:18 PM
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
u/Dream of Omnimaga January 29, 2015, 03:53:48 PM
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)
u/Snektron January 29, 2015, 04:05:40 PM
Yeah it's supposed to freeze, but it worked :D
now i finally have some error codes to work with.
u/TheMachine02 January 29, 2015, 04:06:33 PM
Well, I test it, and for me it does .... nothing. No error - no drawing ><
u/Snektron January 29, 2015, 04:07:56 PM
wut. What's the exact command you ran it with?
Also @DJO my first guess is that you do not have enough (v)ram.
u/Dream of Omnimaga January 29, 2015, 04:17:27 PM
I have 1 GB vRAM
Website statistics


MyCalcs | Ticalc.org | Cemetech | Omnimaga | TI-Basic Developer | MaxCoderz | TI-Story | Casiocalc.org | Casiopeia | The Museum of HP Calculators | HPCalc.org | CnCalc.org | Music 2000 Community | TI Education | Casio Education | HP Calcs | NumWorks | SwissMicros | Sharp Calculators
Powered by EzPortal