real time data program
hey guys. in this time i need some help to optimize a system to pick shaders in real time (fragment shaders, and vertex shaders). This code is a mix that i recoleted in internet with code writing by...
View ArticleHow to combine a point shader with a blur shader?
I would like to display thousands of points on a 3D canvas with a Depth of Field effect. More specifically, I would like to use a z-buffer (depth buffering) to adjust the level of blur of a point based...
View ArticleSend individual msj to a shader
hey everybody. this time ive a problem sending invididual mensajes to a fragment shader. Ive an array of spheres, and i want that every sphere have a different size of blur, witch is a uniform of the...
View ArticleCodingTrain Fire&Water
TheCodingTrain channel did two videos recently on water and fire effects. He did them in just processing, I'm doing it in processing with shaders. For the water, I didn't have any issues converting it...
View ArticleUse samplerCube and sampler2D in a single glsl Shader
How can I use a samplerCube and sampler2D in a single glsl Shader ? I get the following error when I try to use both at the same time : Cannot validate shader program:Validation Failed: Sampler error:...
View Articlehow to combine shadows + reflections in frag shader?
To put it as simply as possible, I'm modifying and recompiling PixelFlow's render.frag and render.vert files to allow me to add cubemap-based reflections to PixelFlow's skylight renderering system....
View ArticleNVidia/AMD differences?
I made a tower defense game for a game jam in processing3 https://indielm.itch.io/sap42 The path finding for enemies is all done in a shader on the gpu. I don't have access to an AMD machine, but I'm...
View ArticleHow to implement a z-buffer within a blur fragment shader
Hi all, I'm trying to fake a Depth of Field effect in a 3D scene. More specifically, I would like to use a z-buffer (depth buffering) to adjust the level of blur of a an object based on its distance...
View ArticleShadertoy shader not rendering until screen window is resized if...
I'm trying to figure out DwShadertoy's implementation of Shadertoy shaders, however there are two big issues I've ran into. The first is that the window won't render until it is resized when...
View ArticleHow to port shaders from shaderfog, shadertoy to Processing?
As a very confused opengl beginner complete beginner who is struggling to get started I have a few questions. Is it possible to use GLSL directly in processing or do you need to port to PShader? Is...
View ArticleReaction-Diffusion using GLSL works different from normal
I managed to get Reaction Diffusion Algorithm to run on the GPU, but now I'm having problems. The code runs and all, but the effect is much different from the effect I get with Reaction Diffusion...
View ArticleImplementing a gooey effect with a shader
I'm trying to replicate a web design trick know as "gooey effect" (see it live here). It's a technique applying SVG filters on moving ellipses in order to get a blob-like motion. The process is rather...
View ArticleAre Processing's shaders fast enough?
It's said that OpenFrameworks runs much faster than Processing, so many artists choose OF in live performances other than Processing. But I just wonder how fast it is to use Processing's shaders...
View ArticleDraw points from texture stored locations?
I want to pass a shader a texture of encoded locations, and have it draw points at the decoded locations. I have a particle system stored in a texture that's 3000x1, with the x and y locations encoded...
View ArticleHow to port this shader to Processing 3?
Shader in question: https://shaderfrog.com/app/view/1078?view=shader I'm a complete GLSL noob and was wondering how to go about applying this shader to an imported .obj in Processing. My sketch is...
View ArticleGet pixel values and displace the vertex?
I want to write GLSL shaders that use the pixel values of the image as magnitude in order to displace the vertices of an object in the direction of the surface normal. Incorporate a point light and...
View ArticleRender depth buffer onto 2d PGraphics
I would like to use the depth buffer of a PGraphics3D in a texture shader on a PGraphics2D. Now I could not really find a way to share the depth buffer of the 3d scene with the 2d texture, so I decided...
View ArticleSetting projection and modelview matrices manually
Hi. I'd like to copy the projection and modelView matrices from one PGraphics into another one so I can render different passes of the same scene no matter what camera library is in use. I have tried...
View ArticleHow do use a sampler2d array in Processing?
I would like to keep a frame buffer in the shader (say, the last 1 second of video). To do that I tried with uniform sampler2D tex[30]; and from Processing sometimes I try writing into that array with...
View ArticleTrouble setting uniforms for PShaders used by secondary renderers
I'm trying to do some low-level OpenGL rendering onto a separate PGraphics buffer for a library I'm rewriting, and I've run into an issue where I can get my geometry to render on the separate PGraphics...
View Article