Dark Bit Factory & Gravity
PROGRAMMING => Purebasic => Topic started by: inc. on May 10, 2016
-
Hi,
i'm coding a new Demo. trying to get GLSL correctly running. and checking out how i can add some text and other things in front of a glsl screen
here is a first preview
have fun
EDIT: [a quick & dirty new compilation]
had no time for detailed output, but maybe it is solved yet?
exe compilation updated
-
Screenshot looks cool but I only get a black window on my nvidia quatro k620m. But lets face it, its not the best card :P
-
hm. i have the Nvidia gtx 950. works smoove. Tested with Windows 7 64 bit and Windows 7 32 bit and here we have a Nvidia gts 250.
-
Looking cool already! :clap:
-
Sorry mate i only get a black window too
-
uh. strange.
is some one able to run this exe properly?
i have no problems with it at all
-
Amazing and very cool Demo Test you did there!
I really like the scene and the music! Cant wait for final version :clap:
-
great. thank you very much. the final will be a multi Part Demo with different shaders and some 3D stuff.
-
Sorry mate, not working here also.
Try to add some shader info log (glGetShaderInfoLog) to your program and maybe we can help you to fix it.
My specs:
OpenGL Vendor: Intel
OpenGL Renderer: Intel(R) HD Graphics 4600
OpenGL Version: 4.3.0 - Build 20.19.15.4331
GLSL Version: 4.30 - Build 20.19.15.4331
-
Sorry mate, not working here also.
Oh, this is going insane. Yes i'll add more specific Code. Thanks for your feedback.
i changed quickly a few lines. maybe this solved the black screen?
pls try the new exe
thanks
-
Still black here.
-
ok. thanks. i'll take more time, to find what's going on.
-
Works fine here and looks cool. Nvidia GTX 970 and Win10 64Bit.
-
Works fine here and looks cool. Nvidia GTX 970 and Win10 64Bit.
thank you. i appreciate your comment mate :kewl:
-
Hi inc
Is this based on code you got from the PB forums? If so I never had any luck with anyone being able to tell me how to gel together shaders and sprites.
PS have a look where I got too...
-
Hi,
this Demo is a first test and preview how's working on different windowz PC and was written by me. But you 're right, many code is out there. And this is fine. The Purebasic community is open to share knowledge and useful Sourcecode. Without, I wouldn't be at this point, who am i today. I'll have a look to your attachment later today. Not online with a windowze. If i understand you right, you have trouble to add sprites onto a glsl screen. It is possible. That's the work i do at the Moment. Adding 3D objects, some Text and different music + shaders. The final Demo will be a multipart showcase. when i have news, i'll leave a message here.
One question:
are you able, running my exe successful? Some buddies only see a Black screen. But i must excuse, the code is Not cleaned yet. I'm on it.
Reply - later today.
Best
Inc
-
PS have a look where I got too...
not working, bass.dll is missing
-
just add bass.dll
-
thanks. i tried to run your demo, music is playing fine but all i see is a black fullscreen.
can you change the output to window mode? i have problems to view demos in fullscreen because i have 3 tft pluged onto my pc.
edit
i see a file was written next to your demo:
metalskyle.glsl but it's 0kb
the shader is empty
-
I've uploaded all the required files and sources (I think!)
-
we programmed a Shader Tool to create on the fly own GLSL Shaders. Of course Shaders are moving and been animated in that tool.
It is possible to manipulate or rewrite or start from the scratch with a brand new GLSL Shader.
I just loaded up your shader and looks nice in there :D
Spheres are missing in the shader but i have not checked your PB Code yet. Seem to be no Shader? (btw. nice flicker effect to the music)
Shader Tool screenshot:
(https://abload.de/img/unbenannt75o3q.png)
Video:
https://www.youtube.com/watch?v=pcqRxk3kzOU&feature=youtu.be
i must write a help file and after this, the bublic release will be out.
after all it is possible to do some pre work for later Demo Coding.
you can write your own GLSL Shader on the fly and export 'em for the PB Demo usage as *.PBI include file. I'll add a Demo PB Script too, to make things easier, starting over with the demo programming.
so long.
best
inc
-
I've uploaded all the required files and sources (I think!)
can you bring a lil bit light in the darkness of your code?
how did you created the flashing/ flickering bubbles ontop of the GLSL shader?
Demo Code itself are missing in your package. there is only the bass.dll lib/ wrapper
thanks for a reply
============================================================
i expanded the GLSL Demo code. now it is possible to call more than one shader and mix 'em to nice effects.
(https://abload.de/img/neu-2kaqeq.png)
demo attached
-
Sorry mate i only get a black screen....
-
this is really frustrating. i used a clean code.
what specs do you have?
system, os and so on
-
Tested your download here and it works inc.
But the shader code itself runs quite slow for me. but thats my machine.
Maybe you should run a test here with another shader code i suggest ( megawave or Techtunnel ;) )
-
(https://s19.postimg.org/lcfva0w9f/ACi_DGLSL.png)
Okay here is my first attempt with this new cool GLSL pb routine
Coded and provided by inc.
Let us know if this one runs better for you ;)
-
Windows 7 home premium
i7 8gb ram
-
Windows 7 home premium
i7 8gb ram
GFX Card pls
-
I've uploaded all the required files and sources (I think!)
Hi Emook i have tested your GLSL script and it starts then page stays blank.
After a few secs my gfx card loses connection and i get directed to this Help page of Nvidia.
http://nvidia.custhelp.com/app/answers/detail/a_id/3007 (http://nvidia.custhelp.com/app/answers/detail/a_id/3007)
Im also working on this GLSL PureBasic routine project.
And my experience is that the problem with it is how big the GLSL shader routine is and how much shaders/effects it contains and calling from your gfx card.
example :
The first post of inc on this topic runs and works for me but very slow.
There are loads of written GLSL shader scripts and a few standards like (1)Vertex shader and (2)Fragment shader. (OpenGLEs 2.0 /3.0)
The first makes the GLSL shader run smooth if your machine specs and GFX card supports the routine demands and sec as the name says is loaded and running in Fragments les intensive but doesnt run smooth.
There are loads of GLSL shader scripts and routines out there that do look good and work smoothly.
A nice source to test and start is on the Android Mobile platform https://play.google.com/store/apps/details?id=info.u250.glsl&hl=en (https://play.google.com/store/apps/details?id=info.u250.glsl&hl=en)
Install this GLSL Gallery.Over 11,701 examples now can run on Android.
* OpenGL ES 2.0
* Libgdx
you can see for yourself now wich scripts are to heavy for higher end specs and wich ones run smoothly on most common setups.
My specs :
Windows7 ultimate sp1 32bits
4GB ddr2 memory
GFX NVIDIA GeForce 8200M G
Manufacturer NVIDIA
Model GeForce 8200M G
GPU MCP77MV/MCP79MVL
Device ID 10DE-0845
Revision A3
Subvendor HP (103C)
Current Performance Level Level 1
Current GPU Clock 169 MHz
Current Memory Clock 666 MHz
Current Shader Clock 666 MHz
Voltage 0.920 V
DirectX Support 10.0
DirectX Shader Model 4.0
OpenGL Support 3.0
Bus Interface FPCI
Temperature 64 °C
Driver version 21.21.13.4201
BIOS Version 62.77.2f.00.07
ROPs 4
Shaders 16 unified (if the GLSL Routine Script needs more you get lagging or blank screen)
Memory Type System
Memory 256 MB
Count of performance levels : 3
Level 1 - "Default"
GPU Clock 169 MHz
Memory Clock 338 MHz
Shader Clock 666 MHz
Level 2 - "2D Desktop"
GPU Clock 275 MHz
Memory Clock 550 MHz
Shader Clock 666 MHz
Level 3 - "3D Applications"
GPU Clock 400 MHz
Memory Clock 800 MHz
Shader Clock 666 MHz
Info made with Speccy :http://www.piriform.com/speccy (http://www.piriform.com/speccy)
More info about GLSL programming and standards @ wikibooks : https://en.wikibooks.org/wiki/GLSL_Programming (https://en.wikibooks.org/wiki/GLSL_Programming)
Goodluck with this cool Purebasic GLSL shader project i hope this info helped a bit.
greets Wolf
-
Ok let me look at the code again.
It should be quite simple. bass.dll and the sharder data and code inside the main program.