alteredq
da0b612ce8
Synced with mrdoob's branch.
2011-04-07 04:01:36 +02:00
alteredq
5fa19e8460
Fixed delays when loading multiple models.
...
Problem was having too many concurrent workers opened at once. Garbage collection apparently works very slowly on workers. Solution was to close them manually, after model data is sent to main thread.
Also some progress with Blender scene exporter. Some scenes now export correctly, though monkey test scene got worse, even with less hacky code.
2011-04-07 02:59:49 +02:00
Mr.doob
94790f057e
extras/geometries
...
- Fixed TorusKnot face orientation.
- Added UVs to Cylinder (Cylindrical Mapping)
- Fixed Lathe UVs
There is something wrong with texture mapping, u needs to be inverted all the time. Something to researching on.
2011-04-06 20:10:25 +01:00
alteredq
f221b853b7
Refactoring and optimizations in collision system and examples.
...
Mainly trying to avoid creation of new object per frame and also some variable names clarifications and whitespace cleanups.
Not finished yet.
2011-04-06 00:07:13 +02:00
alteredq
1fd801719f
Added option to have flat shading for renderBufferImmediate.
2011-04-05 20:30:58 +02:00
alteredq
4470e0f619
Merged physics branch into master.
...
Also some whitespace and titles cleanup.
2011-04-05 16:10:23 +02:00
alteredq
65e3f92d55
Merged latest master branch into physics branch.
2011-04-05 12:04:24 +02:00
alteredq
0209928118
Fixed reaction and trigger collisions examples.
...
Terrain still needs to reexport Blender model in new JSON format.
2011-04-05 11:40:44 +02:00
alteredq
693a36f509
Moved scene loader from SceneUtils into SceneLoader.
2011-04-05 08:59:45 +02:00
alteredq
55a3d8290d
Changed hardcoded uv scale to uniform in lava shader example.
2011-04-05 08:39:08 +02:00
alteredq
f7e3a80d70
Added edges computation to OBJ converter.
...
If you want to get edges, run converter like with "-e" flag:
python convert_obj_three.py -i model.obj -o model.js -e
Output seems to match Blender exporter.
2011-04-05 03:37:13 +02:00
Bartek Drozdz
9850695f38
Collisions system initial commit.
2011-04-04 18:13:54 +02:00
Mr.doob
abb4a774cd
Merging with alteredq.
2011-04-04 05:00:21 +01:00
Theo Armour and Mr.doob
28869a95a7
Added the same onDocumentMouseWheel() function and event handlers as in canvas_geometry_panorama_fisheye.html so that mousewheel zooming works on Firefox 4 and other browsers.
2011-04-04 11:53:55 +08:00
Mr.doob
70ff34b8a3
Updated Stats.js widget.
2011-04-03 07:56:41 +01:00
alteredq
7e6ba581de
Removed some bottlenecks in shader building / sharing.
...
- for shader reuse materials from the standard library are now identified just by shader name (MeshShaderMaterials still use full code)
- unique shader id strings are constructed via array.join instead of string plus
- uniform and attribute locations are now cached in buildProgram (biggest one)
Also some smaller optimizations and cleanups in DOF example.
2011-04-03 04:19:00 +02:00
alteredq
5a684c29ea
Fixed broken video texture example.
...
Hope it's the last one. Also here performance is ok.
2011-04-02 21:06:37 +02:00
alteredq
a719d289cc
Fixed broken ribbons example.
...
Interestingly here performance doesn't seem to be affected.
2011-04-02 20:59:59 +02:00
alteredq
575deaadc5
Fixed broken depth-of-field example.
...
Still something is wrong with this new implicit way of sharing programs. DOF example is noticeably slower than it was before, especially in ANGLE :(.
2011-04-02 20:46:34 +02:00
alteredq
1001b76351
Added lava shader example.
2011-04-02 09:02:35 +02:00
alteredq
3b43c79679
Added possibility of enforcing vertical angle constraint to QuakeCamera.
2011-04-02 01:32:53 +02:00
alteredq
a53921fb22
Fixed more globals in JSONLoader. Also updated ubiquity test includes.
2011-04-01 03:57:06 +02:00
alteredq
d12252421e
Synced with mrdoob's branch.
2011-03-31 23:48:38 +02:00
Mr.doob
816d19a8d6
REVISION ++
2011-03-31 22:29:53 +01:00
Mikael Emtinger
e88b1b4783
Merged with mrdoob.
...
Fixed so lens flares uses AdditiveBlending in example.
2011-03-31 13:57:52 +02:00
alteredq
36cd380725
Synced with mrdoob's branch.
2011-03-31 09:12:57 +02:00
Mr.doob
0014ce7215
Fixed glass transparency in scene example.
2011-03-31 07:29:10 +01:00
Mr.doob
8af4dd49c1
WebGLRenderer now uses material.transparent to determine whether a material is transparent or not.
...
Moved materials/RenderTarget.js ⟶ renderer/WebGLRenderTarget.js
2011-03-31 07:22:44 +01:00
alteredq
cc453b6bda
Merged with empaempa's branch.
...
Hopefully now it's proper. All examples are working.
2011-03-31 06:21:25 +02:00
Mr.doob
1b98dbb033
Improved grass example.
2011-03-31 05:15:27 +01:00
Mikael Emtinger
7b07f34b7d
merged with mrdoob. fixed so depthMask is correctly restored after stencil and lensflares. removed all enable/disable _gl.BLEND as it's always on.
2011-03-30 20:52:23 +02:00
Mr.doob
97c556cb3d
Unneded property set.
2011-03-30 08:48:56 +01:00
Mikael Emtinger
3536f3f2f5
Merged with MrDoob
2011-03-29 20:50:45 +02:00
Mikael Emtinger
ac6f422a6f
Added LensFlares. Note that a new blending mode has been added. Added an (quite ugly example). NOTE: this doesn't seem to work on Chrome+Mac+NVIDIA unless you turn off antialias (which I've done in the example).
2011-03-29 13:30:53 +02:00
Mr.doob
532929d510
WebGLRenderer: Added distance (falloff) to PointLight.
2011-03-29 06:13:21 +01:00
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
827dcdd908
Added handling of UVs to Blender importer.
2011-03-28 04:17:38 +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
ba7ad63043
WebGLRenderer: Minor syntax clean up. Removed the rest of premultiplied alpha ops.
2011-03-27 08:03:00 +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
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
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
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