Quantcast
Channel: GLSL / Shaders - Processing 2.x and 3.x Forum
Browsing all 212 articles
Browse latest View live
↧

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 Article


multiple 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 Article


multiple 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 Article

16-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 Article


How 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 Article

Image may be NSFW.
Clik here to view.

Pimp 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 Article

Image may be NSFW.
Clik here to view.

Photoshop 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 Article


Doing 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 Article


Texture 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 Article

access 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 Article

edit 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 Article

Image may be NSFW.
Clik here to view.

edit 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 Article


Fluid 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 Article

Water 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 Article


Processing 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 Article

How 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 Article


Image may be NSFW.
Clik here to view.

I'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 Article

how 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 Article

Advice 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
Browsing all 212 articles
Browse latest View live