Commit Graph

10192 Commits

Author SHA1 Message Date
Lasse Öörni
ad2e0154c9 Further tweaks of TestScene lighting. 2012-07-22 20:38:26 +00:00
Lasse Öörni
8fe755e7e6 Do not release resource if it has weak refs.
Exposed function to explicitly reload shaders.
Set a default resource path in the editor (Bin/Data/) so that scene/model import works even without setting a resource path.
2012-07-22 16:46:32 +00:00
Lasse Öörni
a9e9c7c5c5 Readme formatting. 2012-07-22 15:52:13 +00:00
Lasse Öörni
d651239e31 Doxygen formatting. 2012-07-22 15:49:18 +00:00
Lasse Öörni
be28ed3469 Fixed terrain LOD error calculation. 2012-07-22 15:19:52 +00:00
Lasse Öörni
272ba97189 Docs formatting. 2012-07-22 14:28:41 +00:00
Lasse Öörni
c9ea9cb384 Changelog for next release.
In the demo scripts, only increase decal max. vertex/index count when targeting skinned geometry.
Do not try to add decals in headless mode.
2012-07-22 13:56:59 +00:00
Lasse Öörni
073347c950 AABB-test physics geometry before adding it to the debug renderer.
Never debug draw heightfields, as it hugely slows down execution.
2012-07-22 11:23:00 +00:00
Lasse Öörni
abafe9b9f3 Fixed DecalSet functions being private.
Added comments to describe use of DecalSet and Terrain.
Increased terrain occlusion negative offset to further reduce false positives.
2012-07-22 10:50:05 +00:00
Lasse Öörni
7facee936f Tweaked TestScene lighting. 2012-07-21 23:52:04 +00:00
Lasse Öörni
12e8c0a2cc Fixed GCC build and material reference in LightTest. 2012-07-21 23:30:25 +00:00
Lasse Öörni
96143733e4 Offset occlusion geometry downward to reduce possibility of erroneous occlusion. 2012-07-21 21:31:00 +00:00
Lasse Öörni
1c95a5b007 Use lowest terrain LOD for occlusion. This can possibly result in over-aggressive occlusion, so needs to be used with care. 2012-07-21 20:12:09 +00:00
Lasse Öörni
4e075d0510 Adjusted lighting and the stone diffuse texture. 2012-07-21 16:49:07 +00:00
Lasse Öörni
603ce4c96e Set smaller collision margin on the heightfield. 2012-07-21 16:39:10 +00:00
Lasse Öörni
21c6bfd098 New stone texture.
Save each example scene with an unique name.
Update terrain batch LOD always in the main thread to avoid overhead of firing threaded work items, if there is no more CPU-consuming geometry updates (such as skinning) to be done.
2012-07-21 14:44:53 +00:00
Lasse Öörni
5590c427b6 Fixed Terrain::UpdatePatchLod() being slow because of always determining used vertex range. 2012-07-20 22:01:16 +00:00
Lasse Öörni
30c21a3789 Added terrain blend shader and terrain example.
Added function to get terrain normal at point.
Always update terrain patch stitching.
Fixed material texture indexing & setting.
2012-07-20 21:49:24 +00:00
Lasse Öörni
2945e5d83f Recurse for LOD correction in terrain patches.
Use the green channel for added heightmap accuracy, if available.
2012-07-20 17:18:38 +00:00
Lasse Öörni
5df4edfe03 Terrain patch stitching.
Limited terrain LOD levels to 4.
Do not count clipped sub-triangles toward the triangle limit in OcclusionBuffer.cpp.
2012-07-19 23:21:47 +00:00
Lasse Öörni
9c1ffb8960 Tweaked terrain patch LOD error minimum value. 2012-07-19 15:02:03 +00:00
Lasse Öörni
5bff6f8d94 Slight optimization of terrain error metric calculation. 2012-07-19 13:37:30 +00:00
Lasse Öörni
ec8394b3de Initial terrain LOD. No stitching yet.
Limit DebugRenderer total vertices to prevent possible crash.
Perform coarse culling in DebugRenderer to avoid rendering lines outside the view.
2012-07-19 13:28:05 +00:00
Lasse Öörni
478a5af9d1 Allow defining depth bias for materials.
Center decal frustum on the decal world position.
Use material depth bias for decals instead of applying the bias to decal geometry.
2012-07-19 09:34:11 +00:00
Lasse Öörni
3982058551 Edited comments. 2012-07-18 23:26:40 +00:00
Lasse Öörni
42b9cbc158 Cleaned up terrain code.
Updated script API documentation.
2012-07-18 23:19:52 +00:00
Lasse Öörni
40f91c7399 Fixed terrain live reload in the editor. 2012-07-18 14:25:33 +00:00
Lasse Öörni
248fc3c1b6 Terrain attributes.
Refactoring of occlusion, raycast and raw geometry data.
2012-07-18 13:53:55 +00:00
Lasse Öörni
69d7e27179 Added terrain raycast & occlusion. 2012-07-18 00:05:23 +00:00
Lasse Öörni
c846879028 Added terrain collision.
Added terrain reload when heightmap image changes.
Reversed terrain geometry Z-direction for compatibility with Bullet, and more consistent calculations.
2012-07-17 23:39:55 +00:00
Lasse Öörni
c18efb013f Added terrain tangent generation. 2012-07-17 21:30:58 +00:00
Lasse Öörni
a692f829ce Fixed terrain height interpolation. 2012-07-17 20:57:39 +00:00
Lasse Öörni
64e7b12bd8 Added possibility to add components without going through an object factory.
Smoother normal calculation for terrain.
Added Terrain GetHeight() implementation.
2012-07-17 19:04:53 +00:00
Lasse Öörni
2a0aae070a Started work on terrain. 2012-07-17 13:19:32 +00:00
Lasse Öörni
f8d1243ed1 Use the biggest colliding bone as a base for the decal, to avoid eg. using a finger bone and messing up the decal transform. 2012-07-14 20:45:02 +00:00
Lasse Öörni
29ce81ae7b Increased depth of the example decals, and default decal depth bias. 2012-07-14 20:13:31 +00:00
Lasse Öörni
1edda97bba Tweaked example materials. 2012-07-14 20:00:42 +00:00
Lasse Öörni
37f6ea0903 Interpolate blend weights if possible (same indices.) 2012-07-14 15:41:01 +00:00
Lasse Öörni
a989bb4879 Fixed drawing erroneous non-indexed geometry for BillboardSet after all billboards had expired. 2012-07-14 14:51:40 +00:00
Lasse Öörni
6b14fcbf86 Fixed shader memory use calculation. 2012-07-14 12:44:22 +00:00
Lasse Öörni
47eb79aa24 Allow creating a decal only on a specified subgeometry.
Cleaned up example script code.
2012-07-14 12:41:35 +00:00
Lasse Öörni
83487ac88f Further ShaderParser optimization. 2012-07-14 11:58:25 +00:00
Lasse Öörni
522212c47d Optimized shader combination building. 2012-07-13 22:14:59 +00:00
Lasse Öörni
8c58f43ee8 Do not attempt to draw empty geometries. 2012-07-12 20:51:55 +00:00
Lasse Öörni
1175f837c3 Cleaned up saving of DecalSet offset matrices. 2012-07-12 08:11:48 +00:00
Lasse Öörni
79254b127a Fixed example scripts. 2012-07-12 07:34:07 +00:00
Lasse Öörni
2d8f47618f Changed controls in TestScene.as & TestSceneOld.as to not require the middle mouse button for adding decals. 2012-07-11 18:16:02 +00:00
Lasse Öörni
debcc38bb0 Allow configuring DecalSet max. vertices and indices separately.
Serialize DecalSet geometry as a byte buffer for reduced file size.
2012-07-11 16:42:08 +00:00
Lasse Öörni
8555b94e5a Use indexed geometry for decals.
Refactored tangent generation into a separate file.
2012-07-11 07:51:25 +00:00
Lasse Öörni
ab89278a5c Create AnimatedModel morph vertex buffers on demand (when first non-zero morph weight set.)
Handle skinned decals also for morphed geometry.
2012-07-10 09:35:49 +00:00