How to correctly use custom PMatrix with shaders as uniform (SOLVED)
Hello ! I searched for a while the correct way to play with PMatrix3D as a custom uniform for a shader and I finally get it, 5 minutes ago :) I used the code from the LowLevelGL example given in...
View Articlemultiple lights vertex
Hello, I have closer problem than http://forum.processing.org/two/discussion/comment/39054/#Comment_39054 my specific problem. i don't find a solution to split the position and the color of different...
View Articlemultiple points lights when light defined by shader
don't get how to set it up and can't seem to find any examples of how to do it calling pointLight(...); consecutively only seem to work without the shader being enabled,I know the shader itself works,...
View Article16-bit per channel image processing?
Is it possible to throw 16-bits/channel image data back and forth to a shader and then save it as a 48-bit PNG in Processing? Has anyone done anything like this?
View Article(SOLVED) LowLevelGl & texture , it doesn't work and really don't know why
Hello ! I would like to set a PImage to a "low-level-shader" but it doesn't work... Because it's boring to test a code with shaders, I put my processing project in a zip, and send it here...
View ArticleHow to send multiple textures to a vertex shader using PShape ?
Hello, Do you know how to send multiple textures to a vertex shader using PShape ? If I write pshape.texture(image); I can access the texture using uniform sampler2D texture; How can I use another...
View ArticlePimp up your sketches with GLSL filters
I started porting some filters from various sources into Processing. There's just two examples for now but more will come. You can get them from this Github repository Edit (may 27th 2015): The filters...
View ArticlePhotoshop blend modes, now in Processing!
Hello everyone, A few days ago, a GLSL implementation of all 25 Photoshop blend modes was posted to shadertoy.com: https://www.shadertoy.com/view/XdS3RW After a little tweaking, I got them all to work...
View ArticleDoing maths (multiplication & addition) in the GPU
Hi to all of the fellow members. I need to make some FIR filters with huge numbers of taps (200-400 taps) and I was thinking if it is possible to calculate everything in the gpu. My code now is void...
View ArticleTexture filtering
Hi all, I was wondering if it's possible to set the texture filtering of PGraphics anywhere, or if I'd have to use PGL instead? I searched around in the code and found some bits where it's being set up...
View Articleaccess a texture in a vertex PROCESSING_LINE_SHADER
Hello, do you know how I can acces a black and white texture in a vertex shader design to draw lines and edit the z position of each vertices based on the color of each pixel ? If in my sketch I put...
View Articleedit strokeWeight inside a vertex shader
Do you know how to edit the stroke weight of a line inside a vertex shader using a variable called uniform float strokeWeight ? The final idea is to attribute a different weight to each stroke. #define...
View Articleedit stroke position and stroke color of a PShape using shader
Hello ! I'm using a vertex shader with a Pshape to do some Vertex Displacement Mapping. It works fine with the shape but how can I access and edit its stroke (in red in the picture) ? Do you have some...
View ArticleFluid Modelling
Hello mates! So I've been looking for a 3D library for processing. I know you can build shapes in processing from scratch but I don't want to spend too much on a prototype and eventually find out it...
View ArticleWater Surface
Hi all, I'm trying to realistically model the surface of a river using PShapes and shaders. I'm using a matrix of PVectors to create movement representing the waves (this part is where the realistic...
View ArticleProcessing Gamma Correction Function
I am doing some programming in Processing with P3D/OpenGL that involves color manipulations in linear RGB space. I need to convert the Processing color into linear RGB by removing the gamma correction....
View ArticleHow can I render a grid using shaders?
I realise this is a very vague question. I have a grid composed of thousands of rectangles, and their colour is updated each frame. This makes the sketch call the fill() + rect() function around 40,000...
View ArticleI'd need help with my point shader
Hi, I'm trying to code a shader with processing: My aim is to pass an array of points to the shader, calculate their distance to the fragment and paint them with a circle colored with a gradient...
View Articlehow to return a modified version of a PShape from a PShader
Hello, Is it possible to return data from a PShader ? I'm using a vertex shader to update the vertices position of a PShape. I'd like to access this modified version to perform additional modifications...
View ArticleAdvice to get me back up to speed w 2.0+
So... I used to be pretty active w processing, circa 1.5 era, but have been "out of the scene" for quite a while. (heck, maybe some of my code contributions still litter core! who knows? :D) I'm now...
View Article