Commit Graph
58 Commits
Author SHA1 Message Date
alteredq dc8c98db5f Put some shader attributes behind #ifdef in buildProgram.
This is to see if it helps with shader validation complains that recently started to pop up in Chrome ANGLE (but curiously not in Firefox ANGLE).
2011-03-28 16:24:22 +02:00
Mr.doob 5c684f93d8 Updated builds. 2011-03-27 08:04:26 +01:00
alteredq 33e5a9bfe0 Added very basic Three.js Blender importer.
Very much work in progress, for the moment it creates just pure geometry (no normals, uvs, colors or materials).

Also fixed bug in JSONLoader in handling of face uvs.
2011-03-27 08:47:11 +02:00
Mr.doob 59443e5725 WebGLRenderer: Some clean up of blending modes.
NormalBlending is a bit better. But it's now producing some premultiplied-alpha-looking issues still :/

Created a couple of tools for making this process less painful:

http://mrdoob.com/lab/javascript/webgl/blending/blendfunc.html
http://mrdoob.com/lab/javascript/webgl/blending/blendfuncseparate.html
2011-03-26 10:41:58 +00:00
alteredq 0496571235 Updated model loader, scene loader and scene format.
- model loader now handles "wireframe" parameter

- scene light colors are now specified via hex numbers

- scene format now includes additional parameter "urlBaseType" specifying where loader will look for included files:
    - options are "relativeToHTML" (look for files under HTML url http://example.com/mydemo/index.html)
      and "relativeToScene" (look for files under url from where scene was loaded http://example.com/assets/myscene/scene.js)
2011-03-25 03:22:32 +01:00
Mr.doob feb60d1fa0 Updated builds. 2011-03-23 06:05:15 +00:00
Mr.doob 48a9714eed Also removed Blender 2.49 exporter for the time being. 2011-03-23 06:03:36 +00:00
Mr.doob 0dc51e5687 Added copy method to THREE.Color.
Updated GeometryUtils.merge with Face*.color changes.
2011-03-23 00:18:39 +00:00
Mr.doob ae80b2b894 REVISION ++
Updated builds and README.
2011-03-22 18:58:06 +00:00
alteredq 673ff47199 Blender exporter now exports proper per-face-vertex vertex colors. 2011-03-22 04:17:49 +01:00
Mr.doob b7ec7b175e Projector: Fixed crash when Face4 had vertex normals. 2011-03-22 00:33:26 +00:00
alteredq 9db71a171a Fixed tangents and UVs in Blender exporter.
Also updated docstring for OBJ converter.

All WebGL examples should now work.
2011-03-22 00:32:45 +01:00
alteredq ce69f7dc1d Synced with mrdoob's experimental branch. 2011-03-21 07:19:12 +01:00
alteredq 3b6b3dc578 Made more examples working. 2011-03-21 07:10:12 +01:00
alteredq 071de366c2 Updated Blender exporter to export new JSON format.
Also some fixes along the way to properly handle vertex colors in loaders.

Many things still broken, but we move forward.
2011-03-21 05:36:12 +01:00
alteredq bdc19a15c2 Updated OBJ converter to create new JSON model format.
Not tested yet, as the rest of the engine doesn't work yet.
2011-03-20 20:14:23 +01:00
Mr.doob c580473ff8 Removed visible check on Object3D.update (children transforms didn't get updated otherwise). 2011-03-16 20:49:09 +00:00
Mr.doob 565f9221e3 Added missing classes to custom builds. 2011-03-16 19:11:56 +00:00
alteredq da497665f7 Synced with empaempa plus made it possible to use scene lights in MeshShaderMaterial. 2011-03-16 14:28:49 +01:00
Mr.doob a1a41e7fc8 Recompiled builds. 2011-03-16 04:58:00 +00:00
alteredq cf6e2de8c9 Synced with mrdoob's branch. 2011-03-15 15:44:23 +01:00
Mr.doob 2a83aeb64b Object3D: Setting matrixWorldNeedsUpdate to true when updateMatrix has been called. 2011-03-15 12:31:14 +00:00
alteredq 09a10f7b2c Fixed update of PathCamera.
No more need for manual update hack.

Problems with keeping constant speed are still there. Added debug particles sampled along the spline - seems problems come from spline, samples have weird distribution.
2011-03-15 02:01:52 +01:00
Mr.doob 1413f96958 Fixed Camera.updateMatrix(). 2011-03-14 20:01:35 +00:00
alteredq d6db37ef7f Loader now keeps track of texture file names.
These are stored in "material.map.sourceFile".
2011-03-09 14:26:08 +01:00
Mr.doob 18dd03e90f Fixed particle scaling vertex shader (hopefully it now works on ANGLE). 2011-03-08 11:00:21 -08:00
alteredq 6b9a08e5ed Synced with mrdoob's branch.
Particle size attenuation still need some work to fix differences between ANGLE and OpenGL.
2011-03-08 19:50:43 +01:00
Mr.doob 5b9ca694d3 WebGLRenderer Particles now scale.
Texture sets needsUpdate to true for <canvas> elements by default (webgl_objconvert_test.html seems to be randomly affected by this).
2011-03-08 10:02:14 -08:00
alteredq ba0047cb1c Resurrected "noFly" as QuakeCamera's override. 2011-03-06 17:39:13 +01:00
Mr.doob 482fe243a4 Removed Matrix4.multiplyVector3OnlyZ as it's not being used... ? 2011-03-06 11:05:30 +00:00
Mr.doob 952631c923 REVISION++
Added some examples to README.
2011-03-06 09:41:15 +00:00
alteredq 2c996815be Refactored texture updating, added texture filtering example and fixed scene loader and example. 2011-03-06 06:01:40 +01:00
Mr.doob 1a115ae86f Object3D::matrixNeedsUpdate ⟶ Object3D::matrixWorldNeedsUpdate
Object3D::lookAt works! (and Vector3.setRotationFromMatrix too!)

Next: Object3D::translate...
2011-03-05 20:46:25 +00:00
Mr.doob cf732e694b WebGLRenderer::sortObjects = true by detault.
WebGLRenderer checks if texture is power of 2. Throws an error if it's not.
2011-03-05 14:52:54 +00:00
Mr.doob f2af3864cc Matrix4 public and static methods clean up. 2011-03-05 13:56:22 +00:00
Mr.doob 6e16d3b297 Removed WebGLRenderer2.
Minor tweaks.
2011-03-03 13:43:16 +00:00
Mr.doob 795abb58a9 Uops! Forgot to increase REVISION's number :S 2011-03-03 08:46:12 +00:00
Mr.doob 66cd1198e3 Updated examples and utils that used Cube(). 2011-03-03 08:31:00 +00:00
alteredq ea3961d6a6 Made dynamic objects work. 2011-03-02 21:34:44 +01:00
Mr.doob 4590683d4b WebGLRenderer stops rendering objects when removed from the scene. 2011-03-02 19:09:21 +00:00
Mr.doob 568beba848 Fixed LOD example.
Commented Camera frustrum code. It's not being used, right?
2011-03-02 05:58:54 +00:00
alteredq 0984c4145b Synced with mrdoob's branch. 2011-03-01 14:52:47 +01:00
Mr.doob 33610b4a11 Adapted Projector and CanvasRended to use camera.matrixWorldInverse. 2011-03-01 11:38:35 +00:00
alteredq cf2e8c1bbf Refactored everything to use CamelCase naming for properties. Plus some smaller fixes here and there.
Went through all examples, all should work.

JSON files exported from Blender / converted from OBJ files still use underscored property names internally. I don't know, should these also be changed?
2011-02-28 14:52:04 +01:00
Mr.doob f5e819fe14 Removed all the toString methods (saving 6kbytes)
I don't remember when was the last time I used them. Current Web Developer Tools do this already for you.

Color::updateRGBA ⟶ Color::updateRGB
2011-02-28 05:13:04 +00:00
alteredq a325cd6064 Added build shell scripts for building all libs versions. 2011-02-27 22:59:26 +01:00
Mr.doob 430ce532be Custom builds were missing files. (thanks to alan2 for reporting) 2011-02-27 20:20:15 +00:00
Mr.doob e438549c87 Updated builds.
Added RequestAnimationFrame system to the new examples.
2011-02-27 06:39:15 +00:00
Mr.doob 7480fb69cd Updated README examples.
Sound3D ⟶ Sound
2011-02-26 14:21:15 +00:00
Mr.doob 446834ba35 Minor fixes and improvements. 2011-02-26 12:10:35 +00:00