Commit Graph
921 Commits
Author SHA1 Message Date
zz85 7ee8fb8f53 Playing with text wrapping with quad bezier using arc lengths 2011-07-14 15:07:59 +08:00
zz85 cac14305d1 Playing with non-linear transformations in Path and Text 2011-07-14 14:25:09 +08:00
alteredq f1559f0186 Merged zz85's stepping + spline path extrusions.
Changed default extrusion stepping to 1 segment, smaller default tessellation is usually preferable (for flat surfaces).
2011-07-13 00:04:57 +02:00
alteredq 372e383e2b Trying to better handle depth test state changes for flares/sprites/stencil. 2011-07-12 20:34:04 +02:00
zz85 802b5376be Added ExtrudeGeometry Steps and Extrusion by Path. Updated example with Spline Shapes. 2011-07-13 01:57:35 +08:00
zz85 6e90ed8c6e added steps 2011-07-13 01:13:31 +08:00
zz85 049f85e7c7 inital an perhaps buggy additions of spline to path 2011-07-13 00:44:28 +08:00
zz85 2f5303fb57 fixes for reversed faces 2011-07-13 00:02:51 +08:00
alteredq 3d365cdbdc Added forgotten ExtrudeGeometry.js and Shape.js 2011-07-12 16:43:59 +02:00
alteredq 256f9a671a Fix for specular component of Phong and normal map materials. Hope so.
Thanks to @fazeaction for spotting this.
2011-07-12 02:57:05 +02:00
alteredq 23e315cb33 Merged zz85's Path / Shape / Extrude geometry. Cleaned up and refactored it a bit.
All three classes are now in separate files.
Updated build script.
Fixed runaway globals.
Optimized loops ("in" should be used just for iterating over object properties, for arrays it's slow and also traversal order is not guaranteed).
Cleaned whitespace.
Bit more polished example.
Fixed inverted side faces for fish shape.
2011-07-12 00:46:57 +02:00
alteredq 3ba8cc4d1e Merge remote-tracking branch 'remotes/zz85/master' into dev 2011-07-11 18:39:04 +02:00
zz85 762f58a490 Shape Extrusion 2011-07-11 20:00:02 +08:00
Mr.doob d141ea8577 Added CORS support to ImageUtils. 2011-07-10 23:53:42 +02:00
alteredq f1e4f59afc Merge branch 'master' into dev 2011-07-09 20:16:03 +02:00
Nico Kruithof 82a0bcfc26 fixed a typo. 2011-07-09 19:49:02 +02:00
alteredq 53a732065a Added fog to normal map shader. 2011-07-08 01:42:25 +02:00
alteredq a4397e2a4c Updated Blender normal map pipeline to handle also specular and AO maps.
Gah, these things are pain to debug - "undefined" value in uniforms can lead to very weird behaviors.
2011-07-07 23:54:17 +02:00
Mr.doob 848b4036e4 Merging with @NINE78 branch. 2011-07-05 19:36:19 +02:00
Mr.doob c82b3a5079 Merge remote-tracking branch 'NINE78/master' 2011-07-05 13:04:07 +02:00
Mr.doob 8bf95541b0 Some clean up.
Testing out texImage2D instead of texSubImage2D again.
@alteredq: which browsers/os didn't like this combo?
2011-07-05 01:01:24 +02:00
Mr.doob a5b7ea85a9 Removed Sound object and SoundRenderer.
Updated misc_sound example with same functionality.
2011-07-03 15:10:28 +02:00
Mr.doob 176d0f2884 Merging with @alteredq's branch. 2011-07-03 12:56:50 +02:00
Mr.doob 77eed2ea8c Removed most of SeceneUtils methods for simplicity reasons.
Fixed examples that were using them.
2011-07-03 12:53:58 +02:00
Nik Van den Wijngaert 797068131d Collision detection for double sided mesh faces. 2011-07-03 12:14:45 +02:00
alteredq d7a82b348a Merge remote-tracking branch 'remotes/chriskillpack/rename-fpcamera' into dev 2011-07-03 02:53:27 +02:00
alteredq 280a28dfdc Merged with mrdoob's branch.
All examples work. Now just need to port Blender exporter changes to 2.58 version.
2011-07-03 02:33:16 +02:00
Chris Killpack 07d54a4d0f Rename FPCamera to FirstPersonCamera. 2011-07-02 16:04:55 -07:00
Mr.doob 78fb8ac6f8 Applied @alteredq's sprite removal bugfix. 2011-07-02 12:37:45 +02:00
alteredq bb332e5fcd Extended Loader base class to handle normal map materials.
Plus some more Loader changes:

- fixed diffuse color and opacity being skipped when diffuse texture is present in JSON
- more proper handling of Phong materials (now use ambient / diffuse / specular / shininess from JSON)
- added handling of wrap / offset / repeat parameters for all textures

Fixed broken multiple lights indices in new normal map shader and changed displacement scale and bias to saner values.

Fixed broken postprocessing and Earth examples (were not yet translated to use new normal map shader).
2011-07-02 04:35:45 +02:00
alteredq 522da65881 Fixed Sprite removal bug. 2011-07-01 23:30:12 +02:00
alteredq d6345d7113 Fixed runaway _sprite global in WebGLRenderer. 2011-07-01 21:59:02 +02:00
alteredq e604036b21 Changed normal map examples to use new normal map shader with standard lights.
Removed old normal map shader with custom lights.
2011-07-01 16:20:03 +02:00
alteredq 457b7a6000 Refactored normal map shader to use standard lights.
Updated SceneLoader to use this new shader for normal mapped materials.

Added handling of ambient light to scene parser.

For the moment kept also old normal map shader, still need to convert examples.
2011-07-01 04:44:26 +02:00
Chris Killpack d311d0e674 Rename QuakeCamera to FPCamera.
Add QuakeCamera alias for backwards compatibility.
2011-06-28 21:49:33 -07:00
Mr.doob 21739383a4 Merge remote-tracking branch 'rectalogic/euler' 2011-06-24 17:07:15 +02:00
Andrew Wason 0825c1f612 Add support for additional Euler rotation orders. 2011-06-24 10:06:15 -04:00
Mr.doob 4b2de9b91d Reverted to proper Matrix4.multiply() (thanks @lukem1) 2011-06-23 15:37:16 +02:00
Mr.doob 89a4d0e51c Fixed Ray.js distance calculation so it uses world position. 2011-06-21 13:04:59 +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 bc6d7e0f2b Merging with marklundin branch. 2011-06-19 16:11:04 +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