Yao Wei Tjong 姚伟忠
46285baf97
Refactor build scripts to group Urho3D specific build option.
...
Initial support of project configuration and generation via cmake-gui.
2014-04-05 00:20:56 +08:00
Lasse Öörni
67d603d8e5
Node transform space refactoring. Translate(), Rotate() and LookAt() functions take a transform space (local, parent or world). Translate() has a behavior change: default space is local, as that is most often used in eg. camera movement, and is consistent with the default for rotations (the earlier fixedAxis = false was same as local space). The redundant TranslateRelative() function is removed. Add RotateAround() function, which allows rotating around a pivot in either local, parent or world space. Closes #295 .
2014-04-03 22:36:29 +03:00
Lasse Öörni
a70848e464
Fix Lua postupdate handler not being called.
2014-04-03 22:34:18 +03:00
Lasse Öörni
42265071a3
Added a multiplier+addition for depth bias on OpenGL ES platforms. Increased default constant depth bias of lights.
2014-04-03 11:22:40 +03:00
Lasse Öörni
2ac921de60
When editor is run from Urho3DPlayer, enable Lua if possible to allow editing Lua scripted scenes. Closes #294 .
2014-04-03 10:45:24 +03:00
Aster Jian
88ca8a56b5
Remove AttributeAnimation.h from master.
2014-04-02 10:54:07 +08:00
Lasse Öörni
6be531d66f
Set frustum size shader parameter as Vector3.
2014-04-02 01:33:19 +03:00
Lasse Öörni
8945322476
Fix spelling: ClipBoard -> Clipboard. Use the system clipboard by default in the editor.
2014-04-01 21:06:07 +03:00
Lasse Öörni
0d2879bbf0
Fix OpenGL build.
2014-04-01 20:06:50 +03:00
aster2013
e1a2c7a2bf
Update AttributeAnimation.h
2014-04-01 23:31:05 +08:00
Lasse Öörni
ee9868e29e
Refactor setting global & camera shader parameters to functions. Used both by Batch & View. Ensure that same parameters are set in both scene and quad (postprocess) rendering. Note that quad rendering still does not use the camera's real projection matrix to ensure stability.
2014-04-01 13:56:39 +03:00
Lasse Öörni
cf4c43d344
Added Serializer / Deserializer functions for reading & writing matrices. Added bool success parameter to Quaternion::FromLookRotation() and Node::LookAt(), as it can potentially give a NaN result (in which case the original rotation is kept). Optimized reading of math objects in Deserializer to avoid default construction.
2014-04-01 12:29:17 +03:00
Lasse Öörni
f7b99ecdee
Added Matrix types to Variant. Added ToString() to Matrix types. Added Matrix getters/setters to XMLElement. Added ToMatrix string conversion functions. Added possibility to assign shader parameters from Matrix variants. Fixed missing setting of Color variant shader parameter on Direct3D9.
2014-03-31 23:32:06 +03:00
Lasse Öörni
2bedd953ce
Fixes to sceneless renderpath on OpenGL.
2014-03-31 12:25:24 +03:00
Lasse Öörni
6bfcc28010
Allow a pass to be marked as SM3-only, so that rendering limitations can be defined as data-driven instead of hardcoding in the engine. Moved specular disable for SM2 shadowed pointlight from code to shaders. Mention in the documentation that some materials may be too complex for SM2 and dynamic shadows.
2014-03-31 01:17:00 +03:00
Lasse Öörni
1418fb7e83
Changed the SM2.0 tradeoffs to allow 4-sample shadow mapping and to verify that shaders again work on GPU's without hardware shadow compare (eg. Radeon 9800.) Removed unnecessary shader code & simplified the LitSolid & light volume shaders.
2014-03-30 20:27:15 +03:00
Lasse Öörni
c3425334a3
Switch forward light calculations back to world space instead of tangent space to avoid light attenuation bugs when TBN matrix is not orthogonal. Shader code becomes simpler and more similar between forward and deferred, and number of vertex shader variations is reduced, but disadvantage is a more complex pixel shader which requires disabling expensive features on SM2.0 to avoid exceeding the arithmetic instruction limit. Fix cube mapped point light displaying the cube map upside down. Closes #276 .
2014-03-30 00:44:07 +02:00
Lasse Öörni
1838e604f3
Do more work in the ParseTextureUnitName() function to reduce duplicated code.
2014-03-29 23:47:17 +02:00
Lasse Öörni
6833f858dc
If a view's renderpath has no scene passes, allow rendering it also when no scene, camera & octree are provided. Closes #267 .
2014-03-29 00:25:36 +02:00
Lasse Öörni
212a3b34b2
Merge remote-tracking branch 'remotes/silverkorn/master'
2014-03-28 22:54:41 +02:00
aster2013
882a7d3929
Remove ContainerLuaAPI.pkg
2014-03-28 13:32:50 +08:00
aster2013
1ba3fe00fa
Rename sensor to trigger.
2014-03-28 13:00:45 +08:00
Yao Wei Tjong 姚伟忠
b8368401fd
Use alternative way to suppress CMP0022 warning. Closes 287.
2014-03-28 08:51:19 +08:00
Lasse Öörni
35195939c1
Exposed allowed screen orientations (effective on iOS only currently) and the flush GPU setting as engine startup parameters.
2014-03-28 00:23:31 +02:00
Danny B
e738209746
Added descriptions mapping for LuaScript packages' hooks.
...
In "ToDoxHook.lua":
- Added "getCurrentDirectory" function;
- Added process to fetch and map C++ headers' descriptions to Lua elements;
- [TODO] Write descriptions from Lua elements for Doxygen output.
In "ToZerobraneStudioHook.lua":
- Writes descriptions from Lua elements for ZerobraneStudio API file.
2014-03-27 16:29:40 -04:00
aster2013
0cfe56310a
Use multi thread check Drawable2D visiblity.
2014-03-27 19:46:19 +08:00
aster2013
a47c9ebe32
Add visibility property in Drawable2D.[ci skip]
2014-03-27 19:46:18 +08:00
Yao Wei Tjong 姚伟忠
20edf417ce
Fix LuaJIT search path which was broken after v2.0.3 update.
2014-03-27 14:09:40 +08:00
aster2013
c52d2e35d5
Delay call Drawable2D::GetVertices.
2014-03-27 13:25:53 +08:00
aster2013
252375abc1
Add material compare in Drawable2D.
2014-03-27 12:08:08 +08:00
Lasse Öörni
18217a0fdd
Added UI hover start/end events.
2014-03-26 20:07:24 +02:00
aster2013
0354d3a2f2
Add visibility checking in DrawableProxy2D.
2014-03-26 20:59:27 +08:00
Lasse Öörni
ed59f76e1c
Restore .gitignore in Source/Android/assets.
2014-03-26 12:22:05 +02:00
Lasse Öörni
e8fdf7a7d8
Fix DrawableProxy2D check for large indices: vertex count needs to be over 0xffff. Do not attempt to precache instanced or shadowed pointlight shaders on OpenGL ES.
2014-03-26 12:18:07 +02:00
Lasse Öörni
16605301bc
Reorganize Editor & NinjaSnowWar resources into subdirectories.
2014-03-26 11:57:56 +02:00
aster2013
5b47ba268d
Fix ConstraintMotor2D, refactor all Constraint2D classes.
2014-03-26 12:36:16 +08:00
aster2013
077df45dc0
Reorder functions in DrawableProxy2D.
2014-03-26 12:36:15 +08:00
Lasse Öörni
f6c96c2f9f
Simplify defining Vector2,3,4::ZERO. Consistency for the up direction parameter name in Node::LookAt() & Quaternion::FromLookRotation().
2014-03-26 00:30:03 +02:00
Lasse Öörni
0a1d2ea259
Default-construct math objects to zero or identity to unify C++ / AngelScript / Lua behavior. Closes #279 .
2014-03-25 22:34:03 +02:00
Lasse Öörni
31ce69b490
DrawableProxy2D operation fixes. Should fix crashes with worker threads and sprite flickering. Note that there is no frustum culling for Drawable2D's, as the vertex buffer for all of them is generated at once, and culling would be problematic for multiple views. Closes #252 .
2014-03-25 21:35:34 +02:00
Lasse Öörni
de8396f0c4
Ensure StaticSprite2D calculates its local boundingbox correctly, then transforms it to world space. Remove DrawableProxy2D searching for a camera node, as that is unreliable. Instead a large bounding box (similar to SkyBox) is set for it.
2014-03-25 20:32:50 +02:00
Lasse Öörni
a6b66ab23a
Fix crash when a 2D drawable is removed from scene.
...
Added icons for 2D helper subsystems.
2014-03-25 19:29:38 +02:00
aster2013
623fab0e16
Fix CompareDrawable2Ds.
2014-03-25 20:25:35 +08:00
Lasse Öörni
f45976832d
Send event when drag is cancelled.
2014-03-25 14:24:15 +02:00
Lasse Öörni
00a1c50b16
Merge remote-tracking branch 'remotes/friesencr/ui-esc-cancel-drag'
2014-03-25 13:33:32 +02:00
aster2013
60ef5aa6bf
Add DRAWABLE_2D.
2014-03-25 18:28:40 +08:00
aster2013
5957f7bcc3
Chanage update geometry in main thread.
2014-03-25 18:10:59 +08:00
Chris Friesen
eb565b81ad
Escape cancels ui dragging
2014-03-25 01:30:06 -05:00
aster2013
e7d829277d
Remove AddListener call. [ci skip]
2014-03-25 14:01:00 +08:00
aster2013
a32334d230
Fix bounding box calculate in ParticleEmitter2D, use dummy bounding box in DrawableProxy2D.
2014-03-25 13:58:10 +08:00
aster2013
d7a3b4336d
Use index buffer in DrawableProxy2D.
2014-03-25 13:23:01 +08:00
aster2013
c31637ed43
Add batch rendering for all 2D objects.
2014-03-25 12:51:10 +08:00
Yao Wei Tjong 姚伟忠
33312cf5bb
Fix the Drawable2D sorting expression.
2014-03-25 12:38:39 +08:00
Yao Wei Tjong 姚伟忠
6f893483a1
Add RPM and DEB package generator for Raspberry Pi package build.
2014-03-25 12:17:51 +08:00
aster2013
1d3329c4aa
Apply world transform to vertices.
2014-03-25 12:13:43 +08:00
aster2013
43147fbe1d
Convert MaterialCache2D to a component. [ci skip]
2014-03-25 12:09:57 +08:00
aster2013
4a34818c25
Add DrawableProxy2D.[ci skip]
2014-03-25 11:52:28 +08:00
aster2013
bea3ec1c76
Remove z value, use layer order to sort Drawable2D.
2014-03-25 11:31:27 +08:00
Lasse Öörni
83aba1d30e
Added CharEntry event to LineEdit for manipulation of the chars that are being inserted into the edited text.
2014-03-25 01:49:12 +02:00
Alex Parlett
d274e71dd7
Fixed Ninja Snow Wars Objects xml to use Is Trigger.
...
Updated Physic Events to use P_TRIGGER instead of P_PHANTOM this will require a change in anything using the old Phantom event code in client applications.
2014-03-24 21:55:42 +00:00
Lasse Öörni
6f21f8bc69
Merge branch 'sdl-update'
2014-03-24 23:37:22 +02:00
Alex Parlett
a22a24c0e4
Rename RigidBody::Phantom to RigidBody::Trigger to align it with common terminology for physics.
2014-03-24 20:44:34 +00:00
Lasse Öörni
0246ae607f
Improve Camera documentation. To avoid potential confusion, disable auto aspect ratio mode from Camera if aspect ratio is set explicitly, or if the Vector2 form of Camera::SetOrthoSize() is used.
2014-03-24 22:16:48 +02:00
aster2013
ff0d806587
Rename ParticleModel2D to ParticleEffect2D.
2014-03-24 12:09:51 +08:00
Yao Wei Tjong 姚伟忠
9f2d8e072d
Remove LuaJIT specific definition as it is not needed.
...
Since we are not installing LuaJIT directly but leave it in Urho3D's Bin directory, it should not be necessary to alter the search path to include LUA_XROOT (in v2.0.2) or LUA_ROOT (in v2.0.3). Similarly because of that, we also do not need to care about LuaJIT new support for MULTILIB.
This change should remove the incorrectly included hardcoded-value in the Urho3D.pc for the Raspberry Pi platform as well.
2014-03-22 20:22:21 +08:00
Yao Wei Tjong 姚伟忠
591c8800b6
Minor fix for SDL build on Raspberry Pi platform.
2014-03-21 23:05:12 +08:00
Yao Wei Tjong 姚伟忠
ed1f820f9b
For Travis CI - workaround FindALSA cmake module bug on Ubuntu 12.04.
2014-03-21 21:03:33 +08:00
Lasse Öörni
bc5730680b
Fixed SDL build on MinGW.
2014-03-21 14:27:08 +02:00
Lasse Öörni
6f3a79eda3
Fix SDL keyboard event sending on X11.
2014-03-21 13:35:25 +02:00
Lasse Öörni
882f4da62e
Added quad rendering missing elapsed time parameter fix from szamq. Also add delta time parameter to batch rendering. Closes #272 .
2014-03-21 13:23:06 +02:00
aster2013
f52bdfeb5b
Add new line at end of file.[ci skip]
2014-03-21 18:04:18 +08:00
aster2013
9fa07b4af5
Add new line at end of file.[ci skip]
2014-03-21 17:58:01 +08:00
aster2013
fc0e65a8d9
Add Lua and AngelScript binding.
2014-03-21 17:48:30 +08:00
aster2013
a411d7db39
Add More constraint type. [ci skip]
2014-03-21 17:47:59 +08:00
aster2013
5b798b4467
Dont allow edit Constraint2D in editor[ci skip]
2014-03-21 17:47:30 +08:00
aster2013
9cd40fb07f
Revert attribute animation. It will be added in a new branch.
2014-03-21 10:44:18 +08:00
Lasse Öörni
52aa369f5d
Android fixes. Bump required Android SDK required for compiling to 12 due to SDL joystick code. Removed the activity finish request code, as SDLActivity should now cleanly wait for the native thread to exit.
2014-03-21 02:46:42 +02:00
Lasse Öörni
365e0a7ed2
Fixed conflict. Removed nonexistent file from SDL CMakeLists.txt.
2014-03-21 01:48:52 +02:00
Lasse Öörni
1439b1c4be
Merge SDL 2.0.3.
2014-03-21 01:44:14 +02:00
Lasse Öörni
26ef946bad
Add possibility to decouple BorderImage border UV size from screen size. Closes #269 .
2014-03-20 20:16:30 +02:00
aster2013
29e930d495
Add commend and use shared ptr for attribute animation. [ci skip]
2014-03-20 22:32:49 +08:00
aster2013
b1b9c34c11
Add simple attribute animation system, and change StaticScene to test it.
2014-03-20 22:23:33 +08:00
Yao Wei Tjong 姚伟忠
82c8d45b59
Revert back the condition as the issue is with Travis CI OSX build env.
...
[ci skip]
A new issue is opened at their repo: https://github.com/travis-ci/travis-ci/issues/2085 .
If it could not be resolved quickly then we will force to export that environment variable in our own .travis.yml file.
2014-03-20 21:49:31 +08:00
aster2013
1f90e248e9
Add Lua binding for Constraint2D.
2014-03-20 18:53:00 +08:00
aster2013
d96310f82e
Add more Constraint2D. [ci skip]
2014-03-20 18:52:59 +08:00
Yao Wei Tjong 姚伟忠
a13c04053c
Fix the logic to suppress all warnings for iOS CI build. [ci skip]
2014-03-20 16:07:59 +08:00
aster2013
a44291b557
Fix gravity and rotation in ParticleEmitter2D.
2014-03-20 14:47:24 +08:00
Yao Wei Tjong 姚伟忠
a9056d90f4
Fix build script to include Urho3D.apk only for Urho3D project.
...
[ci package]
2014-03-20 14:24:52 +08:00
Yao Wei Tjong 姚伟忠
41549655ce
Build both armeabi and armeabi-v7a ABIs when packaging for Android.
...
- Fix android toolchain to correctly set the library output path when ANDROID_ABI build option changes.
- For Travis CI - download and setup Android SDK on the fly when performing Android packaging.
- Final apk is included in the binary package.
2014-03-19 23:57:48 +08:00
aster2013
86ae9190a7
Fix particle emitter, add radial particle in sample.
2014-03-19 23:09:10 +08:00
Yao Wei Tjong 姚伟忠
bceb1a9c61
Updated to LuaJIT 2.0.3. Closes #266 .
2014-03-19 19:57:18 +08:00
Lasse Öörni
12e6bcf4e0
Fixed typo and improved SoundSynthesis example comments.
2014-03-19 13:43:55 +02:00
Lasse Öörni
e8c550a98f
Added documentation for the sound streaming feature.
2014-03-19 12:28:11 +02:00
Lasse Öörni
a06e4238b3
Simplify sound stream code and improve the SoundSynthesis sample. Closes #257 .
2014-03-19 12:15:31 +02:00
aster2013
6e5d43a56b
Replace plist particle file with Staring extension particle system (pex).
2014-03-19 16:11:02 +08:00
aster2013
4e2285b5b3
Add URHO3D_API to BufferedSoundStream. [ci skip]
2014-03-19 16:04:54 +08:00
Lasse Öörni
1cc8f2b82b
Added BufferedSoundStream class and sound synthesis C++ example.
...
Removed SharedArrayPtr DynamicCast() as it made no sense; replaced with ReinterpretCast().
2014-03-19 09:18:13 +02:00
Lasse Öörni
acb993e4ba
Abstract Ogg Vorbis sound decoding into the SoundStream class. Note: the SoundStream class is deliberately not exposed to scripts, as it requires low-level data access and is used from the sound mixing thread.
2014-03-19 01:08:23 +02:00
Lasse Öörni
4bf765d711
Removed SDL hack to get window handle for Direct3D9. Instead use SDL builtin functionality.
2014-03-18 19:37:18 +02:00
Lasse Öörni
c1fbbd9628
Fix interpolation of the decoder buffer when it loops.
2014-03-18 15:41:09 +02:00
Lasse Öörni
8bf5af9261
Added note that tangents are needed for normal mapping. Clean up SoundSource decoder handling to prepare for application-supplied sound stream.
2014-03-18 15:20:19 +02:00
aster2013
4146f77ec2
Add Constraint2D Lua and AngelScript binding. [ci skip]
2014-03-18 18:49:38 +08:00
aster2013
c7153fd67d
Add Urho2DPhysicsRope sample.[ci skip]
2014-03-18 18:43:00 +08:00
aster2013
b417a3a2b0
Add Constraint2D classes.
2014-03-18 18:39:32 +08:00
Yao Wei Tjong 姚伟忠
1e8c8c76bf
Add end-of-line character on last line. [ci skip]
2014-03-18 16:36:48 +08:00
Yao Wei Tjong 姚伟忠
10cbd8deed
Add a simple Android samples launcher activity.
...
The launcher activity will only be shown when there are actually more samples built into the deployed apk. If no other samples then the launcher will just launch Urho3DPlayer without prompting. Otherwise a list view is presented in the launcher activity to let user to choose which sample library to be loaded.
Due to unloading of shared library is not supported from Java side, currently once a sample library is being loaded, the launcher cannot unload the library and let user to choose other samples. Until a workaround is found, user would have to perform a long pressed on a home button, close the app, and restart it again from scratch.
2014-03-18 16:33:27 +08:00
Lasse Öörni
480594e7a4
Added focusOnShow -property to Console to control whether the Console's LineEdit is automatically focused. Default true on desktops and false on mobile devices, to prevent automatically popping up the screen keyboard.
2014-03-17 17:23:46 +02:00
aster2013
e0e7fe8ea5
Add MaterialCache2D, Remove DrawableProxy2D.
2014-03-17 22:23:05 +08:00
aster2013
ab66be1eb2
Fix typo. [ci skip]
2014-03-17 19:45:35 +08:00
aster2013
cd41727484
Change comment. [ci skip]
2014-03-17 19:42:17 +08:00
aster2013
906aa96273
Fix ScriptSubscribeToEvent bug when new object with same memory address.
2014-03-17 19:34:01 +08:00
aster2013
3707c984ac
Fix point query in PhysicsWorld2D.
2014-03-17 18:16:13 +08:00
aster2013
7203a04952
Add point query function in PhysicsWorld2D.
2014-03-17 13:56:00 +08:00
aster2013
af02e3fc4a
Add query function in PhysicsWorld2D.
2014-03-17 13:28:21 +08:00
Lasse Öörni
327c117af1
Fix Urho2D physics classes AngelScript bindings.
2014-03-15 23:08:24 +02:00
Lasse Öörni
1d9d0a5736
Synchronize keycode constants with SDL. This changes some constants, like NUMPAD -> KP_. Added SDL scancode constants. Added polling of keys by scancodes, and scancodes into key events. Added conversion functions from keycode to scancode and vice versa, and functions to get key names. Closes #254 .
2014-03-15 18:15:11 +02:00
aster2013
82c0cd6ae2
Add DrawableProxy2D (Not finish, currently on cache material).[ci skip]
2014-03-15 23:06:45 +08:00
aster2013
0d5e70ef46
Force CI build.
2014-03-15 22:10:21 +08:00
aster2013
7871c68130
Add CollisionEdge2D, CollisionChain2D and CollisionPolygon2D (including Lua and AngelScript binding). [ci skip]
2014-03-15 21:46:35 +08:00
Yao Wei Tjong 姚伟忠
4a061aa451
Add option for console to auto visible on receiving error.
...
Refactor editor to use the enhancement.
2014-03-15 18:02:09 +08:00
Yao Wei Tjong 姚伟忠
3979aece4e
Fix partial init causing Editor to crash when loading 2D physics scene.
2014-03-14 20:59:19 +08:00
Yao Wei Tjong 姚伟忠
4e29e1209b
Fix uninitialize member var causing CollissionCircle2D to missbehave.
2014-03-14 20:59:19 +08:00
Yao Wei Tjong 姚伟忠
2ea6f31f2b
Cleanup code as it does not use Scene's attribute anymore.
2014-03-14 17:52:23 +08:00
Yao Wei Tjong 姚伟忠
0115beaad6
Minor refactoring on Urho3D common cmake module for setting GCC cflags.
...
[ci skip]
2014-03-14 17:49:22 +08:00
aster2013
aa10e2222a
Add GetTexture function in Drawable2D.[ci skip]
2014-03-14 17:48:08 +08:00
aster2013
c5c715ee84
Add 2D sprite to physics samples.[ci skip]
2014-03-14 14:03:14 +08:00
aster2013
8dca005f9c
Add Lua binding and AngelScript Binding.[ci skip]
2014-03-14 13:30:02 +08:00
aster2013
b9940bdac1
Apply node transform to collision shape, add CollisionCircle2D.[ci skip]
2014-03-13 22:03:38 +08:00
Lasse Öörni
f9ff9550bd
Added documentation on light brightness and negative lights.
2014-03-13 14:25:07 +02:00
Lasse Öörni
0b87faa856
Minor code formatting. Prefer machine word loop counter.
2014-03-13 10:26:37 +02:00
Lasse Öörni
d534efd7c9
Use light's effective color for debug drawing.
2014-03-13 10:19:29 +02:00
Lasse Öörni
094006ef91
Added brightness attribute to Light. Added separate equality test with and without epsilon to Color, similar to Vector2/3/4.
2014-03-13 10:19:28 +02:00
Yao Wei Tjong 姚伟忠
e933a51703
Add instruction to install Box2D header files. [ci skip]
2014-03-13 15:51:36 +08:00
aster2013
03b73c4771
Fixed Header file name.
2014-03-13 14:18:21 +08:00
aster2013
f1d7d0d5dc
Remove UpdateBody and UpdateFixture funcition.
2014-03-13 14:09:48 +08:00
aster2013
5bb12f4a2d
Add Box collision shape.
2014-03-13 13:14:15 +08:00
aster2013
c54c6456a8
Fixed bug in RigidBody2D.cpp
2014-03-13 12:31:12 +08:00
Lasse Öörni
4080f024c5
Exposed IsPowerOfTwo(), NextPowerOfTwo() and SDBMHash() to script.
2014-03-12 23:07:25 +02:00
Lasse Öörni
832d0c7dab
Fix Lua binding of PhysicsWorld2D. Closes #250 .
2014-03-12 22:31:27 +02:00
Lasse Öörni
0ddc3c774e
Clean up Batch code. Give larger sorting priority to negative lights so that they are applied right after ambient, followed by additive lights.
2014-03-12 15:50:45 +02:00
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
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
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
aster2013
3c7a52d6f3
Make MarkAllDrawable2DDirty function private in Scene class.
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
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
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
Yao Wei Tjong 姚伟忠
f48ef6f5bd
Minor bug fix, refactoring and reformatting.
2014-03-10 15:34:20 +08: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
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
Lasse Öörni
8be6780654
Update AngelScript threading code to newest from SVN for WinXP compatibility fix.
2014-03-09 02:04:24 +02:00
Lasse Öörni
1941c508b4
Removed erroneous comment from View. Do not treat it a fatal error in OgreImporter if index optimization can't be done.
2014-03-08 17:03:58 +02:00
Yao Wei Tjong 姚伟忠
62ce85adfe
Add new build options to control FileWatcher/profiling/logging support.
2014-03-07 23:36:07 +08:00
Lasse Öörni
435ccc4f38
Fixed Box2D compile on Android. Added Box2D license to the root License.txt file.
2014-03-07 14:58:00 +02:00
Yao Wei Tjong 姚伟忠
176a9b7009
Minor fix to vertex buffer resize logic. [ci skip]
2014-03-07 14:00:23 +08:00
aster2013
4555aff0c9
Add Box2D.
2014-03-07 13:03:36 +08:00
aster2013
b9f106ce9d
Add draw debug triangle in DebugRenderer.
2014-03-07 12:34:46 +08:00
aster2013
7913745200
Minor change for comment.
2014-03-07 11:51:53 +08:00
Lasse Öörni
c96f313dbd
Fixed erroneous event bitmasks. Optimize LogicComponent memory footprint.
2014-03-07 02:09:35 +02:00
Lasse Öörni
2c3b8117a7
Fixes to LogicComponent event subscription / unsubscription logic. Call DelayedStart() also if neither of Update or FixedUpdate is needed (subscribe once just for that, then unsubscribe.)
2014-03-07 01:44:15 +02:00
Lasse Öörni
2095043114
Added note to LogicComponent that disabling both Update & FixedUpdate will cause DelayedStart to not be called.
2014-03-07 01:18:40 +02:00
Lasse Öörni
8f6d45da02
Log full shader name when a D3D shader variation compiles or loads itself.
2014-03-07 00:18:20 +02:00
Lasse Öörni
3a0f5e1072
Update LogicComponent comments.
2014-03-06 22:44:32 +02:00
Lasse Öörni
1461021c94
For feature similarity between AngelScript, Lua and the C++ LogicComponent, remove the "Fixed update FPS" feature from ScriptInstance. DelayedExecute() in repeating mode can be used instead to call a script object method at arbitrary intervals.
2014-03-06 21:53:39 +02:00
Lasse Öörni
d0595084d4
Initial implementation of LogicComponent base class, which should make writing C++ logic/updater components more similar to scripting. Refactored C++ examples to use LogicComponent where possible.
2014-03-06 21:47:39 +02:00
aster2013
a2daae5573
Revert "Set PixelsPerUnit default value to 100, make 2D Object has suitable size in Editor."
...
This reverts commit 766ce1d4c1
.
2014-03-06 21:12:12 +08:00
aster2013
766ce1d4c1
Set PixelsPerUnit default value to 100, make 2D Object has suitable size in Editor.
2014-03-06 21:07:50 +08:00
Lasse Öörni
7ae747063f
Rename "Unit Per Pixel" attribute in Drawable2D to "Pixels Per Unit" to match the actual behavior in StaticSprite2D / AnimatedSprite2D. Remove the attribute from ParticleEmitter2D class as it doesn't have effect. Closes #230 .
2014-03-06 14:54:38 +02:00
aster2013
1c0cecb87a
Don't use unit per pixel in ParticleEmitter2D.
2014-03-06 20:31:05 +08:00
Yao Wei Tjong 姚伟忠
79f03f9bf9
Fix attribute network replication for AnimatedSprite2D.
2014-03-06 20:28:32 +08:00
aster2013
ced2a315af
Add set animtion to AnimatedSprite2D in editor, fixed minor bug in ParticleEmitter2D.
2014-03-06 19:14:17 +08:00
Yao Wei Tjong 姚伟忠
88021f0509
Clean up the 2D library fix for the Editor.
2014-03-06 15:11:29 +08:00
Yao Wei Tjong 姚伟忠
ff1f9fc7d8
Fix Drawable2D bounding box update and attribute network propagation.
2014-03-05 23:34:59 +08:00
Yao Wei Tjong 姚伟忠
7e3a6c71a3
Register 2D library after 3D graphic library is registered.
2014-03-05 18:02:56 +08:00
aster2013
39b29de532
Fixed hot spot error in Y axis.
2014-03-05 16:17:35 +08:00
Yao Wei Tjong 姚伟忠
5e6c081d09
Fix inspecting AnimatedSprite2D & ParticleEmitter2D attrs in Editor.
2014-03-05 15:48:35 +08:00
Yao Wei Tjong 姚伟忠
d1b1db18d5
Fix Editor crash when inspecting Drawable2D attributes.
...
[ci skip]
2014-03-05 13:43:32 +08:00
Yao Wei Tjong 姚伟忠
bdc0348b88
For Travis CI - do not set ENABLE_TESTING build option when packaging.
2014-03-05 12:33:30 +08:00
aster2013
058347b555
Don't export LuaScript to Lua API, make SetExecuteConsoleCommands GetExecuteConsoleCommands as global functions.
2014-03-05 12:17:07 +08:00
Lasse Öörni
347381c3b1
Added function in LuaScript subsystem to disable console input execution.
2014-03-04 18:55:15 +02:00
Lasse Öörni
7fd40cf630
Moved the test for ENABLE_TESTING into GetConsoleInput(), as script applications can not know whether it is safe to call.
...
Show OS mouse cursor in ConsoleInput sample.
2014-03-04 12:16:31 +02:00
Lasse Öörni
ac21be3e39
Implemented ConsoleInput sample in AngelScript. Added possibility to the Script subsystem to disable automatic execution of console input as AngelScript. Tidied up newlines from the ConsoleInput sample.
2014-03-04 11:51:28 +02:00
Yao Wei Tjong 姚伟忠
c08e1a2822
Fix last sample to bypass taking input from stdin during CI testing.
...
For some reason, xcodebuild does not support non-blocking stdin read while running the last test. Interestingly xctool does not have this problem. Alas, we use xcodebuild instead of xctool when performing testing because the former provides immediate testing results.
2014-03-04 16:58:33 +08:00
aster2013
8cba7977dc
Add main thread check.
2014-03-04 12:28:52 +08:00
aster2013
2d8f14ce12
Merge branch 'master' of https://github.com/urho3d/Urho3D
2014-03-04 11:51:25 +08:00
Yao Wei Tjong 姚伟忠
b5f9b52717
Minor fixes on C++ ConsoleInput sample class.
2014-03-04 11:39:36 +08:00
aster2013
3e7aa8512e
Fixed warning.
2014-03-04 11:21:06 +08:00
aster2013
a9afb47a7e
Fixed warning.
2014-03-04 11:20:46 +08:00
aster2013
98b924d9c5
Allow subscribe to same event with multi functions in Lua.
2014-03-04 11:20:14 +08:00
Lasse Öörni
dd77e395b8
Process Urho threat level first to avoid message spam when he kills you and other stuff is also happening.
2014-03-04 02:13:53 +02:00
Lasse Öörni
1ed123194c
Fixed 'hide' command behaving incorrectly during Urho cooldown period.
2014-03-04 02:08:24 +02:00
Lasse Öörni
e2779d0509
Added ConsoleInput C++ example. Closes #159 .
...
When setting the number of rows, ensure Console sets the text style if available, so that the row container appears immediately with the correct height.
2014-03-04 02:01:50 +02:00
Lasse Öörni
03043038a0
Visualize camera as a frustum. Do not draw debug geometry in the editor's camera preview.
2014-03-03 11:46:17 +02:00
aster2013
b74de63f76
Remove CATEGORY in ParticleModel2D.
2014-03-02 23:12:22 +08:00
aster2013
353cbb77f1
Merge branch 'master' of https://github.com/urho3d/Urho3D
2014-03-02 21:37:51 +08:00
aster2013
fa6d92d39a
Adjust Lua GC policy, make the fps more smooth.
2014-03-02 21:37:16 +08:00
Yao Wei Tjong 姚伟忠
1a7d032425
Misc. minor fixes.
2014-03-02 16:16:50 +08:00
aster2013
39b2bfcfdf
Refactor code.
2014-03-02 14:53:41 +08:00
aster2013
8bc70469e3
Apply node world transform to particle.
2014-03-02 14:23:15 +08:00
Lasse Öörni
68a8b6afea
Exposed UI::LoadLayout() to Lua script.
2014-03-01 22:48:09 +02:00
Lasse Öörni
69690d367f
Fixed Color::FromHCM(). Closes #216 .
2014-03-01 16:31:04 +02:00
aster2013
6527d78c96
Animation2D: add save function, rename member functions.
2014-03-01 21:27:04 +08:00
Lasse Öörni
0628d61af6
Do not update/clone material in UpdateBatches(), as it's called from a worker thread. Instead update material earlier on demand.
2014-03-01 14:05:10 +02:00
aster2013
69c9a3068f
Remove KeyFrame2D struct in Animation2D.
2014-03-01 15:52:37 +08:00
aster2013
7cfb4fe6be
Add Urho2DParticle sample in C++.
2014-03-01 13:52:32 +08:00
aster2013
f227aef595
Fixed crash in CM_CLAMP mode.
2014-02-28 21:13:32 +08:00
aster2013
ac63f37ead
Add coroutine.waitevent and coroutine.sendevent.
2014-02-28 20:43:29 +08:00
aster2013
9f80292978
Update Urho2D API(Lua and AngelScript).
2014-02-28 19:37:27 +08:00
aster2013
7c609e4629
Add AnimatedSprite to sample.
2014-02-28 19:20:10 +08:00
aster2013
1e9a101c40
Fixed typo.
2014-02-28 14:02:23 +08:00
aster2013
f9ad7c439f
Add Animation2D Lua binding.
2014-02-28 13:52:06 +08:00
aster2013
a6f18c41ea
Add Animation2D and AnimatedSprite2D.
2014-02-28 13:51:47 +08:00
aster2013
8d899ef468
Add AngelScript api.
2014-02-27 23:45:42 +08:00
aster2013
cddf7ee404
Add script binding for Urho2D.
2014-02-27 23:21:20 +08:00
aster2013
383da73503
Add Urho2DSprite sample.
2014-02-27 23:20:33 +08:00
aster2013
d4bab90eb8
Add ParticleEmitter2D.
2014-02-27 23:19:39 +08:00
aster2013
6af6a5412a
Add SpriteSheet2D and StaticSprite2D.
2014-02-27 23:19:02 +08:00
aster2013
232c096d9a
Add Sprite2D and Drawable2D.
2014-02-27 23:18:25 +08:00
aster2013
98c4c93ec3
Add new line at end of file.
2014-02-27 19:15:57 +08:00
aster2013
526e114db6
Add coroutine.start and coroutine.sleep in Lua.
2014-02-27 19:05:08 +08:00
aster2013
4a50e3d78d
Add lua_getmainthread function to return main thread.
2014-02-27 19:04:11 +08:00
Lasse Öörni
68a3e33980
Ensure lib-prefix in static MinGW build. Closes #223 .
2014-02-27 11:44:05 +02:00
Danny B
7c924618ac
Modified "ToZerobraneStudioHook.lua" to require "ToDoxHook.lua" for avoiding code repetition.
...
Added Urho3D's License in Lua files.
2014-02-25 22:00:27 -05:00
Lasse Öörni
50f775b213
Added FileChanged event sent by ResourceCache for manually responding to changed files in resource directories.
...
Removed debug print from editor.
2014-02-25 11:29:35 +02:00
Lasse Öörni
233b7d8926
Partially reverted the AnimatedModel LOD determination change: use the animated bounding box center to calculate distance from camera. This is to ensure ragdolls will LOD correctly even if their bones move far from the root node.
2014-02-25 11:12:38 +02:00
Yao Wei Tjong 姚伟忠
2bbb4093db
Change MinGW build settings when building shared library type.
...
- Statically link standard C runtime libraries.
- Does not use 'lib' prefix.
All credits to alexrass (See http://urho3d.prophpbb.com/topic46.html and http://urho3d.prophpbb.com/topic90.html ).
2014-02-25 17:07:25 +08:00
Yao Wei Tjong 姚伟忠
73f95daf5f
Minor refactoring. [ci skip]
2014-02-25 15:50:29 +08:00
Lasse Öörni
74620c74f2
Ensure non-master models don't update animation or the bone bounding box. Use the model resource's transformed bounding box instead of actual animated bounding box for AnimatedModel LOD calculation to ensure animation does not affect the chosen LOD level. Copy the master model's bounding box for non-master AnimatedModels directly (may result in too large bounding box, but should prevent the non-master model skipping rendering because of a missing bounding box update)
2014-02-24 23:41:06 +02:00
Lasse Öörni
9d679cbc9b
Added string filename overload to Lua bindings of Scene::LoadAsync() & Scene::LoadAsyncXML(). Closes #217 .
2014-02-24 21:36:38 +02:00
Lasse Öörni
4bd2eb0356
Refactoring of Drawable::IsInView() functions and drawable view tracking.
...
- Call Drawable::IsInView() to check whether in view of any viewport camera. Does not include shadow map cameras.
- Call Drawable::IsInView(Camera*) to check whether in view of a specific camera. Pass null camera pointer here to allow any camera, including shadow maps.
Removed Drawable Lua exposed functions which do not have exposed counterparts in AngelScript, but are rather meant for internal C++ use only by the Renderer / View classes.
Closes #207 .
2014-02-24 18:43:07 +02:00
Lasse Öörni
ae6efa6615
Merge remote-tracking branch 'remotes/silverkorn/master'
2014-02-24 17:54:39 +02:00
Yao Wei Tjong 姚伟忠
c306e7d57a
For Travis CI - another attempt to fix iOS 64-bit packaging.
...
[ci package]
- When performing CI build for iOS platform, suppress all warnings. Non-CI build will still receive them.
- Automatically instruct Travis CI to do packaging when AngelScript or LuaScript API have changed.
Additionally, enhance iOS-specific Urho3D_universal custom target to perform initial check to see a rebuild is really necessary.
2014-02-24 17:21:56 +08:00
Danny B
f1b6ba117e
Lua API generator for Zerobrane Studio IDE ( http://studio.zerobrane.com/ ).
...
Based on and same usage as "ToDoxHook.lua" with tolua++ executable (See ./Bin/UpdateDocument).
- Overload methods supported (workaround as description);
- Inheritance supported (variables & methods).
2014-02-23 14:25:51 -05:00
Lasse Öörni
bfd968f9d7
Removed the base batch / non-base batch separation from BatchGroup. This is only needed for light queues, so rather have LightBatchQueue have separate queues for base & non-base.
...
Removed useScissor -flag from render path commands, as it can be automatically determined when it should be used.
2014-02-23 21:16:54 +02:00
Yao Wei Tjong 姚伟忠
82b707e66b
For Travis CI - more tweaks on the packaging setup. [ci package]
...
- Prevent packaging from being accidentally invoked by a pull request or a commit on non-master branch.
- Generate documentation before packaging if it is not yet generated in previous step.
- When packaging for iOS platform, rebuild Urho3D library as Mach-O universal binary.
- When packaging for Linux platform, also invokes RPM and Debian CPack generators.
2014-02-24 00:16:53 +08:00
Yao Wei Tjong 姚伟忠
dae56f4d0c
Fix Bullet's btVector3.cpp compile error on 64-bit iOS platform.
...
See https://code.google.com/p/bullet/source/detail?r=2716
2014-02-24 00:06:14 +08:00
Lasse Öörni
973b353a08
Safeguard CollisionShape against empty models to prevent Bullet asserts.
...
Reset Font type to none when (re)loading.
2014-02-22 22:01:03 +02:00
Lasse Öörni
263a624fe4
Possibility in ResourceCache to enable returning resources which failed to load. This is used in the editor to overcome eg. failed scripts disappearing from a ScriptInstance's script file slot.
...
Moved editor gizmo materials to CoreData directory.
Removed the Default.xml material, instead Material sets itself automatically to the same state by default (no textures, default parameters, NoTexture technique.)
Clear Technique when loading it.
2014-02-22 21:20:59 +02:00
Chris Friesen
00f26ddfd9
Get rid of some warnings when loading the editor
2014-02-21 23:39:53 -06:00
Yao Wei Tjong 姚伟忠
c7fe5f6267
For Travis CI - fix packaging for iOS platform. [ci package]
2014-02-21 23:55:16 +08:00
Yao Wei Tjong 姚伟忠
5099928b58
Fix Windows build using Urho3D as external lib in Release config.
...
Detected by Travis CI build. With this change, FindUrho3D module should be able to find Urho3D libs in the following scenarios:
- only debug version is available
- only release version is available
- both debug version and release version are available
Request CI build to use a Release build configuration [ci package].
2014-02-21 21:54:32 +08:00
Yao Wei Tjong 姚伟忠
89836f11fc
For Travis CI - attempt to make packages on demand. [ci package]
2014-02-21 17:47:04 +08:00
Lasse Öörni
076b333124
Simplify pointer usage in HelloGUI example.
2014-02-21 10:25:33 +02:00
Yao Wei Tjong 姚伟忠
4d565aa401
Add new 'package' CMake built-in target for generating binary packages.
...
This is in preparation for setting up Travis CI build to upload binary packages to a central hosting server.
2014-02-21 15:43:31 +08:00
Amadeus
cfd3cdc048
Do not crash when cloning components without attributes.
2014-02-20 10:43:53 +01:00
Lasse Öörni
af11693a35
Use safe form of pointer for the work item in WorkItemCompleted event.
2014-02-19 15:39:52 +02:00
aster2013
9b17bc6328
Remove fullName_ member variance.
2014-02-19 16:40:18 +08:00
aster2013
8fc76e81fd
Replace tab with space.
2014-02-19 14:15:04 +08:00
aster2013
9b31d29a54
Add GetFullName in ShaderVariation, make code more clear.
2014-02-19 13:37:39 +08:00
aster2013
dd16f85568
Change the copyright for 2014.
2014-02-19 12:32:08 +08:00
Yao Wei Tjong 姚伟忠
71458a5eb3
Fix tolua++ binding for Drawable::IsInView().
...
Expose the method as 'inView' readonly property, similar to how it is being exposed in AngelScript API.
2014-02-19 09:28:46 +08:00
Yao Wei Tjong 姚伟忠
5ec3c02025
Revert back the logic to auto generate pkg list.
2014-02-18 23:24:31 +08:00
Lasse Öörni
92611f1249
Avoid string based duplicate detection in ShaderPrecache when possible.
2014-02-18 15:17:22 +02:00
Yao Wei Tjong 姚伟忠
48eb60fd8e
Rename 'magic' module to 'common' module to reflect its purpose better.
...
The purpose of Urho3D-CMake-common module is to store all the commonly used CMake commands and macros in one place so that they can be reused by other external projects using Urho3D as external library by simply including this module in their own CMakeList.txt.
2014-02-18 12:55:13 +08:00
Lasse Öörni
5a6a11c521
Minor documentation / comment fixes.
2014-02-17 23:43:59 +02:00
Lasse Öörni
0e5d11541f
Fix missing root of shader precache file if loading it fails. Reset (clear) XMLFile when loading fails so that no illegal content will be saved when it's programmatically modified and then saved.
2014-02-17 22:56:03 +02:00
Lasse Öörni
cc9e5e1994
Moved to XML based shader precache files. Refactored shader precaching code to its own class. Closes #199 .
2014-02-17 22:19:55 +02:00
Yao Wei Tjong 姚伟忠
83a5aae303
Fix Clang-Makefile Debug configuration build detected by OSX-CI.
...
For Travis CI - consider nothing to commit as OK to proceed to next step.
2014-02-17 21:43:39 +08:00
Amadeus
167c68aea0
Fixed ComponentAdded event.
2014-02-17 13:15:02 +01:00
Lasse Öörni
abc6fcd8b8
Shader precaching mechanism. Call Graphics::BeginDumpShaders() or use the engine command line parameter -ds <file> to create a shader dump file of the variations that are loaded during program run, and Graphics::PrecacheShaders() to load the dump file.
...
Moved GetShader() from Renderer subsystem to Graphics, which is more logical as loading shaders is a low-level operation, while Renderer should be concerned with high-level rendering of 3D scenes. Now eg. UI does not need to depend on Renderer at all.
Simplified internal state of ShaderVariation & ShaderProgram objects, the success of compile/link can be deduced from the presence of a non-null GPU object.
Fixed FILE_READWRITE mode to not clear the file contents, and to handle alternating reads and writes correctly.
2014-02-16 22:23:07 +02:00
Lasse Öörni
c2e6904a6b
Reduce kNet worker thread wait time for potentially less network latency.
2014-02-16 22:23:07 +02:00
Yao Wei Tjong 姚伟忠
798eb597b6
Misc. bug fixes detected by CI build for Windows platform.
...
- Fix finding Urho3D library when only debug version is available.
- Keep the library dependencies in the list as they are, even if that means a same library being listed twice (to fix dynamic library build for Windows platform).
- MinGW cross-compiling toolchain already has PIC flag set by default, so skip setting it one more time (to suppress compiler warnings spam).
2014-02-17 01:57:04 +08:00
Yao Wei Tjong 姚伟忠
51c749f301
Doxygen uses // comment style. Header file uses /**/ style. Phew.
2014-02-16 22:22:03 +08:00
Yao Wei Tjong 姚伟忠
887c2ad748
Change comment style so that it also generates valid AngelScriptAPI.h.
2014-02-16 21:15:35 +08:00
Yao Wei Tjong 姚伟忠
2fb1dc2edc
Mark the deprecated AS API bindings in the documentation.
...
Also print a warning when it is being used in the script.
2014-02-16 16:02:12 +08:00
Lasse Öörni
230a07e4d0
Fixed Resource::Load() in Lua saving instead of loading.
2014-02-15 21:27:19 +02:00
Lasse Öörni
47836474e2
Variant pointer refactoring. Variant can now hold a weak pointer to a RefCounted object, which is safer, and is returned using GetPtr(). Engine events have been converted to use that mechanism. GetPtr() is also directly available in AngelScript, as well as assigning a RefCounted or derived class handle to a Variant.
...
Important: when you assign a non-RefCounted object as a void pointer to a Variant, you must now retrieve it with GetVoidPtr() instead.
The legacy methods in AngelScript for obtaining object handles from Variant, ie. GetNode(), GetUIElement() etc. still exist, but are considered deprecated.
2014-02-15 19:22:29 +02:00
aster2013
82c1a7c59c
Add UnsubscribeFromEvent function to ScriptObject, rename basic.lua to ToCppHook.lua.
2014-02-15 20:43:51 +08:00
Yao Wei Tjong 姚伟忠
5a469eea39
Fix MinGW cross compiling build on Ubuntu host system.
...
Attempt to add CI build for Windows platform using MinGW cross compiling toolchain.
2014-02-15 18:55:09 +08:00
Yao Wei Tjong 姚伟忠
647b962f4b
Cleanup build script - support SCP_TO_TARGET build option consistently.
2014-02-15 13:52:30 +08:00
Yao Wei Tjong 姚伟忠
8ef4dc47eb
Better integration of MinGW cross-compiling build process.
...
- Runtime and archive output directories change to mingw-Bin and mingw-Lib, respectively.
- Enable SCP_TO_TARGET build option for all cross-compiling build process (except Android).
- Enable LuaJIT support for MinGW cross-compiling build.
- Cache MinGW toolchain path and sysroot.
- Fix "object file is too big" issue when building Assimp library in debug build using MinGW.
- Reorder the build processes documentation section to match the Readme.txt file.
2014-02-15 13:34:42 +08:00
Lasse Öörni
4c02e19352
Increased the OpenGL ES constant depth bias adjustment to reduce self-shadowing artifacts. Do not use cascaded shadow mapping on OpenGL ES, so that the low quality shadow mode can avoid dependent texture reads altogether for much higher performance on iOS. Updated documentation of the GetPlatform() function.
2014-02-15 00:54:54 +02:00
Yao Wei Tjong 姚伟忠
981e924b88
Fix function signature to return data type as exposed API. Fixes #195 .
2014-02-15 00:00:52 +08:00
aster2013
e7cef8223d
Add construct function in dox file, add missing destruct in pkg file, update ToDoxHook.lua.
2014-02-14 21:32:07 +08:00
Lasse Öörni
964d9acb9e
Merge remote-tracking branch 'remotes/wibbe/mingw-cross-compile-toolchain'
2014-02-13 22:47:14 +02:00
aster2013
2e9b720f4a
Fixed tolua outside function name.
2014-02-13 23:36:40 +08:00
aster2013
21044135a5
Remove pkgToDox.lua, Rename some function and variant in ToDoxHook.lua.
2014-02-13 22:32:53 +08:00
Daniel Wiberg
0bcd1cfc5f
Changed includes of Windows.h to windows.h so it's possible to cross-compile on Linux
2014-02-13 14:54:42 +01:00
Daniel Wiberg
dce4c5a2c5
Added support for cross-compiling Urho3D for Windows on Linux systems.
2014-02-13 14:54:18 +01:00
Lasse Öörni
77129bb9cb
Added statements for SDL modification to comply with the license.
2014-02-13 15:23:46 +02:00
Lasse Öörni
33ae3c8e58
Merge remote-tracking branch 'remotes/overminddl1/overminddl1-inputchanges'
2014-02-13 15:07:16 +02:00
aster2013
a910501027
Add ToDoxHook.lua to generate dox file from tolua++.
2014-02-13 19:49:28 +08:00
Lasse Öörni
f20e4968fc
If a node is added to the scene with a zero ID (default), assign an ID. This would happen when constructing a node manually and adding it using AddChild(), instead of using CreateChild().
2014-02-13 12:08:13 +02:00
Lasse Öörni
e44e3f7652
Only signal work items that have specified or higher priority in WorkQueue::Complete(), to prevent lower priority work item events triggering when they shouldn't (in the middle of render update.) Set explicit max priority in Octree & View items, but leave default priority to the lowest for user items. Removed a static variable from WorkQueue::PurgePool().
2014-02-12 23:04:48 +02:00
Lasse Öörni
b496c5a012
Added a square Urho icon (same as the Android icon) to use for the samples on desktop.
2014-02-12 15:19:58 +02:00
Lasse Öörni
705d2411ba
Acquire event data for work item completion only when necessary. These are pooled by the Context so it shouldn't hurt performance.
2014-02-12 15:05:26 +02:00
Lasse Öörni
1e3722e54f
Merge remote-tracking branch 'remotes/alexparlett/feature/pooled-work-queue'
2014-02-12 14:11:59 +02:00
Alex Parlett
884be1c22d
Exposed ability to set the tolerance before the pool will begin erasing items.
...
Modified the way in which pooled items are tracked to remove a number of O(n) searches.
Modified the check for duplicate items into an assert so its caught in debug but not in release.
2014-02-12 10:47:48 +00:00
OvermindDL1
13e07265db
Er, right, C code, no static_cast...
2014-02-12 03:03:22 -07:00
OvermindDL1
34fb889906
Added support for the Keyboard Raw value to Urho3D.
2014-02-12 02:56:14 -07:00
OvermindDL1
9f8a1ab977
Tabs to spaces indention changes to match everything else...
2014-02-12 02:48:20 -07:00
OvermindDL1
1ea3e8b0f9
*cough* ignore the duplicate comma...
2014-02-12 02:41:44 -07:00
OvermindDL1
d7f3c9ae66
Added support for raw keyboard keys to all other platforms, passes 0 for ones where there is not a raw code that makes sense, else passes in something sensible.
2014-02-12 02:33:54 -07:00
OvermindDL1
dba4216c86
Changed SDL to support unknown keys and pass them as the unused/raw keysym field as it seems that it used to do...
...
Will fix Urho3D to read that field and pass it to the Variant event for the systems to process if wanted.
2014-02-12 02:12:25 -07:00
Yao Wei Tjong 姚伟忠
73732f6653
Fix luajit runtime error on 64-bit Mac OS X build. [ci skip]
2014-02-12 14:57:48 +08:00
Lasse Öörni
fd140ddb32
Minor code reorganization of the HelloGUI example. Removed SubscribeToEvents() as it was only used for 1 event and events were also subscribed to elsewhere.
2014-02-11 21:41:57 +02:00
Lasse Öörni
e0166ce900
Merge remote-tracking branch 'remotes/mike3d/master'
2014-02-11 21:06:20 +02:00
Lasse Öörni
e4008732d1
Merge remote-tracking branch 'remotes/alexparlett/feature/pooled-work-queue'
2014-02-11 20:32:50 +02:00
Yao Wei Tjong 姚伟忠
0c41be144f
Use CMake path instead of native path. Closes #188 .
2014-02-11 23:53:29 +08:00
aster2013
9def6c0541
Fixed typo.
2014-02-11 23:53:06 +08:00
aster2013
b7990b94da
Modify tolua_isnumber and tolua_isstring function to fixed issue #182 .
2014-02-11 23:49:20 +08:00
Alex Parlett
e8abdfc366
Added Pool for WorkItem SharedPtrs to save allocation every frame. Its an optional construct to allow the user to create their own pools or not use the pool if they so desire.
...
Below is the profiling for the Octree and View changes to pooled allocation.
Before:
UpdateDrawables 35 0.139 0.193 0.135 4.871
SortAndUpdateGeometry 35 0.080 0.135 0.077 2.802
After:
UpdateDrawables 21 0.082 0.172 0.078 1.735
SortAndUpdateGeometry 21 0.054 0.069 0.052 1.144
2014-02-11 15:46:05 +00:00
Mike3D
cde67d7391
Fix various order of exposition to lua
2014-02-11 13:53:26 +01:00
Mike3D
a0f42bee35
Added drag and tooltip to sample#2 HelloGUI
2014-02-11 09:49:53 +01:00
Yao Wei Tjong 姚伟忠
327ab9af76
Minor tweak to link lua/luajit tool without Urho3D dependency libs.
...
These changes should also reduce prerequisite for building 32-bit luaJIT VM (for Android and RASPI) on 64-bit host/build system.
2014-02-11 13:47:36 +08:00
Lasse Öörni
ffd5b7de5e
Fix order of exposing AnimatedModel functions to Lua so that all overloads of SetMorphWeight() & GetMorphWeight() work. Closes #182 .
2014-02-11 03:18:06 +02:00
Lasse Öörni
6dd168db5d
Bullet rigidbody's inertia tensor does not depend on position, so no need to recalculate it if rigidbody position only is forced to a new value.
2014-02-10 22:50:47 +02:00
Lasse Öörni
ae626c861e
Merge remote-tracking branch 'remotes/alexparlett/feature/work-item-refactor'
2014-02-10 21:39:38 +02:00
Lasse Öörni
2186cb7c49
Better fix for kinematic rigidbodies: let Bullet ask the world transform (as intended) from the scene node instead of us forcing it. You can still force rigidbody position using RigidBody::SetPosition() but it should be unnecessary.
2014-02-10 16:25:31 +02:00
Alex Parlett
51a1e84248
Changed WorkQueue to use a List<SharedPtr<WorkItem> > and ensure that it doesn't contain duplicates.
...
Changed AddWorkItem to take in a SharedPtr<WorkItem>.
Changed Render functions to use new WorkItem design.
2014-02-10 14:10:19 +00:00
Lasse Öörni
a833141727
Do not force RigidBody's interpolation transform when the body is kinematic to allow velocity estimation to work right for dynamic bodies colliding with the kinematic body. Thanks to Andy51.
2014-02-10 13:56:09 +02:00
Yao Wei Tjong 姚伟忠
4657518ec9
Code cleanup on error handling for ResourceCache.
2014-02-10 13:33:58 +08:00
Yao Wei Tjong 姚伟忠
b23069ffa5
Prevent any usage of windowless MessageBox.
2014-02-10 07:37:03 +08:00
Yao Wei Tjong 姚伟忠
ffe7a7699f
Minor enhancement on getting optional resources and error handling.
2014-02-10 07:33:02 +08:00
Yao Wei Tjong 姚伟忠
2e8744dc01
Minor cleanup - remove redundant null check for subsystems pointer.
...
Some of the subsystems are registered when the Engine is instantiated and I believe their references should remain valid until the engine stops.
2014-02-10 01:45:37 +08:00
Lasse Öörni
1f91776233
Removed the Shader::SanitateDefines() function. Instead the Shader resource normalizes defines and creates aliases if necessary to ensure fast queries but to prevent duplicates.
2014-02-09 00:22:52 +02:00
Yao Wei Tjong 姚伟忠
8c898864d4
Fix Android build. Closes #181 .
2014-02-08 20:46:46 +08:00
Lasse Öörni
56a246f2d6
Fixed File::IsOpen() returning false for APK files on Android. Closes #179 .
2014-02-08 01:25:20 +02:00
Yao Wei Tjong 姚伟忠
c5fe4a5698
Fix LuaJIT build script to add dependency files for luajit executable.
...
The luajit executable should now be able to generate Lua bytecode files in Bin/ directory under the project root directory or in any directory when Urho3D SDK is installed in the filesystem.
2014-02-08 00:36:07 +08:00
Lasse Öörni
9d1187e970
Removed BlenderExporter, as it has its own repo now. Added note where it can be found.
2014-02-07 16:16:12 +02:00
Lasse Öörni
c1205473d4
Tabs to spaces + other code formatting.
2014-02-07 15:55:51 +02:00
Lasse Öörni
72de756ce3
Merge remote-tracking branch 'remotes/mightycelu/normalDistr'
2014-02-07 15:35:52 +02:00
mightyCelu
03888602bf
Added scriptbindings for normal distribution generator and included the generator in the mathdefs
2014-02-07 13:57:08 +01:00
Lasse Öörni
06c93d84ef
Removed Exists() check when trying to load the .lua variant of a Lua script resource (after .luc was not found.) Log an info message when a Lua script is successfully loaded, similar to AngelScript.
2014-02-07 14:41:30 +02:00
Lasse Öörni
3c2d5247c4
Added Lua numChars property.
2014-02-07 14:27:55 +02:00
Lasse Öörni
0594ff6013
Fixed shader used by Text3D generated materials.
2014-02-07 14:27:55 +02:00
Lasse Öörni
8cc5ad7fd2
Improved and unified API for Text & Text3D: get number of Unicode characters, get width of row by index, get position of character by index, get size of character by index. Store positions & sizes in the same vector to reduce amount of dynamic memory allocations.
2014-02-07 14:27:55 +02:00
aster2013
b1af7b66e3
Add resource existed check.
2014-02-07 19:29:32 +08:00
Mike3D
9b042e2ab2
Tiny fix to LuaScript.cpp
2014-02-07 08:29:44 +01:00
Yao Wei Tjong 姚伟忠
66a10f28a4
Simplify the logic for getting library revision number.
2014-02-07 13:56:49 +08:00
vertexnormal
cf07bb16ef
Remove const qualifiers from method signatures GetCharPosition and GetCharSizes in pkgs/UI/Text.pkg to match actual signatures in UI/Text.h
2014-02-06 18:29:36 -07:00
mightyCelu
0579d18e76
Added generator for approximatly normal distributed values
2014-02-07 00:38:04 +01:00
Lasse Öörni
e86cf056eb
Reorder Text element's internal containers last for consistency.
2014-02-07 01:06:25 +02:00
Lasse Öörni
694e41c42a
If font face uses mutable glyphs, reacquire all glyphs before constructing text batch.
2014-02-07 00:40:49 +02:00
Lasse Öörni
0c76216202
Simplify and optimize Text code. If text does not change, do not look up glyphs & kerning each frame. Fix display of wordwrapped right-aligned texts.
2014-02-07 00:01:46 +02:00
Lasse Öörni
0c4466d3f3
Optimized away going through renderpath commands just to find the litbase-flag.
2014-02-07 00:00:22 +02:00
Yao Wei Tjong 姚伟忠
181351ef45
Reserve the vector's initial capacity instead of size.
2014-02-07 00:56:53 +08:00
Lasse Öörni
f2c3d8fe5d
Clear persistent float screenbuffers to ensure their contents aren't undefined. This fixes the AutoExposure effect on OpenGL. Added missing float textures to OpenGL Texture::GetDataType().
2014-02-06 17:24:17 +02:00
Lasse Öörni
809efdb4c6
Added the concept of persistent target in renderpath, which are not mixed in the rendertarget pool with other textures of same size & format. Used for the AutoExposure previous frame luminance.
2014-02-06 17:24:16 +02:00
Lasse Öörni
f0501cbeae
Fixed Blur postprocess effect XML. Fixed View spamming the log with attempts to get an empty quad shader after failing to get the proper shaders once.
2014-02-06 17:24:16 +02:00
aster2013
149edbc2c5
Merge branch 'master' of https://github.com/urho3d/Urho3D
2014-02-06 21:04:19 +08:00
aster2013
6dba57e5ad
Modify comment in LuaScript module.
2014-02-06 21:03:45 +08:00
Yao Wei Tjong 姚伟忠
a5246036fb
Add inherited XMLFile resource as dependency. Approximate patched size.
2014-02-06 20:40:15 +08:00
Lasse Öörni
b1a7a8dade
Exposed missing QUALITY_MAX constant to AngelScript. Do not assume the default zone has black fog (when used for additive pass.) Do not reload material shaders if material quality stayed same. Separate error in D3D9ShaderVariation Create() if the owning shader has expired, as on OpenGL.
2014-02-06 13:17:31 +02:00
Yao Wei Tjong 姚伟忠
83d6d84277
Clean up GetUrho3DRevision cmake module.
2014-02-06 17:52:00 +08:00
Yao Wei Tjong 姚伟忠
f377d56070
Add a new CMake module to retrieve GIT revision number.
2014-02-06 17:29:46 +08:00
Yao Wei Tjong 姚伟忠
ede7234a77
Revert back Urho3D CMake build script.
2014-02-06 15:10:08 +08:00
Yao Wei Tjong 姚伟忠
50556078d6
Fix Raspberry-PI build.
...
- Add RASPI define to reduce the number vertex uniforms (total uniforms must not exceed 136).
- Exclude GCC fastmath compiler option in order to pass a check in the latest AngelScript library version.
- Remove unsupported GCC attribute to suppress the warnings when building Assimp library.
2014-02-06 15:06:21 +08:00
aster2013
d5b20da1fc
Make input more free when has external window.
2014-02-06 14:25:43 +08:00
aster2013
97eab8ecf5
Update Lua API, convert SharePtr to raw pointer.
2014-02-06 13:47:55 +08:00
Lasse Öörni
8018a1f0f0
Do not comment out samplers in GLSL vertex shaders, as it's not necessary for correct compilation.
2014-02-06 01:19:27 +02:00
Lasse Öörni
3237ab3f85
Fixed image bilinear resampling.
2014-02-06 00:01:36 +02:00
Lasse Öörni
cbed709b02
Reverted the -mfpmath=sse option because of crashes inside Bullet on MinGW.
2014-02-05 22:53:43 +02:00
Lasse Öörni
381e9a04c3
Merge branch 'shader-refactor'
2014-02-05 20:54:56 +02:00
Lasse Öörni
f79c710eb3
Merge pull request #173 from wibbe/ogre-importer-mac-fixes
...
Fixed OgreImporter link problems on OS X
2014-02-05 16:50:21 +02:00
Lasse Öörni
af9905a891
Fixed the check to reset Texture's requested levels when loading uncompressed. Fixes uncompressed images always having mipmaps.
2014-02-05 16:19:23 +02:00
Yao Wei Tjong 姚伟忠
452ca871fb
Fix site documentation update.
2014-02-05 20:28:35 +08:00
Lasse Öörni
81f8490d1b
Use legacy PATH alias to be compatible with older CMake versions on OS X.
2014-02-05 12:56:56 +02:00
Lasse Öörni
46440b55fc
Do not use the sh variant of getting the git revision on MSVC, even if sh is in path, as MSVC uses cmd internally.
2014-02-05 12:16:09 +02:00
Daniel Wiberg
e2cf4d97de
Fixed OgreImporter link problems on OS X
2014-02-05 00:51:46 +01:00
Lasse Öörni
1c0cc050a1
Added Image pixel manipulation, resize and clear functions. Added Image profiling blocks. Closes #171 .
2014-02-05 01:26:24 +02:00
Lasse Öörni
3491baafd0
Added more accurate but more expensive raycast for BillboardSet, which approximates the individual billboards as spheres and gives the billboard index as the subobject. RAY_TRIANGLE level raycast must be used to enable it. Removed the RAY_AABB_NOSUBOBJECTS raycast level, as it was not used anywhere.
2014-02-04 19:26:59 +02:00
Lasse Öörni
45003707c0
Fixed substituteRenderTarget_ possibly being uninitialized.
2014-02-04 13:36:21 +02:00
Lasse Öörni
e0d5c7e02e
Fixed D3D9 debug build.
2014-02-04 13:27:04 +02:00
Lasse Öörni
85146c5317
Merge branch 'master' into shader-refactor
2014-02-04 11:30:03 +02:00
Lasse Öörni
cc6e6504f9
Simplified shader source code modification.
2014-02-04 02:57:13 +02:00
Lasse Öörni
2b95618cdb
Adapted AutoExposure & BloomHDR shaders. Improved GLSL commenting out of the unnecessary shader function.
2014-02-04 02:25:00 +02:00
Lasse Öörni
5bc98f68d3
Exposed Texture2D::Load() to Lua. Added Detach() function to SharedPtr which will safely detach the pointer without destroying the object. To only be used in scripting integration. Fixed loading of texture with compressed data first and then uncompressed.
2014-02-03 23:50:03 +02:00
Lasse Öörni
4d6b9c2061
Prevent division by zero.
2014-02-03 23:00:40 +02:00
Lasse Öörni
b76823a317
Added height fog mode boolean to Zone. Apply height fog shaders automatically. Changed height fog parameters to be relative to the zone node.
2014-02-03 22:51:27 +02:00
aster2013
f2b0bb725d
Update pkgToDox.lua, add global property section.
2014-02-03 21:43:09 +08:00
aster2013
4f91bf9307
Add support for compiled Lua file(with luc extension).
2014-02-03 21:10:56 +08:00
Lasse Öörni
dc5f4a1834
Merge branch 'master' into shader-refactor
2014-02-03 13:57:52 +02:00
Lasse Öörni
0610520768
Quads that don't read the viewport should not begin the pingpong chain. Fixes #167 .
2014-02-03 13:24:53 +02:00
Lasse Öörni
eecb226ef7
Determine presence of sh.exe in path manually to see which command should use to generate the GIT revision. Closes #168 .
2014-02-03 11:58:06 +02:00
aster2013
8ab5e56c9c
Move subsystem access function to subsystem's pkg file, add global readonly property for each subsystem.
2014-02-03 16:52:22 +08:00
aster2013
40354bcd87
Fixed typo in Renderer.h.
2014-02-03 16:47:41 +08:00
aster2013
4b13c8598e
Lua API Update.
2014-02-03 15:08:20 +08:00
Lasse Öörni
f83c1d64f0
Use the -static switch on MinGW to prevent dependency on an external libpthread.dll on some MinGW distributions.
2014-02-03 02:59:15 +02:00
Lasse Öörni
fccf4fbe96
Changed the Direct3D library fallback mechanism: on MinGW the SDK is never searched for, because if it is found, the libraries likely are incompatible. Instead the fallback libraries are set in Urho3D-CMake-magic.cmake if the SDK was not found or not searched for. Documented the use of MinGW-w64 to enable a fully functional Direct3D build.
2014-02-03 02:48:11 +02:00
Lasse Öörni
92c8144621
Comment out sampler uniforms in GLSL vertex shaders.
2014-02-03 01:53:44 +02:00
Lasse Öörni
0bcb95e6a2
Refactored techniques + more GLSL & HLSL shaders. Fixed shader code loading for cases where only vertex or pixel shader source is present.
2014-02-03 00:19:13 +02:00
Lasse Öörni
c3c177525d
Removed the "view texture" abstraction, which is unnecessary now, as all deferred renderpaths write directly to the destination rendertarget. Fixes #166 .
2014-02-02 21:44:12 +02:00
Lasse Öörni
3e14caf89e
Load/save cached binary HLSL shaders. Report SM3 supported on OpenGL to simplify code.
2014-02-02 21:43:50 +02:00
Lasse Öörni
782c3ac54e
Removed the "view texture" abstraction, which is unnecessary now, as all deferred renderpaths write directly to the destination rendertarget. Fixes #166 .
2014-02-02 19:15:11 +02:00
aster2013
eda1b8c16f
Update Lua API, Add Load and Save function in Resource.
2014-02-02 23:29:19 +08:00
aster2013
947999aa71
Add GetDepth in Lua API.
2014-02-02 22:51:52 +08:00
Lasse Öörni
70122ed481
Refactored LitParticle shader & technique. Try to reduce error prints for missing shaders in Renderer::GetShader().
2014-02-02 15:12:13 +02:00
Lasse Öörni
caf080ecbb
Initial refactoring of Direct3D9 shaders. ShaderCompiler removed. Bytecode not cached into files yet.
2014-02-02 14:54:46 +02:00
Lasse Öörni
db713bdba2
Avoid string allocations during View::Define() and Renderer::GetShader().
2014-02-02 00:31:45 +02:00
Lasse Öörni
07f06563bc
Optimized Renderer::GetShader() so that caching shader variation pointers becomes unnecessary for the most part.
2014-02-01 19:37:42 +02:00
Lasse Öörni
ea334e4393
Merge branch 'master' into shader-refactor
2014-02-01 16:14:11 +02:00
Lasse Öörni
6ccb31f6f5
Update to Bullet 2.82.
2014-02-01 15:59:25 +02:00
Lasse Öörni
d50403798a
Update AngelScript to 2.28.1.
2014-02-01 15:05:53 +02:00
Lasse Öörni
6d5ddc23e0
Bump the copyright for 2014.
2014-02-01 14:37:21 +02:00
Lasse Öörni
d1a8f38e93
Return in Urho3DPlayer if the script language is not supported to prevent showing two error dialog boxes.
2014-02-01 14:37:20 +02:00
Lasse Öörni
fbda3de204
Enable also SSE math for GCC when SSE instructions are enabled.
2014-02-01 14:37:20 +02:00
Lasse Öörni
50c54346eb
Check for not overshooting the target when moving in the Navigation sample.
2014-02-01 14:37:19 +02:00
Lasse Öörni
9f34d74cce
Fixed taking windowed multisampled screenshots on Direct3D9.
2014-02-01 01:46:46 +02:00
Lasse Öörni
be060dfb8a
Fix Jack looking in weird direction if teleporting to above or below.
2014-02-01 01:22:40 +02:00
Lasse Öörni
5062dbba42
Sanitate screenshot name in the samples to ensure saving it succeeds. Prepend the executable path properly. Flip image in OpenGL Graphics::TakeScreenShot() instead of having the user to do it.
2014-02-01 01:07:03 +02:00
Lasse Öörni
045c68957d
Convert Image back to spaces instead of tabs. Ensure that the file path is in native format before saving using STB / JO.
2014-02-01 01:05:27 +02:00
Lasse Öörni
2af8244543
Convert the Navigation sample to move the Jack character from current position to new target. Shift + LMB to teleport.
2014-02-01 01:04:50 +02:00
Mike3D
75321c632d
Extended Sample with ability to set window title and icon and take screenshots
2014-01-31 16:56:50 +01:00
Mike3D
0e3389eb7b
Update Sample.h
2014-01-31 16:55:06 +01:00
Mike3D
431133127f
Added follow path function. RecalculatePath()is no longer used but kept anyway.
2014-01-31 16:44:06 +01:00
Mike3D
188dddf601
Update Navigation.h
2014-01-31 16:39:49 +01:00
Mike3D
33b2244204
Fixed FindNearestPoint() and MoveAlongSurface() for angel script
2014-01-31 16:34:53 +01:00
Lasse Öörni
417e62f106
Detect deferred light volume batch and subtract camera position only in that case to allow the pixel shader light parameters (light position, shadow matrices etc.) to also be used in forward rendering if necessary.
2014-01-31 10:27:20 +02:00
Lasse Öörni
1a1fe9a24f
Optimize Shader::SanitateDefines(). In debug mode, check that shader code uses each define.
2014-01-31 01:45:25 +02:00
Lasse Öörni
3004b08f66
Continued shader refactoring.
...
- Removed heightfog techniques, which will be replaced with in-engine shader variations
- Fixed LitSolid shader and some basic techniques
- If Pass specifies its own shaders, the defines from Technique aren't used
- Technique can specify the alphamask property globally for passes to avoid repetition
2014-01-31 00:35:10 +02:00
Lasse Öörni
e0f391b0fc
Started shader refactoring.
...
- Removed ShaderParser
- Shader variations are requested by defines
- Shader class does not need to be render API specific
- Added shader defines to Pass & RenderPathCommand
- GLSL vertex/pixel shaders compile from the same file
- Converted the Basic & Stencil GLSL shaders
2014-01-30 23:55:39 +02:00
vertexnormal
d5f87d9930
Expose Image constructor to LuaScript
2014-01-30 10:36:16 -07:00
Lasse Öörni
250d1ced11
Eliminated the static Context pointer from LuaScript subsystem. Removed classes which aren't actual subsystems from Context.pkg.
2014-01-29 20:49:23 +02:00
aster2013
d1c3d96844
Remove context from object's constructor, make all constructor look like AngleScript, rename file.
2014-01-29 23:14:09 +08:00
Lasse Öörni
dda2683a21
Removed assert in MessageBox constructor if layout file is missing. Fix null exception in Editor which makes it impossible to quit if the MessageBox layout file is missing. Closes #160 .
2014-01-29 12:19:44 +02:00
Lasse Öörni
26320f35af
Added per-char ToUpper() & ToLower() functions to script. Show also texture unit numbers in the material editor.
2014-01-29 01:45:43 +02:00
Lasse Öörni
c6b906a822
Distinguish between cube/3D textures in renderpath commands by the texture unit.
2014-01-29 00:44:02 +02:00
Lasse Öörni
cb0f3b7109
Fix for compiling in D3D9 mode on mingw-w64.
2014-01-28 23:05:06 +02:00
Yao Wei Tjong 姚伟忠
423d250def
Code cleanup. [ci skip]
2014-01-28 23:41:19 +08:00
Yao Wei Tjong 姚伟忠
a8392509ae
Move the inheritance logic to XMLFile class. Revert RenderPath class.
...
- Fix the original XMLFile used in the inheritance from being patched in the resource cache.
- Support multi-level inheritance.
- Support for all classes that use XMLFile for loading.
2014-01-28 22:50:29 +08:00
Yao Wei Tjong 姚伟忠
5987685834
Refactor RenderPath description XML to support inherit/patching mode.
2014-01-28 20:15:18 +08:00
Lasse Öörni
939ca2d47b
Code formatting.
2014-01-28 02:53:23 +02:00
Lasse Öörni
d2117ba01f
For now do not attempt to use 3D textures on OpenGL ES.
2014-01-28 02:51:13 +02:00
Lasse Öörni
5543ca0974
Replace Android default icons. Closes #156 .
2014-01-28 02:34:24 +02:00
Lasse Öörni
f958974430
Reorder AngelScript API documentation to match Lua documentation (classes - enums - globals). Sort each section in AngelScript API documentation.
2014-01-28 02:27:24 +02:00
Lasse Öörni
4ca276930a
Merge remote-tracking branch 'remotes/mike3d/master'
2014-01-28 01:32:39 +02:00
Lasse Öörni
8fafdbf842
Ported the CharacterDemo touch input code to C++.
2014-01-28 00:40:36 +02:00
Mike3D
72bd04ea47
Split Global Functions / Enums
2014-01-27 21:26:47 +01:00
aster2013
073854bfb3
Update Audio Lua API.
2014-01-27 23:05:52 +08:00
aster2013
c8fbcf1551
Refactor push PODVector<UserType> functions.
2014-01-27 22:29:36 +08:00
aster2013
38c8f19fb4
Convert all Vector<T> and PODVector<T> to Lua table.
2014-01-27 22:07:57 +08:00
primitivewaste
d4fb9a9450
Add Zone height fog support, HeightFog shader option and techniques.
...
Add GammaCorrection and AutoExposure post processing shaders.
Add near & far clip PS uniforms.
Add 3d texture support and (3d LUT based) ColorCorrection post processing shader.
Add HDR renderpath support, BloomHDR, Blur and Tonemap post processing shaders.
2014-01-26 22:22:14 -08:00
Yao Wei Tjong 姚伟忠
5a162b8551
Another attempt to fix configuration for multiple Urho3D libs found.
...
[ci skip]
2014-01-27 13:46:48 +08:00
Lasse Öörni
c0d1c19e25
Reworked Octree::Raycast() threading criteria once more: thread if will use 2 or more raycast work items.
2014-01-27 02:23:07 +02:00
Lasse Öörni
c162f2ebf6
Fix escalating UI element priority due to tooltip / popup forcing themselves to max. priority. Closes #154 .
2014-01-27 00:50:13 +02:00
Lasse Öörni
df941851d9
Slight reorganization to the Touch utility code to not depend on a Character node. Added missing DebugNew.h include to new classes.
2014-01-27 00:35:01 +02:00
Lasse Öörni
76292ef63e
Centralize allocation of event data variant maps to Context to avoid constant dynamic memory allocation.
2014-01-26 19:11:41 +02:00
Lasse Öörni
9df9941de0
Added Lua bindings for querying drawables from Octree via a bounding shape, similar to AngelScript. Change Octree & PhysicsWorld raycast/query Lua bindings so that a PODVector object with the results is returned, instead of the user having to provide one.
2014-01-26 16:32:21 +02:00
Lasse Öörni
25a887cfe4
Fix crash in 15_Navigation.lua when adding and removing objects without having a path defined yet. Cleanup Navigation sample code.
2014-01-26 16:32:21 +02:00
Lasse Öörni
691408dddf
Removed unnecessary include.
2014-01-26 14:13:42 +02:00
Lasse Öörni
257c256d9d
In XML mode, allow editing of UnknownComponent attributes as strings. This is as far editing them can go without adding extra data to the whole XML serialization. Closes #149 .
2014-01-26 14:13:42 +02:00
Lasse Öörni
989aae2e31
Added a warning when an UnknownComponent is created.
2014-01-26 14:13:42 +02:00
Lasse Öörni
4f64f21915
Increased the threshold for justifying a threaded Octree raycast. Exposed PhysicsWorld::Raycast() to Lua.
2014-01-26 14:13:42 +02:00
Yao Wei Tjong 姚伟忠
fdae68639c
Setup to link against matching Urho3D library version. Fixes #152 .
...
Existing CMake build scripts has been configured to generate different Urho3D library name based on active build configuration. However, when finding and using the library itself, the scripts did not differentiate the two versions and could cause problem with wrong version of the library is being erroneously linked against.
2014-01-26 15:15:25 +08:00
Lasse Öörni
6b38a1cff7
Bruteforce a nonsense component name from hash if necessary so that XML and binary save of an UnknownComponent are compatible.
2014-01-26 02:40:59 +02:00
Lasse Öörni
dd075db33b
Added UnknownComponent mechanism for dealing with unregistered components in scene load/save. For now attributes are not editable. Related to issue #149 .
2014-01-26 01:47:52 +02:00
Lasse Öörni
d2a7173e5f
Reset UI cursor shape during BeginFrame event, which allows custom logic to set it per frame. Apply OS cursor shape only once during UI rendering to avoid flicker (and potential loss of performance)
2014-01-25 20:56:43 +02:00
Lasse Öörni
25cdbaea97
Do not mouse scroll the camera view when cursor is over a UI element because the element may be taking the wheel input also.
2014-01-25 15:38:38 +02:00
Lasse Öörni
87a1604860
Set forced max. priority for the Menu/DropDownList popup so that it's more reliably displayed in front.
2014-01-25 01:42:21 +02:00
Lasse Öörni
39e13d49c8
Renamed the plane intercept parameter to "d" and reversed its sign so that it fits the conventional plane formula ax + by + cz + d = 0.
2014-01-24 01:26:10 +02:00
Lasse Öörni
6219289e9f
Optimize text batch preparation by avoiding dynamic allocation each frame. Use last glyph if rendering the same glyph several times in a row. Changed repeated postincrement of a destination pointer to indexing where applicable.
2014-01-24 01:10:58 +02:00
Lasse Öörni
9486d17667
Bump the depth constant bias in all shadowed directional light samples to work better on mobile platforms. Disable Urho3D logo in samples when using touch controls.
2014-01-23 16:07:08 +02:00
Lasse Öörni
063e7e5aa2
Merge remote-tracking branch 'remotes/mike3d/master'
2014-01-23 11:32:30 +02:00
Lasse Öörni
20b67638e3
Hack fix for render-to-texture failing on iOS.
2014-01-23 01:44:00 +02:00
Lasse Öörni
eb9bc8847f
UI drawing code cleanup.
2014-01-22 22:52:01 +02:00
Lasse Öörni
7d4d956691
Check if GLES2 device supports 24-bit depth texture, or 24/8-bit depth+stencil through extensions.
2014-01-22 22:52:01 +02:00
Lasse Öörni
7a7e86589b
Optimized drawing of color-modified UI quads. UIBatch has new function SetColor() which can be used before drawing with modified color, and which performs the uint-conversion only once. This overrides the element's gradient if any.
2014-01-22 22:52:00 +02:00
Lasse Öörni
0a97b5824c
Minor Math library cleanup. Inline short Ray functions.
2014-01-22 22:52:00 +02:00
Mike3D
187e847367
Update InputAPI.cpp
...
Expose TouchState lastPosition to script
2014-01-22 20:47:44 +01:00
Yao Wei Tjong 姚伟忠
f5db8dd8fd
Only add D3D include directories for MSVC. Fixes #143 .
2014-01-22 14:30:24 +08:00
Lasse Öörni
fa8ac788c8
Fixed uninitialized default value of Camera's clip plane.
2014-01-22 01:36:54 +02:00
Lasse Öörni
d723bef62b
On OpenGL ES 2.0, create depth renderbuffers in explicit GL_DEPTH_COMPONENT16 format, as GL_DEPTH_COMPONENT is unsupported on some devices. Possibly a fix for #140 .
...
For better performance, avoid backbuffer resolve to texture on OpenGL ES 2.0 and instead prefer to render into a texture if the viewport contents need to be read.
2014-01-22 00:52:16 +02:00
Lasse Öörni
dbdfce095f
If window is not resizable, do not maximize it at the default resolution (1024x768) to keep the border intact.
2014-01-21 18:38:29 +02:00
Lasse Öörni
030f890ed5
Further fixes and optimizations to View render target pingpong handling. Update Material memory use when modified programmatically.
2014-01-21 18:00:54 +02:00
Yao Wei Tjong 姚伟忠
48eb0497df
Rename var name from <package>_INCLUDE_DIR to <package>_INCLUDE_DIRS.
...
See http://urho3d.prophpbb.com/topic9.html .
2014-01-21 15:57:07 +08:00
Lasse Öörni
3718b3dc29
Set currentRenderTarget for safety in case the renderpath has no commands.
2014-01-21 01:12:10 +02:00
Lasse Öörni
4aeeefdd38
Safety check to skip renderpath commands with no output names, could cause out-of-bounds indexing.
2014-01-21 00:41:13 +02:00
Lasse Öörni
30455bfba2
Rewrote viewport resolve / pingpong logic in View. Optimizes away unnecessary framebuffer copies and fixes #138 .
2014-01-21 00:26:57 +02:00
Lasse Öörni
1c92bc3a09
Only find the DirectX SDK when compiling with Visual Studio, as the headers are incompatible with MinGW. Fixed export statements for MinGW. Closes #142 .
2014-01-20 22:54:16 +02:00
Lasse Öörni
112102cc83
Perform all plane transforms through Matrix4 multiply to ensure correctness.
2014-01-20 19:50:54 +02:00
Lasse Öörni
40d759fbae
New skybox from Vladimir. Set fog to white in scenes using the skybox. Water scene lighting slightly brightened to match the skybox.
2014-01-20 12:01:38 +02:00
Lasse Öörni
18e2349ae1
Added script bindings for the new SDL controller constants. Updated Input documentation.
2014-01-20 10:19:50 +02:00
Jordan Patterson
1a49c6ebfc
Add support for SDL2 GameControllers
2014-01-19 22:03:36 -07:00
Lasse Öörni
0697ad0750
Improved Spline attribute editing. Moved Spline to Logic category in the editor.
2014-01-20 00:21:13 +02:00
Lasse Öörni
71e9559bee
Merge remote-tracking branch 'remotes/alexparlett/feature/spline'
2014-01-19 23:54:39 +02:00
Lasse Öörni
a20d38b13d
Code formatting.
2014-01-19 23:51:26 +02:00
Lasse Öörni
d9bf3d9731
Merge remote-tracking branch 'remotes/hjmediastudios/master'
2014-01-19 23:40:24 +02:00
Lasse Öörni
669aa04ef2
Find DirectX SDK on Windows also in OpenGL mode as SDL depends on files like dsound.h.
2014-01-19 23:26:55 +02:00
Lasse Öörni
8c26cf6c45
Export the NvOptimusEnablement variable to prefer NVIDIA GPU on switchable GPU systems. Closes #139 .
2014-01-19 23:26:15 +02:00
Yao Wei Tjong 姚伟忠
115b4a8b4b
Fix spacing. [ci skip]
2014-01-20 01:25:07 +08:00
Yao Wei Tjong 姚伟忠
29594b7170
Clean up Urho3D-CMake-magic cmake module.
2014-01-20 01:20:34 +08:00
Yao Wei Tjong 姚伟忠
40eeac7600
Merge branch 'ninja-clang' of github.com:evolarium/Urho3D.
2014-01-20 01:15:01 +08:00
Alex Parlett
fb690e6838
Added Lua Bindings.
...
Added the ability to set how far along the spline the parent node has traveled.
Added the ability to get the Vector3 for the furthest point along the Spline the parent node has traveled.
Changed Length calculations so that they are performed on a Move call if a push or pop has been called since the last Move call or when the Control Nodes are set from either serialization or from the function.
Removed detach and attach. Attach can be replaced by calling GetPosition and using a SmoothMove or Lerp to get there.
2014-01-19 15:13:02 +00:00
Lasse Öörni
1ace697dc9
Added water example with reflection/refraction. Improved the water shader to include proper fresnel calculation and a noise map. Closes #120 .
2014-01-19 15:47:56 +02:00
Nick Royer
9fa11144a7
Commit Message
2014-01-18 22:23:28 -06:00
Jordan Patterson
a5f596c6b5
Use color Clang diagnostics when using Ninja build system
2014-01-18 20:44:23 -07:00
Nick Royer
9985f0a122
Added a convenience function to find the angle between two vectors.
2014-01-18 19:01:34 -06:00
Lasse Öörni
a26d5b98d5
Added example of manual bone control to CharacterDemo. Added a version of Skeleton::GetBone() that takes a C string parameter to avoid ambiguity.
2014-01-18 23:05:52 +02:00
Lasse Öörni
eb4e99457c
Code cleanup. Removed Camera functions to return forward, right, up vectors as they are now also in Node. Added Lua property accessors for Node up/right vectors. Exposed SmoothStep() to script. Modified Node::LookAt() to use the new Quaternion function. Updated credits.
2014-01-18 20:41:46 +02:00
Nick Royer
432b9d3645
Added scripting APIs for the previous convenience functions
2014-01-18 10:40:09 -06:00
Nick Royer
0e84a2a2d9
Added a few math and node convenience functions
2014-01-18 10:19:43 -06:00
Lasse Öörni
4f9287b7c8
Added AssetImporter options. Skip copy of zero-sized textures. In FileSystem::CopyFile(), do not overwrite destination file if opening the source file fails. Closes #129 .
2014-01-18 16:15:38 +02:00
Lasse Öörni
b1573df336
Fixed PhysicsWorld::DrawDebugGeometry() not exposed to Lua. Closes #133 .
2014-01-18 14:48:43 +02:00
Lasse Öörni
cadb503976
Added transform by matrix functions to Plane. Added camera clipping plane support. Added basic reflective+refractive water shader + material.
2014-01-17 19:51:06 +02:00
Alex Parlett
0210c3ffdf
Changed Spline::Move to use timeStep passed in from update events.
...
Added method to get an arbitary position along the Spline by specifying the factor "t" from 0.f - 1.f.
2014-01-17 13:54:17 +00:00
Alex Parlett
f2d1c297a2
Add a simple spline component with Bezier Curve Interpolation
2014-01-16 23:57:39 +00:00
Lasse Öörni
6d38f23467
Added conversion of Plane to Vector4.
2014-01-16 15:57:32 +02:00
Lasse Öörni
3343e52986
Added IsInside() to Rect & IntRect. Closes #128 .
2014-01-16 15:57:31 +02:00
Lasse Öörni
57b81bf685
Take audio buffer length properly into account when calculating SDL fragment size. Fix mixing one sample less in SoundSource mixing routines, which would lead to audio artifacts. Closes #130 .
2014-01-16 15:57:31 +02:00
Lasse Öörni
3553b287ac
Reflection plane support in Camera. Reflection plane clipping not yet implemented.
2014-01-16 15:57:31 +02:00
Lasse Öörni
a7d8f0fd18
Added reflection related functions to Plane. Fixed rendering a SkyBox from multiple views during the same frame. Better error message in ShaderCompiler if input file can not be opened.
2014-01-15 22:27:35 +02:00
Lasse Öörni
7fbefe6f43
Added AssetImporter option to restore earlier behavior, to flatten scene hierarchy in scene mode.
2014-01-15 01:08:51 +02:00
Lasse Öörni
604c8714aa
Changed AssetImporter to save the relevant scene node hierarchy in scene mode, instead of just nodes containing meshes.
...
Added node (prefab) save mode to AssetImporter.
Improved "Scene model" documentation page to mention scene load/save and prefab instantiation.
2014-01-14 23:51:35 +02:00
Lasse Öörni
f9a6235f47
Added "refract" pass to default renderpaths. This has the rendered scene so far (opaque + sky) available in the environment texture unit.
...
Renamed the "prealpha" pass to "postopaque" (will break custom techniques and renderpaths referring to prealpha.)
If a scene pass has nothing to render, skip it completely during View processing, including rendertarget allocations. This makes the refract pass free when there is no refractive geometry.
2014-01-14 01:09:15 +02:00
Lasse Öörni
7636bd6310
Fixed depth getting unnecessarily reset when ping-ponging rendertargets for a pass that both reads & writes the scene viewport.
...
Do not set null material textures to allow pass-global textures to persist throughout a rendering pass.
2014-01-13 23:11:37 +02:00
Yao Wei Tjong 姚伟忠
e91307ce51
Clean up build scripts to adhere to format convention.
2014-01-13 17:36:00 +08:00
Yao Wei Tjong 姚伟忠
be85ee454c
Add AngelScript header into built-in 'install' target. Closes #121 .
2014-01-13 14:11:14 +08:00
Lasse Öörni
583065e598
Minor code formatting. Added mention of RFC 5261 to XMLFile::Patch() Doxygen comment.
2014-01-12 14:25:13 +02:00
Lasse Öörni
789774f292
Merge remote-tracking branch 'remotes/alexparlett/feature/xml-diff-patch'
2014-01-12 14:11:41 +02:00
Alex Parlett
d0a4a0ce87
Adds the ability to patch together two XMLFiles using the [RFC 5261]( http://tools.ietf.org/search/rfc5261 ) with handling of Add, Replace and Remove for nodes and attributes. No handling has been added for namespace::prefix modifications at the moment. Use pass by value on sub-functions of add since gcc thinks there is no suitable conversion, where msbuild optimizes it out.
...
There are some gotchas with this, XML does not allow two text nodes (pcdata or cdata) to follow straight after each other, in those cases the two nodes will be merged with their text combined either at the start or end depending on the positioning of the two nodes. Secondly you can only select single nodes at a time, however xpath provides a way to specify a certain node if a query would return using more than one like so
```xml
<add sel="/doc/data[1]>...</add>
```
This would select the first data element that was found under doc.
2014-01-12 10:31:53 +00:00
Lasse Öörni
7458a01f21
Delete the event handler object in case of null sender (failed subscribe.) to avoid memory leak. Closes #117 .
2014-01-11 15:48:22 +02:00
Yao Wei Tjong 姚伟忠
dbb8d077da
Ensure engine testing could terminate itself every time.
...
One of the CI build today stalled when performing the testing. The running application failed to time out. As crazy as its sound that could only mean the high precision counter reaches exactly zero! Murphy Law is proven correct once again.
2014-01-10 17:41:52 +08:00
Yao Wei Tjong 姚伟忠
7f95216d3e
Refactor to use new logging macros with formatting.
2014-01-10 14:49:53 +08:00
Lasse Öörni
712345aa56
Added log macros with formatting. Closes #114 .
2014-01-09 22:54:25 +02:00
Yao Wei Tjong 姚伟忠
029d5a9197
Add debug postfix for main executables on Windows platform. Closes #113 .
2014-01-09 15:50:49 +08:00
Yao Wei Tjong 姚伟忠
9f0261c643
Fix Android build using Urho3D as external library.
...
Also:
- Enhance generated Eclipse project setting file to additionally use gcc/g++ error parser.
- Enhance cmake_gcc.sh script to fallback to find alternative CMake toolchains directory.
- Enhance Rakefile:
- New scaffolding task to create new project using Urho3D as external library. At the moment only works in Unix-like platforms.
- Build in Debug mode instead of Release mode as it should capture more potential issues.
2014-01-08 22:08:57 +08:00
Lasse Öörni
56c91aa1a0
Added Assimp logging option to AssetImporter.
2014-01-08 15:47:59 +02:00
Yao Wei Tjong 姚伟忠
59b2b02888
Fix build using Urho3D as external library. Closes 112.
...
Add test cases in Travis CI to test build using Urho3D as external library in external (non Urho3D) project.
2014-01-07 22:03:32 +08:00
Yao Wei Tjong 姚伟忠
1a6970dcf2
Prevent message box crashes due to corrupted or missing data dir.
...
Delay factories debug tests after all the subsystems and resource paths are added.
Register MessageBox object factory.
2014-01-07 14:58:35 +08:00
Lasse Öörni
32c86e8237
Added necessary include files to not rely on includes in Precompiled.h.
2014-01-06 15:42:42 +02:00
Lasse Öörni
ebd03d08db
When removing a resource dir, remove the FileWatcher with matching path instead of relying on the indexing.
2014-01-06 02:10:31 +02:00
Lasse Öörni
2e01ca5e67
Sanitate resource dir similarly when adding and removing it to ensure removing works properly.
2014-01-06 00:55:51 +02:00
Lasse Öörni
745fdb1416
Exposed ResourceCache::GetFile() to Lua. The file must be manually deleted once no longer needed.
2014-01-05 19:34:41 +02:00
Yao Wei Tjong 姚伟忠
2565755905
Misc. tweaks on Editors and minor refactoring.
2014-01-05 23:20:45 +08:00
Lasse Öörni
d1bbe45515
Added SDL on-screen keyboard support.
2014-01-05 01:14:27 +02:00
Yao Wei Tjong 姚伟忠
0f00ac7ad5
Fix scrollbar button so it does not get focus mistakenly.
...
ListView class has two ScrollBar instances (so it has 4 internal buttons) which made it difficult to tab-out before this fix.
2014-01-04 18:36:38 +08:00
Yao Wei Tjong 姚伟忠
fcb2f52035
Refactor and minor improvement on ListView class.
...
Handle arrow keys to modify selections even when there is no selection yet initially.
2014-01-04 14:59:44 +08:00
Lasse Öörni
7f061206dc
Add the byKey parameter to script bindings of SetFocusElement().
2014-01-03 21:32:53 +02:00
Lasse Öörni
387c01fb3b
Merge remote-tracking branch 'remotes/reattiva/ui_practices'
2014-01-03 20:41:50 +02:00
Yao Wei Tjong 姚伟忠
42792b0bd2
Minor improvement and bug fix on some of the UI elements.
...
Also:
- Focusable UI elements appears with a consistent visual "focus rect" when in focus.
- Make more UI elements focusable. It is now possible to cycle through all the editable elements using Tab key (in general dialog window or in Attribute Inspector).
- Closes #94 .
2014-01-03 22:05:25 +08:00
Lasse Öörni
c636b092e2
Restored previous Geometry::GetRawData() function (though it leads to duplicated code) to prevent unnecessary copying of shared array pointers.
2014-01-03 10:31:35 +02:00
Lasse Öörni
5f535f7999
Merge branch 'master' of https://github.com/urho3d/Urho3D
2014-01-03 10:17:57 +02:00
Lasse Öörni
668772bb50
Added PhysicsWorld::RemoveCachedGeometry() function to manually invalidate cached collision geometry of a changed model. Added watching for CollisionShape model live reload. Removed internal but public functions from the Lua physics API.
2014-01-03 10:15:54 +02:00
Lasse Öörni
6878e19c67
Refactored check for dynamic buffers into a function.
2014-01-03 09:23:29 +02:00
Lasse Öörni
9aed42faf5
Merge remote-tracking branch 'remotes/grking/master'
2014-01-03 09:17:04 +02:00
Yao Wei Tjong 姚伟忠
65ced72eb9
Enhanced focusable button to be drawned differently when focused.
...
Also:
- Revert back base Button class to non-focusable as it turns out it has negative side effect (e.g toolbar button becomes "sticky"). Create new focusable button style instead.
- Prevent double Alt+F4 from terminating Editor with unsaved changes, bypassing warning message box. System exit request is in fact ignored when there is any modal window waiting for user input.
2014-01-03 15:14:33 +08:00
Lasse Öörni
363945b729
Instead of storing Geometry pointers, store shared array pointers for triangle mesh collision data. This protects against the original Geometry resizing its data.
2014-01-03 09:13:56 +02:00
Graham King
3b25b25d47
Don't cache geometry with any dynamic vertex buffers.
2014-01-03 01:05:45 +00:00
Lasse Öörni
dfe3cab012
Restructuring of non-ScriptInstance script object event handling to ensure that handlers for individual objects don't overwrite each other.
2014-01-03 01:22:30 +02:00
Alex Parlett
18cb81b750
Add the ability to allow pure script objects that are not created through a ScriptInstance to handle events. This works like it currently does using:
...
SubscribeToEvent("Foo","FooHandler");
Where if called inside a procedural function the ScriptFile will handle it, if called inside an object if that object was created through a ScriptInstance that ScriptInstance will handle the event, otherwise the ScriptFile associated with the current script module will handle it.
2014-01-02 16:45:39 +00:00
reattiva
2ac0d8955e
On LineEdit move around the borders of current selection.
2014-01-02 17:27:20 +01:00
reattiva
8f38b4b702
Move the focus backwards with SHIFT+TAB.
2014-01-02 17:27:19 +01:00
reattiva
6e9a0fb715
Select all the text when moving focus on a line edit by TAB key.
2014-01-02 17:27:18 +01:00
Yao Wei Tjong 姚伟忠
9f0ae5cea6
For Travis CI - add NinjaSnowWar into test cases.
2014-01-02 22:46:12 +08:00
Yao Wei Tjong 姚伟忠
92cb20e9f5
Enhance Editor to warn user actions that can potentially lose data.
...
Also:
- Change how the UIElement::GetNumChildren() method is being exposed to scripting to avoid confusion with "numChildren" getter.
- Make Button element focusable. Focused button accepts enter key or space key as click. TODO: to visually show focused button differently than non-focused ones.
- Fix MessageBox dialog window centering issue.
2014-01-02 22:09:05 +08:00
Yao Wei Tjong 姚伟忠
41add82c6e
Fix the wrong return data type for MessageBox::GetWindow().
2014-01-02 02:16:26 +08:00
Yao Wei Tjong 姚伟忠
3383bf109b
Expose MessageBox's window element to scripting for manipulation.
2014-01-02 01:55:25 +08:00
Lasse Öörni
a7bc939b7d
Only use item binary search when container is in vertical layout mode.
2014-01-01 18:34:16 +02:00
Yao Wei Tjong 姚伟忠
c776573796
Add new MessageBox class for showing short messages in a modal window.
...
Also:
- Enhance Editor to show error message box when saving action fails.
- Cleanup DefaultStyle.xml and at the same time create more common styles for reuse.
- Remove unused member variable in FileSelector class.
- ListView class does not assume vertical layout of its items. In theory we could have horizontal layout items if it is being styled as such.
- Prevent UIElement XML serialization to save invalid "UIElement" style to the final output. Fix invalid style (if already exist in the loaded UI layout) to cause error in attribute filtering when serializing.
2014-01-01 18:14:30 +08:00
Yao Wei Tjong 姚伟忠
4458725fed
Prevent unnecessary generation of Urho3D.h. Closes #98 .
...
Also attempt to fix the project created by cmake-gui using non-standard build directory to find the generated Urho3D.h file.
2014-01-01 16:26:44 +08:00
Lasse Öörni
358d9c2849
Added default tooltip delay to UI, which will be used if the tooltip's own delay is zero. Use seconds for tooltip delay to match eg. the doubleclick interval. Removed layout from the editor's tooltip root element to prevent it resizing in unwanted fashion.
2013-12-30 14:28:46 +02:00
Lasse Öörni
8ca35d3794
Allow selecting DropDownList items with arrow keys.
2013-12-30 13:10:14 +02:00
Yao Wei Tjong
6dc9c46af1
Merge pull request #96 from JTippetts/master
...
Add Lua binding to Skeleton::GetBone(String& name) for getting a bone by name.
2013-12-29 16:35:08 -08:00
Yao Wei Tjong 姚伟忠
0fb12e5883
For Travis CI - revert back call to make test pending investigation.
2013-12-30 08:32:44 +08:00
Yao Wei Tjong 姚伟忠
088eef9e60
Add simple test cases as part of the Travis CI build.
...
Also fix Editor in case-sensitive platforms.
2013-12-30 07:48:31 +08:00
vertexnormal
7dde59fbb1
Revert CMake-magic to upstream
2013-12-29 14:56:12 -07:00
Yao Wei Tjong 姚伟忠
01b86be43d
Fix engine crashes when parsing invalid '-log' argument value.
2013-12-29 23:10:36 +08:00
Lasse Öörni
ebae184947
Add ToolTip.pkg.
2013-12-29 16:45:33 +02:00
Lasse Öörni
5b8f5e290b
Normalize name of tooltip class to ToolTip to match the filename.
...
Parent tooltip to root element to ensure display on top.
Improvements to UI::Update() to allow element reparenting and remove during update.
2013-12-29 16:44:33 +02:00
Lasse Öörni
e62b4832b3
Merge remote-tracking branch 'remotes/alexparlett/ui-tooltip'
2013-12-29 15:21:31 +02:00
Alex Parlett
70322b5c85
Added the Tooltip UI Element which will display when its parent element is hovered over for the specified delay period.
2013-12-29 00:37:54 +00:00
Lasse Öörni
90b5ed494f
Improve data structures used by ShaderParser for less dynamic memory allocation & better performance.
2013-12-29 01:39:34 +02:00
Yao Wei Tjong 姚伟忠
d719baa38b
Use on-demand shader evaluation for OpenGL as well.
...
Also correct Urho3DPlayer usage help for setting log level. There is a space between parameter key and parameter value.
Other minor changes to correct formatting.
2013-12-28 14:17:54 +08:00
Lasse Öörni
ffcbe42413
Evaluate shader combinations on demand. Closes #89 .
...
Fixed D3D9 window being borderless when it shouldn't be.
2013-12-28 02:37:38 +02:00
Lasse Öörni
721f70fe1a
Fixed D3D9 build. Added borderless as a command line option and documented it.
2013-12-28 00:49:06 +02:00
Alex Parlett
a63ab49ac5
Added the ability to specify whether a window is borderless or not (decorated with borders);
...
Added the ability that if in windowed mode and the passed in size is 0 || 0 then it will maximize
Added the ability to maximize and minimize the window
2013-12-27 20:24:16 +00:00
Lasse Öörni
6dced65f9e
Use binary search in ListView::FindItem() to speed up mouse click processing.
...
Fix null exception in attribute editor if trying to create an editor for a "none" type Variant.
2013-12-27 20:03:00 +02:00
Lasse Öörni
c61a5e6f01
Added new ItemClicked event for ListView items which is also sent for right-clicks. ItemDoubleClicked is also sent also for right-clicks now. Added more event parameters to ItemClicked & ItemDoubleClicked events. Closes #88 .
2013-12-27 14:34:38 +02:00
Lasse Öörni
1b25167781
Do not allocate String's initial buffer yet when resizing to zero size. Closes #87 .
2013-12-27 01:09:03 +02:00
Lasse Öörni
f6b0331448
Fix memory leak and potential undefined behavior in WString::Resize().
2013-12-26 16:55:16 +02:00
Lasse Öörni
949bc97ffe
When copy-constructing a HashMap, HashSet or List, reserve initial capacity according to the size of the object being copied.
...
Fixed WeakPtr's operator < using wrong type argument.
2013-12-26 14:35:29 +02:00
Yao Wei Tjong 姚伟忠
e52bc6e45d
Fix Editor argument parsing to load startup scene correctly.
2013-12-26 15:10:37 +08:00
Yao Wei Tjong 姚伟忠
1b304cf2e7
Better way to check old cmake version. [ci skip]
2013-12-24 17:22:32 +08:00
Yao Wei Tjong 姚伟忠
4d31d9b46f
Attempt to fix shared library build using old CMake.
...
CMake version prior to 2.8.11 does not have LINK_LIBRARIES target property.
2013-12-24 16:44:55 +08:00
Lasse Öörni
8b8790e481
Added option to import non-skinning bones in AssetImporter. Closes #82 .
...
Added case-sensitivity option to String::Contains().
2013-12-23 23:07:09 +02:00
Lasse Öörni
9a3f8e5aa5
Call SetProcessDPIAware() function on SDL video initialization to prevent Windows 8.1 from scaling & blurring the window on high DPI settings. Closes #83 .
2013-12-22 21:35:31 +02:00
Lasse Öörni
963fb9d753
Import material emissive color & texture in AssetImporter.
2013-12-22 20:54:08 +02:00
Lasse Öörni
86932c9f0e
Exposed missing scene binary load/save & node instantiation to Lua. To use instantiation, call eg. scene:InstantiateXML(fileSystem:GetProgramDir().."Data/Objects/Ninja.xml", Vector3(0, 0, 0), Quaternion());
2013-12-22 20:39:50 +02:00
Lasse Öörni
e5fd170d32
Fix MoveAlongSurface for VS2008.
2013-12-22 20:13:54 +02:00
Lasse Öörni
2f9171c010
Convert tabs to spaces.
2013-12-22 20:03:06 +02:00
Lasse Öörni
376d4683b2
Merge remote-tracking branch 'remotes/jtippets/master'
2013-12-22 19:59:51 +02:00
Lasse Öörni
faa6cb1d58
Merge remote-tracking branch 'remotes/alexparlett/resource_search_priority'
2013-12-22 19:48:16 +02:00
Lasse Öörni
7de753e08c
Add material emissive color in LitSolid shader also when not using emissive map. Default material emissive color back to zero.
2013-12-22 19:48:02 +02:00
Lasse Öörni
f74dae18c1
Update assimp to newest revision from git.
2013-12-22 19:11:30 +02:00
vertexnormal
e70eb17dcb
Fix return result of FindNearestPoint to transform back into world space, add method MoveAlongSurface and associated script bindings.
2013-12-22 08:12:53 -07:00
vertexnormal
bbf21d83f1
Add FindNearestPoint() to NavigationMesh class and expose it to script interfaces.
2013-12-21 23:08:44 -07:00
Alex Parlett
3166f1874d
Changed adding Resource and Package files to be able to specify the location in the Vector for search priority when calling GetFile or GetResource
...
Added the ability to specify whether to search Package Files or Resource Dirs first when calling GetFile or GetResource
Added the functionality to angelscript and lua. Lua does not contain the ability to add resource dirs and packages, so that was not modified.
2013-12-21 19:09:07 +00:00
Yao Wei Tjong 姚伟忠
4f73aa26b9
Fix how tolua++ renaming is being documented in Lua generated API.
2013-12-19 11:42:33 +08:00
Josh Engebretson
e79b745f05
Fix collision calculation of index offset when using multiple geometries
2013-12-18 13:45:57 -08:00
Lasse Öörni
4c9886f5ab
Do not attempt to set a nonexistent default icon.
2013-12-18 22:01:31 +02:00
Yao Wei Tjong 姚伟忠
328bf54dc6
Use Apple libtool when building static lib using Makefile. Closes #74 .
...
Also in the commit:
- Remove BOM from License.txt and Readme.txt. Update Urho3D website URL in Readme.txt.
- Detect MSYS build environment. It is now possible to build Urho3D using Msys shell on Windows, i.e. cmake_gcc.sh could be used for both native build and Android build on Windows platform (MinGW is required).
2013-12-18 20:24:36 +08:00
Lasse Öörni
b496594203
Update credits. Normalize whitespace.
2013-12-18 11:56:16 +02:00
vertexnormal
d80c927c93
Add Lua binding to PODVector<RayQueryResult> and Octree::Raycast()
2013-12-17 16:08:06 -07:00
Yao Wei Tjong 姚伟忠
15c61cb739
Use CMake command to move and rename for portability. Closes #73 .
...
- Revert back CMake version. Use CMake -Wno-dev option to suppress the policy warning for CMake 2.8.12 early adopter.
- Since the new policy is not in place, set some more target property to prevent Urho3D static dependency libs from being transitively link to other targets linking to Urho3D.
2013-12-18 00:33:35 +08:00
Lasse Öörni
e19bed4946
Clean up scene node related comments in samples.
2013-12-17 13:28:46 +02:00
Yao Wei Tjong 姚伟忠
60dad27d5f
Fix Mac OS X and iOS build from external CMake project.
...
Since the CMake minimum is bumped up, set the policy CMP0022 to NEW. Incidentally it is also required to be so to stop the static libraries dependency from being transitively get included to other targets that links to Urho3D shared library.
2013-12-17 08:00:11 +08:00
Lasse Öörni
60b3046053
Fix function order in header.
2013-12-17 00:56:45 +02:00
Lasse Öörni
c23c4d2353
Fixed XMLElement on GCC.
2013-12-17 00:47:51 +02:00
Lasse Öörni
d1df925013
Added Image::GetSDLSurface() to avoid code duplication. Fixed crash from null image pointer in Graphics::CreateWindowIcon().
2013-12-17 00:47:38 +02:00
Lasse Öörni
cb45be26ef
Added AngelScript & Lua property accessors for the XMLElement's value.
...
Added setters for Lua XMLElement.
Updated scripting documentation.
2013-12-17 00:02:49 +02:00
Lasse Öörni
679007d1b5
Normalize whitespace, update documentation.
2013-12-16 23:22:28 +02:00
Lasse Öörni
71f5492cc4
Merge remote-tracking branch 'remotes/alexparlett/xml-value'
2013-12-16 23:02:39 +02:00
Lasse Öörni
cc4c4e6a79
Merge remote-tracking branch 'remotes/alexparlett/window-icon'
2013-12-16 23:01:58 +02:00
Lasse Öörni
9752cbed1e
Removed OpenGL scratch buffer allocation log spam, even in debug mode.
2013-12-16 23:00:51 +02:00
Alex Parlett
db38bcf6c0
Added functionality to set the value for a node in the form of <node>value</node>.
...
Added method to retrieve the value of a node held in the inner xml tags eg. <node>value</node> would return "value" when called on "node"
Added Script Methods for Getting and Setting the value as detailed above (Lua contains Getter only inline with the rest of the functionality)
2013-12-16 20:17:03 +00:00
Alex Parlett
2505149255
Added ability to specify window icon (external application window) using an Image resource and SDL cross platform capability
...
Added Script Bindings in Lua and Angelscript to support the function
2013-12-16 19:00:30 +00:00
Lasse Öörni
32a9e72752
Fixed GLES low quality shadows. Fixed Android/iOS not initializing engine parameters from CommandLine.txt.
2013-12-16 11:54:58 +02:00
Yao Wei Tjong 姚伟忠
9f3d6f20ea
Use -force_load instead of -all_load option for Apple Static linker.
...
It is to ensure only objects from the specific static libraries are being merged into final output. Objects from standard libraries (ld, m, etc) should be excluded.
2013-12-16 14:15:48 +08:00
primitivewaste
7d641ca3fc
Add a grid to the editor. Add default zone and grid editor preferences. Make editor settings and preferences dialogs resizable and scrollable. Fix Pow() script registration.
2013-12-15 20:58:17 -08:00
Lasse Öörni
3abae76ec2
Use constant for number of draw buffers.
2013-12-15 23:15:15 +02:00
Lasse Öörni
3ec6f66fae
Do not use PCH on AssImp contrib source files, as they're not all prepared for that.
2013-12-15 14:01:54 +02:00
Lasse Öörni
ba565718e0
Bump required CMake version.
2013-12-15 13:42:15 +02:00
Yao Wei Tjong 姚伟忠
963c46d15b
Refactor build scripts.
...
- Close issue #67 , Urho3D iOS library should be built correctly now (either as single arch or as multiple archs Mach-O universal binary). Urho3D library build for Mac OS X and iOS platforms do not rely on CMake hack 'object-collecting' approach anymore. It uses Apple static linker 'ld' tool to merge all objects from third-party *.a directly.
- Add new custom target (Urho3D_universal) for iOS platform to build a single Mach-O universal binary library consists of both iphoneos (universal ARM archs) and iphonesimulator (i386 arch).
- Introduce PLATFORM_PREFIX (ios-, raspi-, android-) to prefix the build and output directories (Build, Bin, Lib).
- Correct Xcode-specific build setting for Mac OS X desktop build to use the latest OS X SDK but set deployment target to current OS X of the build system, unless CMAKE_OSX_DEPLOYMENT_TARGET is set explicitly to build for other target.
- Temporary workaround for CMake/Xcode generator bug where it always appends '/build' path element to SYMROOT attribute and as such the items in Products are always rendered as red as if they are not yet built.
- Change Assimp target to use setup_library() macro so that it gets the same settings (and workaround) as all other targets.
- Add a conditional check to prevent MSVC to build 'buildvm-android' target as it is not supported at this moment.
2013-12-15 18:25:00 +08:00
Lasse Öörni
f07a952096
Added second texcoord support in OgreImporter utility.
2013-12-13 19:03:05 +02:00
Lasse Öörni
ab701e0e26
Only copy file serialization attributes when cloning a node hierarchy. Fixes #70 .
2013-12-12 19:11:28 +02:00
Yao Wei Tjong 姚伟忠
e97eedb771
Close Windows gap. No pun intended.
...
- Fix document build on Windows platform as Windows "shell" failed to perform the file name expansion (globbing) as expected.
- Refactor batch files to they can be invoked from any directory (similar to their shell script counterparts).
- Sort header files for generating event list so the output remains the same accross different scandir implementation.
2013-12-12 19:03:50 +08:00
Lasse Öörni
0859375510
Fixed erroneously removed script API function.
2013-12-08 23:37:41 +02:00
Lasse Öörni
34abc97998
Change the LineEdit elements in the file selector & console to match the height of other LineEdits in the editor. Remove hardcoded adjustment code from FileSelector.cpp & Console.cpp and rely on the style instead.
2013-12-08 23:30:44 +02:00
Lasse Öörni
7e0cafaf53
Check font's OS/2 info for possibly larger ascender & descender values. For safety, verify each font glyph's width & height against the actual glyph bitmap width & height. Use the maximum of specified row height or the ascender + descender.
2013-12-08 20:48:49 +02:00
Lasse Öörni
ebdf337610
Fixed false positive bug in String::EndsWith().
2013-12-08 01:40:13 +02:00
Lasse Öörni
dc6294af16
Added generated event list documentation page. Closes #66 .
2013-12-08 01:39:36 +02:00
Lasse Öörni
5fa9116be1
Drag-related code cleanup.
2013-12-07 22:35:26 +02:00
Lasse Öörni
0d7d4826e5
Add pixel & time threshold for sending a drag begin UI event. Closes #65 . Removed code duplication between mouse & touch hover.
2013-12-07 22:20:28 +02:00
Lasse Öörni
5046508a9a
Added emissive shader variations to LitSolid shader. Default emissive modulation color to white, similar to environment map color.
2013-12-07 00:44:14 +02:00
Lasse Öörni
534b1d41fd
Fix crash on empty file name.
2013-12-06 18:47:35 +02:00
Lasse Öörni
7e542be196
Added Save function to ParticleEmitter, which dumps the parameters as XML. Added menu items to editor to load/save ParticleEmitter parameters. Closes #51 .
2013-12-06 18:47:35 +02:00
Lasse Öörni
088dba041c
Fix missing sound playback start/stop when using the play/pause buttons in editor toolbar. Improved sphere debug drawing. Added debug drawing to SoundSource3D. Closes #63 .
2013-12-06 16:50:29 +02:00
Yao Wei Tjong 姚伟忠
52de3a135c
Fix deploying multiple samples in iOS (virtual) devices.
...
Each (samples) iOS app now has its unique bundle ID based on the derived product name.
2013-12-05 21:40:14 +08:00
Lasse Öörni
f4be17256e
Fix wrong include path for iOS build.
2013-12-04 23:23:04 +02:00
Yao Wei Tjong 姚伟忠
89a05a8017
Update documentation to reference back to new main site.
2013-12-04 23:53:35 +08:00
Lasse Öörni
7d83a44d13
Make resource dirs absolute when added to ResourceCache. Sanitate away /./ construct from the runtime program dir and resource dirs. Closes #64
2013-12-04 15:21:20 +02:00
Lasse Öörni
a9fda01ae7
Fixed unnecessary duplicate boundingBox_ member variable in DecalSet.
2013-12-04 01:10:03 +02:00
Lasse Öörni
7d92368dca
Fixed logic bug in Audio subsystem related to mixing fragment size. Fixed uninitialized dataSize_ member in Sound.
2013-12-04 00:57:34 +02:00
Lasse Öörni
a37ea5bb6e
Added inner and outer angle parameters to SoundSource3D, which makes it possible to do cone-like directional sounds. Fixed sound attenuation if near and far distance are the same. Closes #49 .
2013-12-04 00:25:20 +02:00
Lasse Öörni
aa0f72cf65
Added world position & normal to RayQueryResult.
2013-12-02 23:20:00 +02:00
Lasse Öörni
a022430876
Added Random() & RandomInt() script functions with min & max range parameters. Similar to the RandomInt(range) overload, in RandomInt(min, max) the max value is exclusive. Note that the corresponding C++ functions are simply called Random for both int and float versions. Closes #48 .
2013-12-02 21:44:39 +02:00
StevenZhang
a17baf2695
make AngelScript an optional module, you can use -DENABLE_ANGELSCRIPT=0 to disable it.
2013-12-02 19:02:39 +02:00
Lasse Öörni
3d905f2bf0
Append FileSelector filter extension in editor when saving files, if no extension entered to filename. Closes #57 .
2013-11-30 16:59:14 +02:00
Lasse Öörni
79eac917be
Fixed distance update for Drawables for draw distance & shadow draw distance checks. Closes #56 .
2013-11-30 16:57:54 +02:00
Lasse Öörni
026e838d5b
Retired the unused DocConverter utility.
2013-11-30 16:53:25 +02:00
Yao Wei Tjong 姚伟忠
ac6d9f40b0
Fix documentation build on platforms that do not have tool targets.
...
- Prevent 'make clean' or its equivalent to remove the generated ScriptAPI.dox and LuaScriptAPI.dox in the 'Docs' subdirectory.
- Always refresh the generated API Doxygen files before building 'doc' target when the tools are available.
- Move document-build binary directory into the respective project main binary directory.
2013-11-27 18:14:45 +08:00
Yao Wei Tjong 姚伟忠
7fa4c0bc41
Clean up build script.
2013-11-27 00:55:26 +08:00
Yao Wei Tjong 姚伟忠
484f855127
Build Lua and LuaJIT standalone interpreter and bytecode compiler.
...
Use the internal standalone lua/luajit interpreter for dumping LuaScript API doxygen file.
2013-11-27 00:28:59 +08:00
Yao Wei Tjong 姚伟忠
9eb7d92301
Fix minor typo error.
2013-11-26 13:10:09 +08:00
Lasse Öörni
a92f4a0aea
Added "Is Playing" attribute to SoundSource. SoundSource no longer clears the sound resource when playback is finished. Closes #54 .
2013-11-25 20:03:35 +02:00
Yao Wei Tjong 姚伟忠
469794689f
Refactor to keep the Docs directory clean from temp. build files.
...
- Move the temp. build files for documentation building to its own build directory.
- Add new build option to include documentation build as part of the normal build (not enabled by default).
- Document the documentation building process.
2013-11-25 15:10:07 +08:00
Yao Wei Tjong 姚伟忠
19e1e42ca3
Add new 'doc' target for generating Urho3D documentation.
...
make clean
make all
make doc <-- New target
make install
2013-11-24 21:12:05 +08:00
Lasse Öörni
a80793b901
Match desktop OpenGL behavior with Direct3D: check that fullscreen window size is a valid resolution and do not enter fullscreen mode if it isn't. Closes #52 .
2013-11-23 23:13:52 +02:00
Yao Wei Tjong 姚伟忠
772a546d56
Refactor to expect log level parameter value after a space.
...
To be consistent with the rest of the Engine parameters.
2013-11-22 22:20:55 +08:00
Yao Wei Tjong 姚伟忠
3875bc3b21
Convert additional cflags comments into accessible pkg-config's vars.
...
The additional flags are usually trivial on *nix platforms but they are not so on Windows platform for MSVC.
2013-11-22 13:21:44 +08:00
Yao Wei Tjong 姚伟忠
7891efb43e
Clean up Engine library build script.
2013-11-22 13:21:44 +08:00
Yao Wei Tjong 姚伟忠
c0633b7c35
Fix Android "in-the-source" build on Windows platform.
...
Reinstate back the logic to read CMake cache value for USE_MKLINK the proper way as the previous shortcut approach does not work as expected when user invokes cmake_clean.bat but leaving build dir as it is.
2013-11-21 23:18:12 +08:00
Yao Wei Tjong 姚伟忠
4402195b5e
Fix MacOSX Urho3D shared library build when LuaJIT is enabled.
...
Also fix Urho3D.pc for MacOSX platform to also provide the framework list required for linking, i.e. below command works equally well with Urho3D SDK installed on Mac OS X platform.
c++ -o Urho3DPlayer Urho3DPlayer.cpp `pkg-config --cflags --libs Urho3D`
2013-11-21 21:45:41 +08:00
Yao Wei Tjong 姚伟忠
723c66054b
Fix wrong build path in cmake_android.bat for detecting cache value.
...
Also enhance to suppress symlink creation warnings when they are already created and update Android toolchain for NDK r9b.
2013-11-21 13:47:07 +08:00
Lasse Öörni
f73ee0c730
Force elements in layout to left/top alignment, warn if has different alignment. Closes #34 . Implement editor accelerator key texts a bit differently as the right alignment in a layout -hack can no longer be relied upon.
2013-11-21 01:21:11 +02:00
Lasse Öörni
f02650d10e
Add int versions of Max, Min & Clamp to the AngelScript API.
2013-11-21 00:14:50 +02:00
Lasse Öörni
0fe2469957
Improved resource unloading. Make it possible to unload all resource types by partial name at once. Editor unloads unnecessary resources after scene load or clear. Add weak ref check to all resource unloading to avoid shader programs being left without their parent shader.
2013-11-20 22:41:21 +02:00
Yao Wei Tjong 姚伟忠
e3b53f97a1
Moved SDL header include dir to 'Engine' scope as it is being referenced by a few Engine sub-directories and not just Graphics.
2013-11-20 16:15:10 +08:00
Yao Wei Tjong 姚伟忠
f6186456a0
Fix SDK destination installation path for Windows platform.
...
It appears CMake has automatically prepended "Urho3D" to built-in CMAKE_INSTALL_PREFIX variable, so we don't need to prefix the path one more time. Also in the commits:
- Fix documentation on CMake module search path for Windows platform.
- Unified SDK destination installation for Windows and non-Windows platforms.
- Replace global include directories to SDL and export header to locally scoped include directories.
- Enhance Urho3D.pc generation to also provide additional compiler flags for DEBUG/RELEASE/RELWITHDEBINFO as comments/references.
2013-11-20 15:59:38 +08:00
Lasse Öörni
3c2110b81a
Check for compound shape with zero child shapes to prevent Bullet assert. Closes #47 .
2013-11-18 17:19:50 +02:00
Yao Wei Tjong 姚伟忠
e83d98f016
Fix Urho3D.pc file for Windows and Raspberry Pi platforms.
...
Document cross-compiling example using pkg-config for Raspberry Pi platform.
Disable Urho3D.pc file generation for Android and iOS platform.
2013-11-17 21:26:44 +08:00
Lasse Öörni
35b59e897f
Allow setting AnimationState bone weights recursively. Added GetAnimationState() to public API of AnimationController.
2013-11-16 15:25:07 +02:00
Yao Wei Tjong 姚伟忠
36620dd819
Avoid hardcoding of include dirs in the Urho3D.pc.in input file.
...
Also revert decision to use smaller letter case cmake destination directory in previous commit :).
2013-11-16 16:21:13 +08:00
Yao Wei Tjong 姚伟忠
56798dcce9
Fix incorrect include dirs in the Urho3D.pc file.
...
Also:
- Change the CMake module installation destination to use small letter case.
- Update documentation on pkg-config invocation examples.
2013-11-16 14:49:34 +08:00
Yao Wei Tjong 姚伟忠
d7942132f1
Configure and install Urho3D.pc file for pkg-config tool.
...
This is useful for Urho3D library user via SDK installation without having CMake installed.
2013-11-15 18:33:51 +08:00
Lasse Öörni
dbb02e5789
Fix template code error.
2013-11-14 17:40:39 +02:00
Lasse Öörni
460a119e16
Use WeakPtr<RefCounted> consistently for the script WeakHandle type.
2013-11-14 17:31:10 +02:00
Lasse Öörni
ee0e3aa663
Removed the mechanism of binary-serializing resource name hashes instead of resource names. This is to allow correct resource loading from binary scene files on platforms that cannot iterate the resources in the application installation (eg. Android). This also affects networking, downside is increased network payload size when resource attributes are transferred. All binary scenes saved with old Urho versions are also invalidated.
2013-11-14 14:24:03 +02:00
Yao Wei Tjong 姚伟忠
596aa3eac6
Fix AngelScriptAPI.h header generation.
...
- Define int64 and uint64 and redefine the existing type to closer match AngelScript documentation.
- Replace occurances of ?& (any reference) to void*.
2013-11-14 14:25:24 +08:00
Yao Wei Tjong 姚伟忠
c96200b53b
Fix AngelScript compilation due to a wrong letter case.
2013-11-14 11:36:50 +08:00
Lasse Öörni
3168019a5f
Updated to AngelScript 2.28.0. Added dictionary addon from AngelScript SDK. Closes #46 .
2013-11-14 00:16:56 +02:00
Lasse Öörni
bb56ee95d2
Added support for DelayedExecute() from free script functions. This allows calling free functions in the same script module as delayed.
2013-11-13 02:11:29 +02:00
Lasse Öörni
ee8e8031d2
Rework command line options that need a parameter value to have a space in between. Fixes #44 .
2013-11-12 01:33:15 +02:00
Yao Wei Tjong 姚伟忠
c3b95cf81e
Eliminate overhead to maintain the pkg file list manually.
...
Also reorder output sections to be consistent with AngelScript API documentation.
2013-11-11 01:21:56 +08:00
Lasse Öörni
82007cc4f4
Removed the nonintuitive "invisible LOD factor" attribute from AnimatedModel and replaced it with updateInvisible flag similar to ParticleEmitter. This flag must be used for ragdolls or other physically animated objects to ensure that they come into view properly during animation if they previously were outside view. Fixes #40 .
2013-11-09 21:26:08 +02:00
Yao Wei Tjong 姚伟忠
529f577e7a
Fix index out of bound.
2013-11-09 08:53:08 +08:00
Yao Wei Tjong 姚伟忠
5bda958857
Enhance UpdateDocument.bat/sh script to also update LuaScriptAPI.dox.
...
Not fully tested UpdateDocument.bat on Windows platform yet.
2013-11-09 07:43:23 +08:00
Yao Wei Tjong 姚伟忠
a27560c719
Enhance ScriptCompiler to also dump API as C Header file.
...
The C Header file is intended to be 'force included' in the IDE to get content assist / code completion when editing AngelScript file in the C/C++ editor. The output section of DumpAPI() method is reordered slightly to keep the parser happy. This work is inspired by the work done by Vladimir Andri (see https://groups.google.com/forum/#!topic/urho3d/8WOOGAdwlEU ).
2013-11-08 12:41:21 +08:00
Lasse Öörni
27d54428d5
Fix the delayed method calls attribute for a deserialized ScriptInstance overwriting a delayed method call that was newly stored in code (eg. inside script object's Start() function)
2013-11-07 22:53:57 +02:00
Lasse Öörni
efaf7d28f0
Merge remote-tracking branch 'remotes/szamq/master'
2013-11-06 21:31:14 +02:00
Yao Wei Tjong 姚伟忠
79ebb142d7
Use a more concise REGEX to prevent unwanted match. Closes #38 .
2013-11-06 16:14:52 +08:00
Paweł Mogiła
1cb217a8ef
Expose anisotropic friction to Lua and AngelScript
2013-11-06 01:53:22 +01:00
Paweł Mogiła
3cb9afe865
Added Bullet anisotropic friction to RigidBody
2013-11-06 01:23:44 +01:00
Yao Wei Tjong 姚伟忠
a96a94a4f6
Fix FindUrho3D.cmake module to include back SDL headers as dep.
...
Install SDL headers for all platforms (not just Android).
2013-11-06 08:04:48 +08:00
Lasse Öörni
a56be53ef4
Allow specifying -DUSE_OPENGL=0 for MinGW. Compiling ShaderCompiler is likely to fail in that case. Closes #36 .
2013-11-06 01:27:43 +02:00
Lasse Öörni
719e640c99
Fixed Android file access from within the .apk.
2013-11-05 18:31:08 +02:00
Yao Wei Tjong 姚伟忠
bd3ee3f932
Fix the destination template dir for GCC only.
...
Android build on Windows platform should also use the same template location installed in the NDK or standalone toolchain.
2013-11-05 17:05:31 +08:00
Yao Wei Tjong 姚伟忠
24c11dda23
Revert "Setup Android template directory for both Windows and non-Windows."
...
This reverts commit 06f7d73922
.
2013-11-05 17:00:43 +08:00
Yao Wei Tjong 姚伟忠
06f7d73922
Setup Android template directory for both Windows and non-Windows.
2013-11-05 16:36:14 +08:00
Yao Wei Tjong 姚伟忠
8a571ae437
Document how to install library and how to find it from installed SDK.
2013-11-05 15:52:37 +08:00
Lasse Öörni
cfa6b135ce
Moved Urho3DPlayer class definition to a .h file. Updated documentation to refer to Urho3DPlayer.
2013-11-04 19:07:00 +02:00
Yao Wei Tjong 姚伟忠
c1480abfb8
Rename Urho3D script host app from "Urho3D" to "Urho3DPlayer".
2013-11-04 19:36:36 +08:00
Yao Wei Tjong 姚伟忠
300efe0f7d
Reinstate comment on RedHat-based system that needs LIB_SUFFIX.
2013-11-04 08:36:15 +08:00
Yao Wei Tjong 姚伟忠
e8fbcf8a82
Add 'install' option for cross-compiling build and IOS as well.
...
Note: there is a known bug in CMake/Xcode generator that prevents iOS targets (library and bundle) to be installed correctly (see http://public.kitware.com/Bug/bug_relationship_graph.php?bug_id=12506&graph=dependency ).
2013-11-04 00:13:49 +08:00
Yao Wei Tjong 姚伟忠
b45de628e7
Reduce 3rd-party headers installation to as minimum as possible.
2013-11-03 06:28:41 +08:00
Yao Wei Tjong 姚伟忠
a542556a91
Rephrase error message when Urho3D library is not found.
2013-11-03 03:45:58 +08:00
Lasse Öörni
6133c24a53
Official fix for the void assert from AngelScript SVN.
2013-11-02 19:47:01 +02:00
Lasse Öörni
bdd2d03c81
Fixed AngelScript assert/crash if void value is attempted to be cast explicitly. Closes #33 .
2013-11-02 17:23:41 +02:00
Yao Wei Tjong 姚伟忠
e496dfbbcb
Prevent spamming stderr stream when log file could not be opened.
...
This occurs when the binary is installed and executed in a filesystem where user does not have write permissions.
2013-11-02 18:07:54 +08:00
Yao Wei Tjong 姚伟忠
8c248bdb7c
Fix URHO3D_INCLUDE_DIR to also include sub-dirs to 3rd-party headers.
2013-11-02 17:10:25 +08:00
Yao Wei Tjong 姚伟忠
52ff881c54
Add 'install' option (currently only available for native build).
...
Also enhance FindUrho3D.cmake module to find Urho3D library in the Urho3D SDK installation location.
2013-11-02 16:45:44 +08:00
Lasse Öörni
8ca86afbe7
Merge branch 'sdl-update'
2013-11-02 01:04:02 +02:00
Yao Wei Tjong 姚伟忠
8ff3348503
Refactor define_dependency_libs macro.
...
Change to remove the references to engine's sub-library targets which are now defunct. General cleanup of the build scripts.
2013-11-01 17:58:47 +08:00
Yao Wei Tjong 姚伟忠
b15b871db5
Fixed CMake warning after upgrading to CMake 2.8.12.
2013-10-31 23:06:02 +08:00
Yao Wei Tjong 姚伟忠
da155d2b9a
Generating all the output files in the desired output directories.
...
Thus, avoiding the copying and symlinks setup (for Xcode debugging) post-build steps.
2013-10-31 17:27:18 +08:00
Lasse Öörni
67e8ea47e5
Do not attempt to copy the .pdb for static Urho3D lib due to recent CMake behavior change. Fixes #32 .
2013-10-31 02:46:54 +02:00
Lasse Öörni
c057b29dba
Unify how command line options are shown in utilities.
...
Added note in documentation about lack of space between command line option and its parameter.
Prepend Materials/ to the material list written by OgreImporter (assume "standard" materials subdirectory.)
2013-10-30 18:49:27 +02:00
Yao Wei Tjong 姚伟忠
cdd9b7bdea
Reverted back EXTRA_FLAGS which was changed unintendedly.
2013-10-30 18:14:41 +08:00
Yao Wei Tjong 姚伟忠
6071001b5c
Refactor define_source_files macro.
...
Change the argument names to indicate their intent usage better. Add option to pass in directly globbing patterns.
2013-10-30 18:06:24 +08:00
Yao Wei Tjong 姚伟忠
4b549c9c7a
Revert back to no-ops for Input::SetMouseVisible() on RPI.
...
The OS cursor on Raspberry Pi does not behave like other OS cursor on other platforms.
2013-10-30 17:00:02 +08:00
Yao Wei Tjong 姚伟忠
95a9c71a21
Fixed runtime issue on Raspberry Pi with Pidora as OS.
2013-10-30 12:31:32 +08:00
Lasse Öörni
b957f60143
Added ApplyMaterialList() function to StaticModel so that the feature can be used outside the editor as well. Refactored editor to use that function instead of its own implementation.
...
Unified the switch to output material list to -l in both AssetImporter & OgreImporter.
Removed the "use local IDs" toggle from editor as that can be specified with the import options.
2013-10-29 23:04:51 +02:00
Yao Wei Tjong 姚伟忠
953f87d052
Fixed mouse motion spin bug.
...
This bug only manifests itself when the SDL video driver has "WarpMouse" function implemented, like RPI video driver, in conjuction with call to SDL_SendMouseMotion() with relative event position.
2013-10-29 23:48:03 +08:00
Yao Wei Tjong 姚伟忠
7a82151933
Reenable the function for RPI since new video driver support mouse.
2013-10-29 22:07:43 +08:00
Yao Wei Tjong 姚伟忠
9e09e958dc
Fixed event handling for Raspberry Pi.
2013-10-29 13:58:47 +08:00
Lasse Öörni
8077ee4a53
Added option to OgreImporter to save material list file next to the model.
2013-10-28 21:35:53 +02:00
Yao Wei Tjong 姚伟忠
6cf19fa9ce
Fixed Raspberry Pi error (could open Window).
2013-10-28 22:30:01 +08:00
Lasse Öörni
3ce378d5e2
Merge branch 'master' into sdl-update
2013-10-28 13:13:08 +02:00
Yao Wei Tjong 姚伟忠
e423a26461
Refactor CMake build scripts.
...
Changes:
- Avoid globbing engine source files twice.
- Setup folder group for VS and Xcode. Also group object files according to 3rd-party library name.
- New define_source_files() macro.
2013-10-28 18:21:18 +08:00
Lasse Öörni
c1a1864a40
Fixed black window on subsequent application starts on Android. Removed GL synchronization before swapping buffers, which should be unnecessary.
2013-10-28 05:06:23 +02:00
Lasse Öörni
e74ee4ce52
Fixed exiting on Android.
2013-10-28 01:45:44 +02:00
Lasse Öörni
f299c0d815
Fixed Android GL context destroy / restore. Removed project.properties file, as it's generated by the command "android update project".
2013-10-27 14:58:41 +02:00
Yao Wei Tjong 姚伟忠
59d6d01125
Fixed 07_Billboards compilation issue.
2013-10-27 16:20:51 +08:00
Lasse Öörni
afa6c4ccc3
Initial SDL 2.0.1 merge. Windows tested OK. Android will crash when returning to the application.
2013-10-27 03:11:36 +03:00
Lasse Öörni
42ae752d2d
Allow BillboardSet / ParticleEmitter to choose whether billboards should face the camera or follow the node orientation. Closes #22 .
2013-10-26 23:42:08 +03:00
Lasse Öörni
1941eb991d
Group Urho3D library source files in Visual Studio by subdirectory.
2013-10-26 19:50:02 +03:00
Paweł Mogiła
5752b58edc
Fixed SetMaxVelocity in ParticleEmitter
2013-10-26 16:06:44 +02:00
Yao Wei Tjong 姚伟忠
c3242a3736
Refactor to shortcircuit if library is already found at parent scope.
...
Note that there is actual no need to call the module again at child scope when it is already done at parent scope.
2013-10-26 13:32:12 +08:00
Yao Wei Tjong 姚伟忠
0598ec9490
Improve robustness when FindUrho3D module is called multiple times.
...
Ensure the change to CMake library suffix preferences is not being nullified because user calls the FindUrho3D module more than one time in different scopes.
2013-10-26 01:38:31 +08:00
Yao Wei Tjong 姚伟忠
6846b179b4
Cleaned up comment.
2013-10-25 01:17:29 +08:00
Yao Wei Tjong 姚伟忠
589e0d53bb
Change CMake library type preferences to agree with Urho3D.
...
This change helps external CMake project to choose the correct library type as the compiler flags setup by the Urho3D-CMake-Magic module. Both the external project and the cmake module are being governed by the same URHO3D_LIB_TYPE build option.
2013-10-25 01:01:53 +08:00
Yao Wei Tjong 姚伟忠
b85a0b3305
Suppress "unused variable" warning for external CMake project also.
2013-10-25 00:32:23 +08:00
Yao Wei Tjong 姚伟忠
ef566d825a
Cleaned up build script script comment.
2013-10-25 00:08:49 +08:00
Lasse Öörni
02df5b2d02
Write package file size to the end of package files. If package signature is not found from the file beginning, seek to file end and read the size, then seek backward to check if the package file is concatenated eg. in the executable. Alternatively the start offset can be specified manually when opening a package file. Closes #27 .
2013-10-24 00:06:19 +03:00
Yao Wei Tjong 姚伟忠
e34e26d068
Merge branch 'library-build'.
2013-10-23 15:15:03 +08:00
Lasse Öörni
18d4f6e6db
Deploy Urho3D.dll to Bin directory after build.
2013-10-22 22:59:03 +03:00
Yao Wei Tjong 姚伟忠
a9ed330890
Create sub-projects for Samples/Tools/Extras.
2013-10-22 23:19:03 +08:00
Yao Wei Tjong 姚伟忠
db8f7a2289
Simplify the build script to eliminate unused variable.
...
As the enable_pch() macro is not being called, there is no need to set SOURCE_FILES variable at this scope.
2013-10-22 20:28:15 +08:00
Yao Wei Tjong 姚伟忠
7785640904
Fixed Lua/LuaJIT compilation issue.
...
The combined Precompiled header does not include tolua++.h anymore, so it must be included back explicitly.
2013-10-22 20:12:33 +08:00
Lasse Öörni
0c14a17774
Use one combined precompiled header file for Urho3D library, as otherwise precompiled headers would be disabled on Visual Studio.
2013-10-22 00:48:27 +03:00
Lasse Öörni
89ea05f068
Fixed git revision generation on Win32 Android build.
2013-10-22 00:24:19 +03:00
Lasse Öörni
0eb45c0960
Fixed ShaderCompiler build.
2013-10-21 23:59:21 +03:00
Lasse Öörni
c5278a8649
On a Visual Studio build, do not copy .obj files for the Urho3D library but use them from their original location.
2013-10-21 23:32:28 +03:00
Yao Wei Tjong 姚伟忠
7b24807c32
Combine Engine sources into one place and build as a single target.
2013-10-22 04:16:22 +08:00
Yao Wei Tjong 姚伟忠
2b3af05f26
Added license notice.
2013-10-21 22:39:16 +08:00
Yao Wei Tjong 姚伟忠
d953b36d62
Reverted back decision to also build samples on Android platform.
...
Although samples should also work for Android platform, currently there is no available mechanism to package each sample app into individual *.apk.
2013-10-21 20:27:08 +08:00
Yao Wei Tjong 姚伟忠
9070746b56
Fix Xcode AssetImpoter linker error caused by both freetype and assimp emitting same symbols.
2013-10-21 19:36:41 +08:00
Yao Wei Tjong 姚伟忠
07f81edc6f
Explicitly specify a base name for the export header generation.
...
The library target is renamed from "Urho3D" to "Urho3D_lib" as it clashes with "Urho3D" target for script host application. The library target's output name is then adjusted back "Urho3D" in the macro to generate "libUrho3D.a" or "libUrho3D.so" or "Urho3D.dll", etc. However, it seems that generate_export_header() macro provided by CMake does not taken into consideration of the adjusted target's output name property. Fortunately, it accepts a BASE_NAME argument to rectify the problem cleanly.
2013-10-21 15:46:55 +08:00
Lasse Öörni
d560675985
Fix static lib build define.
2013-10-20 23:08:28 +03:00
Yao Wei Tjong 姚伟忠
d33ac02538
Refactor build scripts to build Urho3D library as main target.
...
Other changes in the commit:
- Change build option from URHO3D_BUILD_TYPE to URHO3D_LIB_TYPE. Default value is STATIC.
- Automatically add compiler definition 'URHO3D_STATIC_DEFINE' when linking with Urho3D library statically.
- Move LuaScript subsystem from Extra/ to Engine/.
- Enable FindUrho3D module to also detect Urho3D library target when the FindUrho3D module is being used internally by Urho3D project.
- Configure to build all the samples for iOS and Android platforms also when option to build samples is enabled.
- Export all the Register*Library() global functions.
- Rewrite all the tools, samples, and extras targets to link against Urho3D library.
TODOs:
- Combine engine sub-libraries into one.
- Test builds on non-Linux platforms.
2013-10-21 02:28:29 +08:00
Lasse Öörni
5fb42a277c
Re-added "flush GPU command buffer" -feature for controlling timestep variance and input lag. Direct3D only for now. Default off, as can decrease performance.
2013-10-20 21:02:19 +03:00
Lasse Öörni
2ab9fa5429
Merge remote-tracking branch 'remotes/szamq/master'
2013-10-20 12:36:26 +03:00
Paweł Mogiła
d392e9e031
Possibility to set more last timesteps(20) and don't use timestep smoothing, until got full vector
2013-10-20 02:06:03 +02:00
Lasse Öörni
db3bf3fbf9
Added timestep smoothing to Engine. By default the previous 2 frames' timesteps are averaged.
2013-10-19 22:51:47 +03:00
Yao Wei Tjong 姚伟忠
2af7dbdcd9
Move tolua++ add_subdirectory instruction from main to LuaScript.
...
This should be part of commit 5dbf83c418
.
2013-10-20 00:14:00 +08:00
Yao Wei Tjong 姚伟忠
5dbf83c418
Show a warning message when tolua++ tool is missing.
...
For cross-compiling to be successful, all the tools must be already built natively.
2013-10-19 23:58:23 +08:00
Yao Wei Tjong 姚伟忠
c37ac56ec3
Added license notice.
2013-10-19 22:24:25 +08:00
aster2013
99b4315386
Chanage SharedPtr<T>, please use SharedPtr<T>::Get() to get raw pointer. add Read chunk function in Deserializer class, add Write chunk function in Serializer.
2013-10-19 10:19:28 +08:00
aster2013
27f7a2b31f
Add more vector type support in Lua, rename ToluaUrho3DEx file to tolua++urho3d.
2013-10-18 22:04:36 +08:00
aster2013
4e0df133c0
Add "const Vector<String>" support in Lua, now in Lua "const Vector<String>" is a Lua table with string elements.
2013-10-18 20:39:47 +08:00
aster2013
d83f982c57
Change const string reference to const string type.
2013-10-17 23:25:01 +08:00
aster2013
747ab13932
Adjust lua gc step pause parameter, make it gc aggressive.
2013-10-17 23:03:33 +08:00
aster2013
6ae4ab9b7f
Add SharedPtr<HttpRequest> support in Lua.
2013-10-17 21:42:35 +08:00
Lasse Öörni
b935b544de
Do not check for HttpRequest error on initialization, as the connection init is performed in a background thread and is not immediately ready.
2013-10-17 15:41:00 +03:00
Lasse Öörni
0210a049b2
Block HttpRequest::Read() if not all data is received and connection is still open. This is to allow the other ReadXXX() functions to work properly. Only call Read() with size at or below GetAvailableSize() to ensure no blocking.
2013-10-17 15:03:22 +03:00
Lasse Öörni
0b938bf1ae
Further iOS FreeType fix.
2013-10-17 13:12:07 +03:00
Lasse Öörni
9667886273
Restored the previous architecture check for whether to use arm assembly in FreeType.
2013-10-17 12:18:45 +03:00
Lasse Öörni
d1c547d455
Fixed to correctly use Time::Sleep() instead of Sleep().
2013-10-17 11:48:15 +03:00
Lasse Öörni
2a5bea6bed
Always merge the node's own world position to a BillboardSet bounding box.
2013-10-17 00:46:17 +03:00
Lasse Öörni
dc0533e1ae
Fix forceAutoHint_ being uninitialized.
2013-10-17 00:32:25 +03:00
Lasse Öörni
347b840b7c
Read HttpRequest in a background thread to prevent blocking. Always check all triangle mesh geometries for the closest hit in the RAY_TRIANGLE raycast mode.
2013-10-16 18:03:39 +03:00
Yao Wei Tjong 姚伟忠
cfe7ccf21c
Replaced the logic to use VARIANT variable instead.
...
The CMAKE_CROSSCOMPILING variable cannot be used here because it will be always false since 'buildvm-*' is only built natively (not cross-compiling).
2013-10-16 00:44:57 +08:00
Yao Wei Tjong 姚伟忠
7a562a4e6c
Fixed tolua++ 64-bit Mac Os X build when LuaJIT is enabled.
...
The tolua++ executable segfaults when it is generated without proper linker flags.
2013-10-16 00:17:32 +08:00
Yao Wei Tjong 姚伟忠
aed0da5161
Fixed FreeType debug build.
2013-10-15 22:56:49 +08:00
Lasse Öörni
840d50ce0d
Allow to force FreeType autohinting (old 2.3 version behavior.) Reload font faces when global font settings changed.
2013-10-15 15:31:39 +03:00
Lasse Öörni
7cfb9a85f7
Trust FreeType about the font's row height. Possibly improves issue #13 .
2013-10-15 00:08:51 +03:00
Lasse Öörni
bc6dd70fae
Update FreeType version in documentation, and FreeType's own documentation. Enabled FreeType subpixel hinting. Restored old BlueHighway.ttf. Removed FreeType .mk and jamfiles.
2013-10-14 23:15:52 +03:00
Lasse Öörni
efefbca976
Merge remote-tracking branch 'remotes/friesencr/bump_freetype'
2013-10-14 22:39:09 +03:00
Yao Wei Tjong 姚伟忠
5896e52552
Filter target architecture information if the tool is available.
...
The initial target architecture detection for LuaJIT on Raspberry Pi native build was painfully slow due to the amount of output produced by compiler.
The filter reduces the number of output rows and speeds up the process significantly.
2013-10-14 10:39:31 +08:00
Chris Friesen
12d22bd8cc
update freetype
2013-10-13 16:18:28 -05:00
Lasse Öörni
6e3dde8a10
Merge branch 'font2'
2013-10-13 21:43:42 +03:00
Lasse Öörni
267523a738
Adapted Aster Jian's mutable glyph mechanism. Globally switchable on from the UI subsystem. Configurable font texture max size in UI subsystem.
2013-10-13 21:42:36 +03:00
Yao Wei Tjong 姚伟忠
405e89b5f2
Fixed LuaJIT native build on Raspberry Pi.
...
Missed out one more condition check before applying -m32/64 flag.
2013-10-14 00:22:32 +08:00
Lasse Öörni
b1b60edbf4
Code cleanup.
2013-10-13 17:28:05 +03:00
Lasse Öörni
ecc37d1f2e
If all font's glyph do not fit into one page, begin filling texture pages dynamically as glyphs are used.
2013-10-13 17:17:00 +03:00
Yao Wei Tjong 姚伟忠
441ab9e5d4
Fixed LuaJIT native build on Raspberry Pi.
...
Only set the assembler flag to either -m32 or -m64 when the target architecture is X64.
2013-10-13 21:46:58 +08:00
Yao Wei Tjong 姚伟忠
04034d088f
Fixed native build against latest Pidora/Raspberry Pi firmware.
...
Related to issue #17 .
2013-10-13 16:33:49 +08:00
Yao Wei Tjong 姚伟忠
18a05df3bd
Attempt to fix issue#17. Find EGL shared lib explicitly.
2013-10-13 15:50:34 +08:00
Lasse Öörni
9d0eb0ffae
If a rigid body is kinematic, set it to never deactivate itself.
2013-10-12 21:22:47 +03:00
Lasse Öörni
8d5aa5bbd2
Fix UNICODE define in SDL not taking effect properly with new MinGW.
2013-10-12 18:37:58 +03:00
Lasse Öörni
e408d1b614
Fix GCC 4.8 undefined behavior warnings.
2013-10-12 18:37:58 +03:00
Yao Wei Tjong 姚伟忠
74601477fe
Support LuaJIT amalgamated build.
...
Added new build option ENABLE_LUAJIT_AMALG.
2013-10-12 22:26:43 +08:00
Lasse Öörni
752051b86f
Correct kNet winsock2.h include order. Fixes #16 .
2013-10-12 16:58:52 +03:00
Lasse Öörni
c6a6f71aa3
Finalize LZ4 support. Do not repeatedly allocate compressed data buffer. Do not store global blocksize into the package file header. Increased Android read buffer to 32KB.
2013-10-12 15:03:17 +03:00
Lasse Öörni
30ce75fd68
LZ4 compressed package file support. Closes #6 .
2013-10-12 15:03:17 +03:00
Lasse Öörni
48a53a61e9
Fix endless loop if trying to print a log message causes more messages to be logged. Closes #14 .
2013-10-10 22:42:49 +03:00
Lasse Öörni
c097d8f122
Fix OpenGL texture partial update.
2013-10-10 21:52:31 +03:00
Yao Wei Tjong 姚伟忠
b5836237e9
Remove dependency on Lua when LuaJIT is enabled.
...
Change build option name from ENABLE_LUA_JIT to ENABLE_LUAJIT.
Change tolua++ lua scripts to be compatible with both LuaJIT and Lua. Replace toluabind.c with the corresponding bytecode.
2013-10-11 02:02:08 +08:00
Lasse Öörni
5da7d24f94
Fixed bug in D3DTexture2D && D3DTextureCube::SetData() when not setting the whole texture.
2013-10-10 18:53:26 +03:00
Yao Wei Tjong 姚伟忠
46f5f21f59
Fixed issue #12 . Reorder library dependency list.
...
It seems Debian is not as forgiving as Redhat on the external library list order.
2013-10-10 17:44:53 +08:00
Lasse Öörni
9b037e938d
Mono font rendering fix from Aster Jian's font branch.
2013-10-09 22:14:08 +03:00
aster2013
475ddbe99d
Fixed Text Shadow Effect bug.
2013-10-09 22:02:12 +03:00
Yao Wei Tjong
76ba362179
Rephrased instructions to overcome CMake error for LuaJIT cross-compilation build.
2013-10-09 00:59:19 +08:00
Yao Wei Tjong
756728d5d1
Fixed 32-bit LuaJIT compilation on Linux platform.
2013-10-08 23:26:02 +08:00
Lasse Öörni
f6213623ed
Workaround for VS2008 64-bit mode.
2013-10-08 12:45:49 +03:00
Yao Wei Tjong
28ab693b6a
Fixed LuaJIT CMake error on Windows platform.
2013-10-08 15:47:14 +08:00
Yao Wei Tjong
2b90804c6e
Fixed LuaJIT build on Linux, both native and cross-compiling.
...
The following platforms should be now supported:
Windows, Linux, Mac OS X, IOS, Android, and Raspberry Pi. Not all platforms are fully tested yet.
Cross-compilation may work on GCC/CLang only.
2013-10-08 12:22:56 +08:00
Lasse Öörni
dc2e59af7f
Do not use a layout on a ScrollBar as using it can lead to resizing the ScrollBar itself, which is irreversible. Fixes #11 .
2013-10-07 23:18:44 +03:00
Lasse Öörni
4186e48b7f
Set internal flag on ListView containers before adding as a child. Fixes #10 .
2013-10-07 16:38:41 +03:00
weitjong
2ef2e65872
Recreate "assets" directory back in Git repository.
...
Git does not handle empty directory like SVN. A directory in Git must at least contain a file to be tracked.
Added .gitignore to do the work and at the same time tell Git to ignore all the symlinks/files in this directory.
2013-10-07 12:45:07 +08:00
weitjong
633a7f4804
Renamed IOS and Mac OS X framework macros.
...
These macros may be used later not just to setup frameworks but also
other linker flags.
Renamed setup_ios_frameworks -> setup_ios_linker_flags.
Renamed setup_macosx_frameworks -> setup_macosx_linker_flags.
2013-10-07 00:12:01 +08:00
weitjong
1cdd74f3da
Support more source file extensions.
...
Added support for: .mm (Objective-C++ source code) and .s (preprocessed assembly source code).
2013-10-06 18:37:05 +08:00
weitjong
1afb83b10b
Generated sources are defined before normal sources.
...
To be consistent with the rest of the CMakeLists.txt.
2013-10-06 14:01:11 +08:00
weitjong
598c24a4aa
Corrected usage of message() command for showing CMake status.
2013-10-06 14:01:10 +08:00
Lasse Öörni
87e1761a31
Reorder GetType() & GetBaseType() functions in headers for consistency.
2013-10-06 02:10:03 +03:00
Lasse Öörni
673d948950
Fix crash when loading another scene in the editor after loading a scene with physics constraints.
2013-10-06 00:11:58 +03:00
Lasse Öörni
c934342cec
Trim path in AddTrailingSlash() & RemoveTrailingSlash() to be sure. Fix extra slashes appearing in scene load path in the editor.
2013-10-06 00:03:44 +03:00
Lasse Öörni
36eb726d36
Add the concept of base class type to Object to simplify determining if a ScriptInstance's handle variable is a Node, Component or Resource. Serialize script's resource handles as ResourceRef attributes and allow editing them.
2013-10-05 23:24:39 +03:00
Lasse Öörni
cfd2516000
Return window size for GetDesktopResolution() on mobile platforms due to possible SDL bug.
2013-10-05 19:20:05 +03:00
Lasse Öörni
facbae131e
Store an explicit parent ListView pointer to HierarchyContainer to avoid having to search for it through the element hierarchy.
2013-10-05 16:55:24 +03:00
Lasse Öörni
25c7aa53c3
Added GetDesktopResolution() to Graphics.
2013-10-05 02:39:58 +03:00
Lasse Öörni
2fbe931cee
Added SetWindowPosition() / GetWindowPosition() to Graphics.
2013-10-05 02:22:02 +03:00
Lasse Öörni
39c8295eb3
Added editable flag to UI elements. When disabled, will not edit the value (eg. LineEdit text) through user input. Fixes #4 .
...
Moved UIElement default virtual function implementations to the header.
Removed clip border from the default style LineEdit, as some letters (eg. lowercase y) will clip with the font size used in the editor & console.
2013-10-04 01:58:46 +03:00
Lasse Öörni
b2d356ad5e
Allow using the operating system clipboard in UI.
2013-10-04 01:21:24 +03:00
Lasse Öörni
6ad8a077aa
Do not place any demands on OpenGL ES 2.0 color/depth configuration to allow running on eg. RGB_565 pixel format.
2013-10-04 00:06:17 +03:00
aster2003
8098f588b4
Change LuaFunction to subclass of RefCounted.
2013-10-03 21:06:46 +08:00
weitjong
6fec33aada
Simplified logic for detecting the availability of GIT command line tool
...
and GIT repository.
2013-10-03 19:40:52 +08:00
weitjong
242f317ddd
Configure Doxyfile according to the value of USE_OPENGL variable.
2013-10-03 17:41:17 +08:00
Lasse Öörni
9a5632f745
Use kNet debug memory leak check on MSVC only. Fixes #1 .
2013-10-02 20:29:51 +03:00
weitjong
79017b26de
Fixed the condition to check GIT_EXIT_CODE variable.
2013-10-02 21:44:14 +08:00
weitjong
e6b690a9dc
Replace svnversion with git tool to generate library revision number."
2013-10-02 21:24:33 +08:00
weitjong
11ffd62f0c
Provide new batch and shell script to clean CMake cache for convenience and document it. Adjust line width of Readme.txt to prevent text overwrap in GitHub view.
2013-10-02 17:04:56 +08:00
Lasse Öörni
165b7c8eae
Default to ENABLE_SAFE_LUA=0 for improved performance.
2013-10-01 18:40:47 +00:00
Aster Jian
68a081f0b5
Fix minilua link error on Linux.
2013-10-01 05:58:11 +00:00
Lasse Öörni
c169684bcd
Crashproofed most of the C++ samples when running with empty resource directories. 18 & 19 will still crash inside Bullet.
2013-09-30 20:12:45 +00:00
Lasse Öörni
869eeac20c
Moved ENABLED_LUA_JIT check for InitFPU() to the outer #if directive.
2013-09-30 11:35:27 +00:00
Lasse Öörni
36e165596a
Create a dedicated depth stencil texture in View3D so that temporary depth stencils are not constantly generated when resizing a View3D.
...
Decrease screen buffer idle time before destruction to 1 second.
2013-09-30 11:22:11 +00:00
Aster Jian
11674b421a
Fix LuaJIT CMakeLists.txt.
2013-09-30 05:09:44 +00:00
Lasse Öörni
56b453c25e
Update to AngelScript 2.28.0 WIP to fix a ternary operator crash bug.
2013-09-29 15:47:55 +00:00
Aster Jian
eccf0fefdd
Set generated file to CMAKE_CURRENT_BINARY_DIR/generated folder.
2013-09-29 15:01:28 +00:00
Aster Jian
a570bb8ad6
Add LuaJIT support in LuaScript module, please use ENABLE_LUA_JIT to enable it, just test on Windows.
2013-09-29 14:38:03 +00:00
Aster Jian
2d3740d28c
Fixed an error in PushString.
2013-09-29 09:00:59 +00:00
Lasse Öörni
fc2854167c
Changed Lua library & object registration order to ensure base classes are correctly set up.
2013-09-28 19:34:45 +00:00
Lasse Öörni
04c3a45d92
Fixed vegetation wind effect on billboards.
...
Added unlit vegetation technique & example material.
Added alphamasked variation to Unlit shader.
Fixed billboard textures displayed upside down. Note: this is a breaking change for old scene content that manually specifies non-default billboard UV:s.
2013-09-28 09:46:12 +00:00
Lasse Öörni
c7f098de3e
Updated documentation on changed Lua function call mechanism.
2013-09-27 21:36:19 +00:00
Lasse Öörni
c3870201b9
Added TransformChanged() script method to ScriptInstance & LuaScriptInstance. Called when node transform changes (hooks to OnMarkedDirty() on C++ side)
...
Ensure that LuaScriptInstance listens only to its own scene's & physics world's update events.
Changed LuaScriptInstance to use IsEnabledEffective() to make sure it gets disabled if the node is disabled.
2013-09-27 20:56:35 +00:00
Wei Tjong Yao
09ba853aba
Keep CMakeCache.txt in between build script invocation to speed things up. Correct typo error.
2013-09-26 20:56:42 +00:00
Aster Jian
4b9f241065
Add LuaFunction class, Add more Lua API in Sound, fixed typo.
2013-09-26 16:18:38 +00:00
Lasse Öörni
04bf45e463
Added support for SDL_DROPFILE event. Input system sends event with filename only, and UI subsystem interprets that to include the element that was dropped onto. The UI variant of the event is only posted when the OS mouse cursor is visible (such as in the editor.)
2013-09-26 12:51:15 +00:00
Lasse Öörni
e5b7b6c916
Re-enable Lua's default loaders. Register own loader last into the table.
2013-09-26 07:23:09 +00:00
Lasse Öörni
d90a9168cf
Applied joystick index patch from Gunnar Kriik.
2013-09-25 21:51:32 +00:00
Lasse Öörni
49319ddb57
Disable Lua's inbuilt loaders. This fixes LuaScript's own loader possibly failing on Linux.
2013-09-25 19:44:35 +00:00
Lasse Öörni
4d4cb2cbb3
Fix incorrect assignment.
2013-09-25 17:11:05 +00:00
Lasse Öörni
d22dab085d
Restored Variant constructors & equality operators.
2013-09-25 14:30:24 +00:00
Wei Tjong Yao
978bfe0f3d
Use the instance variable instead of re-obtaining the graphics subsystem from context.
2013-09-25 12:24:23 +00:00
Lasse Öörni
862ca75a46
Added script (pkgToDox.lua) which regenerates Lua script API documentation. It can be run with a standalone Lua interpreter.
2013-09-25 06:59:47 +00:00
Wei Tjong Yao
24eacf9e3f
Attempt to support IOS arm64 build.
2013-09-25 04:46:23 +00:00
Wei Tjong Yao
1250776d0c
Added basic.lua as dependency in build script so that C++ to Lua binding codes would be automatically rebuilt.
2013-09-25 04:16:49 +00:00
Lasse Öörni
b8a3157e91
Show enumerations in the generated AngelScript API.
2013-09-24 20:12:08 +00:00
Aster Jian
e4fda39b47
Rename function to solve name conflict with base class.
2013-09-24 15:51:21 +00:00
Aster Jian
241afce241
Handle enabled/disabled state change.
2013-09-24 13:21:27 +00:00
Lasse Öörni
bb9b3a5871
Disabled depth write from Text3D generated material. Now Z-bias can default to 0.
2013-09-24 07:04:27 +00:00
Lasse Öörni
586d878509
Fix enum.
2013-09-23 18:51:50 +00:00
Lasse Öörni
dbd7687c56
Added configurable Z bias to Text3D effect.
...
Default Text effect color changed to opaque black.
2013-09-23 18:49:50 +00:00
Aster Jian
902300e2e5
Add TextEffect in Text3D class.
2013-09-23 15:00:31 +00:00
Aster Jian
318d2bd5ef
Add TextEffect in Text class.
2013-09-23 14:38:21 +00:00
Aster Jian
6dcf4a7c9f
Restore text.h
2013-09-23 06:22:01 +00:00
Aster Jian
3e4765e4f4
Change SetRotationSpeed's parameter to Vector3.
2013-09-23 05:54:29 +00:00
Aster Jian
bbf193dd5f
Move tolua++ Urho3D extension in a file, Move PushParameters function in ToluaUrho3DEx and change return type to bool.
2013-09-23 05:29:03 +00:00
Lasse Öörni
dd9a9feb61
Allow convenience access to scriptObjects residing in the scene root node.
2013-09-22 23:52:17 +00:00
Lasse Öörni
eb6ba62ab9
Added the LuaScript library to Doxygen documentation.
...
Added LuaScript doxygen page.
2013-09-22 23:41:27 +00:00
Lasse Öörni
f93a5e4a23
LuaScript library header formatting. Allow parameters also for procedural Lua functions. Renamed LuaScriptInstance::Execute() to ExecuteFunction().
2013-09-22 22:08:26 +00:00
Lasse Öörni
48532b2509
Added C++ / script integration samples, which reimplement AnimatingScene sample, but use a script object instead of a C++ component.
...
Added Execute() function to LuaScriptInstance.
Fixed LuaScriptInstance::SetScriptFileName() not loading the script.
2013-09-22 19:15:30 +00:00
Aster Jian
75a55050b7
Fixed Lua Chat sample bug, Replace Variant's constructor with SetXXX function.
2013-09-22 15:12:37 +00:00
Aster Jian
472a2b9bd9
Added Lua Chat sample.
2013-09-22 14:18:44 +00:00
Aster Jian
00342501ab
Binding more class in IO lib to Lua, Fixed multi inheritance class.
2013-09-22 05:51:05 +00:00
Lasse Öörni
da45ff6b6b
Added SceneReplication Lua sample.
2013-09-21 22:08:05 +00:00
Lasse Öörni
81f5233ef7
Added Lua Ragdolls sample.
2013-09-20 21:50:20 +00:00
Aster Jian
cb19db83d1
Add RenderToTexture and Physics sample in Lua.
2013-09-20 14:59:54 +00:00
Lasse Öörni
7a55a43725
Tidied up the sample descriptions.
...
Exposed UIElement::SetVar() and GetVar() to Lua script.
Modified the Lua Sprites sample to use custom vars inside UIElement.
2013-09-20 07:30:07 +00:00
Lasse Öörni
1cd73e46fd
Exposed StaticModelGroup to script. Ported HugeObjectCount example group mode switching to script versions.
2013-09-19 22:44:06 +00:00
Aster Jian
6e58119be9
Fixed typo error in comment.
2013-09-19 13:49:19 +00:00
Lasse Öörni
f3fa29a614
Fix crash when replacing shader with unshadowed or non-specular variation, and geometry type is something else than static.
...
Add billboard variation to Vegatation shader. The effect is not very good though, as the billboard vertices do not move individually.
2013-09-19 11:51:05 +00:00
Lasse Öörni
9443cce235
Use a temp variable when calculating a merged world bounding box, as OnWorldBoundingBoxUpdate() may be called re-entrantly from multiple worker threads.
2013-09-19 08:53:58 +00:00
Lasse Öörni
41f627b230
Fixed Urho3D.cpp compile error on VS2008.
...
Re-entrancy safety for StaticModelGroup::OnWorldBoundingBoxUpdate(): do not resize the worldTransforms_ vector. Instead set maximum size beforehand.
Do not make group mode light as bright in HugeObjectCount so that text remains easier to read.
2013-09-19 07:28:18 +00:00
Lasse Öörni
40c7c0f7af
Initialize geometry type of light volume batches.
2013-09-19 00:20:20 +00:00
Lasse Öörni
b3777b652c
Fixed StaticModel::SetModel() getting called instead of AnimatedModel::SetModel() in Lua script.
2013-09-18 23:42:48 +00:00
Lasse Öörni
247158b7d8
Added node IDs attribute to StaticModelGroup.
...
Added raycast & occlusion rendering to StaticModelGroup.
2013-09-18 22:53:10 +00:00
Wei Tjong Yao
e376dc4562
Identity the maintainer of the Urho3D/Lua fork. Regenerate toluabind.c and toluabind.h using bootstrap process. Only call 'standard' script functions when they are available and be silent about it when they are not defined in the Lua script.
2013-09-18 21:49:04 +00:00
Lasse Öörni
0f965d3443
Optimize StaticModelGroup by going through the objects in one pass during transform / bounding box update.
...
Change light color in HugeObjectCount when the group optimization is enabled.
2013-09-18 20:02:06 +00:00
Lasse Öörni
2e178f1976
Added virtual function to Component for handling node enabled/disabled change. This optimizes StaticModelGroup to not have to subscribe to the scene-global change event.
2013-09-18 19:38:22 +00:00
Aster Jian
0ddb13f148
Add Update, PostUpdate, Save, Load function in LuaScriptInstance, Add one more LoadXML and SaveXML in Scene, Add destructor function in Math lib.
2013-09-18 17:25:16 +00:00
Lasse Öörni
168b69c09d
Added StaticObjectGroup component for optimizing culling, light and drawcall processing. Update HugeObjectCount to use it. Not yet exposed to script.
2013-09-18 16:19:15 +00:00
Wei Tjong Yao
e1cf3a4b25
Fixed the include dir.
2013-09-18 10:21:08 +00:00
Wei Tjong Yao
9b023ae862
Add BCM VideoCore include directories globally for RASPI build.
2013-09-18 10:15:22 +00:00
Wei Tjong Yao
e039ba4b29
More useful debug info when loading font face.
2013-09-18 08:56:41 +00:00
Lasse Öörni
0201c1d961
Undefine TOLUA_RELEASE by default for better Lua crash protection. Re-enable with the CMake build option -DENABLE_SAFE_LUA=0.
...
Fixed some Variant constructors failing in Lua (removed void pointer constructor.)
Removed deprecated RenderMode enum.
Added Camera's ViewOverrideFlags to Lua.
Added MultipleViewports Lua sample.
2013-09-17 19:49:18 +00:00
Aster Jian
80acf3e718
Add CreateScriptObject GetScriptObject Lua API in Node class.
2013-09-17 10:42:14 +00:00
Wei Tjong Yao
5d04c531a1
Pass window resized event (due to device orientation change) from SDL to Urho3D::Graphics class for both Android and iOS as well. Note that the event is only sent when the application has not locked the orientation. Minor code cleaned up on LuaScript subsystem.
2013-09-17 09:55:26 +00:00
Lasse Öörni
216ec576f3
Removed VectorToArray optimization which caused debug mode crash.
2013-09-17 08:32:14 +00:00
Lasse Öörni
720ff4c3b8
Fix GCC build.
2013-09-17 07:24:47 +00:00
Lasse Öörni
c20257cdf7
Merged the shaderData_ and worldTransform_ members of Batch & SourceBatch. The idea is that a batch can define multiple world transforms. For static geometry this means instance transforms. For skinned geometry they are bone transforms instead.
...
Inlined some functions in View & Drawable.
2013-09-17 07:14:13 +00:00
Aster Jian
78a77a7e36
Add type parameter to VariantMap::GetPtr funcition, so we can get correct type in Lua.
...
Remove SetCamera and GetCamera etc function in VariantMap, pls use SetPtr and GetPtr.
2013-09-17 05:55:04 +00:00
Lasse Öörni
39fc6dfd64
Fix the scene loading/saving to work from Lua. Before, casts to Deserializer/Serializer would crash due to File's multiple-inheritance. Note that the file still needs to be closed manually.
2013-09-16 20:03:52 +00:00
Aster Jian
5b1879c0ff
Add unsubscribe from event functions in LuaScript and LuaScriptInstance.
2013-09-16 15:58:29 +00:00
Lasse Öörni
5f09777de0
Edit comment.
2013-09-15 23:44:33 +00:00
Lasse Öörni
dcb39bf810
Add note of Direct3D9 bool shader constants possibly having no effect.
...
Add support for Color shader parameters inside a Variant (same as Vector4.)
Parse bool shader parameters in Material & RenderPath.
2013-09-15 23:42:59 +00:00
Wei Tjong Yao
7594f8105a
Applied Raspberry Pi patch sent by Colin Barrett.
2013-09-15 23:35:13 +00:00
Wei Tjong Yao
46205d8efd
Fixed compilation error on D3D9Graphics class.
2013-09-15 23:18:01 +00:00
Wei Tjong Yao
51d2a7321a
Added support to pass boolean shader parameter value.
2013-09-15 21:57:14 +00:00
Lasse Öörni
4696717b7f
Code and comment cleanup.
2013-09-15 20:57:07 +00:00
Lasse Öörni
36892ae86c
Clear pending ID attributes when the script object is destroyed.
2013-09-15 20:49:02 +00:00
Lasse Öörni
81622fec98
Fixed ScriptInstance node / component handle attributes so that they go through the SceneResolver properly.
...
Use AM_FILE mode in ScriptInstance script attributes to make it more explicit that they aren't network-serialized automatically.
Update wiki.
2013-09-15 20:46:13 +00:00
Lasse Öörni
dda39f2b7d
Initial work for serializing Node / Component handles from a script object automatically.
2013-09-15 19:08:05 +00:00
Lasse Öörni
1034f8856f
Added scene load/save to C++ VehicleDemo.
2013-09-15 16:38:29 +00:00
Lasse Öörni
ef43398d7f
Added scene load/save to CharacterDemo, both C++ & script versions.
2013-09-15 10:51:27 +00:00
Lasse Öörni
311b66f859
Invert also quad projection when camera is inverted.
...
Fixed GLSL GetQuadTexCoordNoFlip() function.
2013-09-14 22:49:06 +00:00
Lasse Öörni
0f5456d35e
Avoid unnecessary rendertarget blitting in OpenGL light prepass mode.
...
Fixed too dark ambient lighting and environment cube mapping in OpenGL deferred mode.
Added new shader function GetQuadTexCoordNoFlip() which can be used to sample regular texture resources in postprocessing quad passes and documented it.
Removed Camera::SetFlipVertical() from the Lua script API as it should only be called internally to handle OpenGL / Direct3D9 differences.
2013-09-14 22:20:39 +00:00
Wei Tjong Yao
a5998c8c89
Cleaned up recent CMake module changes to use variable instead of string in regex matches.
2013-09-14 15:54:58 +00:00
Wei Tjong Yao
81af6af406
Fixed the Lua compilation error in GCC build by making sure the right Precompiled.h include file is found by adjusting the GCC include search path.
2013-09-14 09:56:11 +00:00
Aster Jian
8710d28a79
Convert Vector<String> to Lua table, remove const char* type.
2013-09-13 14:41:58 +00:00
Lasse Öörni
8489eca710
Do not needlessly check for Graphics subsystem in headless mode.
2013-09-13 13:11:55 +00:00
Aster Jian
16360d506f
Add default String parameter to tolua_tourho3dstring and tolua_tofieldurho3dstring.
2013-09-13 10:27:02 +00:00
Aster Jian
de816ebeaa
Remove Urho3D::String binding in Lua.
2013-09-13 05:44:28 +00:00
Aster Jian
26fb71536a
Add Urho3D::String support in tolua++.
2013-09-13 05:41:55 +00:00
Wei Tjong Yao
bb2205e690
Avoid hardcoding Lua API pkg names and at the same time improve build performance by having more granular dependency list.
2013-09-13 04:11:26 +00:00
Lasse Öörni
e9535c8336
Fix Lua SendEvent with parameters.
2013-09-12 17:59:32 +00:00
Lasse Öörni
fc0264e4b9
Set clamp address mode for all cube textures by default. In OpenGL mode seams may appear otherwise.
2013-09-12 17:21:06 +00:00
Aster Jian
0f52702801
Fixed Node::LookAtXYZ function default value.
2013-09-12 13:42:47 +00:00
Lasse Öörni
6f78838b5c
Cleaned up Lua event subscription code (do not register C++ handler before Lua function is found successfully.)
...
Moved Lua script object destruction to a function.
Destroy the old Lua script object before creating new.
Unref the object specific event handler functions when destroying Lua script object.
2013-09-12 07:34:16 +00:00
Aster Jian
d830da9801
Add new CreateObject function in LuaScriptInstance, so can create script object from specific Lua file.
2013-09-12 06:05:03 +00:00
Wei Tjong Yao
205fffb4ad
Refactored Sample.h to use class forward for Sprite class. Fixed the alignment of the forward classes to be inlined with convention used by other codes in Urho3D. Added the generated LuaScript wiki into SVN.
2013-09-12 05:44:23 +00:00
Aster Jian
c8df2956a2
Remove ExecuteFile function in Lua.
2013-09-12 05:23:03 +00:00
Lasse Öörni
a9f13ebdfe
Added LuaScriptInstance subscribe to specific sender's event.
2013-09-11 23:51:03 +00:00
Lasse Öörni
e234e9e8b6
Refactored slider page event parameters to be simpler and fixed unintended scrolling while hovering without mouse button pressed.
...
Change CheckBox to react to click begin (as it was before) so that ListView hierarchy toggling doesn't break.
2013-09-11 12:54:45 +00:00
Lasse Öörni
e4970dbde6
Fixed corrupted enum list of ListView.
2013-09-11 09:39:12 +00:00
Lasse Öörni
c089229104
Added documentation on HTTP requests.
2013-09-10 21:33:43 +00:00
Lasse Öörni
6350f246e6
Register HttpRequest to script.
...
Register Deserializer::Read() & Serializer::Write() to script. They operate on Array<uint8>.
Trim HttpRequest headers and do not add empty headers.
2013-09-10 21:11:39 +00:00
Aster Jian
c2eec49b7a
Add faster Lua API function in Node class.
2013-09-10 14:35:20 +00:00
Wei Tjong Yao
707668adfa
Removed call to finishActivity() as it is now being called from the native C code when the engine exits.
2013-09-10 13:23:03 +00:00
Lasse Öörni
c814081a7a
Only let the Java activity finish be requested once.
2013-09-10 13:15:29 +00:00
Lasse Öörni
554355ab63
Disable Engine::Exit() on iOS.
...
Disable Engine::SetAutoExit(false) on iOS and Android.
On Android, request activity finish from the Java side instead of directly exiting.
2013-09-10 13:01:07 +00:00
Lasse Öörni
8448215df6
Added proper ws2_32 & pthread dependencies for the Civetweb library.
2013-09-10 12:06:27 +00:00
Lasse Öörni
629d96473c
Added skybox material.
...
Demonstrate use of skybox in the Physics sample.
2013-09-10 09:16:13 +00:00
Lasse Öörni
d72a05fea0
Fixed repeat paging of the slider.
2013-09-10 07:00:00 +00:00
Aster Jian
caf5aa4118
Store Lua function to LUA_REGISTRYINDEX table, make better performance.
2013-09-10 05:13:50 +00:00
Lasse Öörni
26fabce801
Added Civetweb library for HTTP requests.
...
Implemented basic HTTP request functionality. Not exposed to script yet.
2013-09-09 21:58:24 +00:00
Aster Jian
dfc7647277
Replace table with spaces.
2013-09-09 06:50:17 +00:00
Aster Jian
f9e2d7c9d1
Add LuaScriptInstance class.
2013-09-09 06:32:58 +00:00
Lasse Öörni
4eadb9f6c8
Cleaned up HashTable code.
2013-09-08 23:13:45 +00:00
Lasse Öörni
1f87bcb9f9
Added HashTable class, which has fixed bucket count and a limited API to optimize for performance.
...
Use HashTable to store Technique's passes to speed up querying for them.
2013-09-08 20:23:51 +00:00
Wei Tjong Yao
1799bc5896
Replaced subversion command line tool detection logic as the previous one did not work for cross-compiling cases for Android and Raspberry-Pi. More deterministic Android shared library loading, dependent shared libraries shall be loaded first before the target application shared library.
2013-09-08 18:15:15 +00:00
Lasse Öörni
4741b3cf08
Added Blender exporter from Reattiva.
2013-09-08 10:51:02 +00:00
Lasse Öörni
a24fdc0e96
Check for existence of SVN before querying revision information; create a dummy svnversion.h if not found.
2013-09-08 10:22:16 +00:00
Lasse Öörni
033dcb4757
Setup resource copying on Xcode only, not Apple/GCC.
2013-09-08 09:47:52 +00:00
Lasse Öörni
c1e03c48db
Combine octree update & reinsertion queuing.
...
Queue only one large work item per thread for threaded Octree & View operations.
Protect the network replication dirty sets with mutex if nodes/components are inserted during the threaded update phase.
2013-09-07 21:08:40 +00:00
Lasse Öörni
a1f6681de3
Eliminated one loop of going through the drawables in View::GetDrawables(). Instead perform the same work in worker threads.
...
Early-exit StaticModel::CalculateLodLevels() if only one geometry per batch.
2013-09-07 16:02:09 +00:00
Lasse Öörni
18e1746e2b
Added forward declaration of Constraint to RigidBody.h.
2013-09-07 08:45:31 +00:00
Lasse Öörni
3a908a54c5
Improved Node, RigidBody & SmoothedTransform header comments in regard to world/parent coordinate spaces.
2013-09-06 16:55:10 +00:00
Lasse Öörni
4ce67126e2
Unversioned the SM2/SM3 shader bytecode destination directories. These are instead created by ShaderCompiler on demand.
2013-09-06 06:51:08 +00:00
Wei Tjong Yao
5b38ca8819
Avoid the assumption that E_CONSOLECOMMAND is only being handled by AngelScript and LuaScript subsystems. Cleaned up the direct dependencies to the script subsystems.
2013-09-06 06:03:15 +00:00
Lasse Öörni
2a9be0b23e
Cleaner fix for console crashes: only collect messages when posted, and print during PostUpdate.
...
Slightly darker error text color.
Updated script API & wiki.
2013-09-05 21:09:03 +00:00
Lasse Öörni
1d19abcda3
Further crash fix for Console and -logdebug mode.
2013-09-05 19:53:30 +00:00
Lasse Öörni
f950220350
Fixed potential crash if applying console style caused new messages to be logged.
...
As UIElement::GetAppliedStyle() returns an empty string for the 'auto' style, also allow to use SetStyle() with empty string to apply the auto style.
2013-09-05 19:26:17 +00:00
Lasse Öörni
372fbed88d
Normalize resource names in SanitateResourceName() if they also contain a registered resource dir name, ie. Data/Scripts/NinjaSnowWar.as becomes Scripts/NinjaSnowWar.as. This fixes script file possibly getting loaded twice.
...
Fixed renderer raycasts returning wrong distance.
Added caseSensitive parameter to several String functions.
Added option to convert file extension to lowercase in GetExtension() and GetFileNameAndExtension() functions.
Removed unnecessary lowercase conversion of extensions, and complicated string compare logic.
2013-09-05 14:57:45 +00:00
Aster Jian
411f6af885
Add const char* parameter to File's constructor.
2013-09-05 10:24:09 +00:00
Wei Tjong Yao
6bef92973d
Avoid hardcoding of highlighted console text style. Console subscribes to handle log message only when it itself is ready to do so. Removed redundant row container vector in the Console class. Hide the Console's linedit and preventing it to gain focus when there is no AngelScript or LuaScript subsystem to handle the E_CONSOLECOMMAND event. Fixed UIElement to send E_ELEMENTREMOVED event for RemoveChildAtIndex() method. Fixed Sample.lua to handle the ESC key to dismiss the Console when it is visible.
2013-09-05 08:55:05 +00:00
Aster Jian
1428423af1
Add GetEventSender function, Add Node::GetChild function.
2013-09-05 05:43:00 +00:00
Aster Jian
9f42299eb8
Set error text in red color make it highlight in console.
2013-09-05 02:40:06 +00:00
Lasse Öörni
caf0994b8f
Optimize vector/quaternion Normalize() to a no-op if already at unit length. Changed return value to void.
...
Optimize cache friendliness of Drawable bounding box update by including the local-space bounding box in the base class. Not used in all subclasses.
Optimize Drawable zone handling by making the zone pointers raw pointers instead of weak. Now finding a drawable's zone can be performed in the threaded view preparation phase.
Removed unnecessary collection of whole visible scene bounding box; it is not used anywhere.
2013-09-04 22:08:47 +00:00
Lasse Öörni
e6d0b4d3f3
Normalize ray direction in constructor.
2013-09-04 14:42:32 +00:00
Aster Jian
e803d1c844
Remove unsupported operator != in Color.pkg.
2013-09-04 12:42:09 +00:00
Aster Jian
90c29aecfb
Add type to some template method, lick Node::CreateComponent etc. Add LoadChunk and LoadAndExecute in LuaFile, Add DrawDebugGeometry in Renderer.
2013-09-04 11:52:10 +00:00
Lasse Öörni
05ba4bf719
Favor the non-parented case for SetWorld...() and for updating the world transform.
...
Explain in documentation that the Scene transform is ignored.
2013-09-04 08:26:47 +00:00
Lasse Öörni
580dd746cf
Removed transform attributes from Scene.
...
When a node has the Scene as its parent, assume the parent transform is identity and skip multiplication with the parent's transform.
2013-09-04 06:40:31 +00:00
Lasse Öörni
7a20f0ad03
Optimize repeated GetWorldBoundingBox() in Drawable::UpdateBatches() override functions.
...
Do not allocate dynamic memory every time when setting a single vertex buffer.
2013-09-03 21:41:52 +00:00
Lasse Öörni
be7636f823
Make the include path absolute in all script examples so that ScriptCompiler can compile them properly.
...
Renamed Octree::Resize() to Octree::SetSize()
When destroying a scene, destroy root-level components first so that child node components are detached from their internal structures and can be destroyed faster in turn.
Use raw pointers instead of weak pointers in Octree update/reinsertion lists for some performance gain.
2013-09-03 20:45:53 +00:00
Lasse Öörni
94a3c80e34
Added C++ version of HugeObjectCount example, and animation to both versions.
...
Added note of event subscription time to the first C++ example.
2013-09-03 19:32:10 +00:00
Lasse Öörni
a71f5fc588
Fixed bad performance of cleaning up a scene with many objects.
2013-09-03 17:49:15 +00:00
Lasse Öörni
6229e36a1e
Show filename for Lua subsystem error messages where possible.
2013-09-02 18:02:34 +00:00
Lasse Öörni
eef5b89766
Removed the retained message mode from the AngelScript subsystem. Instead, Application class will remember error log messages and display them if ErrorExit() is called without a custom message. This allows showing all error messages from Lua script subsystem equally.
2013-09-02 17:46:23 +00:00
Lasse Öörni
ccdd318eff
Use matching else-if construct in AngelScript & Lua Sample code.
...
Changed ErrorDialogs in the Lua subsystem to error logging (subsystems should not pop up dialogs on their own.)
2013-09-02 14:23:47 +00:00
Wei Tjong Yao
274c06d3a4
Use the else-if construct as the conditions are mutually exclusive.
2013-09-02 13:59:08 +00:00
Lasse Öörni
55ef6dd6c3
CharacterDemo & VehicleDemo in script.
2013-09-02 13:40:10 +00:00
Lasse Öörni
9cbea3b331
Added SoundEffects, Navigation, Chat & SceneReplication samples in script.
2013-09-02 00:05:05 +00:00
Lasse Öörni
b9cc284048
PhysicsStressTest & Ragdolls samples in script.
2013-09-01 17:36:01 +00:00
Lasse Öörni
869046d7cb
Added Physics sample in script.
2013-09-01 12:05:11 +00:00
Lasse Öörni
1eae2e13ab
Split UIElement::OnClick() to OnClickBegin() & OnClickEnd(), added global UIMouseClickEnd event, cleaned up Button & CheckBox click handling, based on Chris Friesen's work.
...
Fixed bug in FileSelector which would cause potentially any keypress to select a file.
Added missing icon for View3D UI element.
2013-09-01 10:52:46 +00:00
Lasse Öörni
c8a1bc96d7
Refactor UI to not duplicate code for touch and mouse handling.
2013-08-31 22:40:57 +00:00
Lasse Öörni
30b7905d98
Decals & MultipleViewports samples in script.
...
Fixed camera rotation in VehicleDemo.
2013-08-31 14:22:36 +00:00
Lasse Öörni
3c6a0f57d7
In the SoundEffects sample, start/stop music when buttons released.
2013-08-31 12:41:37 +00:00
Lasse Öörni
f7ac7eb713
Applied window fixed resizing patch from Sebastian Delatorre.
2013-08-31 10:28:48 +00:00
Lasse Öörni
956df0a8f6
Added SkeletalAnimation sample converted to script.
...
Use ScriptInstance component in AnimatingScene script sample to show the "raw" way of creating script objects.
Clamp function call count to 99999 in profiler text output, as otherwise the printing goes out of line.
2013-08-30 14:41:47 +00:00
Lasse Öörni
7f64104825
Added -p command line argument, which specifies resource paths to use.
...
Added IsAbsolutePath() function to FileSystem.
Removed unnecessary double error message from ResourceCache.
2013-08-30 11:03:07 +00:00
Lasse Öörni
7b4ae12fe0
Ported Sprites, StaticScene & AnimatingScene samples to AngelScript.
2013-08-29 21:34:34 +00:00
Lasse Öörni
10abc4414b
Ported HelloGUI sample to script.
2013-08-29 15:53:55 +00:00
Lasse Öörni
5094541394
Ported the first sample to AngelScript.
2013-08-29 14:11:34 +00:00
Wei Tjong Yao
59b5967910
Simplify the build script as ABSOLUTE_PATH_LIBS variable works both ways.
2013-08-29 09:40:35 +00:00
Wei Tjong Yao
643f066179
Use the ABSOLUTE_PATH_LIBS variable instead if the library is found. Just in case the library is found in a path that contains keywords that may be stripped.
2013-08-29 09:11:25 +00:00
Lasse Öörni
1674447226
Use absolute path of d3dcompiler library.
...
Fixed compiling when Direct3D SDK is not found.
2013-08-29 08:09:29 +00:00
Wei Tjong Yao
c3ea4d7a85
Adjusted Android logging level in SDLActivity java class. Added compiler flag for RASPI build to suppress warning spam about mangling of va_list. Cleaned up header includes in Urho3D class.
2013-08-29 06:34:12 +00:00
Aster Jian
367a930a93
Add Lua File class. Make Lua file as resource.
2013-08-29 05:56:35 +00:00
Lasse Öörni
26901cdc4c
Added vehicle sample.
2013-08-28 23:35:10 +00:00
Lasse Öörni
04b00263b0
Moved CharacterDemo to the samples.
...
Use forward declarations in the samples.
2013-08-27 21:45:43 +00:00
Wei Tjong Yao
a01f6ab183
Enhanced post-build automation for Android build to copy all dependent shared libraries to target library output directory.
2013-08-27 16:01:09 +00:00
Lasse Öörni
3b32acf27f
Added possibility to clear scene of only replicated or local content. Do not clear local content from a client scene when joining a server. This makes the startup of the SceneReplication sample faster, as the static scene is not replicated.
...
Exposed missing Node::RemoveAllComponents() to script.
2013-08-27 15:15:30 +00:00
Wei Tjong Yao
0812e0ac07
Cleanup remnant reference to now defunct variable.
2013-08-27 14:45:01 +00:00
Wei Tjong Yao
9419efa04f
Change the variable name back to STRIP_LIBS to avoid variable name clash with other macro.
2013-08-27 14:38:40 +00:00
Wei Tjong Yao
3efb36599a
Refactored Findxxxx and Urho3D-CMake-magic modules to let linker uses absolute path to the found libraries. Updated documentation accordingly.
2013-08-27 14:31:05 +00:00
Wei Tjong Yao
0ff4759eba
Fixed condition expression in post-cmake() function.
2013-08-27 05:09:31 +00:00
Lasse Öörni
dfb318b4f9
Added scene network replication sample.
2013-08-27 00:12:07 +00:00
Wei Tjong Yao
1051808eee
Android java classes code cleanup.
2013-08-26 15:44:37 +00:00
Wei Tjong Yao
3d9858020f
Enhanced SDLActivity java class to automatically load all the shared libraries. Enhanced the Urho3D-CMake-magic module to copy Urho3D shared library to target Android library output path.
2013-08-26 14:02:57 +00:00
Lasse Öörni
796d8871b9
Sample code cleanup.
2013-08-26 07:41:02 +00:00
Lasse Öörni
426d664990
Added network chat sample. Cleaned up UI creation code in SoundEffects sample.
...
Include kNet include dir when finding Urho3D library.
Reset the server connection pointer before sending disconnection event in the Network subsystem.
2013-08-25 23:42:22 +00:00
Lasse Öörni
31da083870
Disallow headless mode from the samples as they do not nullcheck eg. for the Graphics subsystem and would crash.
2013-08-25 21:25:15 +00:00
Lasse Öörni
cfb11454b4
Refactored raycast code in the Decals & Navigation samples.
...
Added adding & removing obstacles in the Navigation sample.
2013-08-25 20:50:04 +00:00
Lasse Öörni
829bd2a221
Clean up some comments.
2013-08-25 18:52:02 +00:00
Lasse Öörni
fc1c2e6f13
Initial Navigation sample.
...
Added overload of NavigationMesh::DrawDebugGeometry() that finds the DebugRenderer component from the root scene node automatically.
2013-08-25 18:47:48 +00:00
Lasse Öörni
506915adca
Applied physics patch from amadeus_osa. Do not make a copy of triangle mesh collision data, improved constraint behavior under external forces (fix from Bullet SVN.)
2013-08-25 17:01:41 +00:00
Wei Tjong Yao
cd91a6f1f7
Always use non-rooted search (even when cross-compiling) to find the source tree and library based on URHO3D_HOME environment variable.
2013-08-25 16:44:03 +00:00
Lasse Öörni
dee404c133
Removed unnecessary conversion step from RampGenerator.
2013-08-25 15:53:19 +00:00
Lasse Öörni
c9e2b49f5d
Queue update when View3D scene changed.
2013-08-25 12:31:23 +00:00
Lasse Öörni
c46d4a1972
Added missing license texts.
2013-08-25 12:15:22 +00:00
Lasse Öörni
9ff0247c68
Applied material editor preview patch from primitivewaste, which also adds View3D UI element class.
2013-08-25 12:11:52 +00:00
Lasse Öörni
056acfcc68
Added sound effects example.
2013-08-25 09:20:56 +00:00
Wei Tjong Yao
463ce2a65d
Enabled option to build Urho3D static and shared library (without main entry point) for Android. Fixed debug compiler flags being defined multiple times for Android build. Added post-build command to strip the generated Urho3D shared library if it is built for embedded devices. Enhanced cmake_gcc.sh to automatically fix the generated Eclipse project setting files for Android build.
2013-08-25 08:08:52 +00:00
Lasse Öörni
e7558a3be9
Demonstrate rolling friction in the Ragdolls sample.
2013-08-24 20:21:16 +00:00
Lasse Öörni
2271d6ba83
Added Ragdolls sample.
...
Added template version of RemoveComponent to Node.
2013-08-24 14:20:02 +00:00
Aster Jian
6aceaa40e0
Restore CMakeLists.txt, remove UIRocket.
2013-08-23 11:01:03 +00:00
Aster Jian
92a3cd6eec
2013-08-23 10:49:41 +00:00
Lasse Öörni
31f4ac0bab
Larger plane in the Physics sample.
2013-08-23 05:09:26 +00:00
Aster Jian
861dfadfa3
Add missing header file.
2013-08-23 04:37:08 +00:00
Lasse Öörni
81d87af14c
Make the mesh objects larger for more interesting collision response.
2013-08-22 21:29:45 +00:00
Lasse Öörni
e7e469cf5a
Added PhysicsStressTest sample.
2013-08-22 21:23:20 +00:00
Lasse Öörni
42093ea88c
Allow programmatic control of the mip reduction settings of Texture.
...
Fixed fonts loading incorrectly when texture quality is not at maximum.
2013-08-22 20:36:52 +00:00
Lasse Öörni
58903874f7
Scene node name consistency in the samples.
2013-08-22 06:35:49 +00:00
Lasse Öörni
056a071ed2
Adjusted physics sample materials. Let the boxes fall a bit in the beginning.
...
Copy export header only if it has changed to prevent unnecessary engine rebuild.
2013-08-22 06:30:41 +00:00
Wei Tjong Yao
c41f52c38d
Added Bullet source directory into header search path for finding its debug draw interface class header file.
2013-08-22 03:49:53 +00:00
Lasse Öörni
b8882c588f
Adjust the physics sample initial object positions & friction.
2013-08-21 23:07:16 +00:00
Lasse Öörni
497bd8c101
Added Physics sample.
2013-08-21 22:58:41 +00:00
Lasse Öörni
c14bf5bd69
Added Bullet rolling friction parameter to RigidBody.
...
RigidBody code cleanup.
2013-08-21 18:44:58 +00:00
Wei Tjong Yao
309218444d
Fixed keyboard event handler for Raspberry Pi platform - have to translate native scancode to SDL scancode first for key modifiers to work.
2013-08-21 15:33:19 +00:00
Lasse Öörni
27f1f3ec59
Use the same object count in RenderToTexture as in AnimatingScene.
2013-08-21 10:03:22 +00:00
Lasse Öörni
dbdafefaae
Set bilinear filter on the render texture so it looks better up close.
2013-08-20 23:29:36 +00:00
Lasse Öörni
99b2724708
Adjust object & camera position in the RenderToTexture sample.
2013-08-20 23:27:41 +00:00
Lasse Öörni
87a6ee9578
Added MultipleViewports & RenderToTexture samples.
...
Added diffuse unlit & notexture unlit techniques.
Do not use occlusion if viewport is very tall compared to width, as the pixel width of the occlusion buffer is fixed and would result in large CPU time consumption.
2013-08-20 23:23:42 +00:00
Lasse Öörni
4a31966a14
Updated comments in the samples.
...
Updated script API.
2013-08-20 07:08:02 +00:00
Lasse Öörni
e4ed439148
Added common rendering quality controls to all samples.
...
Fixed quality for the Logo & LogoLarge textures.
2013-08-20 06:39:01 +00:00
Lasse Öörni
7de74e6d83
Fixed AnimatedModel bone bounding box not updating when bones are moved without animation, eg. ragdolls.
...
Remove AnimationController & all AnimationStates from the ragdolls when creating.
2013-08-19 22:52:49 +00:00
Lasse Öörni
cc494ac7e7
Added safety check for the number of animation states.
2013-08-19 20:31:00 +00:00
Lasse Öörni
54a0c90d7a
Update AnimatedModel's bounding box with bone accuracy only when the animation is updated. Otherwise transform the previous last calculated bone bounding box. This results in a significant performance boost when a large amount of AnimatedModels are both moved, and animated.
2013-08-19 20:24:01 +00:00
Lasse Öörni
0f4fbda5fb
Added Decals example.
...
Refactored SkeletalAnimation example to use a custom component as well.
2013-08-19 19:45:27 +00:00
Lasse Öörni
40d345ab24
Copy import library separately to Lib directory for a MSVC shared library build.
2013-08-19 14:46:22 +00:00
Wei Tjong Yao
3d48e05714
Fixed find_library() command in FindUrho3D.cmake module to correctly separate list variables with their respective argument separator.
2013-08-19 07:41:44 +00:00
Wei Tjong Yao
727d417bde
Enhanced FindUrho3D.cmake module to find library with debug postfix on windows platform. It should work for all build configurations.
2013-08-19 07:19:03 +00:00
Wei Tjong Yao
cfc4ae497f
Enhanced FindUrho3D.cmake module to find library with debug postfix on windows platform.
2013-08-19 07:03:34 +00:00
Wei Tjong Yao
9b8b2580b9
Added '_d' postfix when building Urho3D library in Debug configuration on Windows platform.
2013-08-19 06:10:00 +00:00
Lasse Öörni
1590de8b63
Removed offending function from SDL which prevented proper startup when Urho3D was built as a shared library on Windows.
2013-08-19 00:37:28 +00:00
Lasse Öörni
8f240d46bf
Disable some more DLL build related warnings.
2013-08-18 22:15:56 +00:00
Lasse Öörni
9f9a238836
Windows shared library build fixes.
2013-08-18 20:26:10 +00:00
Lasse Öörni
26a9bc763e
Added Temporary flag to Serializable, which means it will not be saved if enabled. Currently the sub-nodes created by Terrain are marked temporary.
...
Temporary objects are by default not shown in the editor.
Added trigonometric functions which take degrees argument into the C++ API, not just script.
Edited the Billboards sample.
Made the Urho3D logo in the samples slightly transparent.
2013-08-18 16:50:28 +00:00
Wei Tjong Yao
594457df82
Removed line to define ENABLE_64BIT for Visual Studio based on cmake generator as the define must already been set explicitly when invoking cmake_vsxxxx.bat in order to get Win64 generator. Fixed the expression to check whether ENABLE_TOOLS is defined. Minor update on build options documentation.
2013-08-18 06:16:16 +00:00
Lasse Öörni
a9eb0e1e61
Added Billboards sample.
...
Some code cleanup/formatting of the other samples.
2013-08-17 23:45:09 +00:00
Lasse Öörni
f74f4dd6f8
Moved the logic for determining whether to use executable directory or the current working directory into FileSystem::GetProgramDir().
2013-08-17 21:09:47 +00:00
Lasse Öörni
1ef35d353c
Added skeletal animation sample.
...
Fixed build of samples.
Removed line to disable MinSizeRel build type in CMake script as it seems to have no effect any longer.
Removed unused function to get AnimationState by C string of animation name.
2013-08-17 18:38:07 +00:00
Lasse Öörni
7d235c8458
Added touch input double click handling in the UI.
...
Fixed CopyData.bat paths.
2013-08-17 13:43:25 +00:00
Wei Tjong Yao
dfd142c7d2
Added Raspberry Pi bootstrap back to fix raspi build. Moved the xmlstarlet logic to cmake_gcc.sh for code reuse. Added ANDROID_ABI into build options documentation.
2013-08-17 06:27:32 +00:00
Wei Tjong Yao
ccd6a926ae
Added Urho3D library build option for IOS.
2013-08-16 08:56:55 +00:00
Lasse Öörni
45e0907cb8
Use D3D_SDK_VERSION when initializing the Direct3D9 device.
2013-08-16 08:35:38 +00:00
Wei Tjong Yao
cd59d5de56
Assume MinGW generates object files with .obj as suffix.
2013-08-16 06:49:05 +00:00
Lasse Öörni
9047bfa1ab
Use DLL runtime by default. Proper fix for building the Urho3D library with VS2008.
2013-08-15 23:00:10 +00:00
Lasse Öörni
ce9154d545
Added missing URHO3D_API defines to some derived classes.
...
Fixed obj file copying when building Urho3D library on VS and not using USE_MKLINK.
2013-08-15 21:02:54 +00:00
Wei Tjong Yao
478ace41cc
Determine the relative path to the CoreData and Data directories correctly for symlink creation, regardless of main executable target location in project source tree.
2013-08-15 18:58:39 +00:00
Wei Tjong Yao
79861d9ee9
Changed the regex replacement command with get_filename_component() command.
2013-08-15 17:30:43 +00:00
Wei Tjong Yao
d37cb04fd9
Added post-build custom command when setting up main executable to facilitate debugging and running the main executable within Xcode itself.
2013-08-15 17:18:34 +00:00
Lasse Öörni
10b4fd2438
Improved fix for OS X fullscreen transition problem.
2013-08-15 07:16:49 +00:00
Lasse Öörni
e903c5edff
Before closing an OpenGL SDL window, set it to windowed to fix annoying transition effect on OS X.
2013-08-15 00:00:25 +00:00
Lasse Öörni
0900977b78
Applied some post-SDL 2.0.0 fixes from SDL official repository.
2013-08-14 22:49:34 +00:00
Lasse Öörni
8f0182d1e9
In case SDL's window resize event is handled late, use the current window size at the time of handling, not the event parameters.
...
Removed unnecessary OS X SDL modification.
2013-08-14 21:42:59 +00:00
Lasse Öörni
9afac28ea0
Do not treat DirectX SDK not found as a fatal error, as it is still possible to compile if eg. Windows 8 SDK is installed instead.
2013-08-14 21:17:32 +00:00
Lasse Öörni
6b4a5fd296
Added cmake_mingw.bat contributed by Mika Heinonen.
2013-08-14 15:30:20 +00:00
Wei Tjong Yao
3fd0638d62
Removed no-warn-unused-cli option as it hid typo error in passing build options.
2013-08-13 23:11:36 +00:00
Lasse Öörni
a899f7293e
Capitalize name of CMake script directory.
2013-08-13 20:51:20 +00:00
Lasse Öörni
5bfde24e0b
Updated to stable SDL 2.0.
2013-08-13 13:20:59 +00:00
Wei Tjong Yao
ed01bd0959
Fixed Application class namespace declaration.
2013-08-12 17:04:57 +00:00
Wei Tjong Yao
4db3bbaf07
Added SDL include directory into header search path.
2013-08-12 13:39:47 +00:00
Lasse Öörni
e2d2c01636
Added AnimatingScene sample.
2013-08-11 22:24:26 +00:00
Lasse Öörni
972124649e
Include only one haptic driver (either windows or dummy) on Windows to fix MinGW build without DX joystick support, and to ensure no duplicate object file names.
2013-08-11 20:47:50 +00:00
Wei Tjong Yao
ddc3670238
Attempt to fix MinGW build and some other code cleanup.
2013-08-11 14:30:22 +00:00
Wei Tjong Yao
217c851811
Create out-of-source build directory for Android on Windows platform when mklink option is enabled.
2013-08-10 17:58:33 +00:00
Wei Tjong Yao
5f32c9dfd0
Rectified source code alignment.
2013-08-10 15:50:51 +00:00
Wei Tjong Yao
83302c3de4
Added mklink support for VS generator, enable by specifying '-DUSE_MKLINK=1'
2013-08-10 15:49:09 +00:00
Wei Tjong Yao
63a1dcc892
Use symlink to object directory instead of direct copying for Xcode.
2013-08-10 04:53:24 +00:00
Wei Tjong Yao
a01faa3ef2
Fixed static and shared library build using Xcode.
2013-08-09 16:19:58 +00:00
Wei Tjong Yao
38ae7f36c5
Fixed the resource path for MacOSX.
2013-08-09 11:26:47 +00:00
Wei Tjong Yao
4524754fda
Reverted back to use native copy command.
2013-08-09 10:57:52 +00:00
Wei Tjong Yao
c789be7259
Reverted back Android project properties.
2013-08-09 10:32:07 +00:00
Wei Tjong Yao
02512cecf9
In order to move the out-of-source 'build' directory back to Urho3D project root directory, all the source codes sub-directories are now moved down one level to a new directory under project root called 'Source'.
2013-08-09 10:29:22 +00:00