Commit Graph

9886 Commits

Author SHA1 Message Date
Lasse Öörni
8f2ed8b97b Guard LuaScript subsystem against unsubscribing internally listened events. 2014-03-12 15:50:45 +02:00
aster2013
a3c79a67d5 Add attribute accessor in Physics2D classes.. 2014-03-12 21:26:27 +08:00
aster2013
74a059d899 Add Urho2D Physics sample. 2014-03-12 20:59:39 +08:00
aster2013
90f87a2a2c Add Lua and AngelScript binding. 2014-03-12 20:59:24 +08:00
aster2013
e116ab8150 Add 2D physics class. 2014-03-12 20:58:35 +08:00
aster2013
130551f4d8 Add fixed pixel size (user don't need change the value). 2014-03-12 19:58:32 +08:00
Lasse Öörni
5100562788 Added .tga to the editor's file picker for textures/images, as it is supported by stb_image. 2014-03-12 10:11:08 +02:00
Yao Wei Tjong 姚伟忠
3eceb385fe For Travis CI - fix non uniq revision deletion list for housekeeping.
[ci package]
2014-03-12 12:26:34 +08:00
Yao Wei Tjong 姚伟忠
19c9452944 For Travis CI - setup digital key earlier for housekeeping to work.
[ci package]
2014-03-12 10:53:58 +08:00
urho3d-travis-ci
eff35a4ae7 Travis CI: API documentation update at 2014-03-12 02:39:20 UTC.
[ci skip]
2014-03-12 02:39:20 +00:00
Yao Wei Tjong 姚伟忠
a6036755b9 For Travis CI - automate housekeeping of old snapshots.
[ci package]
2014-03-12 10:12:51 +08:00
Lasse Öörni
02e543ba5c Support for per-pixel negative lights. Added BLEND_SUBTRACT & BLEND_SUBTRACTALPHA blend modes. Light code cleanup. 2014-03-12 00:29:27 +02:00
Lasse Öörni
ec43000d09 Added teapot & torus models from Hgdavidy's pull request. 2014-03-11 19:52:36 +02:00
urho3d-travis-ci
261a0326c1 Travis CI: API documentation update at 2014-03-11 17:21:25 UTC.
[ci package]
2014-03-11 17:21:25 +00:00
Yao Wei Tjong 姚伟忠
24aeabb02f Move back MarkAllDrawable2DDirty() to Node class as public method.
The method could be called to mark Drawable2D as dirty for other reasons and not just because of Scene's pixels per unit attribute has changed. It could also be called on a particular node instead of Scene node to partially mark the attached 2D components as dirty.
2014-03-11 23:09:27 +08:00
aster2013
c96d44fcb8 rename unitSize2D to pixelsPerUnit. 2014-03-11 22:39:18 +08:00
aster2013
d79c151f84 Revert ParticleModel2D model scale, apply scene unit size to ParticleEmitter2D. 2014-03-11 22:21:17 +08:00
aster2013
3101a308f9 Change default unitSize2D to 100, Apply model scale in ParticleModel2D. 2014-03-11 22:14:50 +08:00
Lasse Öörni
160279a2b0 Add Box2D also to library list in Urho3D.dox. 2014-03-11 14:31:57 +02:00
aster2013
3c7a52d6f3 Make MarkAllDrawable2DDirty function private in Scene class. 2014-03-11 20:28:14 +08:00
aster2013
9a61734d15 Add Box2D license. 2014-03-11 20:28:14 +08:00
Yao Wei Tjong 姚伟忠
68be9a9e57 Fix MINGW_ROOT variable value computation when not being provided. 2014-03-11 20:03:20 +08:00
Lasse Öörni
2e212023fb Fixed the Lua binding of UIElement::GetParent() to return the proper type. 2014-03-11 12:48:48 +02:00
Lasse Öörni
88853388a9 Use proper object return type in Lua bindings of UIElement::GetChild() to enable subclass properties & functions. 2014-03-11 12:48:47 +02:00
Yao Wei Tjong 姚伟忠
c21924703c Also recalculate bounding box when Scene's 2D unit size change. 2014-03-11 18:03:51 +08:00
Lasse Öörni
814480fff5 Improved zone gradient documentation. 2014-03-11 11:03:12 +02:00
urho3d-travis-ci
189a04c548 Travis CI: API documentation update at 2014-03-11 08:21:59 UTC.
[ci package]
2014-03-11 08:21:59 +00:00
Yao Wei Tjong 姚伟忠
d5d4d51aff Refactor Drawable2D's pixel-per-unit to Scene's 2D-unit-size attr.
Updating this Scene's attribute would mark all the attached Drawable2D components dirty.
2014-03-11 16:03:31 +08:00
Lasse Öörni
0eb0a5d7a5 When a Zone moves or is removed from octree, clear zone from all drawables within the bounding box, not just from those that belong to the zone. This allows zone search in View to perform more optimally. 2014-03-11 00:28:43 +02:00
Lasse Öörni
2082c026c2 Handle zone search better to avoid erroneous lower-priority zone assignment. Added OnRemoveFromOctree() virtual function to Drawable. Zone code simplified. Remove zone reference from drawables within its bounding box when the zone is being destroyed. 2014-03-11 00:16:14 +02:00
Lasse Öörni
6fbda65a4f Initial negative light support. Right now works only with per-vertex lights. Set negative light color to use. Per-pixel negative lights may be problematic, as they require different blend mode, will also darken any emissive materials, and will not work in light pre-pass mode (there is nothing to subtract from, as light buffer is initialized with black) 2014-03-10 16:28:59 +02:00
urho3d-travis-ci
c868d036ed Travis CI: API documentation update at 2014-03-10 10:51:44 UTC.
[ci package]
2014-03-10 10:51:44 +00:00
Lasse Öörni
b1def74270 Fix PhysicsWorld::GetRigidBodies() not taking collision layer mask into account. Closes #248.
Expose PhysicsWorld::GetRigidBodies() into Lua.
2014-03-10 12:03:10 +02:00
urho3d-travis-ci
af6c1c49df Travis CI: API documentation update at 2014-03-10 07:49:26 UTC.
[ci package]
2014-03-10 07:49:26 +00:00
Yao Wei Tjong 姚伟忠
f48ef6f5bd Minor bug fix, refactoring and reformatting. 2014-03-10 15:34:20 +08:00
urho3d-travis-ci
8788e70b21 Travis CI: API documentation update at 2014-03-10 00:17:40 UTC.
[ci package]
2014-03-10 00:17:40 +00:00
Lasse Öörni
0f3d781c3b Update copyright year in some files. Added copyright notice to ForEach.h. 2014-03-10 00:56:06 +02:00
Lasse Öörni
8f587296f2 Added note to ForEach.h of VS2008 incompatibility. 2014-03-10 00:53:11 +02:00
Lasse Öörni
4d15a2c09b Report correct window size in the screen mode event if maximizing the window on startup. Closes #247. 2014-03-10 00:42:03 +02:00
Lasse Öörni
65c3c50738 Shuffling around of Spline to the Core library to make explicit that it depends on Variant (the dependency is no longer strict as Urho3D library is built as one piece, but is good to keep in mind to retain the Math library theoretically reusable outside Urho3D.)
Register DebugRenderer earlier in the AngelScript API registration for less special cases.
2014-03-10 00:25:37 +02:00
Lasse Öörni
d53079f530 Merge remote-tracking branch 'remotes/alexparlett/feature/spline' 2014-03-09 23:45:39 +02:00
Alex Parlett
751b4f1c97 Changed SplinePath so that it is more flexible its logic is now separate from the scene hierarchy. Control Points are set and removed explicitly with the ability to define the order. Controlled Node is explicitly set so that the Move function affects that Node's WorldPosition. 2014-03-09 19:18:40 +00:00
Lasse Öörni
fb3306170e Material quality, texture quality, texture filter mode and anisotropy level as engine startup parameters and command line options. Closes #241. 2014-03-09 19:36:40 +02:00
Alex Parlett
3bb95a7d5d Refactored Spline to use Variant instead of being a template to allow easier implementation of Scripting APIs. Added additional type safety checks to ensure that the Variant underlying type is the same as existing elements.
Added Lua and Angelscript Bindings for SplinePath and Spline.

fixes #229
2014-03-09 14:14:46 +00:00
Alex Parlett
7aa0d8acc9 Separated the Spline Mathematical aspect from the Component into a new Spline class under Math. No angelscript or lua bindings as of yet as I'm unsure how to go about adding the templated class in a suitable manner.
Old Spline class has been renamed to SplinePath as is build using child nodes of its parent node. To facilitate the functionality a method has been added to Node to allows you to specify the index position of where to add the child Node as that impacts the curve.  DebugGeometry was added which shows the nodes that currently make up the SplinePath and the curve.

Added CScriptArray to PODVector convertor.
2014-03-09 12:48:02 +00:00
Yao Wei Tjong 姚伟忠
dce461469f For Travis CI - detect release tag and do the necessary automatically.
When a release tag is detected in a commit, instruct CI build to perform a released package build that uploaded into release directory instead of Snapshots directory.
2014-03-09 16:42:30 +08:00
Yao Wei Tjong 姚伟忠
3b3b4544d0 For Travis CI - fix packaging for OSX platform. [ci package] 2014-03-09 14:38:38 +08:00
urho3d-travis-ci
db81e0ea61 Travis CI: API documentation update at 2014-03-09 01:50:10 UTC.
[ci package]
2014-03-09 01:50:10 +00:00
Lasse Öörni
2529f4c51a Added IsNaN() to Vector2, Vector3, Vector4, Quaternion. Safeguard against Node::LookAt() misbehaving if target is very close. Closes #231. 2014-03-09 03:34:28 +02:00
Lasse Öörni
d25872ca08 Update Recast/Detour to newest. Remove Navigation.cpp / Navigation.h in Navigation library; moved the library registration to NavigationMesh.cpp. 2014-03-09 03:27:13 +02:00