Mr.doob
b476481c54
Updated builds.
2011-06-20 13:51:17 +02:00
alteredq
f92f360744
Added normal maps support to Blender scene exporter and SceneLoader.
...
Blender normal map support is work-in-progress:
- for individual models normal map shader will need to be refactored to use standard scene lights
- would be nice to handle also bump maps (a lot of Blender assets do not use "use_normal_map" flag on tangent space normal texture but instead use "use_map_normal" flag on texture slot of grayscale heightmap texture)
Also some whitespace cleanup.
2011-06-20 09:51:37 +02:00
jsermeno
1e19c2814b
Add optional scaleByViewport parameter to Sprite.js
2011-06-19 20:28:54 -07:00
Mr.doob
f25822bbbb
Updated builds.
2011-06-19 16:56:36 +02:00
Mr.doob
87ba3421e5
Merge remote-tracking branch 'NINE78/master'
2011-06-19 16:48:20 +02:00
Mr.doob
bd067242da
Updated builds.
2011-06-19 16:24:01 +02:00
Mr.doob
9925121a0e
Merge remote-tracking branch 'marklundin/master'
2011-06-19 16:11:15 +02:00
Mr.doob
bc6d7e0f2b
Merging with marklundin branch.
2011-06-19 16:11:04 +02:00
alteredq
3f2c37af45
Blender exporter: add handling of extra textures also to single model exporter.
2011-06-19 05:31:47 +02:00
alteredq
a8228f523e
Blender exporter: added handling of textures packed into blend file, fixed some texture location edge cases.
2011-06-19 04:10:05 +02:00
alteredq
3aa4027ab1
Flipped UVs for Sprite geometry to be get correct texture image orientation.
2011-06-19 01:18:07 +02:00
alteredq
7a0b36a9af
Small loop optimization and refactoring in TextGeometry.
...
"for ( var i in array )" is slower than "for ( var i = 0; i < array.length; i++ )"
http://people.mozilla.com/~dmandelin/KnowYourEngines_Velocity2011.pdf
2011-06-19 00:09:01 +02:00
Nik Van den Wijngaert
7070ccd901
Added polygonOffset parameters to THREE.Material. The WebGLRenderer evaluates this right after depthTest for opaque and transparent passes through the setPolygonOffset function.
2011-06-17 11:56:32 +02:00
Nik Van den Wijngaert
9ca596c138
Merge branch 'master' of git://github.com/mrdoob/three.js
2011-06-17 11:06:52 +02:00
alteredq
213a2d9d2b
Merged, refactored and extended sweetfish/pxf pull request with scene material override and Blender exporter updates.
...
Fixed double rendering of scene when using override material.
Updated depth-of-field example to use scene material.
Blender exporter / scene loader now support mirrored repeat, wrap is now separate per-x and per-y.
Image copying is now optional and works also for individual models.
Scene loader now supports texture offset.
Blender exporter / loaders not fully tested yet, renderer seems fine, all examples work.
2011-06-17 03:21:38 +02:00
Jhonny Göransson
016ab44d7c
Added distance to light
2011-06-16 18:10:00 +02:00
alteredq
5739f754a8
Made "needsUpdate" working for custom attributes. Added example for custom attributes.
...
Not perfect solution but better than nothing.
2011-06-16 16:46:28 +02:00
Jhonny Göransson
1049e34b11
Merge branch 'master' of github.com:pxf/three.js
2011-06-16 16:40:18 +02:00
Jhonny Göransson
986625ae52
the export script now copies textures to output folder with same name as project file
2011-06-16 16:39:23 +02:00
Sven Andersson
9343f20356
Fixed bug with the exported cameras position.
2011-06-16 15:58:49 +02:00
Sven Andersson
05a1e09b57
Renamed url base option and moved it in the UI.
2011-06-16 14:34:14 +02:00
Sven Andersson
6626da27a8
Merge branch 'master' of github.com:pxf/three.js
2011-06-16 14:28:35 +02:00
Sven Andersson
5b5d66b18e
Blender (2.57) export scripts now exports a default camera, if no camera in the scene was selected for export (in scene export). The default camera property is also updated accordingly.
2011-06-16 14:28:03 +02:00
Jhonny Göransson
83ba6483f7
bug
2011-06-16 14:13:30 +02:00
Jhonny Göransson
9b3157b8a9
Merge branch 'master' of github.com:pxf/three.js
2011-06-16 14:04:57 +02:00
Jhonny Göransson
acae6714c9
Added checkbox for scene/html base type
2011-06-16 14:04:44 +02:00
Sven Andersson
be7f3e0b56
Blender (2.57) export script keep track of texture wrapping option.
2011-06-16 13:51:55 +02:00
Sven Andersson
8429ff11d3
Blender (2.57) export script now add cameras to the scene output. (Note: Very buggy and target/lookat is broken.)
2011-06-16 13:04:54 +02:00
Sven Andersson
2eb7f7a2a6
Added overrideMaterial property to Scene. If set, the material will be the only material used in WebGLRenderer.render(...). Set to null to disable.
2011-06-16 12:48:36 +02:00
Nik Van den Wijngaert
8c2bfade3e
Added an optional renderDepth (should be in [0,1]) to objects which will override the default z-sorting in the renderer. Setting this attribute on e.g. meshes allows us to control painting order and solve any transparency/depth test issues when relying on default sort order.
2011-06-16 11:43:09 +02:00
alteredq
70f417b8f9
Merged with mrdoob's branch.
2011-06-15 19:23:07 +02:00
alteredq
d3f12bbf78
Merge branch 'master' of https://github.com/mrdoob/three.js
2011-06-15 19:06:39 +02:00
alteredq
c497709337
Added texture repeat support to Blender model and scene exporters.
...
Also fixed default camera buggy string in Blender scene exporter and changed lightmap parameter name in base Loader (to be consistent with other "maps").
2011-06-15 19:04:32 +02:00
Mr.doob
57f087333e
Updated builds.
2011-06-15 18:09:00 +02:00
Mr.doob
985fb9e270
Merge remote-tracking branch 'alteredq/master'
2011-06-15 18:05:56 +02:00
Mr.doob
1700cb9ef4
Merging with alteredq's branch.
2011-06-15 18:05:46 +02:00
Mr.doob
af0beedad7
Reverted to previous WebGLRenderer.setTexture code. Now that Chrome 12 is out, it should be working?
...
Commented out troublesome object-behind-camera check in Ray.js
2011-06-15 17:53:49 +02:00
alteredq
2b599e1adc
Added support for texture repeat and offset in model JSONs to Loader base class.
2011-06-15 14:17:34 +02:00
zz85
cf84fa08b8
Save before merge
2011-06-14 11:07:09 -07:00
alteredq
9596667876
Merged zz85's text bezel, extended text parameters API for bezel, added bezel to webgl text example.
2011-06-14 18:48:25 +02:00
Mr.doob
22fbb30d28
Updated example in README.md (Cube -> CubeGeometry). Thx @adammw!
2011-06-14 16:51:57 +02:00
zz85
1e95d917dc
Added Bezel support
2011-06-14 04:00:43 -07:00
alteredq
5bf5c6efd8
Refactored object removal in WebGLRenderer, fixing several issues.
...
Added handling of removal of particle systems, ribbons, lines, shadow volumes, marching cubes.
Fixed bug with partial mesh removal.
2011-06-14 11:18:19 +02:00
Mr.doob
49343c4a97
Removed unneeded property.constructor line on Anaglyph/Crosseyed renderers.
2011-06-13 21:10:24 +02:00
alteredq
f9de50b0fe
More derendererization.
2011-06-13 20:14:52 +02:00
alteredq
eae0616ad0
Trying to fix multiple renderers when having stereo renderers include issue.
2011-06-13 19:19:19 +02:00
Mark Lundin
72be2f0ad4
Modified Anaglyph Renderer to use an asymmetric perspective projection. Added focal length to the equation and updated to allow for camera rotation
2011-06-13 18:01:34 +01:00
Mr.doob
bfdb10a85a
Updated all examples so they use the renamed geometry classes.
2011-06-13 18:33:53 +02:00
Mr.doob
d46a1ee368
Checking if WebGLRenderer exists before creating AnaglyphWebGLRenderer and CrosseyedWebGLRenderer.
2011-06-13 12:21:42 +02:00
Mr.doob
1bfb6dbe7e
Merge remote-tracking branch 'alteredq/master'
2011-06-13 12:06:07 +02:00