Mr.doob
449a981925
CanvasRenderer: Added distance(falloff) to PointLight. Removed illumination to ParticleCanvasMaterial.
2011-03-29 03:50:04 +01:00
Mr.doob
377d1904de
Modified cubemap example to be more in the way one would render a Skybox like.
2011-03-28 17:11:27 +01:00
alteredq
6552dd559a
Updated all builds.
2011-03-28 16:51:27 +02:00
alteredq
fd145f038e
Reverted accidental reverting of mrdoob's changes.
2011-03-28 16:45:11 +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
alteredq
827dcdd908
Added handling of UVs to Blender importer.
2011-03-28 04:17:38 +02:00
alteredq
32cd7c25c2
Added handling of vertex colors to Blender importer.
2011-03-28 02:49:28 +02:00
alteredq
012b9a7c04
Added handling of normals to Blender importer.
...
There is checkbox for choosing whether Blender should recalculate vertex normals or whether to use normals from the data.
Using vertex normals from the data can in some cases lead to artefacts. This is probably caused by sharing of vertices across several faces (I didn't find a way how to specify vertex normals per face use of vertex; there is just API for setting normals to vertices).
If you select "recalculate vertex normals" (default), this sets faces to use smooth shading, which upon subsequent mesh update computes correct vertex normals (but it will lose eventual smoothing groups baked in vertex normals).
2011-03-28 00:44:19 +02:00
alteredq
49872b2afd
Disabled antialias for examples that use full-screen postprocessing.
...
It doesn't have effect there anyway as scene is rendered to FBO without multisampling.
Turning antialiasing off here didn't have much effect on performance though (unlike for particles).
2011-03-27 21:19:49 +02:00
Mr.doob
5c684f93d8
Updated builds.
2011-03-27 08:04:26 +01:00
Mr.doob
a23f8309ed
Merge remote branch 'alteredq/master'
2011-03-27 08:03:19 +01:00
Mr.doob
ba7ad63043
WebGLRenderer: Minor syntax clean up. Removed the rest of premultiplied alpha ops.
2011-03-27 08:03:00 +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
alteredq
f1a91c9fd5
Fixed bug in max exporter.
...
Vertex color parameter was undefined for dummy materials.
2011-03-26 20:49:52 +01:00
Mr.doob
754aebf84a
Reverted Detector.js as Chrome's issue seems to be fixed now.
2011-03-26 12:42:16 +00: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
6c1b9c589d
Merge remote branch 'alteredq/master'
2011-03-26 10:49:53 +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
812c6dff96
For some reason last commit didn't update everything.
2011-03-26 06:38:21 +01:00
alteredq
b31b8eebcd
Changed exporters, converters and example models to use more proper JSON.
...
Single quote property names and hex numbers are not valid in JSON.
2011-03-26 06:05:46 +01:00
alteredq
633276ddd8
Quick fix for Detector that got broken with latest Chrome canary.
...
For some reason Chrome canary 12.0.713.0 doesn't have "window.WebGLRenderingContext".
2011-03-25 17:40:56 +01:00
alteredq
f052891b2b
Forgot comma in scene template.
2011-03-25 15:54:46 +01:00
alteredq
3943ca604a
Added handling of custom properties to Blender exporter.
2011-03-25 14:50:46 +01:00
alteredq
a89ec4fede
Added exporting of group ids to Blender scene exporter.
...
Also fixed multimaterial ids list.
2011-03-25 14:28:28 +01: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
1859fe4057
Updated Blender exporter to be able to export scenes.
...
Work-in-progress.
So close yet so far. Test scene almost works, just two things are not rotated properly (which means maybe everything will need to be reworked :(
2011-03-25 04:39:04 +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
0f3093373d
If I'm not mistaken that would have affected other Loaders.
2011-03-24 23:58:46 +00:00
Mr.doob
af993ea379
Added onLoadStart, onLoadProgress and onLoadComplete methods to Loader.
...
Simplified JSONLoader.
2011-03-24 23:29:10 +00:00
Mr.doob
bd2d39ac6b
Fixed broken examples.
...
Updated build script.
2011-03-24 21:04:34 +00:00
Mr.doob
0ccf06f593
Merge remote branch 'empaempa/master' into experimental
2011-03-24 20:49:31 +00:00
Mr.doob
5abbcec449
That trickery isn't needed anymore.
2011-03-24 20:40:08 +00:00
Mr.doob
a81a02ba30
WebGLRenderer: Made material program sharing a bit simpler/efficient. API still not good for this, but works.
2011-03-24 20:13:32 +00:00
Mikael Emtinger
66f657d84a
Optimized rendering of shadow volumes and the shader.
2011-03-24 16:01:56 +01:00
Mikael Emtinger
408f05189c
Updated example
2011-03-24 11:36:37 +01:00
Mikael Emtinger
a25155bde6
Change blending method on shadow polygons. Updated example to use Lambert material and only one shadow casting directional light.
2011-03-24 11:35:38 +01:00
Mikael Emtinger
95e92d9026
Stencil shadows added
2011-03-24 09:09:25 +01:00
Mr.doob
dedf6a2035
convert_obj_three.py: sorting morph filenames (again :P)
2011-03-24 07:07:47 +00:00
alteredq
27c64215f2
Added "centerxz" alignment option to OBJ converter.
...
This one doesn't touch height, just centers model in X and Z axis.
2011-03-23 17:36:26 +01:00
Mr.doob
d2d6a86ba7
convert_obj_three.py: Sorting morph filenames.
2011-03-23 08:00:06 +00:00
Mr.doob
60ac9f8c2c
Suzanne is the new Cube.
2011-03-23 06:36:10 +00:00
Mr.doob
feb60d1fa0
Updated builds.
r37
2011-03-23 06:05:15 +00:00
Mr.doob
fd3e2c1833
Merge remote branch 'alteredq/master'
2011-03-23 06:03:49 +00:00
Mr.doob
48a9714eed
Also removed Blender 2.49 exporter for the time being.
2011-03-23 06:03:36 +00:00
alteredq
bc8570fbe0
Fixed subtle tricky bug in JSONLoader.
...
This was messing models with mixed uv/non-uv faces.
Also bumped up version number for max exporter.
2011-03-23 06:29:31 +01: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
5c33ce01e2
Unfortunately C4D exporter is outdated and we don't use that. Removing it for now... Hopefully someone will re-port the Blender exporter again.
2011-03-22 19:40:19 +00:00
Mr.doob
d8478abfd0
Made example code easier to understand.
2011-03-22 19:17:33 +00:00