Loading...
Logo
Processing Forum
does somebody know how can i draw every frame, pixel by pixel, and still get a good framerate.
Something similar to ray trace.

My primal quuestion is just how to make some similar to below and still get a good frameRate

Copy code
  1. for(int a = o ; i< width ; i++) {
           for(int i = o ; i< height ; a++) {
               stroke(255,0,0);
               point(a,i);
          }
    }
ty
:D

Replies(4)

You can use a fragment shader.
how can i do that??
can u help me
i me new in this area
-----------------------------------------
i have watching u work and its amazing
its any form that u can teache me a litttle of wht u know??

It is very difficult to get a decent speed with Ray Tracing in general and Processing is not an exception. You're going to want to start with P2D and pixels[] (instead of point).

Edit: I am not sure why you mentioned P3D, do you know how Ray Tracing works?
but do u know any program that i can do something like take?.

i think that if u y«tell to run the pixel code part with the gpu instade of the cpu will run alot faster.
but can java or processing do that.
if not can u tell me were can do that?
ty
:D