Commit Graph

311 Commits

Author SHA1 Message Date
benfry
a21beebce7 minor tweak 2011-01-26 15:37:48 +00:00
benfry
f78996d5eb undo changes re: registered methods that were causing NPE on exit 2010-12-18 19:42:38 +00:00
codeanticode
b495296781 translate, scale and rotate methods in PShape3D renamed to translateVertices, scaleVertices and rotateVertices. Added root field to PShape 2010-12-17 08:10:20 +00:00
codeanticode
0c12a699b7 PShape3D.init() adds default child shape when there is none 2010-12-16 12:20:21 +00:00
codeanticode
986628321e Added projection mode in A3D 2010-12-15 02:34:26 +00:00
codeanticode
7ddb6545e3 Clearing resource sets in deleteAllGLResources() method 2010-12-13 09:41:55 +00:00
codeanticode
f52fed20b3 Simpler access to offscreen textures in A3D, minor PShape3D fixes 2010-12-12 14:14:10 +00:00
codeanticode
ca72959074 Added normals rotation to PShape3D.rotate() 2010-12-11 07:21:42 +00:00
codeanticode
7ea9982090 Closed issue 471 and added methods to control the sprite size in PShape3D 2010-12-10 12:13:26 +00:00
codeanticode
1ff02634f9 Some fixes and optimizations in PShape3D 2010-12-10 08:31:36 +00:00
codeanticode
33c0897d3f Scale, translate, rotate, and other methods in PShape3D can be safely called when the model is still being loaded from an OBJ file 2010-12-09 03:24:36 +00:00
codeanticode
f2a47fc5c4 Minor reworking of the texture binding/unbinding mechanism 2010-12-08 07:23:49 +00:00
codeanticode
bed5a3214c Manual mipmap generation now works. Simplified naming of texture filtering (sampling) constants: POINT, BILINEAR, TRILINEAR 2010-12-07 11:46:28 +00:00
codeanticode
298af137ad Fixed some texture binding issues 2010-12-07 03:16:37 +00:00
codeanticode
a56e9b25de Restriction of uv values between 0 and 1 was removed to allow for REPEAT texturing mode. 2010-12-06 09:47:14 +00:00
codeanticode
1ee85b993b OBJ recording in PShape3D is done in the drawGroup() method, so now asynchronous and threaded OBJ load is supported. 2010-12-06 01:22:21 +00:00
codeanticode
7db97c742c Added textureBlend() to the PApplet API 2010-12-05 14:36:06 +00:00
codeanticode
9ebbd9e3ba OpenGL textures in PImage objects are created only when drawing the images (renderTriangles, drawGeometry, etc). This should take care of issue 465 2010-12-05 13:33:40 +00:00
codeanticode
3e713faf77 Fixed some issues when using point sprites in PShape3D, also added automatic child creation when needed. Implemented all remining multitexture blending modes with light and tint modulation 2010-12-04 11:42:17 +00:00
codeanticode
a82eee35e3 PImage methods like loadTexture() don't creat the texture object unless the width and height of the image is larger than zero. This partially solves the asynchronous load problem pointed out in issue 465 2010-12-04 02:31:05 +00:00
codeanticode
08ca757d1f Using texture environment crossbar functionality to properly tint and light interpolated mulitextures (fixes issue 468) 2010-12-04 01:57:01 +00:00
codeanticode
1ba6a039d9 Removed debug printlns 2010-12-03 07:07:18 +00:00
codeanticode
80f8ab20bc Some fixes and enhancements in the multitexturing logic 2010-12-03 07:04:57 +00:00
codeanticode
9fbdbc7d97 Just two minor fixes in PShape3D after some debugging 2010-12-02 15:03:30 +00:00
codeanticode
710484eb69 Better integration of PShape3D with parent PShape 2010-12-02 13:37:08 +00:00
codeanticode
010fca89d9 PTexture.copyObject() deletes opengl resources of original texture 2010-11-29 07:15:34 +00:00
codeanticode
99a9b9ab2b Very minor memory handling tweaks 2010-11-29 07:06:37 +00:00
codeanticode
ac4ff6f392 Some tweaks in the OpenGL resource release 2010-11-29 00:46:21 +00:00
codeanticode
534edda53a Fixed bug in the resize method of vertex buffers in A3D 2010-11-28 13:06:43 +00:00
codeanticode
0519f85069 Multitexture works in shape recording mode. Issue 344 closed. 2010-11-27 14:02:13 +00:00
codeanticode
0f3b58dd74 vertex() method when called with a single set of uv coords, apply these coordinates to all texture units if multitexturing is enabled 2010-11-27 10:59:28 +00:00
codeanticode
49ac887ca5 Implemented replace, blend, multiply, add and subtract modes for multitexture blending 2010-11-27 10:10:10 +00:00
codeanticode
81ece7e4f1 New OpenGL resource creation/deletion method in A3D. Takes care of issue 456 2010-11-27 04:17:53 +00:00
codeanticode
d07eb4e954 Several changes and fixes in A3D for multitexturing 2010-11-26 13:58:35 +00:00
benfry
0f15b0baae todo items and subsetting stuff into android as well 2010-11-24 15:58:22 +00:00
codeanticode
fb1f0f1219 Auto normal selection method 2010-11-24 09:18:49 +00:00
codeanticode
760e1578b9 Small fix in shape recording with multitexturing, texture coordinate array is resized as needed, some TODO notes. 2010-11-24 00:19:07 +00:00
codeanticode
2c646d3b0b Some code for the multitexture combiners functionality (GLES 1.1 fixed pipeline) 2010-11-23 16:47:48 +00:00
codeanticode
128bc69b45 A few more texture setting methods added to PShape3D 2010-11-23 16:08:53 +00:00
codeanticode
ff18518542 Implemented PGraphicsAndroid3D.addTextureBuffers(). 2010-11-23 15:25:52 +00:00
codeanticode
a469f254be Multitexturing API reworked a bit. 2010-11-23 15:04:33 +00:00
codeanticode
b21cd7fd10 Finished multitexturing API 2010-11-21 03:52:04 +00:00
codeanticode
0a6013cc3b Multitexturing implemented in PShape3D 2010-11-19 12:19:30 +00:00
codeanticode
7ed95e009e Some preliminary changes to implement multitexturing in PShape3D 2010-11-18 13:29:11 +00:00
codeanticode
ad276c22aa Added maxTextureUnits static variable to PGraphicsAndroid3D 2010-11-18 02:50:06 +00:00
codeanticode
8ed10cedb6 Improved color conversion in PTexture, added YUV420 mode (android specific), finished implementation of blending modes (closes issue 290) 2010-11-18 01:56:53 +00:00
benfry
aa0407e6e4 minor edits 2010-11-16 18:51:05 +00:00
codeanticode
bb3cfdf78a Normal modes are AUTO/MANUAL now 2010-11-16 14:48:20 +00:00
codeanticode
e66a1fbc19 Added PShape3d.centerAt() method. Automatically called after loading an OBJ file 2010-11-16 12:43:18 +00:00
codeanticode
41f5c96c37 Implemented automatic normal calculation in A3D (this closes issue 345) 2010-11-16 11:48:31 +00:00