Commit Graph
87 Commits
Author SHA1 Message Date
alteredq 6552dd559a Updated all builds. 2011-03-28 16:51:27 +02:00
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 d6949ea2ce NormalBlending is now 1:1 with Blender :_)
No wonder there were premultiplied-alpha-looking issues. We were doing it ourselves :P
2011-03-26 12:17:37 +00: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 8abdf466ce Synced with mrdoob's branch. 2011-03-25 12:46:14 +01:00
Mr.doob a3e29e5beb I think BillboardBlending is how NormalBlending is supposed to be.
Also changed AdditiveBlending.
2011-03-25 07:02:04 +00:00
alteredq 4f80bbf808 Merged with mrdoob's branch. 2011-03-25 04:52:13 +01: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 bd2d39ac6b Fixed broken examples.
Updated build script.
2011-03-24 21:04:34 +00: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 9409952c7a WebGLRenderer: alert() → console.error() (thanks for the tip @joa)
Not sure about Firefox 4/Opera compatibility...
2011-03-18 16:55:37 +01:00
alteredq 04a7ac496c Added SceneUtils.traverseHierarchy and SceneUtils.showHierarchy.
Also cleaned up examples from individual includes, only sandboxes and ubiquity now include individual files.
2011-03-17 00:22:20 +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 59071e75b3 Synced with mrdoob's branch.
Also fixed scene loader example to match new cylinder parameters (centered).
2011-03-16 05:22:56 +01:00
alteredq 2127bdeb50 Merged morphing from empaempa.
Everything should work except skinning.
2011-03-16 04:53:39 +01:00
Mr.doob 49d9b2e460 src/extras/primitives/ ⟶ src/extras/geometries
Added geometries example (need to add Lathe one).
Fixed Cylinder.
2011-03-16 03:51:47 +00:00
alteredq 1c466f26e7 Moved QuakeCamera and PathCamera into extras/cameras. 2011-03-15 16:49:52 +01:00
alteredq cf6e2de8c9 Synced with mrdoob's branch. 2011-03-15 15:44:23 +01:00
alteredq a9f8419ae4 Added option to PathCamera to try to follow spline with the constant speed.
Enabled by "useConstantSpeed" parameter.

This is done by creating new spline which resamples original spline proportionally to linear-piece-wise integrated length of segments of the original spline.

It's not perfect, but speed-wise it should be better, especially when the original spline has very different lengths of segments.

New spline may have a bit different shape though (Catmull-Rom spline guarantees that it will pass through control points, but with more dense control points it may get kinks in between). You may control density of resampling by "resamplingCoef" parameter of the PathCamera.
2011-03-15 14:48: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 67341e776a Fixed bug in frustum culling when camera is part of hierarchy.
Thanks to empaempa for the fix.
2011-03-14 17:27:57 +01:00
alteredq b6b0e21015 Added PathCamera.
PathCamera automatically follows path passing through waypoints (interpolated via Catmull-Rom spline). View angles can be constrained and controlled by mouse.

Work in progress, there are still some issued to be solved (constant movement speed, broken automatic update, broken frustum culling).
2011-03-14 03:57:22 +01:00
alteredq 0bf0e59f12 Synced with mrdoob's branch. 2011-03-11 01:54:53 +01:00
Mr.doob ce751a10dd WebGLRenderer now doesn't render objects with material.opacity == 0. 2011-03-10 16:19:19 -08:00
alteredq 1ebcd0f1da Fixed bug in FogExp2.
It's now possible to create fog with zero density (which makes sense if you want to build shader with fog support, but not yet use fog, in contrast to not having fog in scene at all).
2011-03-10 16:04:58 +01:00
alteredq 13ccc02a8a Refactored shader and uniform snippets out of WebGLRenderer into WebGLShaders. 2011-03-09 21:44:11 +01: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 98af2b1b92 Added sizeAttenuation property to ParticleBasicMaterial (disable perspective scaling). 2011-03-08 12:03:52 -08: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 c61f89ba14 Brought back bloom.
Also updated GUI-DAT (didn't help with recent Chrome compositing bugs, though this is Chrome Windows issue), added FileAPI to Detector and fixed aspect ratio bug in WebGLRenderer.
2011-03-08 17:33:34 +01:00
alteredq c7826c1d56 Fixed old normals name in Geometry.computeFaceNormals.
Thanks to empaempa for spotting this ;)
2011-03-07 12:02:24 +01:00