Commit Graph

466 Commits

Author SHA1 Message Date
codeanticode
0b7acff798 removed cameraDepth, using default near and far values for ortho() 2012-04-26 15:49:44 +00:00
codeanticode
97754afccf corrected centering in ortho 2012-04-26 14:23:32 +00:00
codeanticode
0ae2664ef4 quads are build with uv coords 2012-04-25 21:54:15 +00:00
codeanticode
e563db5b09 Copying indices element by element since output is int and internal arrays are short 2012-04-25 20:24:52 +00:00
codeanticode
52b3221a5c use break in bezier, curve. restored previous tess query methods 2012-04-25 15:41:22 +00:00
codeanticode
e55e155dd5 Implemented all primitives in PShape3D 2012-04-25 01:06:59 +00:00
codeanticode
7d675ec48c Making sure that a PImage always has a non-null parent when adding a texture 2012-04-24 19:16:07 +00:00
codeanticode
0eba7c327e Updated opengl examples 2012-04-24 16:57:42 +00:00
codeanticode
ff2f74994e Removed finalize resource warning 2012-04-24 16:57:22 +00:00
codeanticode
89aa6ecc22 rotate() check for zero vectors, fixed naming error in PGL.Context class 2012-04-24 16:13:09 +00:00
codeanticode
164cfacc26 gl resource arrays also store context 2012-04-24 15:09:20 +00:00
codeanticode
6b7cb19d8d save/restore offscreen surfaces as well 2012-04-23 22:59:39 +00:00
codeanticode
f8922cf5d8 save/restore onscreen surface 2012-04-23 20:14:40 +00:00
codeanticode
9afac62a0b Fixes to the GL-resource handling mechanism. 2012-04-23 15:39:16 +00:00
codeanticode
78495202b1 curve and bezier vertex code moved to InGeometry 2012-04-23 01:19:47 +00:00
codeanticode
ce8cd2f652 More detailed error message when vertex index goes beyond 32767. 2012-04-21 21:48:29 +00:00
codeanticode
4c9bd15076 Corrected calculation of Blinn-Phong factor used in specular lights. 2012-04-21 21:33:33 +00:00
codeanticode
7083509f98 Updated TexturedSphere example to use a PShape object for the sphere 2012-04-21 17:28:24 +00:00
codeanticode
bf31211257 Calculation of transparency in lighting shaders is determined exclusively by diffuse component. 2012-04-21 17:22:36 +00:00
codeanticode
c27171555d Completed new sphere tessellation code 2012-04-21 16:01:16 +00:00
codeanticode
064b341b37 Triangle tessellation can use custom connectivity specification, used in sphere tessellation 2012-04-16 23:07:01 +00:00
codeanticode
98987aa6a2 Added wiggling example 2012-04-16 22:00:44 +00:00
codeanticode
43a6939fec Corrected index expansion 2012-04-16 21:36:54 +00:00
codeanticode
a341e4466f Getters/setters for individual vertices in PShape3D 2012-04-16 19:12:26 +00:00
codeanticode
dddc508ec7 Moving sphere generation into InGeometry 2012-04-13 20:47:24 +00:00
codeanticode
81ead7a627 Added mode to PShape, reworked tessellation, update in PShape3D, release of cache and tess objects when STATIC mode is used. 2012-04-13 18:57:27 +00:00
codeanticode
87bd18576d Moved javaToNativeARGB() to PGL, fixed color update in PShape3D. 2012-04-12 13:33:30 +00:00
codeanticode
b0cddd5afe Some optimizations into geometric transformations in PShape3D 2012-04-12 12:58:30 +00:00
codeanticode
5d29c7d6aa Using float constants in the shaders to avoid errors by the GLSL compiler on Mac. 2012-04-12 11:17:33 +00:00
codeanticode
e4dbc6fd9c Removed center() method, added getCenter(), updated examples 2012-04-11 22:27:21 +00:00
codeanticode
611ac827e6 Updated a couple of examples. 2012-04-11 22:08:30 +00:00
codeanticode
8f9baa43b7 Better handling of geometric transformations in PShape3D. 2012-04-11 21:27:37 +00:00
codeanticode
22c71c712f Added normal inversion in lighting shaders. 2012-04-10 22:24:30 +00:00
codeanticode
a018d78c2f Fixed lighting issues, added Patch example. 2012-04-10 21:03:47 +00:00
codeanticode
3727ed2b52 Cleaning up PConstants 2012-04-09 22:23:18 +00:00
codeanticode
c5838c950f fill() also sets the ambient color (as the old P3D used to do) 2012-04-09 19:55:01 +00:00
benfry
e849ab8ee5 tweaks for listeners 2012-04-05 04:19:20 +00:00
benfry
68e5c87617 more normalizing parameters, remove textX/Y/Z, remove text(x, y, w, h) with z-coordinate 2012-04-03 22:43:19 +00:00
benfry
f0c2ef79b6 new size() parsing, change how P2D/P3D are handled, onward... 2012-04-03 14:57:13 +00:00
benfry
4b3d7d14d6 formatting updates and todo notes 2012-04-02 21:03:08 +00:00
codeanticode
22cd976a12 Correct width/height calculation in updateTexture() 2012-04-02 13:18:54 +00:00
codeanticode
ce64c2e5ff Fixed context and edge init in PShape3D 2012-03-31 19:42:16 +00:00
codeanticode
d49a72aba7 All ceometry transformations applied to PShape3D object that the shape is ended, and update tessellation if needed. 2012-03-31 19:01:22 +00:00
codeanticode
5e76cb4b01 Fixed popMatrix condition in PShape3D.draw() 2012-03-31 18:48:11 +00:00
codeanticode
b3e1894109 Can use TRIANGLE and QUAD in createShape(type) 2012-03-31 18:41:32 +00:00
codeanticode
ba51f5715b Added new OpenGL examples for desktop 2012-03-31 18:28:33 +00:00
codeanticode
67c0d5e9e4 Using short indices on android and desktop 2012-03-31 15:16:27 +00:00
codeanticode
f90faeb184 Using protected versions of invTranslate, invRotate and invScale. 2012-03-30 21:21:19 +00:00
codeanticode
2d778a9bbb Fixed issue 1041, renamed screenOp to pixelsOp. 2012-03-30 14:27:02 +00:00
codeanticode
82478d06cb Cleaned up pixel set/get logic 2012-03-29 21:14:39 +00:00