Commit Graph

9869 Commits

Author SHA1 Message Date
Lasse Öörni
7397399c7c Allow defining draw range without an index buffer if raw index data has been defined. Note: the validity of the draw range cannot be checked in that case. 2013-05-25 23:27:43 +00:00
Lasse Öörni
4e618bb80e Subclass SDLActivity so that the package name in SDL JNI code does not need to be changed.
Do not check for duplicate vertices when building triangle collision meshes to avoid a O(n^2) algorithm.
2013-05-25 23:14:14 +00:00
Lasse Öörni
730c6eda2f Updated to AngelScript 2.27.0 WIP. 2013-05-25 22:11:21 +00:00
Lasse Öörni
b8270df90b Added error logging for cases of components in detached nodes trying to find Octree or PhysicsWorld, or subscribing to update events.
Added error logging if a node is moved from one scene to another (unsupported.)
2013-05-24 10:19:46 +00:00
Lasse Öörni
ff35d0fff2 Fixed missing semicolon in Sprite.h
Clear the arch environment variable in Visual Studio CMake bat files, so that it is possible to reconfigure the build as 32bit in the same command prompt session by rerunning CMake bat without the "Win64" flag.
2013-05-23 09:00:18 +00:00
Lasse Öörni
cb5961c04d Use a reference to UpdateAttributes() fullupdate flag, so that if a non-fullupdate turns into a fullupdate due to changed number of attribute editors, the iconpanel is resized properly. 2013-05-22 20:28:23 +00:00
Lasse Öörni
d215b745d4 Return light's shape texture ResourceRef as TextureCube type if it's a point light.
Remove TextureCube hack from editor's resource picking code.
2013-05-22 19:56:23 +00:00
Lasse Öörni
98986d77dc Fixed resource pick fileselector becoming unavailable if a resource pick was cancelled.
Remove existing bone hierarchy from AnimatedModel when it's being destroyed/detached from scene, or if a null model is assigned.
2013-05-22 15:09:42 +00:00
Wei Tjong Yao
8dd7e0a495 Modified CMakeLists.txt to include the source asm file into VS solution (just for viewing, the source is not compiled by MASM as before). 2013-05-22 11:24:54 +00:00
Wei Tjong Yao
86a04ae472 Fixed CMake Win64 build configuration problem by working around the bug temporarily. Stream lined the Windows batch files for sample applications. Enhanced cmake_vs20xx to accept optional parameter to enable 64bit build. Updated documentation. 2013-05-22 11:06:19 +00:00
Lasse Öörni
31ef2dea57 Reorganized building documentation. 2013-05-19 17:14:29 +00:00
Lasse Öörni
ad0d869c51 Cleaned up commented out code. 2013-05-18 17:21:32 +00:00
Lasse Öörni
3fe1352773 Use fixed kNet build config and simplify kNet CMakeLists.txt. 2013-05-18 12:12:18 +00:00
Wei Tjong Yao
dacd06c2d8 Removed redundant code to keep LLVM compiler happy. 2013-05-15 18:46:04 +00:00
Lasse Öörni
d01fdb3764 Fixed endless loop in non-indexed Ray::InsideGeometry(). 2013-05-12 20:45:15 +00:00
Lasse Öörni
370e3cacb6 Removed debug print. 2013-05-12 18:24:25 +00:00
Wei Tjong Yao
5f834fe1b1 Fixed GCC 64-bit compiler warning. 2013-05-12 16:57:17 +00:00
Lasse Öörni
483e07c2e8 Print warning if node is not found for node animation.
Update documentation on playing back node animations.
2013-05-12 16:34:42 +00:00
Lasse Öörni
a0a3428de5 Allow using AnimationController also for node animations. 2013-05-12 15:47:00 +00:00
Lasse Öörni
8eb5ebe73c Fixed AnimationState code in node animation mode. 2013-05-12 13:15:07 +00:00
Lasse Öörni
4c2842967e Allow configuring the minimum instances per batch group to actually render as instanced. 2013-05-12 12:18:52 +00:00
Lasse Öörni
2e1982ee03 Store the changed geometry type to the batch in case instancing is rejected. 2013-05-11 23:43:54 +00:00
Lasse Öörni
185f7833dd Convert a batch group to instancing only when the second batch is added. 2013-05-11 23:05:14 +00:00
Lasse Öörni
ace84bc7ca Fixed UI debug draw. 2013-05-11 17:08:21 +00:00
Lasse Öörni
5550246c09 Export node animations from scene.
Preparation for running an AnimationState in node hierarchy mode in addition to AnimatedModel mode.
2013-05-11 17:03:44 +00:00
Lasse Öörni
cd88d22e36 Renamed BillboardSet::Updated() to Commit() to match CustomGeometry API. 2013-05-11 09:30:29 +00:00
Wei Tjong Yao
1f54977f7e Completed renaming of Scene and Node windows to Hierarchy and Attribute-inspector windows, respectively. 2013-05-11 05:26:52 +00:00
Lasse Öörni
5d07d7aa23 Do not concatenate worldscale separately.
Use matrix math to calculate new transform when node is reparented, instead of setting T/R/S separately. This allows better match of effective scale even when parent node has nonuniform scale.
2013-05-10 22:10:17 +00:00
Wei Tjong Yao
9f7862e9da Script cleaned up. 2013-05-10 15:54:44 +00:00
Wei Tjong Yao
5dcdbe453b Fixed cmake_eclipse.sh to remove CMakeCache.txt. Fixed 64-bit compilation issue against newer X11 development library. 2013-05-10 15:35:42 +00:00
Lasse Öörni
c6a38db74f Do not show the internal TerrainPatch & SmoothedTransform components in editor creation menu.
Fixed reconstruction of the TerrainPatch's occlusion transform.
2013-05-10 13:52:46 +00:00
Lasse Öörni
21715547bc Applied InsideGeometry() fix from Firegorilla. 2013-05-09 21:59:36 +00:00
Lasse Öörni
5e5d98581c Concatenate world rotation separately to fix GetWorldRotation() returning erroneous values when parent node has nonuniform scale.
Reorganized component categories.
2013-05-09 20:34:29 +00:00
Lasse Öörni
26402a255a Renamed Camera::GetInverseWorldTransform() to Camera::GetView() as world transform includes scale, but camera view matrix should be unaffected by it.
Fixed spotlight frustum being affected by node scale.
Note: fix is yet incomplete, Node::GetWorldRotation() needs changing to work correctly when parent has nonuniform scale.
2013-05-09 14:27:12 +00:00
Lasse Öörni
dbb0c17a75 Removed the package download test from TestScene, as the example is already complex enough as it is.
Added progress prints to PackageTool.
2013-05-09 11:34:52 +00:00
Lasse Öörni
1d2fec862c Applied CustomGeometry convex hull collision patch from Pete Leigh, with added serialization support. 2013-05-09 11:30:24 +00:00
Lasse Öörni
4a3ec28769 Added point inside StaticModel check from Firegorilla.
Simplified Node::LookAt() to always take a world space position.
Constness cleanup.
2013-05-08 22:31:29 +00:00
Lasse Öörni
e039330e62 Changed DecalSet to use raw binary buffer serialization for the decal data for more size-optimal and faster load/save.
Fixed animation glitches on models with decals caused by incorrect access to bone positions from multiple threads. This was caused by an earlier bugfix (NinjaSnowWar bodies hanging in midair) which was now fixed instead by setting a nonzero invisible animation LOD factor for the ninjas.
Code cleanup.
2013-05-07 19:07:34 +00:00
Lasse Öörni
02b178020e Added geometry data serialization for CustomGeometry. 2013-05-07 18:14:20 +00:00
Lasse Öörni
7cd99fe257 Fixed redundant copying of vertex buffer data when rendering the UI. 2013-05-07 17:17:56 +00:00
Lasse Öörni
b6366ff982 Optimized StringToBuffer & BufferToString.
Fixed warnings in XMLElement.
2013-05-03 21:12:26 +00:00
Lasse Öörni
3eb3c1dc66 Refactored string<>bytebuffer conversions to functions in StringUtils and marked todo's for optimizing them. 2013-05-03 14:45:36 +00:00
Lasse Öörni
41656ea427 Added note of code modification. 2013-05-02 21:31:38 +00:00
Lasse Öörni
f14cb1aafc Possibly fixed BlenderLoader heap corruption.
Removed incompatible Assimp processing flag.
2013-05-02 21:25:57 +00:00
Lasse Öörni
be9cef51a4 AssetImporter Optimize Graph process not done by default, but needs to be manually activated with the -o switch. 2013-05-02 17:18:59 +00:00
Lasse Öörni
74e13e03b3 Wiki update. 2013-05-01 15:17:47 +00:00
Lasse Öörni
8b28c12ae6 Added instancing to the OpenGL renderer, requires the ARB_instanced_arrays extension. 2013-05-01 15:14:31 +00:00
Wei Tjong Yao
4c305a17a3 Renamed top-level 'UI-element' menu item to 'UI-layout' to be consistent with documentation. Removed option to expand/collapse hierarchy item by double-clicking because on certain condition it may accidentally trigger a drag-drop operation when the list view's panel scrolled due to the result of the expand/collapse. Anyway, we already have more than one way to expand/collapse hierarchy item. 2013-05-01 09:09:20 +00:00
Wei Tjong Yao
e0d8ac0c03 Code cleaned up. 2013-05-01 07:43:41 +00:00
Wei Tjong Yao
b11cd0c11f Enhanced cmake shell scripts to accept extra options from command line. Added documentation on how to enable 64bit for GCC build. 2013-05-01 04:22:39 +00:00