Commit Graph

2197 Commits

Author SHA1 Message Date
urho3d-travis-ci
55784b8313 Travis CI: API documentation update at 2014-02-06 15:44:29 UTC.
[ci skip]
2014-02-06 15:44:30 +00: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
urho3d-travis-ci
ab10823b05 Travis CI: API documentation update at 2014-02-06 11:38:01 UTC.
[ci skip]
2014-02-06 11:38:01 +00:00
Lasse Öörni
f6ca1a7bf6 Added link to the updated Blender-to-Urho3D exporter repository. 2014-02-06 11:41:58 +02:00
urho3d-travis-ci
adbc03bcc6 Travis CI: API documentation update at 2014-02-06 06:03:09 UTC.
[ci skip]
2014-02-06 06:03:09 +00:00
urho3d-travis-ci
4ee3bd492f Travis CI: API documentation update at 2014-02-05 21:29:38 UTC.
[ci skip]
2014-02-05 21:29:38 +00:00
Lasse Öörni
381e9a04c3 Merge branch 'shader-refactor' 2014-02-05 20:54:56 +02:00
Lasse Öörni
6748a17440 Updated credits. 2014-02-05 16:59:20 +02:00
urho3d-travis-ci
de104909af Travis CI: API documentation update at 2014-02-05 12:53:33 UTC.
[ci skip]
2014-02-05 12:53:33 +00:00
Lasse Öörni
63bd03c6d6 Added document section on UI textures. 2014-02-04 18:05:17 +02:00
Lasse Öörni
c683652b9d Shader migration instructions. 2014-02-04 12:45:26 +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
Lasse Öörni
66ab76611a Minor documentation edit. 2014-02-03 17:09:41 +02:00
Lasse Öörni
383e248b44 Updated documentation for techniques, shaders and renderpaths. 2014-02-03 16:44:02 +02:00
Lasse Öörni
dc5f4a1834 Merge branch 'master' into shader-refactor 2014-02-03 13:57:52 +02:00
urho3d-travis-ci
664a3a5a9b Travis CI: API documentation update at 2014-02-03 09:10:16 UTC.
[ci skip]
2014-02-03 09:10:16 +00:00
urho3d-travis-ci
c48c1b38a4 Travis CI: API documentation update at 2014-02-03 07:22:40 UTC.
[ci skip]
2014-02-03 07:22:40 +00: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
urho3d-travis-ci
4d142b315e Travis CI: API documentation update at 2014-02-02 15:42:59 UTC.
[ci skip]
2014-02-02 15:42:59 +00: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
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
urho3d-travis-ci
7da9208b15 Travis CI: API documentation update at 2014-02-01 00:04:28 UTC.
[ci skip]
2014-02-01 00:04:28 +00: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
urho3d-travis-ci
0553058d58 Travis CI: API documentation update at 2014-01-30 18:21:27 UTC.
[ci skip]
2014-01-30 18:21:27 +00:00
urho3d-travis-ci
15621208ce Travis CI: API documentation update at 2014-01-29 19:11:41 UTC.
[ci skip]
2014-01-29 19:11:41 +00:00
aster2013
e46a159ce0 Update documentation. 2014-01-29 23:23:27 +08:00
urho3d-travis-ci
b4c67e545e Travis CI: API documentation update at 2014-01-29 08:09:08 UTC.
[ci skip]
2014-01-29 08:09:08 +00:00
urho3d-travis-ci
aab95e149b Travis CI: API documentation update at 2014-01-28 12:32:22 UTC.
[ci skip]
2014-01-28 12:32:22 +00:00
urho3d-travis-ci
ae6a4d7676 Travis CI: API documentation update at 2014-01-28 01:06:48 UTC.
[ci skip]
2014-01-28 01:06:48 +00:00
Lasse Öörni
d2117ba01f For now do not attempt to use 3D textures on OpenGL ES. 2014-01-28 02:51:13 +02:00
aster2013
073854bfb3 Update Audio Lua API. 2014-01-27 23:05:52 +08:00
urho3d-travis-ci
80b5b7f52b Travis CI: API documentation update at 2014-01-27 14:24:36 UTC.
[ci skip]
2014-01-27 14:24:36 +00:00
aster2013
38c8f19fb4 Convert all Vector<T> and PODVector<T> to Lua table. 2014-01-27 22:07:57 +08:00
urho3d-travis-ci
d2f98dddcc Travis CI: API documentation update at 2014-01-27 06:40:45 UTC.
[ci skip]
2014-01-27 06:40:45 +00:00
urho3d-travis-ci
e2aa098a6b Travis CI: API documentation update at 2014-01-26 14:45:26 UTC.
[ci skip]
2014-01-26 14:45:26 +00:00
urho3d-travis-ci
188aa59e35 Travis CI: API documentation update at 2014-01-26 12:40:59 UTC.
[ci skip]
2014-01-26 12:40:59 +00:00
Lasse Öörni
936f19d2a2 Added external projects/links documentation page. 2014-01-26 14:27:42 +02:00
Yao Wei Tjong 姚伟忠
b740d94a56 Minor documentation update on build options to better use of space. 2014-01-25 16:07:30 +08:00
urho3d-travis-ci
1fb823ef0f Travis CI: API documentation update at 2014-01-24 07:33:29 UTC.
[ci skip]
2014-01-24 07:33:30 +00:00
urho3d-travis-ci
1e5ee94132 Travis CI: API documentation update at 2014-01-23 10:32:31 UTC.
[ci skip]
2014-01-23 10:32:31 +00:00
Lasse Öörni
4b739dc15c Added contributor. 2014-01-23 11:37:12 +02:00
Lasse Öörni
0c393f915a Added note of clip plane being unsupported on OpenGL ES 2.0. 2014-01-22 00:52:38 +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
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
urho3d-travis-ci
983b32dac6 Travis CI: API documentation update at 2014-01-20 08:35:31 UTC.
[ci skip]
2014-01-20 08:35:31 +00:00
Lasse Öörni
18e2349ae1 Added script bindings for the new SDL controller constants. Updated Input documentation. 2014-01-20 10:19:50 +02:00
urho3d-travis-ci
f2de586353 Travis CI: API documentation update at 2014-01-19 22:34:55 UTC.
[ci skip]
2014-01-19 22:34:55 +00:00
Lasse Öörni
7f80c53be5 Fixed line breaks in credits. 2014-01-19 15:51:10 +02: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
urho3d-travis-ci
ac9c16b943 Travis CI: API documentation update at 2014-01-18 19:04:40 UTC.
[ci skip]
2014-01-18 19:04:40 +00: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
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
urho3d-travis-ci
5eaf9a0d9d Travis CI: API documentation update at 2014-01-18 13:02:12 UTC.
[ci skip]
2014-01-18 13:02:12 +00:00
urho3d-travis-ci
fafde877a9 Travis CI: API documentation update at 2014-01-17 18:15:15 UTC.
[ci skip]
2014-01-17 18:15:15 +00:00
urho3d-travis-ci
de2165fc15 Travis CI: API documentation update at 2014-01-16 14:11:42 UTC.
[ci skip]
2014-01-16 14:11:42 +00:00
urho3d-travis-ci
5fe310f9b6 Travis CI: API documentation update at 2014-01-15 20:49:20 UTC.
[ci skip]
2014-01-15 20:49:20 +00: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
urho3d-travis-ci
0af251dfc9 Travis CI: API documentation update at 2014-01-12 12:44:17 UTC.
[ci skip]
2014-01-12 12:44:17 +00:00
Lasse Öörni
56c91aa1a0 Added Assimp logging option to AssetImporter. 2014-01-08 15:47:59 +02:00
urho3d-travis-ci
5670681373 Travis CI: API documentation update at 2014-01-05 23:24:56 UTC.
[ci skip]
2014-01-05 23:24:56 +00:00
urho3d-travis-ci
f4dd154c06 Travis CI: API documentation update at 2014-01-05 18:04:26 UTC.
[ci skip]
2014-01-05 18:04:26 +00: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
urho3d-travis-ci
788b9faf21 Travis CI: API documentation update at 2014-01-05 05:32:55 UTC.
[ci skip]
2014-01-05 05:32:55 +00:00
Lasse Öörni
acc4ccc18e Documented the screen keyboard. 2014-01-05 01:20:30 +02:00
urho3d-travis-ci
9600c55465 Travis CI: API documentation update at 2014-01-03 19:53:08 UTC.
[ci skip]
2014-01-03 19:53:08 +00:00
Lasse Öörni
7f061206dc Add the byKey parameter to script bindings of SetFocusElement(). 2014-01-03 21:32:53 +02:00
Lasse Öörni
28254f9a1d Improved the "Overall structure" documentation page. 2014-01-03 11:59:49 +02:00
urho3d-travis-ci
674880cce3 Travis CI: API documentation update at 2014-01-03 08:53:13 UTC.
[ci skip]
2014-01-03 08:53:14 +00: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
f095a6d597 Update documentation on script event handling. 2014-01-03 01:36:11 +02:00
urho3d-travis-ci
776e775012 Travis CI: API documentation update at 2014-01-02 14:33:45 UTC.
[ci skip]
2014-01-02 14:33:45 +00:00
urho3d-travis-ci
34f4c16446 Travis CI: API documentation update at 2014-01-01 18:51:07 UTC.
[ci skip]
2014-01-01 18:51:07 +00:00
urho3d-travis-ci
0c6c107935 Travis CI: API documentation update at 2014-01-01 10:34:53 UTC.
[ci skip]
2014-01-01 10:34:53 +00: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
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
b6d5fa48b5 Update documentation. 2013-12-28 02:44:31 +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
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
Yao Wei Tjong 姚伟忠
e52bc6e45d Fix Editor argument parsing to load startup scene correctly. 2013-12-26 15:10:37 +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
d1bb9ec52b Document GLSL sampler to texture unit mapping. 2013-12-23 15:04:07 +02:00
Lasse Öörni
94391e462a Added instructions on how to prefix uniforms in shaders. 2013-12-23 14:58:53 +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
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
Lasse Öörni
746e2331df Update credits. 2013-12-19 09:17:50 +02:00
Yao Wei Tjong 姚伟忠
4f73aa26b9 Fix how tolua++ renaming is being documented in Lua generated API. 2013-12-19 11:42:33 +08:00
Lasse Öörni
c7e72b02da Restore previous camera yaw + pitch control, but add a toggle in settings dialog to control whether the pitch is clamped between -90 and 90 degrees. 2013-12-18 21:59:17 +02:00
Lasse Öörni
4b8cc596f9 Merge remote-tracking branch 'remotes/petex/master' 2013-12-18 20:14:57 +02:00
Lasse Öörni
b496594203 Update credits. Normalize whitespace. 2013-12-18 11:56:16 +02:00
Pete Chown
62a455da7c Document the view keys (Numpad 1, 3, 7) and the ascend/descend keys (E, Q). 2013-12-17 23:51:04 +00: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
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
dc6294af16 Added generated event list documentation page. Closes #66. 2013-12-08 01:39:36 +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
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
Yao Wei Tjong 姚伟忠
04404b768d Update documentation page to link back to shorten Urho3D website URL. 2013-12-06 00:03:01 +08:00
Yao Wei Tjong 姚伟忠
89a05a8017 Update documentation to reference back to new main site. 2013-12-04 23:53:35 +08: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
026e838d5b Retired the unused DocConverter utility. 2013-11-30 16:53:25 +02:00
Yao Wei Tjong 姚伟忠
dbad819c3b Only use natively built tool for dumping API to doxygen files.
(Pardon the dust)
2013-11-27 21:06:41 +08: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 姚伟忠
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
Yao Wei Tjong 姚伟忠
6e18827fd7 Clean up the documetation. 2013-11-25 22:02:41 +08: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
Yao Wei Tjong 姚伟忠
cff6d6a4d8 Document the importance of URHO3D_STATIC_DEFINE when static linking. 2013-11-24 10:17:02 +08: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
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 姚伟忠
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
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
51c892eff5 Refresh the generated scripting API docs. 2013-11-14 17:32:35 +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 姚伟忠
f246126fe4 Update documentation on Using Urho3D library. 2013-11-14 15:10:55 +08: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
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
2c0c10cdcb Renamed "Example applications" Doxygen page to "Examples". 2013-11-12 01:42:58 +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 姚伟忠
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
Yao Wei Tjong 姚伟忠
1b97acc6f3 Minor documentation update for Raspberry Pi cross-compiling build. 2013-11-06 22:53:45 +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 姚伟忠
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
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
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 姚伟忠
f442c0c16a Updated documentation on additional Linux software package for RPI. 2013-10-29 21:28:38 +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
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
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
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
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
f39702a07e Terminology edits in the documentation. Do not refer to Graphics, Scene etc. as separate libraries anymore. 2013-10-22 00:58:58 +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
fe14af594f Added documentation section on Lua garbage collection. 2013-10-20 12:12:18 +03: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
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
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
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
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
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
1463b67a70 Added documentation on the package file format. 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
Yao Wei Tjong
8d94a287d5 Make batches consistent with shell script behavior.
Batch reads from CMake cache, if necessary, when the option is not passed explicitly.
2013-10-12 12:23:57 +08: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
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
weitjong
d98c8b4d64 Updated documentation on build option being cached. 2013-10-06 14:01:10 +08: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
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
weitjong
242f317ddd Configure Doxyfile according to the value of USE_OPENGL variable. 2013-10-03 17:41:17 +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
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
Lasse Öörni
0618b5fc94 Added LuaJIT license and documented the LuaJIT CMake option. 2013-09-29 22:29:24 +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
Lasse Öörni
bd9f229045 Documented the optimization underlying node transform dirty notifications; you must use eg. GetWorldPosition() to undirty the node to get further notifications. 2013-09-28 18:12:29 +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
Lasse Öörni
d90a9168cf Applied joystick index patch from Gunnar Kriik. 2013-09-25 21:51:32 +00:00
Lasse Öörni
d22dab085d Restored Variant constructors & equality operators. 2013-09-25 14:30:24 +00:00
Wei Tjong Yao
363a4055ea Differentiate between batch option with CMake build option to prevent CMake warning on unused define. Reorder the position of optional CMake options according CMake usage documentation. Highlight the out-of-source build in change history. 2013-09-25 09:50:02 +00:00
Wei Tjong Yao
be8525ab6e Updated documentation to confirm the existing AngelScript viewing/editing fix also work with Xcode 5 on Mountain Lion. 2013-09-25 05:10:50 +00:00
Lasse Öörni
6228209b6f Allow dragging scene nodes to a StaticModelGroup component in the editor to make them instance nodes.
Allow dragging a scene node to a Constraint component to make it the constraint's remote end.
2013-09-24 22:52:25 +00:00
Lasse Öörni
775cea68bb Regenerate Lua API to match AngelScript API page formatting. 2013-09-24 20:38:42 +00:00
Lasse Öörni
b8a3157e91 Show enumerations in the generated AngelScript API. 2013-09-24 20:12:08 +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
247947f2b1 Update document. 2013-09-23 15:11:34 +00:00
Lasse Öörni
64e826c3e3 Update changelog.
Position the editor windows lower so that they don't overlap the stats-text in default windowed resolution.
2013-09-23 00:22:30 +00:00
Lasse Öörni
93fe884ceb Update script API. 2013-09-22 23:55:32 +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
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
Lasse Öörni
3c60b5f2d0 Applied patch from Ali Kämäräinen. VS2013 support, ifexists checks when deleting old VS build files, and improved Tundra import. 2013-09-22 17:04:15 +00:00
Lasse Öörni
cf50bb9f39 Optionally remember last resource path in editor.
Remember last import path in editor.
Set node / scene / UI element picker paths from remembered resource path if possible.
2013-09-22 12:18:14 +00:00
Lasse Öörni
da45ff6b6b Added SceneReplication Lua sample. 2013-09-21 22:08:05 +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
Lasse Öörni
b3777b652c Fixed StaticModel::SetModel() getting called instead of AnimatedModel::SetModel() in Lua script. 2013-09-18 23:42:48 +00:00
Aster Jian
b75e301f8b Update Lua script API documention. 2013-09-18 17:26:36 +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
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
Wei Tjong Yao
0c02a88add Supplement documentation regarding UI default style file. 2013-09-16 16:40:19 +00:00
Aster Jian
5b1879c0ff Add unsubscribe from event functions in LuaScript and LuaScriptInstance. 2013-09-16 15:58:29 +00:00
Lasse Öörni
22d579eea7 Documented the need to either specify a UI style file when loading a layout, or having it set to the root element beforehand. 2013-09-16 14:46:26 +00:00
Wei Tjong Yao
27a68828ce Corrected typo in documentation for renderpath's quad command. 2013-09-15 21:10:31 +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
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
Lasse Öörni
f0a965c912 Added quick menu feature to editor contributed by Chris Friesen. Open with Ctrl+Space. 2013-09-14 10:54:06 +00:00
Aster Jian
9098cd92c4 Update LuaScriptAPI document. 2013-09-13 16:33:04 +00:00
Aster Jian
0f52702801 Fixed Node::LookAtXYZ function default value. 2013-09-12 13:42:47 +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
Aster Jian
d41b4853c0 Fixed some errors in LuaScriptAPI.dox, Add LuaScriptAPI.dox to Urho3D.dox. 2013-09-12 05:21:57 +00:00
Lasse Öörni
a9f13ebdfe Added LuaScriptInstance subscribe to specific sender's event. 2013-09-11 23:51:03 +00:00
Aster Jian
0eaadbb3eb Add Lua Script API document. 2013-09-11 12:54:39 +00:00
Lasse Öörni
54e0691610 Fixed errors/omissions from the Example Applications doxygen page. 2013-09-10 22:18:30 +00:00
Lasse Öörni
0d478d91ff Updated documentation regarding Engine::Exit(). 2013-09-10 21:37:55 +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
Lasse Öörni
e90e99536a Documentation update. 2013-09-09 22:00:14 +00:00
Lasse Öörni
4741b3cf08 Added Blender exporter from Reattiva. 2013-09-08 10:51:02 +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
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
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
2f9b955f3c Script API update. 2013-09-03 20:46:58 +00:00
Lasse Öörni
a0e4538f58 Actually removed the old QuickStart documentation text.
Moved the Xcode AngelScript instructions to the Urho3D script host page.
2013-09-03 09:00:03 +00:00
Lasse Öörni
c9865078ad List tools in alphabetical order in the documentation; fixed outdated information. 2013-09-02 21:11:28 +00:00
Lasse Öörni
76161aaecf Build documentation update. 2013-09-02 21:01:57 +00:00
Lasse Öörni
8da3fa5860 Documentation tweaks. 2013-09-02 20:40:06 +00:00
Lasse Öörni
4cc1858329 Removed the old large script example applications and batch files to start them.
Updated documentation for the new sample applications.
Changed the Lua sprite example to use the common sample initialization.
2013-09-02 18:50:15 +00:00
Lasse Öörni
68892cae15 Credits fix. 2013-08-31 17:13:38 +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
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
04b00263b0 Moved CharacterDemo to the samples.
Use forward declarations in the samples.
2013-08-27 21:45:43 +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
Lasse Öörni
e7558a3be9 Demonstrate rolling friction in the Ragdolls sample. 2013-08-24 20:21:16 +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
4a31966a14 Updated comments in the samples.
Updated script API.
2013-08-20 07:08:02 +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
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
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
5255039db0 Fixed Doxyfile source code path. 2013-08-14 18:23:23 +00:00
Lasse Öörni
6b4a5fd296 Added cmake_mingw.bat contributed by Mika Heinonen. 2013-08-14 15:30:20 +00:00
Wei Tjong Yao
2bf1be4cea Simplified the documentation for Eclipse. The generated Eclipse project file could be in Build or Source directory depends on whether xmlstarlet fix is being invoked or not. 2013-08-14 13:54:07 +00:00
Lasse Öörni
3ac94c3551 Fix version of SDL in the documentation. 2013-08-13 21:58:07 +00:00
Lasse Öörni
a899f7293e Capitalize name of CMake script directory. 2013-08-13 20:51:20 +00:00
Wei Tjong Yao
d5640aab4b Updated documentation - another attempt. 2013-08-13 09:25:12 +00:00
Wei Tjong Yao
a71d656b9d Updated documentation. 2013-08-13 09:18:53 +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
1385700c7f Fixed broken wiki link. 2013-08-09 17:21:30 +00:00
Wei Tjong Yao
2eb5a49353 Updated documentation. 2013-08-09 17:00:43 +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
Wei Tjong Yao
9d9b2278fa Updated documentation on using Urho3D as external library. 2013-08-09 04:33:51 +00:00
Lasse Öörni
99560bba71 Use SSE2 instead of SSE on MinGW, but print a warning message.
CMake options can be used to disable SSE & minidumps, instead having to modify CMake script.
2013-08-07 07:41:00 +00:00
Lasse Öörni
e8c16bf658 Read command line from a file on Android and iOS. 2013-08-06 19:12:44 +00:00
Lasse Öörni
92aa3341d5 Simplified the instructions for enabling OpenGL mode.
Wiki update.
2013-08-06 15:26:05 +00:00
Lasse Öörni
560ffd03c2 Moved the Urho3D application code to Tools directory.
Updated documentation.
2013-08-06 15:09:47 +00:00
Wei Tjong Yao
e952719302 In preparation for supporting shared library for Windows platform, selectively marked Engine class as public API. Setup the visibility compiler flags for GCC and Clang to hide non-marked API from shared library. 2013-08-05 15:40:35 +00:00
Lasse Öörni
96e80a2366 Per-bone weight control of animation state tracks. Not serialized yet. Eliminated map lookups from applying animations. 2013-08-04 11:32:44 +00:00
Lasse Öörni
8a94f363ee Material technique editing. 2013-07-30 22:57:11 +00:00
Lasse Öörni
6284d0db72 Expose material's TechniqueEntries to script.
Accuracy fixes to some classes' AngelScript app class type.
2013-07-30 15:12:57 +00:00
Lasse Öörni
0eb06b2438 Updated to AngelScript 2.27.
Renamed Thread::Start() to Thread::Run() to match Application class.
2013-07-30 13:24:18 +00:00
Lasse Öörni
ab50955ec4 Added alternative API to serialize Material into an XML element instead of a file.
Material edit undo/redo actions.
2013-07-29 10:38:37 +00:00
Lasse Öörni
c5dd749509 Texture picking in the material editor. 2013-07-28 20:52:15 +00:00
Lasse Öörni
0b657a893d Continue work on material editor.
Added shaderParameterNames property to Material's AngelScript API.
Added error prints to possible resource loading error situations.
2013-07-28 18:57:00 +00:00
Wei Tjong Yao
0cd4d9cbe3 Quick fixed DocConverter tool to handle wiki table. 2013-07-28 05:53:59 +00:00
Wei Tjong Yao
1a5670b65c Updated documentation on Raspberry Pi port. 2013-07-28 01:03:38 +00:00
Lasse Öörni
57899bce0c Added skeleton of a material editor window. 2013-07-26 15:46:55 +00:00
Lasse Öörni
ae5871d912 Documented Application class.
Added deprecation note to the C++ Quickstart documentation page.
Fixed ScriptCompiler.
2013-07-26 14:04:27 +00:00
Lasse Öörni
adf668b386 Refactored the system cursor shape definition inside Cursor class; use SetUseSystemShapes() to enable.
Define OS cursors on demand when setting the shape; removed OS cursor visible parameter from Cursor::DefineShape().
2013-07-24 10:52:46 +00:00
Lasse Öörni
53d2404aee Applied OS cursor shape patch from Paul Noome. 2013-07-23 23:29:00 +00:00
Lasse Öörni
ad8b44d478 Added GetModel() & GetNode() to AnimationState.
Avoid double update in animation test, if an AnimationController is also playing the same animation.
2013-07-20 17:40:55 +00:00
Lasse Öörni
e908a9076a Support defining different action buttons for different resource types in the editor.
Added functionality to test animations in the editor.
Expose RefCounted class properly to script so that WeakHandle can point to all RefCounted types instead of just Object.
2013-07-20 13:53:42 +00:00
Lasse Öörni
9ff5b3d222 Renamed "Label Offset" attribute in Button to "Pressed Child Offset" to more accurately reflect what it does. 2013-07-20 09:30:31 +00:00
Lasse Öörni
3cd4625ad1 Store shader parameters as Variants to preserve the coordinate count & distinguish between eg. floats and Vector4's.
Fixed Lua API (bindings of RenderSurface object) in OpenGL mode.
2013-07-19 19:58:58 +00:00
Lasse Öörni
f167112a6a Update documentation. 2013-07-14 21:09:31 +00:00
Lasse Öörni
6d852735b2 Removed the hacks to detect emulated mouse in NinjaSnowWar.
Modify SDL to remove Android & iOS emulated mouse events, and to detect Windows emulated mouse events and disregard them.
Fixed touch handling in UI.
Added Button::IsPressed() function.
2013-07-14 14:33:51 +00:00
Lasse Öörni
dac3f4e0a8 Fixed Android library stripping on some Windows configurations.
Perform Android build as out-of-source on Windows to match the Unix behavior and allow the same commands to be used.
Finalized the Android build documentation.
Removed the old Android native code build path using ndk-build.
Fixed post processing intermediate rendertargets not matching the rendertarget format.
2013-07-13 18:47:36 +00:00
Lasse Öörni
c37695b16a For consistency, emulate touch as mouse on all platforms (on Windows it is unavoidable.)
Fix erroneous controls in NinjaSnowWar when touch control is used on Windows.
2013-07-13 16:44:43 +00:00
Lasse Öörni
5ad269e68c Reverted the addition of IsTouchEnabled() as on some platforms it is set dynamically on receiving the first touch. 2013-07-13 13:31:36 +00:00
Lasse Öörni
4c46fe72df Always delete CMakeLists directory also in the Windows CMake batch files to prevent using wrong toolchain.
Added IsTouchEnabled() function to Input.
2013-07-13 12:53:24 +00:00
Wei Tjong Yao
92d4e9831b Configured GCC to use out-of-source build. Set RelWithDebInfo as default build type for single-configuration generator (can be overridden via '-DCMAKE_BUILD_TYPE=xxxx' command line argument). Enhanced cmake_gcc.sh and cmake_eclipse.sh to generate Android project when ANDROD_NDK environment variable is set. Hence, deprecated cmake_android.sh. Updated document to reflect out-of-source gcc build and added a new paragraph on using Eclipse ADT plugin for Android building/deployment. 2013-07-11 01:52:23 +00:00
Wei Tjong Yao
0a712e2e6a Reversed the parameter handling logic in cmake_xxxx.bat and to make it consistent with their shell script counterpart. Updated the documentation accordingly. Reverted back main CMakeLists.txt. 2013-07-10 15:20:44 +00:00
Wei Tjong Yao
82a24ee63a Fixed Lua library for Android build. 2013-07-09 15:06:32 +00:00
Lasse Öörni
a5223e76f2 Removed deprecated mention of OBJECTTYPESTATIC macro in the getting started documentation. 2013-07-09 11:07:09 +00:00
Wei Tjong Yao
6ad6966ea9 Updated documentation for CMake-based android build. 2013-07-09 06:03:40 +00:00
Lasse Öörni
09463e6963 Documentation edit. 2013-07-08 21:34:48 +00:00
Lasse Öörni
0915fbddf3 Added SetAutoExit & GetAutoExit to Engine Lua bindings.
Update generated documentation.
2013-07-08 18:05:19 +00:00
Wei Tjong Yao
56e60a59d8 Fixed Win64 build. Enhanced cmake_vs20xx.bat to accept extra command line arguments, such as ENABLE_64BIT, ENABLE_LUA, or ENABLE_EXTRAS. 2013-07-08 00:13:55 +00:00
Lasse Öörni
fa0ba1f2d8 Updated Android toolchain to newer.
Reverted some of the hacks for CMake Android build.
Documented the work-in-progress CMake Android build path.
2013-07-07 22:04:18 +00:00
Lasse Öörni
ad7b7451b4 As latest SDL was found to be non-threadsafe in practice, removed the StaticMutex and the OBJECTTYPESTATIC constructs which were added to support multi-context use within a single process.
Fixed single SDL memory leak on exit.
2013-07-06 12:30:40 +00:00
Lasse Öörni
e5d4a3939b Emit public drag start/move/end events. Adapted from patch contributed by Chris Friesen. 2013-07-04 21:34:58 +00:00
Lasse Öörni
ea67568632 Added Lua bindings contributed by Aster Jian.
Fixed missing includes in some header files.
2013-06-29 16:42:38 +00:00
Lasse Öörni
1114a3fc28 Option to disable the InternalEdgeUtility.
Mention indent spacing in coding conventions.
2013-06-26 08:54:56 +00:00
Wei Tjong Yao
2f88f7fc81 Fixed UI subsystem to dismiss the FileSelector correctly when its modal window is being closed via ESC key. 2013-06-26 07:49:38 +00:00
Lasse Öörni
1fdf228359 Move the AngelScript API registration to the Script library and inverted the Script <-> Engine library dependency.
Move object factory registration into the subsystems where possible.
2013-06-26 00:09:02 +00:00
Lasse Öörni
65a4a3b51f Applied Bullet 2.81 update patch from amadeus_osa.
Added split impulse & number of constraint solver iteration attributes to PhysicsWorld. Split impulse gives more accurate collision detection but is disabled by default for better performance.
2013-06-23 12:38:11 +00:00
Lasse Öörni
da953b8aa7 Write morph tangents as Vector3's in OgreImporter.
Fixed example particle system description files using wrong attribute name for sorting.
Clarified vertex weight threshold for bone hitbox calculation.
2013-06-16 18:24:31 +00:00
Lasse Öörni
090eb3aafa Find DirectX SDK to avoid needing it as a global Visual Studio directory. 2013-06-13 15:35:49 +00:00
Lasse Öörni
27b31af0cf Added RigidBody::ReAddBodyToWorld().
Added heightfield smoothing attribute.
Allow CollisionShape::SetTriangleMesh() & SetConvexHull() without specifying LOD level (0 is default)
Refactored Vehicle example and increased vehicle speed.
2013-06-12 21:09:36 +00:00
Lasse Öörni
633378312b Added missing CollisionShape::SetStaticPlane() function. 2013-06-12 07:19:41 +00:00
Lasse Öörni
84dde8917b Added GetVelocityAtPoint() to RigidBody. 2013-06-11 22:47:52 +00:00
Lasse Öörni
3989849c55 Tweaked ragdoll parameters in TestScene & TestSceneOld.
Expose constraint's ERP & CFM parameters directly, instead of trying to derive them from a "softness" value.
2013-06-09 19:06:03 +00:00
Lasse Öörni
bd3a4c30f4 Added vehicle physics example.
Added softness parameter to Constraint.
Fixed exposing Quaternion::Slerp() to script.
Removed package download code also from Physics & Terrain examples.
2013-06-08 12:40:29 +00:00
Lasse Öörni
648564c8fb Added setup_main_executable() CMake macro which sets up resource copying for an executable. 2013-06-05 18:31:17 +00:00
Lasse Öörni
6899609644 Applied consistency edits to the ParticleEmitter API. Added missing UpdateInvisible attribute & functions.
Demonstrate use of viewmasks in TestSceneOld to exclude the billboards from raycasting.
2013-06-03 18:00:15 +00:00
Lasse Öörni
dd956fb560 Documentation update. 2013-06-01 14:32:45 +00:00
Lasse Öörni
5be5222cb8 Added ParticleEmitter attributes.
Added public API to ParticleEmitter.
Fixed crashes from setting negative element count in editor (number of animation states, billboards etc.)
Limit maximum billboard count due to index data being 16 bit.
2013-06-01 14:26:03 +00:00
Lasse Öörni
3c244f9755 Allow live-reload of particle emitter parameters file.
Allow also specifying emission rate instead of emission interval.
Allow emitting multiple particles per frame if necessary.
Restored the "effect" component category in the editor. ParticleEmitter & DecalSet belong to it now.
2013-05-30 23:20:40 +00:00
Lasse Öörni
4e618bb80e Subclass SDLActivity so that the package name in SDL JNI code does not need to be changed.
Do not check for duplicate vertices when building triangle collision meshes to avoid a O(n^2) algorithm.
2013-05-25 23:14:14 +00:00
Lasse Öörni
730c6eda2f Updated to AngelScript 2.27.0 WIP. 2013-05-25 22:11:21 +00:00
Lasse Öörni
b8270df90b Added error logging for cases of components in detached nodes trying to find Octree or PhysicsWorld, or subscribing to update events.
Added error logging if a node is moved from one scene to another (unsupported.)
2013-05-24 10:19:46 +00:00
Wei Tjong Yao
86a04ae472 Fixed CMake Win64 build configuration problem by working around the bug temporarily. Stream lined the Windows batch files for sample applications. Enhanced cmake_vs20xx to accept optional parameter to enable 64bit build. Updated documentation. 2013-05-22 11:06:19 +00:00
Lasse Öörni
31ef2dea57 Reorganized building documentation. 2013-05-19 17:14:29 +00:00
Lasse Öörni
483e07c2e8 Print warning if node is not found for node animation.
Update documentation on playing back node animations.
2013-05-12 16:34:42 +00:00
Lasse Öörni
4c2842967e Allow configuring the minimum instances per batch group to actually render as instanced. 2013-05-12 12:18:52 +00:00
Lasse Öörni
cd88d22e36 Renamed BillboardSet::Updated() to Commit() to match CustomGeometry API. 2013-05-11 09:30:29 +00:00
Lasse Öörni
5e5d98581c Concatenate world rotation separately to fix GetWorldRotation() returning erroneous values when parent node has nonuniform scale.
Reorganized component categories.
2013-05-09 20:34:29 +00:00
Lasse Öörni
1d2fec862c Applied CustomGeometry convex hull collision patch from Pete Leigh, with added serialization support. 2013-05-09 11:30:24 +00:00
Lasse Öörni
4a3ec28769 Added point inside StaticModel check from Firegorilla.
Simplified Node::LookAt() to always take a world space position.
Constness cleanup.
2013-05-08 22:31:29 +00:00
Lasse Öörni
f14cb1aafc Possibly fixed BlenderLoader heap corruption.
Removed incompatible Assimp processing flag.
2013-05-02 21:25:57 +00:00
Lasse Öörni
be9cef51a4 AssetImporter Optimize Graph process not done by default, but needs to be manually activated with the -o switch. 2013-05-02 17:18:59 +00:00
Lasse Öörni
8b28c12ae6 Added instancing to the OpenGL renderer, requires the ARB_instanced_arrays extension. 2013-05-01 15:14:31 +00:00
Wei Tjong Yao
b11cd0c11f Enhanced cmake shell scripts to accept extra options from command line. Added documentation on how to enable 64bit for GCC build. 2013-05-01 04:22:39 +00:00
Lasse Öörni
85ebeeed2e Improved LightTest example to allow toggling renderpath at runtime, and to show instructions on screen. 2013-04-30 11:12:21 +00:00
Wei Tjong Yao
703d4fb10d Fixed text rendering in Chat example app due to DefaultStyle.xml changes (Bug exists in the last release tag v1.23). Minor documentation fixed on NinjaSnowWar app. Cleaned up DefaultStyle.xml even more to remove repeating attribute declaration by taking advantage of the style inheritance feature. Changed the semantic of UIElement's style property in Script. 2013-04-30 10:53:35 +00:00
Lasse Öörni
c0dbf7f545 Generalized the factory category for all objects.
Removed hardcoded UI element type list in Editor.
2013-04-29 21:40:58 +00:00
Lasse Öörni
2afdf2675a Fixed Windows build.
Some tweaks to component categories.
Documentation update.
2013-04-29 13:01:29 +00:00
Wei Tjong Yao
8d1c28bc3e Group components into categories. In the Editor app, dynamically create the menu structure based on the component categories. Added new GetCategory() method in Component class and exposed it to script. Reviewed and fixed as necessary the default attributes registration of Component's descendant classes. Removed 'Attenuation' and 'Panning' attributes from SoundSource3D as they are updated constantly in this class. Enhanced Context class to 'register' component category during the component factory registration. 2013-04-29 10:22:25 +00:00
Lasse Öörni
6079e8cf84 Copied asm-bits from newest LibCpuId.
Updated documentation.
2013-04-29 00:20:29 +00:00
Lasse Öörni
4625dc78a2 Applied contact processing threshold patch from primitivewaste.
Cleanup scenepass metadata processing code.
2013-04-28 12:25:36 +00:00
Lasse Öörni
7ba580852d Allow custom forward base, lighting and alpha pass names by defining metadata in the render path, and allowing the forwardlights command to specify the pass name to use. 2013-04-28 11:45:10 +00:00
Wei Tjong Yao
dcf9099d1f Modified the SetStyle() and SetStyleAuto() methods of UIElement class to return a bool indicating whether the operation is successful. In Editor app, when fails to set to a requested icon type then automatically set to an 'unknown' icon type. 2013-04-28 06:26:03 +00:00
Lasse Öörni
3279cc74fc Updated changelog. 2013-04-27 23:12:31 +00:00
Lasse Öörni
4027f650cd Fixed exposing of UIElement::GetDefaultStyle() to script.
Documentation update.
2013-04-27 11:08:36 +00:00
Lasse Öörni
de3997dcfd Send events for view update begin/end and view render begin/end. 2013-04-26 22:56:04 +00:00
Wei Tjong Yao
1b2497dc10 Added new LoadChildXML() method to UIElement and exposed it to Script. Changed Editor app to call LoadChildXML() instead of LoadXML() to prevent child XML-chunk from accidentally modifying the parent element's tyle. Note: child XML-chunk does not require nested element tag anymore. 2013-04-26 04:11:05 +00:00
Lasse Öörni
9d507640f7 Exposed Ray<>Frustum HitDistance() to script, and added solidInside parameter to it which determines whether the inside of the frustum is interpreted as solid (return zero distance for rays originating within.) 2013-04-24 22:02:02 +00:00
Lasse Öörni
8f5623d9bb Renamed RenderPath::LoadParameters() to Load() and ParticleEmitter::LoadParameters() to SetParameters() as LoadParameters() is used in other classes to denote loading of optional parameters, not the main asset itself.
Fixed incorrect exposing of BillboardSet::GetMaterial() & ParticleEmitter::GetMaterial() to script.
2013-04-24 21:38:09 +00:00
Lasse Öörni
f4a3014d75 Corrected ShaderCompiler documentation.
ShaderCompiler output dir is no longer mandatory, if not specified, will use input dir.
2013-04-24 17:05:06 +00:00
Wei Tjong Yao
521ee691c3 Enhanced DropDownList to support showing of placeholder text when there is no selection. The text could be used to show a 'Please choose ...' kind of prompt. Rearranged child XML-chunk resources responsible for Attribute Inspector to remove duplicate definition. Added new child XML-chunk to display and manipulate applied style of the UI-element in the Editor (not yet fully functional). Adjusted DefaultStyle.xml to distinguish between auto and non-auto types. Added new method in Serializable to remove instance default and in UIElement to return applied style name, in preparation for future work. 2013-04-24 13:34:03 +00:00
Lasse Öörni
90233154ab Added padding attribute to NavigationMesh, which expands the bounding box to allow adding geometry in partial rebuilds. 2013-04-24 07:30:16 +00:00
Lasse Öörni
0df99637a0 Updated documentation. 2013-04-23 19:04:47 +00:00
Lasse Öörni
38498ab24c Completed the OffMeshConnection implementation.
Added Ctrl+LMB in the Navigation test to create offmesh connections.
2013-04-23 18:43:37 +00:00
Wei Tjong Yao
f5aa8898da Fixed UIElement's SetParent() method which was exposed to the Script API with wrong signature previously. Added drag-and-drop support for UI-element in Editor app. 2013-04-23 16:20:21 +00:00
Wei Tjong Yao
da08a0b451 Added New reset-to-default icon in the Attribute Editor. Fixed the reset-to-default functionality to call ApplyAttributes() method after modifying the attribute values. 2013-04-23 09:38:05 +00:00
Lasse Öörni
0ef6e3f135 Added profiling blocks to shader loading.
Renamed Engine::DumpProfilingData() to Engine::DumpProfiler() to be shorter to type on the console.
2013-04-22 22:11:44 +00:00
Wei Tjong Yao
184360dc82 Added new feature in the Editor's edit menu to reset-to-default selected serializable objects (nodes, components, UI-elements) to their default values with undo/redo support. Added new method ResetToDefault() in Serializable class and exposed it to Script. Fixed the constness in Serializable class and all the recently added filtering methods in UIElement descandant classes. Exposed AM_NODEID and AM_COMPONENTID to Script. Added new Keys() method in HashMap class. Fixed SetModel() method in StaticModel and AnimatedModel to accept null model pointer in order to make reset-to-default to work. 2013-04-22 13:12:52 +00:00
Lasse Öörni
abae3414ac Applied camera constness patch from Erik Beran. 2013-04-22 11:49:56 +00:00
Lasse Öörni
3dac8c7a59 Added setInstanceDefault parameter also to binary serialization.
Comments cleanup.
2013-04-21 16:53:06 +00:00
Wei Tjong Yao
9bfb0019e3 Added logic to filter UI-style and implicit attributes from UI serialization result. Added logic to let Attribute Inspector to recognize derived values from UI-style file (so, only user modified and programmatically modified attributes are displayed using 'modified color'). Enhanced UI style file processing to support derived 'style' (see how 'ListView' style is derived from 'ScrollView' style and 'CloseButton' derived from 'Button' in file 'DefaultStyle.xml' as examples). Enhanced Serializable class to support instance-level default values (used in XML serialization filtering and also in Editor app). Enhanced Context class to support update of class-level default values during object registration in UIElement's descendant classes. Verified and fixed the attribute default values in RegisterObject() method for all UIElement's descendant classes. Added new method in XMLElement to remove attribute. Exposed new methods to Script API accordingly. 2013-04-21 14:14:30 +00:00
Lasse Öörni
6ce654989b Note that 64-bit Linux requires 32-bit development libraries to be installed. 2013-04-21 10:59:22 +00:00
Lasse Öörni
1f8b84c4dc Text3D minor code cleanup.
Mention Text3D in the rendering documentation.
2013-04-15 21:48:54 +00:00
Lasse Öörni
56fbf5a1e9 Added attributes to Text3D.
Limit font face size to 96 pixels for now to prevent crash when rendering font to texture.
Added font resource picking support to editor.
2013-04-15 21:42:37 +00:00
Lasse Öörni
5bd757850f Added functionality to Text3D. Attributes yet missing.
Added missing MarkNetworkUpdate() calls to NavigationMesh.
Removed unused parameter from Text::UpdateText().
2013-04-15 00:23:00 +00:00
Lasse Öörni
9132ea611c Removed shadow bias adjustment according to shadow map resolution, as it causes the amount of "peter panning" to change.
Instead, added bias adjustment factor according to far clip of directional light cascade splits.
Slightly adjusted ninja offset to physics shape to align better with the ground.
Ensure same memory layout of CascadeParameter on desktop and mobile, though mobile uses only 2 of the cascades.
2013-04-14 14:50:25 +00:00
Wei Tjong Yao
832ef7ddfd Fixed XPath query result integration with existing XMLElement class (XMLElement constructed from XPath query result should be abled to traverse up/down document tree as if it is a 'normal' XMLElement). Added feature to auto-add variable into XPath variables set based on pre-formatted variable string. Modified 3rd-party PugiXML library to have a proper xpath_node copy-constructor. Fixed UI.h to build under GCC. 2013-04-14 14:03:43 +00:00
Lasse Öörni
bc4b428295 Allow UI to operate without a defined cursor element, if the operating system cursor is visible. 2013-04-14 11:13:15 +00:00
Lasse Öörni
379d786da4 Fixed NinjaSnowWar assets to use 1m world unit.
Added GetDistanceToWall() function to NavigationMesh.
NavigationMesh code cleanup.
2013-04-13 13:20:43 +00:00
Wei Tjong Yao
342db6f72b Fixed indentation calculation for vertically layout UI-element parent. Fixed LineEdit indentation handling on internal objects. Added and exposed functions to determine whether UI-element size is fixed. 2013-04-13 09:59:32 +00:00
Wei Tjong Yao
21a2a008fa Fixed UI-element debug draw being clipped by clip-border. 2013-04-13 03:50:46 +00:00
Wei Tjong Yao
5d698d9ad1 Turned on XPath feature in pugixml thirdparty library. Added new XPath query and resultset wrapper classes and exposed them to Script. Reimplemented UI-element serialization filtering function using XPath query. 2013-04-12 12:20:07 +00:00
Lasse Öörni
362e6a6f95 Added functionality to NavigationMesh. 2013-04-11 07:15:49 +00:00
Wei Tjong Yao
17714cb198 Further fine tuning on the UI subsystem. 2013-04-10 08:38:51 +00:00
Lasse Öörni
c1e1c20ea2 Added documentation page on navigation. 2013-04-09 21:26:10 +00:00
Lasse Öörni
606d374936 Added GetWorldBoundingBox() to CollisionShape.
Prefer physics geometry (trimesh, convex hull, box supported) when generating navigation mesh.
2013-04-09 19:02:26 +00:00
Wei Tjong Yao
05fd7419a7 Fixed UI-element debug draw overdrawing the modal element and menu popup. Refactored UI subsystem to support multiple modal elements and auto-dismissal of modal elements when ESC is pressed. The 'Is Modal' attribute of Window UI-element type can be tested in Editor. 2013-04-09 10:32:16 +00:00
Lasse Öörni
3fac48401a Added support for partial navmesh rebuild.
Added navmesh properties (bounding box, number of tiles) to the script API.
Serialize navmesh tiles directly from Detour data, do not keep a duplicate.
2013-04-08 23:14:47 +00:00
Wei Tjong Yao
712de11c99 Debug draw UI-elements in Editor. 2013-04-08 03:51:54 +00:00
Lasse Öörni
be3b304836 Added batch files to start the navigation example.
Added recursive flag to Navigable to optionally disable recursive collection of geometries.
Check that Navigable is enabled before collecting navigation geometry.
2013-04-07 22:49:06 +00:00
Lasse Öörni
c11f65dfea Added FindPath() function to NavigationMesh.
Added navigation test script.
2013-04-07 19:12:29 +00:00
Lasse Öörni
03dce6b988 Serialize navigation data along with the scene.
Added icons for Navigable & NavigationMesh.
2013-04-07 11:56:14 +00:00
Wei Tjong Yao
1c38290e77 Added functionality to select UI-elements by using cursor (Only enabled elements at this moment). Changed implementation of creating new component so that it also works for multi-edit nodes. 2013-04-07 06:12:57 +00:00
Lasse Öörni
0e713bd509 Generate Recast/Detour data. 2013-04-06 23:28:37 +00:00
Wei Tjong Yao
1230087620 Implemented all the common edit functionalities under 'Edit' menu for UI-element with undo/redo support. Exposed Variant's SetUInt() and GetUInt() to script. Enhanced UIElement's CreateChild() and LoadXML() to insert newly created child at the request child index, added new FindChild() method and exposed it. Added new XMLElement's SetUInt() and GetUInt() methods and exposed them. Simplified the Menu's hover logic to resolve stability issue. 2013-04-06 08:56:41 +00:00
Lasse Öörni
b45fac020f Applied AssetImporter & MathAPI patch from primitivewaste. 2013-04-05 06:44:47 +00:00
Wei Tjong Yao
d5ddc3b3d6 Implemented 'Create new UI Element' functionality in the editor with undo/redo support. Some cosmetic changes in editor. Enhanced UI Script API to be able to define element event sender. Enhanced Menu to auto popup child menu when parent menu item is being hovered. 2013-04-04 18:00:52 +00:00
Lasse Öörni
08075f0915 Reversed if's in Variant code to favor the correct type.
Added non-const Variant functions to get modifiable collection objects (buffer, variant vector, variant map.)
Added Recast & Detour libraries. Added skeleton of a Navigation library & component, no functionality yet.
2013-04-04 07:49:18 +00:00
Lasse Öörni
8adee0c3fd Support lights in AssetImporter scene mode (untested.)
Support lightmapped materials in AssetImporter (untested.)
2013-04-03 19:19:52 +00:00
Lasse Öörni
5375254f0b Exposed functions to create nodes & components with specified IDs. This should make it unnecessary to handle ID rewriting in undo/redo. 2013-04-02 16:55:08 +00:00
Wei Tjong Yao
a76a3b1ab7 Reordered UIElement's attributes, common attributes got registered first. Enhanced Attribute Inspector to show UIElement's attributes for single selection case. Multiple selection is still WIP. 2013-04-02 14:19:35 +00:00
Wei Tjong Yao
276bbb1590 Updated documentation. 2013-04-02 03:49:55 +00:00
Wei Tjong Yao
2bf7facaa7 Laying the groundwork in the Attribute Inspector for showing the UIElement's attributes (still need more work). Enhanced UI subsystem to support modal element, currently only support modal Window. Exposed a new Variant readonly property to test for 'empty' variant. New UIElement's method to get a child by matching the child's user-defined variant map and exposed it to script, also exposed the existing GetVar() method to script. 2013-04-01 16:04:41 +00:00
Lasse Öörni
0705a15c11 Further small fixes to the main loop documentation. 2013-04-01 15:22:55 +00:00
Lasse Öörni
9532e7fdd1 Renamed documentation page. 2013-04-01 15:14:59 +00:00
Lasse Öörni
a963ce7d37 Documented missing LogName parameter. 2013-04-01 14:54:03 +00:00
Lasse Öörni
b28621a3a4 Documented engine initialization parameters. 2013-04-01 14:33:38 +00:00
Lasse Öörni
42448b8924 Updated to AngelScript 2.26.2.
Small fixes to "Quickstart in C++" documentation.
2013-03-31 22:09:28 +00:00
Lasse Öörni
ce562fb894 Refactored Engine to use a startup parameters VariantMap.
Enhanced VariantMap to accept indexing via strings.
2013-03-31 13:14:21 +00:00
Lasse Öörni
6a7ffdcd19 Updated to newest AssImp from git repository.
Fixed File::GetChecksum() logging numerous errors if file open in write mode. This prevented AssetImporter scene mode from working properly.
Fixed DocConverter asserting in debug mode. Added safe IsAlpha() & IsDigit() functions to StringUtils and exposed them to script.
2013-03-30 22:35:11 +00:00
Wei Tjong Yao
75df330fe3 Started work on UI element editor, pardon the dust. Added 'traversalMode' property to UIElement and exposed it to ScriptAPI to control the children UI batches generation. Enhanced Scene to safe keep the filename used in last serialization, fixed to perform a Clear() before Load()/LoadXML(). Exposed String's Clear() method to Script API. Fixed ListView to insert multiple top-level items in hierarchy mode correctly. 2013-03-30 13:59:47 +00:00
Lasse Öörni
1d60bc59fa Added check to ListView to see if has been destroyed as a response to the selection event.
Added CharacterDemo C++ example to Extras.
Improved the QuickStart in C++ to be cross-platform.
2013-03-29 23:40:51 +00:00
Wei Tjong Yao
06f3580948 Enhanced the Attribute Inspector to show the 'Is Enabled' check box on the node/component 'title bar' instead of in the attribute list; and small refactoring to reduce the number of parameters being passed in a number of functions. Refactored to modify AttributeInfo's name to become a String. Exposed 'internal' property of UIElement to Script API. Enhanced Text class so that it renders the selected text being hovered by mouse a little differently than those without. 2013-03-28 11:00:18 +00:00
Lasse Öörni
f226c4bc4a Added equality operators for Matrix classes. 2013-03-27 21:27:51 +00:00
Wei Tjong Yao
827035e36e Fixed the UIElement to perform the parent's UpdateLayout() when an element's indent or indentSpacing is changed. Fixed the UIElement from altering the child element's alignment during UpdateLayout(). Enhanced Editor to show menu accelerator keys in the menu popup. Replaced the accel key for attribute inspector window to 'Ctrl+I' to match its current window name. Added accel key for new scene menu item. 2013-03-27 09:02:10 +00:00
Lasse Öörni
d35f3b5035 Removed duplicate error message from ScriptCompiler when script compilation fails.
Removed the "None" constraint & collision shape type for editing convenience. Note: Either the SetBox() etc. functions or ApplyAttributes() needs to be called to create the initial shape. This is to prevent a dummy shape first being created on scene load, then immediately being destroyed.
Do not debug draw disabled components.
Fixed music cutting off in networked NinjaSnowWar.
Fixed signed/unsigned mismatch in LightTest script code.
2013-03-26 22:23:39 +00:00
Lasse Öörni
f5b837f460 Exposed recursive SetEnabled() differently, to match convention of the rest of recursive Node functions and eliminate code duplication.
Added Ctrl+E in editor to toggle enabled/disabled state of selected node hierarchies and components.
2013-03-26 21:23:15 +00:00
Lasse Öörni
5830f0e5d1 Convention change: prefer Enabled instead of Active where possible.
Do not transmit hover to input-disabled UI elements.
Documented the node/component enable/disable mechanism.
2013-03-26 00:37:02 +00:00
Lasse Öörni
af8825047a Started work on node/component enable & disable.
Converted Drawable components to use the Enabled flag (replaces Visible attribute.) 
Converted ScriptInstance to use the Enabled flag.
Converted SoundSource & SoundSource3D to use the Enabled flag.
Show disabled node/component icons in red.
2013-03-25 21:02:35 +00:00
Lasse Öörni
b865108ecd Applied patch for poor CPU performance on MinGW builds. 2013-03-25 12:35:54 +00:00
Lasse Öörni
a3c66ca360 Detect sRGB capability also on Direct3D9.
Detect sRGB sampling & writing capability separately.
2013-03-24 23:56:19 +00:00
Lasse Öörni
6fe17dd966 Documentation and wiki update. 2013-03-24 23:07:58 +00:00
Lasse Öörni
b4599e046d Hardware sRGB texture support. OpenGL sRGB framebuffer writing implementation still missing. 2013-03-24 20:05:08 +00:00
Wei Tjong Yao
25372fafd8 Added new ListView attribute to control the root base indent in hierarchy mode. Enhanced the Hierarchy window in Editor to show icon for each item. Need better and more assets for the icons though. 2013-03-24 19:00:19 +00:00
Lasse Öörni
1c7f970e30 Synchronize float and integer position of sprites.
Added sprite example application.
2013-03-23 19:52:10 +00:00
Lasse Öörni
5160610e25 Refactored freely rotating / scaling UIElements into a separate Sprite class; removed rotation from the base class as it would not work correctly with element hierarchies in most cases. 2013-03-23 17:50:11 +00:00
Wei Tjong Yao
d7f6b4d0b6 Enhanced UIElement to be able to set a default style file for later reference by children elements, added horizontal indentation feature, and added new E_LAYOUTUPDATED event. Enhanced ListView to better support hierarchy mode and added feature to show 'expansion triangle' in hierarchy mode. Fixed a bug in ScrollView to update view size correctly when resizing content element. Fixed a bug in Log's WriteRaw() method so it sends error message to stderr even in quite mode. Refactored Editor to take advantage of the enhancement. 2013-03-23 12:53:47 +00:00
Lasse Öörni
9ef8625e33 Fixed BorderImage attributes (tiled, blendmode) missing from script API.
Added possibility to rotate UI element contents around a pivot point. Note: UI::GetElementAt(), child elements and child element scissoring do not currently respect rotation.
2013-03-21 23:31:36 +00:00
Lasse Öörni
ff564d3360 Switched to GLEW library for OpenGL extensions. 2013-03-20 21:52:53 +00:00
Wei Tjong Yao
cddaa40080 Fixed ScriptInstance.cpp to compile under GCC and LLVM. Better Eclipse build environment setup. General code cleanup. During Editor startup, resets scene when loading requested scene from file specified by the parameter fails. 2013-03-19 09:20:54 +00:00
Lasse Öörni
852047545e Added section on bytecode precompilation to the scripting documentation page.
ScriptInstance sends an event when the script object is created, so that the attribute inspector can be refreshed in case attributes change.
2013-03-18 22:55:41 +00:00
Lasse Öörni
7c1ed151fa Merged the functionality of ScriptCompiler & ScriptAPIDumper. 2013-03-18 14:13:01 +00:00
Lasse Öörni
74c01e7da5 Added compiled AngelScript bytecode support.
Removed unnecessary nullcheck from View.
TODO: merge ScriptCompiler & ScriptAPIDumper.
2013-03-18 08:09:27 +00:00
Wei Tjong Yao
741badfade Fixed the ScriptFile to prevent it from amending the path for include file unnecessarily and added a new error log to help identifying script file that have problematic include. Refactored ListView to support persistent expand/collapse state at each parent item in hierarchy mode, the exposed API is slightly changed. Renamed 'Scene Hierarchy' window to just 'Hierarchy' in the Editor app in preparation for future work, also created new function to differentiate between scene creation and scene reset. 2013-03-18 00:18:48 +00:00
Lasse Öörni
55f249e548 Automatically show compatible script object variables as ScriptInstance attributes and file-serialize them.
Separate script object functions for file and network serialization.
Fixed crashes in some factory instantiated classes when running without all subsystems.
Fixed crash if calling BringToFront() for a detached UI element.
Always create UI root element, even in headless mode.
Do not abort binary format scene loading if loading a component fails, as it is being read from a nested buffer and we can skip to the next.
2013-03-16 12:53:40 +00:00
Wei Tjong Yao
44d663ba41 Added new Print() variant in script API to print a Variant. Fixed StringUtils from erroneously converting numerical string to int/uint using base 8 or base 16 when the string is started with '0' or '0x'. Fixed the same/diff value evaluation for ResourceRefList, VariantVector, and VariantMap. 2013-03-16 08:17:26 +00:00
Wei Tjong Yao
990428ca4d Changed Append() methods implementation in String class so they can be chained together in a statement. Added new Join() methods and exposed it to Script API. Refactored Attribute Inspector to take advantage of the new exposed Join() method. 2013-03-15 16:36:23 +00:00
Wei Tjong Yao
9ed0c43919 Exposed math objects construction from an array of float/int and methods to get back the array buffer to the Script API. Enhanced the Attribute Inspector to multi-edit same value at coordinate level for attributes that have multiple coordinates, e.g. Vector3, Color, etc. Different value at coordinate level is non-editable as before. 2013-03-14 19:00:09 +00:00
Wei Tjong Yao
5544602c9e Enhance Font class to support saving of font (TTF or bitmap type) as another bitmap font resource in xml format. For bitmap font type, saving yet to another bitmap font is only meaningful when called with the optional parameter turned on to save only used glyphs. Refactored UIBatch class to enable better performance in Text class UI batch generation in relation to multi-pages/textures font. 2013-03-14 08:14:38 +00:00
Lasse Öörni
21dd4b6c70 Updated the Maxscript exporter.
Reduce DOT graph depth in the documentation.
2013-03-13 08:27:08 +00:00
Lasse Öörni
5e443328ac Added recursive -parameter to Node::GetComponents() to get components of specific type also from child nodes. 2013-03-12 17:08:07 +00:00
Lasse Öörni
07c0f7228a Added flag to ScrollView / ListView whether to set scrollbar visibility automatically. Default true. Calling SetScrollBarsVisible() disables this. 2013-03-10 19:31:34 +00:00
Wei Tjong Yao
14c06b3dc5 Added ability to edit attributes of multiple selected nodes, only mutual attribute values are editable. Modify script API for VariantMap's Erase() method to return bool. Fixed one of the Print() function in IOAPI to use the 'error' parameter. 2013-03-10 17:54:20 +00:00
Lasse Öörni
c513645a1a Added modified Ogre Maxscript Exporter contributed by Vladimir Pobedinskij, which outputs materials in Urho3D .xml format. 2013-03-10 12:34:38 +00:00
Wei Tjong Yao
4d72b5a609 ScriptAPIDumper dumps to console when output file is not provided. Removed caveat from have to compile with ENABLE_LOGGING. Exposed variants to print to stderr to script. Added shell script for calling ConvertDocsToWiki executable. Fixed Editor application to handle exit on error gracefully. Updated documentation and wiki accordingly. 2013-03-10 06:16:12 +00:00
Lasse Öörni
6e90c6ea13 Fixed bug in win32 ScanDir implementation, which did not scan subdirs if filter was not *.*.
Added Extras directory for contributions which are not strictly Urho3D core.
Added OgreBatchConverter utility from Carlo Carollo, modified to use Urho3D classes to be crossplatform compatible.
2013-03-09 20:42:45 +00:00
Wei Tjong Yao
38d12c122c Added functionality to show multiple components in the atribute editor when a node or nodes are selected in the hierarchy window. Remove 'editable' parameter in the attribute creation functions as now whether an attribute is editable or not is dynamically set when loading the attribute value and not at the time of its editor creation. Exposed to all the UIElement-derived class a new function to load (partial) UI layout. 2013-03-09 18:25:35 +00:00
Wei Tjong Yao
4efdfc87dc Tidied up AttributeEditor.as, better way to handle attribute that has multiple components. Exposed a few more math constants to script. 2013-03-09 12:39:01 +00:00
Lasse Öörni
53d87516b5 Documentation update.
Code formatting consistency.
Handle underscore escaping in DocConverter.
2013-03-08 21:43:14 +00:00
Lasse Öörni
6b28127751 DocConverter improvements. 2013-03-08 16:49:13 +00:00
Lasse Öörni
424e1750f4 Added note of online Doxygen documentation. 2013-03-08 15:58:56 +00:00
Wei Tjong Yao
34a849e00e Speed up TTF loading time. Tidied up code for loading/getting bitmap font. 2013-03-08 15:08:14 +00:00
Lasse Öörni
5064b43c1a Fix multithreading page. 2013-03-08 14:50:41 +00:00
Lasse Öörni
783ad6e147 Documentation fixes. 2013-03-08 14:46:55 +00:00
Lasse Öörni
c55c9cf064 Exposed AnimationTriggerPoint to script.
Exposed Material::SetTechnique() to script.
Added camera functions from Magic.Lixin.
2013-03-06 19:50:42 +00:00
Lasse Öörni
9964055dda Applied physics patch from Magic.Lixin.
Added selection only -mode to editor. This changes the key mappings.
2013-03-06 15:53:41 +00:00
Lasse Öörni
091fe0b15f In scene mode, output material lists for all imported models.
Do not apply empty material if a material from a material list can not be found. Instead retain the old.
Fixed outdated documentation.
2013-03-06 13:26:23 +00:00
Lasse Öörni
cbc5ccbe58 Fixed wrong signature for ReplaceExtension() function in script.
Fixed initial scene resource path in editor.
Fixed loading of editor UI configuration.
Allow casting AnimatedModel & Skybox to StaticModel in script.
Warn and redirect if StaticModel::SetModel() called on AnimatedModel().
Always output material list in AssetImporter model mode.
Editor reads imported model's material list when choosing model via component edit (Configurable, can be disabled from settings dialog.)
Simplified editor config file structure.
2013-03-06 12:31:51 +00:00
Lasse Öörni
12bddee240 Whether to use derived opacity can be configured per UI element. By default true, except for Text.
Added note of d3dcompiler_46.dll when compiling with the Windows 8 SDK.
2013-03-05 21:07:59 +00:00
Lasse Öörni
b2645460ef Refactored view queuing in Renderer.
RenderSurface can define multiple viewports.
RenderSurface viewports can be set to update when visible in the scene (default, same as previous functionality), update always, or to update only when manually queued. The last two modes are useful when rendering a scene view eg. for use in a UI widget.
2013-03-05 16:30:53 +00:00
Lasse Öörni
da243eb31b Applied UI & editor related patch from weitjong.
Changelog:
- Urho3D engine returns proper exit code, supports window resizing and quite mode, supports setting of any log level regardless of built type.
- Change the default graphic resolution in windowed mode from 800x600 to 1024x768 which I believe should be more common now.
- Log subsystem distinguishes between standard output and standard error streams. Error log entries are sent to stderr, so even in quite mode which stops sending to stdout, the error entries would still be shown on console. This is handy to weed out mundane entries from error entries during debugging/development.
- For UI elements, only save attribute values that are different than default attribute values during save serialization.
- Misc. UI enhancement: slider supports paging on 'empty' area along the slider; scrollbar responds to the slider hover and click on 'paging' area; menu supports passing the popup state to its sibling when mouse hovering pass the sibling; (bug fix) prevent button to generate release event erroneously (click outside, drag, hover inside, then release), plus now it should behave correctly on other situation (e.g. click inside, drag outside, then drag inside again); file-selector, list view, and line edit accept keypad 'Enter' as well; cursor supports defining shape for OS mouse too when it is set to visible, new busy cursor shape; (bug fix) fix the text default attribute values for selection and hover color to match the color assigned by constructor; line edit supports double-click to select all; scrollview hides the horizontal and vertical scrollbars automatically if not needed (still does not hide correctly on a few cases though :-).
- Refactoring the scripts in Editor application to take advantage of the Urho3D UI potential and other small improvements, like: fade out the UI when moving or rotating the scene; relayout the UI element when main window resize in windowed mode; demo the usage of busy cursor when loading scene from file; modified node/component attribute values are shown with different text label color; store the configuration file in hidden folder under user home folder as per normal practice for applications runs on MacOSX and Linux platforms; use the OS mouse so the it can move freely between Editor in windowed mode and other graphical apps.
The UI attributes in *.xml files are adjusted accordingly. The most important change is, the cursor shape now uses Image resourceref instead of Texture2D.
- Refactoring to replace code constructing the empty instance with reference to static const 'empty' instance whenever it is available; refactoring to remove redefinition of VariantMap and VariantVector in Serializer.h.
- Bug fixes: prevent double posting of error messages in the log on MacOSX and Linux platforms when Urho3D exits on error; fix DumpAPI() from erroneously substituting 'doubleClickInterval' to 'floatClickInterval'.
- Added a new tool to make dumping of the Script API even easier. I have managed to initialize a minimalist engine's subsystems to start the DumpAPI() function.
2013-03-05 08:01:29 +00:00
Lasse Öörni
54991f9f04 Added documentation page on shaders. 2013-03-04 13:49:01 +00:00
Lasse Öörni
4e836e574f Migrated to AngelScript 2.26.1 WIP.
Octree code cleanup.
Added nullchecks to RigidBody in case Bullet callbacks are fired when the body's scene node has been destroyed.
2013-02-20 11:16:27 +00:00
Lasse Öörni
8d68690cf4 Applied documentation patch from weitjong. 2013-02-19 14:16:22 +00:00
Lasse Öörni
3002776ea4 Fixed incorrect octree insertion of drawables in some cases (eg. large terrain.)
Added ToString() to BoundingBox.
Removed unnecessary defined_ variable from Frustum.
2013-02-19 13:55:17 +00:00
Lasse Öörni
14fa3b3d6e Added SavePNG() function to Image. 2013-02-09 23:16:13 +00:00
Lasse Öörni
92eb073cb7 Applied cmake patch from weitjong.
Renamed finalize_exe and finalize_lib cmake macros to setup_executable & setup_library, as they already do much more than finalization.
2013-02-07 09:46:23 +00:00
Lasse Öörni
3dc3c836a6 Applied patch from weitjong, which improves OSX/iOS build, and removes dead code. 2013-02-03 21:31:24 +00:00
Lasse Öörni
d867b3da2e Fixed error in documentation. 2013-02-03 13:22:43 +00:00
Lasse Öörni
9d82a32c9e Added constraint & collision shape type "none" as default value to avoid unnecessary creation of shapes on scene load, before proper attribute values are deserialized. Do not create shape/constraint in OnNodeSet(), as the type is always "none" at that time.
Reactivate a rigid body when any constraint is removed from it.
2013-02-01 13:37:31 +00:00
Lasse Öörni
eeacbe62ca Fixed the C++ quickstart example in the docs. 2013-01-24 14:08:33 +00:00
Lasse Öörni
ed272d2aa7 Fixed sphere particle emitter always having zero radius. 2013-01-16 14:26:01 +00:00
Lasse Öörni
fcd9e37b61 Updated version history. 2013-01-13 22:44:51 +00:00
Lasse Öörni
f5e2be65c1 Added note about the ElapsedTime built-in shader parameter to documentation. 2013-01-13 20:06:21 +00:00
Lasse Öörni
b51fd39bcc Applied CustomGeometry script API patch from weitjong. 2013-01-13 12:16:41 +00:00
Lasse Öörni
570c48c5cf Allow to use RGB normal maps. Different material techniques are used for xGxR normal maps. 2013-01-09 11:00:43 +00:00
Lasse Öörni
0891aa62dc Applied DebugHud app stats patch from weitjong. 2013-01-08 07:59:55 +00:00
Lasse Öörni
1d745f9951 Moved script application reload inside Urho3D.cpp to avoid issues with unwanted application script startup. 2013-01-05 11:26:02 +00:00
Lasse Öörni
53adf6fc5b Expose UnsubscribeFromAllEventsExcept() to script. 2013-01-04 20:06:12 +00:00
Lasse Öörni
2c96dff225 Execute procedural Start() & Stop() functions automatically when a ScriptFile is loaded and unloaded. This allows live-reload of a whole script application.
Do not recreate Console & DebugHud if they already exist.
2013-01-04 19:24:43 +00:00
Lasse Öörni
9d759300fe Added possibility to disable the litbase pass optimization in RenderPath, if an ambient-only pass is needed. 2013-01-02 23:38:39 +00:00
Lasse Öörni
d733091eb2 Fixed viewport calculation for rendertargets defined in the render path. If a target uses the RT divisor mode, scale the viewport, otherwise use full texture size (eg. for the bloom intermediate textures)
Undefined (zero) rendertarget size no longer uses the destination size automatically, instead the divisor needs to be specified.
2013-01-02 21:24:25 +00:00
Lasse Öörni
44ca4d92b6 Cleaned up documentation. 2013-01-02 17:24:11 +00:00
Lasse Öörni
f7f820b3eb Added RenderPath documentation. 2013-01-02 17:22:08 +00:00
Lasse Öörni
09b716f0b8 Added scripting interface for RenderPath. 2013-01-02 16:05:55 +00:00
Lasse Öörni
2a4fbcdf54 Removed the old postprocess system. Instead renderpath fragments can be appended.
Implemented missing quad rendering command in renderpath.
2013-01-01 23:05:44 +00:00
Lasse Öörni
a40fead7dc Updated license for the new year. 2013-01-01 11:46:18 +00:00
Lasse Öörni
ffe65cf885 Transition to xml-defined rendering path. Pass names changed. Likely caused a large number of regressions to postprocessing, texture rendering & multisampling, which need to be sorted out. The renderpath feature also needs to be documented. 2012-12-31 15:40:07 +00:00
Lasse Öörni
1ce5a632bd Removed the PassType enum in favor of hashed pass names, to prepare for freeform/redefinable render pipeline. 2012-12-27 18:11:32 +00:00
Lasse Öörni
04774d851b Removed unintended hyperlink from documentation. 2012-12-26 16:15:05 +00:00
Lasse Öörni
7d8558a51f Applied massive patch from weitjong.
Changes:

I. Build environment
1. Added new cmake definition to disable/enable Log subsystem in main's CMakeLists.txt.
2. Added setting in main's CMakeLists.txt to pass the "-D_DEBUG" compiler flags for Debug configuration build on non-MSVC compiler. At least it is needed on XCode to get verbose debug log. I assume MSVC does not have this problem.
3. Added '../Engine. to include directories in Input's CMakeLists.txt to allow Input to reference Engine class for handling of SDL_QUIT event (see V.5 and VII.1).
4. Changed cmake_gcc.sh to sed Doxyfile to exclude Direct3D9 and include OpenGL variants of the classes, assuming gcc is only for Mac OS X and Linux.
5. Changed cmake_ios.sh to sed Doxyfile to exclude Direct3D9 and include OpenGL variants of the classes.
6. Added new cmake_macosx.sh shell script to prepare cmake for Xcode in Mac OS X environment.
7. Updated Docs/Reference.dox to correct the URL to AMD's Compressonator.
8. Updated Docs/ScriptAPI.dox to reflect API changes in UI.
9. Added *.sh scripts in the Bin folder to invoke the respective demos.

II. Audio
1. Minor refactoring on Audio class: removed redundant header include, removed redundant call.
2. Corrected minor documentation typo error in Sound.h.

III. Container
1. HashMap minor optimisation: operator [] implementation would not traverse the container twice before node insertion, refactored Clear() and Sort() implementation, changed to static_cast instead of reinterpret_cast, etc.
2. HashSet minor optimisation: refactored Clear() and Sort() implementation, changed to static_cast instead of reinterpret_cast, etc.
3. List minor optimisation: refactored Clear() implementation and changed to static_cast instead of reinterpret_cast.
4. Corrected documentation error for operator > in Pair class.
5. Added new Contains() methods and renamed Print()/PrintArgs() to AppendWithFormat()/AppendWithFormatArgs (while they are still new :-) in String class. Added ToString() global function in StringUtils class to take advantage of new append methods (useful in constructing a formatted string for logging in one liner; becomes no-ops when logging not enabled).
6. Added new Remove() method in Vector and PODVector classes.

IV. Core
1. Enhanced ProcessUtils class to add native approach to detect number of Physical and Logical CPUs for iOS platform.
   BUG FIX: Previous ParseArguments(int, char**) implementation assumed there were no space in the pathname which causes parsing error when it does. Fixed by enclosed the argument in quotes before appending into command line. With this fix, Ninja War demo is runable in iPhoneSimulator.
2. In StringUtils added new convenient global function to construct a formatted string, see III.6.
3. In Variant added MAX_VAR_TYPES enum for guarding a while loop.

V. Engine
1. Added pragma to suppress LLVM/Clang erroneous warnings on unused functions in APITemplates.h.
2. Minor refactoring on Console class: removed redundant call, renamed current_Row to currentRow_.
3. In CoreAPI refactored code to replace map's Find() method call with the newly added Contains() method, added call to reserve container capacity.
4. Refactored DebugHUD class to use the String's new append method instead of a series of strings concatenation.
5. Enhanced Engine class to make Logging an optional feature that can be turned on/off like Profiler subsystem (see I.1), only unpause the audio when it was pause by the Engine previously, no need to check for uninitialized graphics due to window was closed (see VII.1) as engine's exiting_ flag should be set when SDL quits (even by quitting the process externally).
6. GraphicsAPI minor optimisation: Add call to reserve vector to the required known size.
7. Enhanced IOAPI to add preprocessor directive to no-ops the logging functions when Logging not enabled, see I.1.
8. Enhanced UIAPI to reflect changes in UI: mainly, exposed nonFocusedMouseWheel property (see XV.12).

VI. Graphics
1. AnimatedModel optimisation: refactored ProcessRayQuery() implementation, added call to reserve container capacity, removed copy-pasta comment.
   BUG FIX: Infinite while loop in SetMorphsAttr() as the index was never incremented.
2. Changed Animation constructor to also initialize length_.
3. Refactored AnimationController class: only mark for network update when necessary, corrected minor documentation error, added call to reserve container capacity, prevent out-of-bound index access in SetAnimationAttr() implementation, use the StringHash instead of plain name to find the animation state.
4. Refactored AnimationState to avoid redundant call.
5. Refactored BillboardSet class: removed redundant class forward, changed to use the revised Drawable's constructor (see VI.9), added call to reserve container capacity.
6. Refactored Camera class to remove redundant construct. 
7. Refactored DebugRenderer to reuse code. 
8. Refactored DecalSet class: changed to use the revised Drawable's constructor (see VI.9), added call to reserve container capacity, added new flag to track the event subscription.
9. Refactored Drawable to change its constructor to take additional drawableFlags parameter.
10. Enhanced Light class: changed to use the revised Drawable's constructor (see VI.9), refactored ProcessRayQuery() implementation, added implementation to debug draw the directional light.
    BUG FIX: On mobile devices, the CSM only has two splits. Use preprocessor directive to define the attribute as VAR_VECTOR2 instead of VAR_VECTOR4, accordingly.
    BUG FIX: Previous implementation used local ray against world bounding box for RAY_OBB. Fixed by first transformed the world bounding box to local coordinate.
11. Refactored Material class to set or unset the specular_ flag without traversing the shader parameters each time.
12. Refactored Model class: added call to reserve container capacity, removed redundant call to set the number of vertex buffer to 1 (which is Geometry's default).
13. Modified OcclusionBuffer Clear() method to use post decrement.
14. Refactored Octant and Octree classes: changed to use the new PODVector Remove() method, added index_ instance variable to facilitate child octant deletion, simplified the conditional check in the Release() but still achieving the same result.
15. Refactored OctreeQuery class to reorder the condition and to use post increment.
16. Refactored ParticleEmitter class: removed redundant class forward, changed to use the other ColorFade constructor that inits both color and time, added call to reserve container capacity.
17. Refactored Renderer class: removed unused static constants, amended the documentation text for HandleGraphicsFeatures(), delayed event subscription until object is initialized, moved logic to validate the shadow cascades from getter to setter, changed to use String's Contains() method instead of Find(), and a few more code changes (that make no difference :-).
18. Refactored ShaderParser class to change the method signature of GetCombination() method, removed redundant include.
19. Refactored Skeleton class to add call to reserver container capacity.
20. Refactored StaticModel class: changed to use the revised Drawable's constructor (see VI.9), changed the ProcessRayQuery() implementation.
21. Enhanced Tangent class to use pointer arithmetic instead of array indexing.
22. Refactored Terrain class: reordered instance variable initialization in constructor to keep compiler happy, added call to reserve the container capacity.
23. Refactored TerrainPatch class: changed to use the revised Drawable's constructor (see VI.9), changed ProcessRayQuery() implementation.
24. Refactored View class: removed unused method declarations (did not have implementation), changed to reuse existing Vector3 constants, changed octree query base class to FrustumOctreeQuery instead (no additional penalty as the methods are already virtualized anyway), moved constant to outside the loop in CheckVisibilityWork() implementation, reordered logical statement to take advantage of short circuit evaluation, and more.
25. Refactored Viewport class to use the more common way to insert into container.
26. Refactored Zone class: changed to use the revised Drawable's constructor (see VI.9), reordered logical statement to take advantage of short circuit evaluation.
27. Enhanced OGLGraphics class: added code to prevent unnecessary call to get OGL extensions, changed to use new String's Contains() method, added flag to speed up the Release() method, removed redundant code.
28. Changed OGLGraphicsImpl to remove unused include.
29. Changed OGLIndexBuffer to remove unnecessary override. Probably it was copy pasta from Direct3D9 version.
30. Refactored OGLShader class to use the modified ShaderParser's GetCombination() method, see VI.18.
31. Refactored OGLShaderProgram class to use reuse the index for the second string Find() call.
32. Refactored OGLShaderVariation class to the string Insert() method instead to insert all the defines.
33. Refactored OGLTexture class to use the enum instead of hardcoded value.
34. Refactored OGLTexture2D class to simplify the boolean assignment.
35. Refactored OGLTextureCube class to simplify the boolean assignment.
36. Refactored OGLVertexBuffer class to remove unnecessary override and to simplify the for loop condition check in GetElementOffset() method.
37. Refactored CustomGeometry class: changed to use the revised Drawable's constructor (see VI.9), changed ProcessRayQuery() implementation.

VII. Input
1. Enhanced Input class: added call to Engine::Exit() to properly setting the exiting flag instead of just closing the graphics (see V.5), refactored constructor to initialize the mouse related instance variables, delayed event subscription until object is initialized, and other minor refactoring.

VIII. IO
1. Enhanced FileSystem class: added Mac OS X implementation for SystemOpen() method, changed to use new String's Contains() method instead of Find().
   BUG FIX: On non-Win32 platform, files (including dirs) having name starts with '.' were being returned in the result although SCAN_HIDDEN flag is not set. The fix now excludes them.
2. Enhanced Log class: added preprocessor directive to no-ops the logging macros when Logging not enabled (see I.1), removed "XCODE_DEBUG_CONFIGURATION" as it is not effective (at least on my Xcode). Also replaced "XCODE_DEBUG_CONFIGURATION" with "_DEBUG" in SDL_uikitappdelegate.m.
3. Minor changed in Serializer.cpp to suppress compiler warning.

IX. Math
1. Refactored BoundingBox class to reuse code.
2. Enhanced MathDefs.h: better PI, added new constant M_DEGTORAD_2 which is M_DEGTORAD / 2.f (same as M_PI_2, M_PI_4 convention used in math.h).
3. Refactored Frustum class to use the new M_DEGTORAD_2 constant.
4. Refactored Plane.h to reuse code.
   BUG FIX: Copy constructor did not initialize the absNormal_ properly.
5. Enhanced Quaternion class: added multiply-assign operator with a scalar, added Conjugate() method, refactored to reuse code as much as possible, returned conjugate as inverse for unit quaternion, refactored code to use the new M_DEGTORAD_2 constant.
6. Refactored Rect class to reuse code.
7. Refactored Sphere to use post increment.

X. Network
1. Refactored Connection class: changed to hide the detail of the message processing from the caller, added preprocessor directive to exclude statistics when logging is disabled, changed the code to reflect the change done in Node::CreateComponent() method signature (see XIII.2).
2. Refactored Controls class: removed redundant class forward, changed the way default constructor initialize the instance variables.
3. Refactored Network class: removed redundant class forward, changed to reflect changes done in X.1 to process messages, changed the GetConnection() implementation to avoid traversing of the clientConnections_ unnecessarily.

XI. Physics
1. Enhanced CollisionShape class to add preprocessor directive to no-ops the logging calls when Logging not enabled, see I.1. Refactored the HeightfieldData() method to eliminate if statement in the loop.
2. Minor changed in Constraint.cpp to suppress compiler warning.
3. Refactored PhysicsWorld class: removed redundant call in destructor, changed to use the new PODVector Remove() method.
4. Refactored RigidBody class to use the new PODVector Remove() method.

XII. Resource
1. Minor changed in Image.cpp to suppress compiler warning.
2. Enhanced ResourceCache class: changed code to subscribe to event only when auto reload is enabled, refactored to use HashMap's Find() instead of traversing through container manually, changed to use new String's Contains() method.
3. Minor changed in XMLElement class to define an EMPTY element constant.

XIII. Scene
1. Refactored Component class: removed redundant include, reordered logical evaluation.
2. Refactored Node class: changed the CreateComponent() to accept optional ID parameter (combined previously two methods into one), refactored to reuse code as much as possible, added new method to reset scene called by Scene class, moved protected section to correct place adhering to code convention, added new private convenient method to remove component. 
3. Refactored Scene class: changed destructor and in NodeAdded() method to use the new Node::ResetScene() method (see XIII.2), changed the GetVarNamesAttr() implementation to avoid if in the loop, instead of using XMLElement and String default constructor, changed to reference new EMPTY XMLElement constant (see XII.3) and String's Clear() method, respectively.
4. Enhanced SceneResolver class to add preprocessor directive to no-ops the logging calls when Logging not enabled, see I.1.
   BUG FIX: The missing 'else' statement in Resolve() method might cause component ID not resolved correctly. Fixed by adding the else statement.
5. Enhanced Serializable class: refactored code to suppress compiler warning, added new feature to read/write new optional "enum" XML element.

XIV. Script
1. Enhanced Addons class: removed redundant include, changed code to suppress compiler warning, exposed new String's Contains() methods to script enginei (see III.6).
   BUG FIX: The Find() and FindLast() were erroneously exposed as returning integer value. Changed it to returning unsigned instead.
2. Enhanced Script class: added preprocessor directive to no-ops the logging calls when Logging not enabled (see I.1), changed to use new String's Contains() method instead of Find(), removed redundant call in destructor.
   BUG FIX: The logMode_ instance variable was not initialized properly in the constructor (although documentation says it should be defaulted to immediate mode). Initialized it according to documentation.
3. Refactored ScriptFile class to remove redundant call.
   BUG FIX: Previous implementation in Load() assumed script log mode. The fix saves the old mode and use it to revert back the mode.
4. Enhanced ScriptInstance class: refactored ClearDelayedExecute() method to avoid unnecessary vector traversal, simplified code that tracks the execution of METHOD_DELAYEDSTART, refactored to code reuse.

XV. UI
1. Refactored UIQuad and UIBatch: Added new constructor that initialize instance variables, moved GetInterpolatedColor() method between the two, modified the UIBatch methods to take in const UIElement reference, changed the implementation to code reuse as much as possible.
2. Refactored BorderImage class to use the new UIBatch constructor, see XV.1.
3. Very minor changed in Button.cpp to simplify the logical statement.
4. Refactored DropDownList class: Changed to call Menu::GetBatches() instead of Button::GetBatches(), changed for code reuse.
5. Refactored FileSelector class: added call to reserve container capacity, changed for code reuse.
6. Refacotred Font class: added call to reserve container capacity, removed redundant call. 
   BUG FIX: Corrected a typo in GetKerning() implementation causing the kerning information not being applied correctly between adjacent characters.
7. Refactored LineEdit class: Changed to call BorderImage::ApplyAttributes() instead of UIElement::Attributes(), removed redundant construct, changed to reuse code as much as possible, initialized variable in the setter method instead of during update.
8. Enhanced ListView class: added optional index parameter for RemoveItem() method, subscribed to the defocused event only when it is needed, changed to reuse code as much as possible (page up/down and home/end now support additive multi-select as the positive side effect), removed redundant construct.
9. Very minor change in Menu.cpp to use Variant::EMPTY instead of constructing an empty Variant instance.
10. Refactored ScrollView class to reuse code.
11. Refactored Text class to use the new UIBatch constructor, see XV.1.
12. Enhanced UI class: Added support to enable non-focused mouse wheel behaviour similar to Mac OS X and Linux, delayed post-update and render-update event subscription until object is initialized, removed redundant construct.
13. Enhanced UIElement class: added optional index parameter for RemoveChild() method, refactor the code to use the right constness, renamed method from GetUintColor() to GetDerivedColor(), added new private Detach() method, added mutable keyword as necessary to support const getter, refactored destructor method, added call to reserve container capacity, and more.
14. Minor change in Window.cpp to suppress compiler warning.

XVI. Third Party
1. FreeType: Included zutil.c as source in the CMakeLists.txt and fixed the problem when compiling with _DEBUG set.
2. kNet: Removed std::cout statement in the UDPMessageConnection.cpp.
3. SDL: Changed XCODE_DEBUG_CONFIGURATION to _DEBUG in SDL_uikitappdelegate.m, see VIII.2.
   BUG FIX: The touch focus was always zero causing the touch event from touchpad in Mac OS X platform was not handled correctly by Input class because the GetInputInstance() method returns 0 when windowID is 0. Assign the touch's focus with current focus window ID. NOT SURE THIS IS THE CORRECT FIX THOUGH.

XVII. Demos
1. BUG FIX: TestScene.as and TestSceneOld.as assert in the btAlignedObjectArray.h. It was caused by the script trying to remove the RigidBody and/or CollisionShape while in the middle of physics collision event handling. The Bullet's assert could be observed when build using _DEBUG. Fixed by postponinig the removal to post step.
2. Enhanced the NinjaSnowWar to support no-background-music (nobgm) option.
   BUG FIX: BGM was purposely not played on multiplayer mode assuming testing is done on a same test machine, however, this has caused the BGM not to be played on the genuinue multiplayer mode using different machines. Re-enable BGM on multiplayer mode. Instead, added comments in the demo shell/batch script on how to avoid multiple BGM played on a same test machine.
2012-12-25 20:56:05 +00:00
Lasse Öörni
7c61b098bf Fixed forward lit spotlight shadows on OpenGL.
Removed the NVIDIA-specific INTZ depth path so that shaders don't need special cases for reading depth.
2012-12-25 17:55:10 +00:00
Lasse Öörni
5511528fac Added CMake .bat file for Visual Studio 2012. 2012-12-24 15:28:01 +00:00
Lasse Öörni
14b78585fc Added CustomGeometry component, which is similar to OGRE ManualObject.
Support also non-indexed geometry for raycasts, occlusion and decals.
2012-12-24 11:56:30 +00:00
Lasse Öörni
21811bc13f Explicitly mention that DirectX June 2010 SDK needs to be installed.
Moved the Log timestamp functionality to Time subsystem, so that it can also be called by the user.
2012-12-22 16:42:01 +00:00
Lasse Öörni
411ab13883 Applied jpeg save and system time patches from Alex Fuller. 2012-12-20 23:23:07 +00:00
Lasse Öörni
21a2fee4a7 Added script API Object::SendEvent() patch from Magic.Lixin. 2012-12-17 11:00:41 +00:00
Lasse Öörni
4cafb5c0d7 Added tiled BorderImage patch from primitivewaste.
Added foreachv macro from Jason Kinzer.
2012-12-04 22:25:44 +00:00
Lasse Öörni
5be828da83 Added foreach implementation from Jason Kinzer. 2012-12-01 21:39:50 +00:00
Lasse Öörni
48da9e9093 Applied VS2012 / ShaderCompiler patch from Colin Barrett. 2012-11-01 19:46:37 +00:00
Lasse Öörni
e64d64034e Added cubic environment mapping shaders, techniques & example materials.
Fixed bug in loading cube map miplevel 0 if mips were skipped.
2012-10-26 19:45:38 +00:00
Lasse Öörni
dde21f587e Added WeakHandle to script, which is a WeakPtr<Object>.
Exposed strong & weak refcount of all classes derived from RefCounted to script.
2012-10-23 17:29:41 +00:00
Lasse Öörni
7d930b62f8 Added missing specular mapped material techniques.
Added generate tangents option to editor.
Default light specular intensity to 1.0.
Fixed generation of specular mapped materials in AssetImporter.
Fixed documentation regarding specular maps (deferred does not support colored specular, forward & light pre-pass do.)
2012-10-21 13:52:24 +00:00
Lasse Öörni
f4f538fcd0 Additions to documentation. 2012-10-20 16:54:09 +00:00
Lasse Öörni
fbef191c6b Removed the NewCollision parameter of collision events. Instead separate CollisionStart & CollisionEnd events are sent when a collision begins or ends.
Added a buoyancy volume into the Terrain script as an example of a trigger area, use L key to toggle.
2012-10-18 20:30:05 +00:00
Lasse Öörni
88896fe805 Added GetCollidingBodies() function to RigidBody which returns collisions from last physics step.
The iterator versions of HashMap & HashSet Erase() return an iterator to next element.
2012-10-17 18:54:48 +00:00
Lasse Öörni
f8aa92cbcd Improved skeletal animation documentation. 2012-10-04 14:31:31 +00:00
Lasse Öörni
c7fe3c37bd Added sound listener component whose position is automatically taken into account by Audio subsystem.
Removed setting listener position/rotation manually.
Removed unnecessary includes.
2012-10-02 14:46:09 +00:00
Lasse Öörni
eadca81cf4 Updated to Open Asset Import Library 3.0. 2012-09-22 20:23:35 +00:00
Lasse Öörni
aeb5d9d281 Updated to AngelScript 2.25.0.
Fixed assert in AnimatedModel when increasing number of animation states in the editor.
2012-09-22 16:49:04 +00:00
Lasse Öörni
bfb76725b6 Additions to documentation. 2012-09-04 21:45:19 +00:00
Lasse Öörni
415c2a28ce Fixed missing mention of the UI library on the OverallStructure page. 2012-09-04 21:33:51 +00:00
Lasse Öörni
f1f58a8bed Use 'O' key to toggle orthographic camera also in LightTest. 2012-09-04 21:23:56 +00:00
Lasse Öörni
bb2b57552e Added note of texture format "downconversion" on OpenGL ES. 2012-09-03 07:38:12 +00:00
Lasse Öörni
0cd53cdee3 Added 16 & 32-bit texture formats. 2012-09-02 23:05:40 +00:00
Lasse Öörni
44ffd7e0b8 Disable SSE also from Bullet when necessary. 2012-09-02 17:38:26 +00:00
Lasse Öörni
575ac5b625 Removed references to Windows 2000 in the documentation. Windows XP is the minimum supported Windows OS version. 2012-09-02 13:33:16 +00:00
Lasse Öörni
a3d63cce41 Updated version history. 2012-09-01 11:24:53 +00:00
Lasse Öörni
fa69f2e174 Fixed texture unit enumeration and the environment texture sampler. Removed references to the nonexistent detail texture sampler in the documentation. 2012-08-31 22:24:59 +00:00
Lasse Öörni
9401ad8063 Removed UI serialization hacks related to the Menu & DropDownList popup element. To avoid layout problems, now it is never added as a child temporarily.
Do not abort UI layout deserialization on encountering an unknown element.
2012-08-30 20:34:17 +00:00
Lasse Öörni
053c1f3e6a Added convenience overloads for LoadLayout().
Added DropDownList selection attribute.
Removed duplicated code from UIElement.
2012-08-30 12:37:36 +00:00
Lasse Öörni
4cef5395f5 Completed the UI element refactoring. Removed hardcoded SetStyle() functions which would read UI element attributes from XML.
Added SaveLayout() function to UI.
Fixed serialization & deserialization of IntRect & IntVector2 variants.
Fixed crash when querying a BorderImage's texture in script.
2012-08-28 20:22:51 +00:00
Lasse Öörni
0a16099532 UIElement serialization / deserialization.
Fixed XML serialization of IntVector2.
2012-08-27 06:15:29 +00:00
Lasse Öörni
83e90ae61c Started work on UI element attributes. 2012-08-26 21:19:02 +00:00
Lasse Öörni
e586349114 Added UIElement::CreateChild().
Added internal flag to UI elements, meaning a child element has been programmatically created (for example the slider of a scroll bar.)
2012-08-25 09:22:43 +00:00
Lasse Öörni
948590623d Added IntVector2 Variant type. 2012-08-24 18:52:05 +00:00
Lasse Öörni
683aa3c5fb Added script bindings for Variant IntRect operations. 2012-08-23 22:13:42 +00:00
Lasse Öörni
5aeebaa3bf Added Rect & IntRect Variant types.
Added Rect::Equals().
2012-08-23 21:49:50 +00:00
Lasse Öörni
7813601540 Added scene timescale attribute. 2012-08-22 19:22:13 +00:00
Lasse Öörni
26fa24ed01 Re-added support for varying shadow intensity on OpenGL ES, as the calculation is not very complex. 2012-08-21 12:41:41 +00:00
Lasse Öörni
ba890672dd Added Size(), Width() and Height() to IntRect. 2012-08-20 15:30:22 +00:00
Lasse Öörni
7c7e63f4ff Added fixes for compiling with MinGW. 2012-08-20 11:46:42 +00:00
Lasse Öörni
71cf37c257 Applied CMakeLists.txt patches from skaiware. 2012-08-18 14:58:12 +00:00
Lasse Öörni
f0b6d55b28 Enclosed Urho3D classes inside Urho3D namespace to avoid clashes with external libraries. 2012-08-15 22:57:52 +00:00
Lasse Öörni
5e7387b695 Added physics stresstest example. 2012-08-09 18:36:36 +00:00
Lasse Öörni
c64dfb114e Added back polygon fill mode. 2012-08-08 17:15:13 +00:00
Lasse Öörni
312ddc0242 Added repeat flag to delayed method calls.
Added possibility to remove delayed method calls selectively.
Documented delayed method calls.
2012-08-06 10:51:43 +00:00
Lasse Öörni
ea2f6e967a Added DelayedStart() script object method to work around missing child scene nodes during Start(). 2012-08-03 21:06:40 +00:00
Lasse Öörni
3d4eb6bdc8 Event refactoring. Removed the concept of targeted events and a Node forwarding a targeted event to all components, which was used only for physics node collision events. Now the node will instead send the collision event, and it can be explicitly subscribed to.
Remote node events specify a sender node instead of a receiver node. The sender connection is always available as an event parameter.
2012-08-03 09:03:02 +00:00
Lasse Öörni
3b67320a49 Added animation trigger event system.
Added ReplaceExtension() utility function to simplify filename manipulation code.
Cleaned up NinjaSnowWar script code. Added particle effect on ninja's footsteps and landing from jump.
2012-08-02 21:19:57 +00:00
Lasse Öörni
6dac86e2e7 Added option to disable log timestamps. 2012-08-01 22:27:32 +00:00
Lasse Öörni
e7935ffaf6 Documented the new attribute flags. 2012-07-30 13:37:51 +00:00
Lasse Öörni
9557eb64b4 Added note about moving triangle mesh collision shapes. 2012-07-30 12:59:21 +00:00
Lasse Öörni
481fbfa220 Added visible OS mouse cursor mode. When used with an external window, this is the only supported mode, as SDL does not control the cursor visibility of an external window. 2012-07-28 10:38:04 +00:00
Lasse Öörni
1ca858cc2a Changed ListView to use PODVector for the selections, and explicitly sort them when necessary.
Circumvented ListView selections set accessor not working by defining it as a method instead.
2012-07-27 12:06:34 +00:00
Lasse Öörni
170ee77019 To avoid confusion when to use what, and as the performance is usually better, use only HashMap & HashSet instead of Map & Set.
Optimized memory use of HashMap/Set to 16 bytes so that it can be stored inside Variant.
2012-07-26 22:22:59 +00:00
Lasse Öörni
ef12e4a769 Added contributions/bugfixes category to the credits. 2012-07-25 07:21:08 +00:00
Lasse Öörni
8fe755e7e6 Do not release resource if it has weak refs.
Exposed function to explicitly reload shaders.
Set a default resource path in the editor (Bin/Data/) so that scene/model import works even without setting a resource path.
2012-07-22 16:46:32 +00:00
Lasse Öörni
a9e9c7c5c5 Readme formatting. 2012-07-22 15:52:13 +00:00
Lasse Öörni
272ba97189 Docs formatting. 2012-07-22 14:28:41 +00:00
Lasse Öörni
c9ea9cb384 Changelog for next release.
In the demo scripts, only increase decal max. vertex/index count when targeting skinned geometry.
Do not try to add decals in headless mode.
2012-07-22 13:56:59 +00:00
Lasse Öörni
073347c950 AABB-test physics geometry before adding it to the debug renderer.
Never debug draw heightfields, as it hugely slows down execution.
2012-07-22 11:23:00 +00:00
Lasse Öörni
21c6bfd098 New stone texture.
Save each example scene with an unique name.
Update terrain batch LOD always in the main thread to avoid overhead of firing threaded work items, if there is no more CPU-consuming geometry updates (such as skinning) to be done.
2012-07-21 14:44:53 +00:00
Lasse Öörni
30c21a3789 Added terrain blend shader and terrain example.
Added function to get terrain normal at point.
Always update terrain patch stitching.
Fixed material texture indexing & setting.
2012-07-20 21:49:24 +00:00
Lasse Öörni
ec8394b3de Initial terrain LOD. No stitching yet.
Limit DebugRenderer total vertices to prevent possible crash.
Perform coarse culling in DebugRenderer to avoid rendering lines outside the view.
2012-07-19 13:28:05 +00:00
Lasse Öörni
478a5af9d1 Allow defining depth bias for materials.
Center decal frustum on the decal world position.
Use material depth bias for decals instead of applying the bias to decal geometry.
2012-07-19 09:34:11 +00:00
Lasse Öörni
42b9cbc158 Cleaned up terrain code.
Updated script API documentation.
2012-07-18 23:19:52 +00:00
Lasse Öörni
83487ac88f Further ShaderParser optimization. 2012-07-14 11:58:25 +00:00
Lasse Öörni
2d8f47618f Changed controls in TestScene.as & TestSceneOld.as to not require the middle mouse button for adding decals. 2012-07-11 18:16:02 +00:00
Lasse Öörni
debcc38bb0 Allow configuring DecalSet max. vertices and indices separately.
Serialize DecalSet geometry as a byte buffer for reduced file size.
2012-07-11 16:42:08 +00:00
Lasse Öörni
92510672f7 Serialize also skinned decals.
Fixed flicker of billboards & decals on first frame after loading.
2012-07-09 21:27:47 +00:00
Lasse Öörni
4ea24a7a03 Fixed example scripts. 2012-07-08 21:27:32 +00:00
Lasse Öörni
296e36a75b Calculate tangents for decals. 2012-07-08 21:17:45 +00:00
Lasse Öörni
06371a62ed Wrap decal around static geometry.
Changed OcclusionBuffer clipping to produce less degenerate triangles.
Exposed more Frustum functions to script.
Moved StaticModel software LOD (raycast / occlusion) determination into a function.
2012-07-08 15:49:48 +00:00
Lasse Öörni
91c7374e28 Started work on decals.
Geometry can now define a non-indexed draw range.
Do not queue empty batches (with empty draw range) for rendering.
2012-07-07 23:54:29 +00:00
Lasse Öörni
d18baaff87 Reverted back to 4 sample shadow mapping on OpenGL ES, but limited directional light cascades to 2. 2012-07-07 13:43:40 +00:00
Lasse Öörni
bb821f2a3c Reverted the split fade optimization. 2012-07-07 10:58:13 +00:00
Lasse Öörni
e8d549ef7e Shader refactoring. Renamed the lit object ubershader as LitSolid; it now handles also deferred rendering.
Reduced max. vertex light count to 4 to prevent excessive shader permutations.
2012-07-06 18:35:13 +00:00
Lasse Öörni
38fd976aa9 Fixed potential infinite loop when setting morphs.
Added script API function to query morph names.
Unified AssetImporter & OgreImporter command line options regarding animations.
2012-07-05 10:57:51 +00:00
Lasse Öörni
5ede251b62 Use full asset paths (with / sanitated to _) in Tundra scene import, as there may be assets with same name but with different content in different subdirectories. 2012-07-04 20:59:45 +00:00
Lasse Öörni
3833c24ab3 Fixed smoothing of the cone model.
Added menu in the editor for instantiating the primitive shapes.
2012-07-04 17:03:27 +00:00
Lasse Öörni
85e2ab1589 Added joystick control to NinjaSnowWar. 2012-07-04 08:05:35 +00:00
Lasse Öörni
3f2e63b952 Removed the model build step from CMakeLists.txt. Instead added binary models directly to the repository. 2012-07-03 16:22:36 +00:00
Lasse Öörni
dee2e099de Added ETC1 & PVRTC decompression from the Oolong Engine. Used when not supported in hardware. 2012-07-03 11:34:07 +00:00
Lasse Öörni
c9bdf9eb35 Added function to redetect joysticks. 2012-07-02 10:26:01 +00:00
Lasse Öörni
96bdad35a0 Updated to AngelScript 2.24.0a.
Do not sort batches front-to-back on mobile devices.
Disable shadow map reuse in NinjaSnowWar on mobile devices.
2012-07-01 15:35:06 +00:00
Lasse Öörni
06505eac99 Fixed documentation. 2012-06-29 07:12:37 +00:00
Lasse Öörni
e994485472 Added a macro for the different main() implementations. 2012-06-28 20:31:25 +00:00
Lasse Öörni
762da4aec0 Updated the quickstart documentation. 2012-06-28 19:44:16 +00:00
Lasse Öörni
18e8cb6334 Removed need for anisotropic filter OpenGL extension.
Removed redundant hires shadow map support flag.
2012-06-28 19:17:59 +00:00
Lasse Öörni
7d39dd0c58 Joystick events and joystick button pressed state. 2012-06-28 07:49:23 +00:00
Lasse Öörni
4a463176ab Added joystick support.
Cleaned up reading touch input.
2012-06-27 23:03:25 +00:00
Lasse Öörni
d23803e285 Added memory debug dump (MSVC debug mode only.) 2012-06-26 05:58:48 +00:00
Lasse Öörni
613e3e94f9 Allocate nested script execution contexts on demand. 2012-06-25 18:01:11 +00:00
Lasse Öörni
5507b006be Shader load/compile refactoring. Removed shader source code from the SourceAssets directory and moved to Bin/CoreData/Shaders.
Changed ShaderCompiler command line options.
Changed FileSystem::SystemRun() to use CreateProcess() and to hide the window of the spawned program.
Removed GLShaderProcessor.
2012-06-24 00:11:43 +00:00
Lasse Öörni
2b5e656d79 Documentation update. 2012-06-19 20:30:11 +00:00
Lasse Öörni
d7d599be7b Added loading of ETC1 compressed textures on mobile devices. These need to be stored inside .ktx files.
Removed unneeded texture.
2012-06-16 23:59:54 +00:00
Lasse Öörni
178b6e351e Added documentation on the application activation state and mobile devices. 2012-06-16 11:02:27 +00:00
Lasse Öörni
ba7049bb30 Use empty default name for cloned material in the script API. 2012-06-14 21:16:26 +00:00
Lasse Öörni
e1a1c974e5 Initial iOS support.
Do not use glPolygonOffset() constant bias due to its inconsistency. Instead offset the projection matrix as necessary.
Do not use multiple glUniform calls to set an array of transposed matrices, as it is not guaranteed to work. Instead transpose all matrices first, then set them in one call.
2012-06-09 22:05:14 +00:00
Lasse Öörni
2c54f016c8 Applied SDL Android RWops patch. 2012-06-05 07:14:08 +00:00
Lasse Öörni
5d55c0959d Re-added the alpha masking hint to give priority to fully opaque materials. 2012-06-03 23:30:58 +00:00
Lasse Öörni
6e86187926 Documentation update. 2012-06-03 19:14:18 +00:00
Lasse Öörni
5ed1f86b27 Added note about the stencil buffer on OpenGL ES 2. 2012-06-03 11:38:34 +00:00
Lasse Öörni
02738d055e Renamed Android package and added instructions on how to replace it with application-specific package name.
Updated documentation.
2012-06-03 11:35:26 +00:00
Lasse Öörni
4070e61e78 Added option to automatically pause updates & audio when minimized. 2012-05-30 23:17:16 +00:00
Lasse Öörni
3e7882093a Disabled all stencil operations on OpenGL ES for now, as the OES packed depth stencil isn't tested for or used yet.
Use fixed vertex attribute locations on OpenGL.
Always transpose OpenGL matrix uniforms manually.
Workaround failed draw call after drawing billboards on OpenGL ES by transforming billboards with an identity model matrix.
Ensure finger touch ID's are positive.
Improved touch controls in NinjaSnowWar.
2012-05-27 16:39:21 +00:00
Lasse Öörni
0706ae397f Touch input on Android.
Run NinjaSnowWar by default on Android.
Rudimentary touch controls (virtual on-screen joystick) in NinjaSnowWar.
Improved OpenGL ES depth bias.
Support GetUserDocumentsDir() on Android (return the getFilesDir() path.)
Fixed OpenGL ES mode erroneously attempting to use shadowed point lights.
Added .bat file to copy Data & CoreData directories as Android assets.
2012-05-27 00:27:23 +00:00
Lasse Öörni
3bf10d2670 Clarified Android build instructions. 2012-05-25 06:48:35 +00:00
Lasse Öörni
92facb3c3b Added Android asset support and basic build instructions. 2012-05-24 22:16:21 +00:00
Lasse Öörni
5bb39d77c4 Added function to return a runtime platform identifier string. 2012-05-20 11:29:18 +00:00
Lasse Öörni
354f04e6f2 Added Texture::IsCompressed().
OpenGL ES fixes.
2012-05-19 12:17:58 +00:00
Lasse Öörni
f3f724920c Removed unnecessary include from WorkQueue.
Documentation fixes.
2012-05-16 19:26:07 +00:00
Lasse Öörni
627d2c94d7 Switched from GLFW & PortAudio back to (modified) SDL 2.0.
Do not draw debug geometry for bones that do not contribute to skinning.
Activate input immediately after title bar drag (Windows) or when the cursor is moved into the client area after title bar drag (Mac & Linux).
2012-05-13 22:28:06 +00:00
Lasse Öörni
5001c19663 Documentation fixes & additions. 2012-05-09 22:29:25 +00:00
Lasse Öörni
d9f9505ae4 Fixed possibility of mistaken procedural event handling if attempted from a script object that does not belong to a ScriptInstance. 2012-05-09 07:21:04 +00:00
Lasse Öörni
0ca75a4d2d Updated documentation. 2012-05-07 19:46:00 +00:00
Lasse Öörni
4666520d0b Improved ragdoll stability in TestScene.
Create ragdolls when hit by the boxes (both TestScene & TestSceneOld.)
Fixed component ID clash when creating ragdolls in networked TestScene.
Constraints can specify rotation frame directly. Specifying the axis is still provided for convenience, but does not give exact control over the orientation.
Constraint adjusts static world position automatically when the own body position is edited.
Optimized away redundant Constraint recreation when deserializing attributes.
Added RemoveComponent by component type to Node.
Show also write-only properties in the generated scripting API documentation.
2012-05-07 19:44:43 +00:00
Lasse Öörni
70c58f43d9 Added SetWorldPosition() to Constraint.
Initial ragdoll test in TestScene.
2012-05-07 07:30:40 +00:00
Lasse Öörni
9f331e56db Changed Constraint API to specify the other body position / axis explicitly, and to specify limits as Vector2.
Fixed bugs in assigning parented RigidBody transforms after simulation step.
Optimized Constraint SetPosition() / SetAxis() to not recreate the constraint.
2012-05-07 00:15:20 +00:00
Lasse Öörni
b01fc7b60b Added rigid body queries to PhysicsWorld. 2012-05-06 20:29:03 +00:00
Lasse Öörni
011c8e8e8f Updated version history for impending new release. 2012-05-06 12:38:07 +00:00
Lasse Öörni
8cdc6f69d2 Properly clean up event handlers referring to a deleted object.
Added cone twist constraint.
Added angular motion limits to the slider constraint.
Improved batch group hashing.
2012-05-06 11:59:47 +00:00
Lasse Öörni
4335295b87 Added slider constraint. 2012-05-05 23:10:45 +00:00
Lasse Öörni
5c4904288a Fixed hinge constraint breaking.
Fixed constraint not being created if rigid body did not initially exist.
Changed constraint position & axis to be serialized in world space for reliability.
2012-05-02 22:13:09 +00:00
Lasse Öörni
ef421ef32d Initial Bullet constraint implementation.
Changed DrawDebugGeometry() to be a virtual function in Component.
2012-05-01 19:26:29 +00:00
Lasse Öörni
31e027b354 Maximum amount of sorted instances can be configured in Renderer. By default 1000.
Moved the NetworkState pointer back to Serializable, as there was not much practical benefit.
2012-04-29 16:20:23 +00:00
Lasse Öörni
a84ed27df9 Updated to AngelScript 2.23.1.
Removed link time code generation from the release build as it greatly increases compile time, but does not seem to provide observable performance benefit.
2012-04-29 13:10:22 +00:00
Lasse Öörni
e6fe0d6cf0 Removed convenience GetWorldTransform() from Component to make it explicit that an indirection to the parent node is being made.
Added inverse transform caching to Zone.
Added light nullcheck to Batch.
2012-04-29 12:01:37 +00:00
Lasse Öörni
d8eb85b9b4 Added SphereCast function to PhysicsWorld.
Applied kNet bugfix.
Restored custom kNet UDP flow control mechanism.
2012-04-26 20:03:54 +00:00
Lasse Öörni
40709f2d63 Added GetCompressedTextureSupport() to Graphics. Always true on Direct3D9. 2012-04-25 21:23:37 +00:00
Lasse Öörni
2f4165bf0f Added Squish library for DXT decompression. 2012-04-25 21:07:35 +00:00
Lasse Öörni
5bc2c61d88 Reorganized Node, Component, Drawable & Camera member variables for more optimal access.
Several Camera getter functions changed to const.
2012-04-23 18:41:38 +00:00
Lasse Öörni
5640824c9a Fixed Camera not properly notified of node transform changes.
Added caching of camera view matrix.
2012-04-23 17:47:29 +00:00
Lasse Öörni
91f6f87472 Explicitly mark changed nodes to avoid going through the whole scene in PrepareNetworkUpdate(). 2012-04-22 18:48:09 +00:00
Lasse Öörni
1a9dced05b Updated to AngelScript 2.23.1 WIP.
Fixed crash at exit when a script contains an array of Node handles.
Fixed missing sound type enum in the editor. Added Ambient sound type.
Fixed incorrect occlusion when a drawable is set for no occlusion, but the parent octant is occluded.
Removed unnecessary node lookup in network replication.
Added GetScene() to Component for convenience.
2012-04-21 12:50:48 +00:00
Lasse Öörni
e0571d46eb Removed kNet message priority sorting to improve CPU performance when sending a high volume of network messages. 2012-04-20 22:55:50 +00:00
Lasse Öörni
66a860144a Added separate Equals() function to Vector & Quaternion classes to perform comparison with epsilon. Equality operator does not use epsilon. This optimizes network sync somewhat. 2012-04-18 11:05:57 +00:00
Lasse Öörni
08ac95dbf7 Fixed continuous collision detection to work with the compound shape.
Added CCD radius & motion threshold attributes to RigidBody. 
Use CCD for NinjaSnowWar snowballs to prevent their tunneling through the ground.
2012-04-16 21:45:40 +00:00
Lasse Öörni
51c9160eae Removed CCD Radius parameter for now as continuous collision detection is not supported for all collision shapes.
Changed the way RigidBody attributes are applied to reduce unnecessary re-adding of the body to the simulation world during deserialization.
2012-04-15 16:47:33 +00:00
Lasse Öörni
9ead094d5a Removed the physics world maximum timestep, as it is already governed by the Engine's minimum FPS. 2012-04-15 13:19:42 +00:00
Lasse Öörni
32fa940130 Handle world transform update of parented RigidBodies correctly.
Updated physics documentation.
2012-04-15 11:42:02 +00:00
Lasse Öörni
8edf0240a1 Migration to Bullet physics underway. Most of physics functionality & examples broken for now. 2012-04-09 18:10:17 +00:00
Lasse Öörni
fbd019cff4 Updated to AngelScript 2.23.0. 2012-04-07 20:26:01 +00:00
Lasse Öörni
a85817a355 Reverted to joint world space positioning for reliability.
Added debug geometry visualization for joints.
Added nullchecks to prevent crash by calling DrawDebugGeometry() from script with a null debug renderer pointer.
2012-04-06 17:23:45 +00:00
Lasse Öörni
566489e1fa Updated the script API documentation. 2012-04-01 18:09:52 +00:00
Lasse Öörni
ff950d7dca Refactored joint attributes. Now the joint should be created into a node with a rigidbody, and only the connected body needs to be specified. 2012-03-30 23:02:33 +00:00
Lasse Öörni
bea4b8d60b Allow per-rigidbody disabling of gravity. 2012-03-25 12:57:45 +00:00
Lasse Öörni
c0273f35ca Removed deprecated SuppressNextChar() function. 2012-03-23 11:45:46 +00:00
Lasse Öörni
72794673d1 Fixed crash if a window message was received before the Input subsystem had initialized itself.
Fixed profiler output indent off by one.
Updated script API.
2012-03-11 13:49:01 +00:00
Lasse Öörni
9d15b80fc4 Audio::IsInterpolated() -> Audio::GetInterpolation().
Fixed comments in the audio library.
2012-02-28 22:58:25 +00:00
Lasse Öörni
26e2ebca26 Fixed enemy motion bugs in networked NinjaSnowWar.
Added possibility to disable physics interpolation. This is useful on a network server to ensure clients do not receive interpolated (and possibly non-physical) node transforms.
Changed default network update FPS to 30 (half of the default physics FPS.)
2012-02-28 21:03:42 +00:00
Lasse Öörni
cd00810139 Updated docs for upcoming release. 2012-02-28 18:51:31 +00:00
Lasse Öörni
f83b968576 To reduce Linux / NVIDIA performance issues, use another FBO for shadow rendering. Commit FBO changes only at SetDepthStencil(). 2012-02-28 00:24:35 +00:00
Lasse Öörni
6014f87a0f Added mention to only install libgl1-mesa-dev if OpenGL headers/libs do not already exist. 2012-02-27 08:09:11 +00:00
Lasse Öörni
911f9e4c5b Removed the "flush GPU" feature as it was causing erratic timing. The downside is increased input lag when vsync is on.
Increased NinjaSnowWar physics FPS to 100Hz for less likely snowball tunnelling.
Set the player yaw from mouse movement each frame also in singleplayer NinjaSnowWar.
When a physical Node's rotation only changes, do not force the rendering position automatically as the new physics position.
2012-02-26 16:00:52 +00:00
Lasse Öörni
ff9df846d1 Fixed physics transform interpolation when physics timestep is lower than framerate.
Use high resolution timer for frame timestep to avoid jitter at vsync frequency.
Rewrote frame limiting.
Elapsed time API changed.
2012-02-26 13:07:52 +00:00
Lasse Öörni
3afbeb83ea Added a documentation page on Unicode.
Restructured the quickstart-examples, and fixed the C++ quickstart code.
2012-02-26 11:35:03 +00:00
Lasse Öörni
c64e0cd165 Default to RelWithDebInfo build on GCC. Removed Urho3D executable name debug postfix due to CMake limitations. Copy the executables to Bin directory similarly on both MSVC & GCC. 2012-02-25 12:30:42 +00:00
Lasse Öörni
50226cfdb0 Started work toward Unicode compatibility. 2012-02-24 00:05:06 +00:00
Lasse Öörni
a1049eab4e Updated to AngelScript 2.23.0 WIP.
Removed the AngelScript datatype caching optimization, as it was possibly causing a VariantMap crash in the editor.
2012-02-22 23:18:50 +00:00
Lasse Öörni
7ec5ec4f6e Added FileWatcher class (for now Windows only) & live resource reloading. 2012-02-22 21:27:16 +00:00
Lasse Öörni
4e67907b8a Updated to AngelScript 2.22.2. 2012-02-14 21:57:12 +00:00
Lasse Öörni
9b89a1540d Added resource name sanitation to prevent creation of duplicate resources. 2012-01-15 09:55:50 +00:00
Lasse Öörni
0cc1219607 Added note on selecting 32-bit architecture with Xcode. 2012-01-08 22:17:49 +00:00
Lasse Öörni
667258b618 Updated to newest kNet. 2012-01-02 11:52:01 +00:00
Lasse Öörni
a5681746e1 Added brief documentation on skeletal animation.
Added missing morphs attribute to AnimatedModel.
2012-01-01 17:09:14 +00:00
Lasse Öörni
5dbf2b81f9 Added error logging for resource hash collision.
Clear both color & depth at the same time for light prepass rendering.
2012-01-01 15:22:43 +00:00
Lasse Öörni
cc3ee34f58 Increased occlusion buffer depth bias.
Minor code cleanup.
Updated copyright for 2012.
2012-01-01 00:07:57 +00:00
Lasse Öörni
88645ee31b Updated script API. 2011-12-31 21:03:31 +00:00
Lasse Öörni
9e871c1987 Removed automatic viewport reset on setting rendertarget to eliminate redundant API calls. However Graphics::ResetRenderTargets() resets the viewport. 2011-12-31 15:05:08 +00:00
Lasse Öörni
d34a73bfb9 Added full deferred rendering in addition to light pre-pass.
Added missing vertex colored light pre-pass material shader permutation.
2011-12-31 14:20:29 +00:00
Lasse Öörni
777810d84f Updated to Open Asset Import Library rev. 1102. 2011-12-30 19:32:45 +00:00
Lasse Öörni
ccbfe5babc Further documentation fixes. 2011-12-28 15:10:46 +00:00
Lasse Öörni
700b9c6a02 Post-process documentation fix. 2011-12-28 14:38:23 +00:00
Lasse Öörni
408d063cf5 Documentation edits. 2011-12-28 14:36:55 +00:00
Lasse Öörni
3d105cbdb6 Updated readme for new version. 2011-12-28 14:19:18 +00:00
Lasse Öörni
7075513957 Cleaned up bloom shader code.
Split SampleOffsets shader parameter to GBufferInvSize and ShadowMapInvSize parameters.
Set Offsets & InvSize parameters for user-defined rendertargets during postprocessing.
Fixed bug on some NVIDIA drivers caused by using tex2Dlod on the hardware depth buffer.
2011-12-28 13:17:21 +00:00
Lasse Öörni
a1c70a3476 Added bloom post-process effect.
Added global shader parameters to PostProcess.
Added possibility to specify texture units by number instead of name in materials and postprocesses.
2011-12-28 01:43:48 +00:00
Lasse Öörni
9fc3d48c12 Changed Viewport to be a reference-counted object.
Changed the Viewport API to allow easier manipulation of the post-process chain.
Added PostProcess::Clone().
2011-12-27 12:57:03 +00:00
Lasse Öörni
5aa1a38a98 Added documentation for post-processing. 2011-12-26 23:48:56 +00:00
Lasse Öörni
55ce257a9c Initial postprocessing implementation. Reimplemented the FXAA edge filter using it. 2011-12-26 01:07:37 +00:00
Lasse Öörni
510c606b3d Removed the redundant GetString() functions from XMLElement. 2011-12-24 20:04:52 +00:00
Lasse Öörni
3a319a2231 Optimized parsing of numbers from strings. 2011-12-24 03:04:35 +00:00
Lasse Öörni
762085c443 Updated script API. 2011-12-24 00:25:02 +00:00
Lasse Öörni
5c27c0f69f Changed to use pugixml instead of TinyXML.
Changed the XMLElement::RemoveChild() interface.
Removed the restriction that XML documents can only be saved to files.
Cleaned up CMakeLists files.
2011-12-23 21:46:49 +00:00
Lasse Öörni
86608f6ba5 Changed PostProcess class to not allocate rendertargets beforehand. 2011-12-23 00:35:42 +00:00
Lasse Öörni
6845f056a5 Refactored NinjaSnowWar example to load the scene and objects from files instead of creating them programmatically.
Fixed crash in ParticleEmitter.
Fixed network client trying to load scene file directly instead of going through the resource system.
Fixed AnimatedModel to create bones manually if they are missing after a scene or object load.
Changed TestScene & TestSceneOld to write the scene into the Scenes subdirectory.
2011-12-22 21:18:39 +00:00
Lasse Öörni
97f1fbd7e1 Added relative scale flag to ParticleEmitter XML description file format.
Fixed ParticleEmitter documentation.
2011-12-20 23:42:47 +00:00
Lasse Öörni
75beda5f3a Removed the "unculled drawable" mechanism. Instead added occludee-flag to Drawable.
Added missing attributes to ParticleEmitter.
2011-12-20 23:25:22 +00:00
Lasse Öörni
75096fe6f9 Refactored screen-size rendertarget allocation in preparation for postprocessing.
Removed the "size 0,0 follows window size" mechanism from Texture2D.
2011-12-20 22:24:09 +00:00
Lasse Öörni
d449b946bd Additions to the PostProcess API.
Exposed PostProcess to script.
Code cleanup.
2011-12-19 23:44:28 +00:00
Lasse Öörni
a341b9ea4f Cleaned up Menu code.
Added Node::Clone().
2011-12-18 17:45:11 +00:00
Lasse Öörni
f58e2595bf Rewrite node & component IDs when instantiating content from file.
Added choice to instantiate content as either replicated or local.
Fixed popup menu & editor hierarchy window update bugs.
2011-12-18 13:44:03 +00:00
Lasse Öörni
7f2f278c58 Added Scene::Instantiate() & Scene::InstantiateXML(), which load a partial scene from binary or XML.
Added editor functions Load node & Save node, which use the above functionality.
Fixed threading crash with multiple shadowed directional lights.
2011-12-18 00:57:50 +00:00
Lasse Öörni
1e1496e7d4 Refactored setting variants from strings.
Refactored nodes and components to write their type & ID when saving, instead of the parent node doing that.
Do not save attribute types into the XML format scene, as they are known.
When loading a node hierarchy, store also the root node reference into the SceneResolver.
Fixed bugs in async binary scene loading.
Removed the redundant .dat file extension filter from the editor. Instead .bin should be always used for binary scenes.
2011-12-17 18:37:23 +00:00
Lasse Öörni
a3c6e580c3 Added Graphics::GetFloatFormat(). 2011-12-15 21:06:00 +00:00
Lasse Öörni
35c21f06d7 Removed the fallback shadow code, as GPUs that actually need it are also too low-performance to render shadows acceptably. 2011-12-13 22:22:46 +00:00
Lasse Öörni
a207ec96c1 Updated script API documentation. 2011-12-13 21:32:15 +00:00
Lasse Öörni
9e4a9362cb Node::SetParent() retains the world transform.
Added GetDerivedComponent() to Node.
Added SetWorldPosition() and related functions to Node.
Added unparent command (Ctrl+U) to the editor.
2011-12-12 22:12:05 +00:00
Lasse Öörni
51cf76b99a Renamed SetLinkedDepthBuffer() -> SetLinkedDepthStencil(). 2011-12-10 16:36:59 +00:00
Lasse Öörni
d892a120e7 Reverted the OpenGL viewport reset logic. 2011-12-10 15:57:48 +00:00
Lasse Öörni
8c14956ebe Documentation update. 2011-12-10 15:35:45 +00:00
Lasse Öörni
c334b471e0 Exposed texture formats to script.
Fixed directional lights in light pre-pass mode when using the same camera for multiple views with different aspect ratios.
2011-12-09 23:57:10 +00:00
Lasse Öörni
f564e2bc83 Documentation update. 2011-12-09 21:19:39 +00:00
Lasse Öörni
f953254296 Renamed "edgefilter" command line parameter to "fxaa" for less typing. 2011-12-08 23:31:47 +00:00
Lasse Öörni
b2fae0ccb4 Added FXAA edge filter.
Updated readme for upcoming release.
2011-12-08 23:19:04 +00:00
Lasse Öörni
b9ffb1fc2d Documentation tweaks. 2011-12-06 22:07:32 +00:00
Lasse Öörni
c4e569879d Restored the optional lit base pass optimization, but with the limitation of no ambient gradient.
Removed unneeded GLSL shader permutations.
2011-12-06 21:36:03 +00:00
Lasse Öörni
31b2a692d5 Fixed multithreading documentation. 2011-12-06 14:57:07 +00:00
Lasse Öörni
8f882f8225 Rewrote the zone ambient color gradient system. Now zones only define one ambient color, but look for neighbor zones' ambient colors when gradient mode is enabled.
Fixed missing script bindings to the zone ambient gradient & camera override flags.
Added a default bounding box size for newly created zones.
Added documentation on zones.
2011-12-06 14:48:53 +00:00
Lasse Öörni
738a159c59 Small documentation tweaks. 2011-12-05 22:41:26 +00:00
Lasse Öörni
23f4ba9710 Added more detailed documentation on light pre-pass rendering. 2011-12-05 22:10:05 +00:00
Lasse Öörni
644c37a099 Mark light masks to G-buffer stencil for light culling.
Fixed OpenGL forward rendering.
Documentation fixes.
2011-12-03 17:51:18 +00:00
Lasse Öörni
f9bfd4948f Shader refactoring.
Removed ambient + lit pass combining for less shader permutations, and to prime the Z-buffer with a lightweight pass in case there is a large amount of overdraw.
Moved ambient light calculation to the ambient pass vertex shader.
Added render mode toggle to the editor settings.
Note: OpenGL rendering is currently broken.
2011-12-03 14:06:35 +00:00
Lasse Öörni
fefa7bf6cd Initial light pre-pass rendering. Lighting not rendered yet. 2011-12-01 23:57:16 +00:00
Lasse Öörni
50284fe9b6 Added extra keys to LightTest. 2011-11-29 23:53:12 +00:00
Lasse Öörni
abf00cafa9 Merged pixel shader uniforms.
Script code cleanup.
Added LightTest script.
2011-11-29 23:15:34 +00:00
Lasse Öörni
9a080ee900 Cleaned up comments. Removed Object::CreateObject() as unnecessary. 2011-11-28 19:00:28 +00:00
Lasse Öörni
0be96b3fca Updated documents. 2011-11-28 18:05:15 +00:00
Lasse Öörni
8cb99ac13b Updated to libcpuid 0.2.0 to not require the CPU core amount sanitation hack. 2011-11-28 09:31:20 +00:00
Lasse Öörni
471d3ec5ff Added libcpuid for improved CPU detection.
Added separate functions for querying logical & physical CPU count.
2011-11-27 17:45:03 +00:00
Lasse Öörni
b1ba025970 Fixed hyperthreading detection again.
Send frame update events in Engine::Update(), not in Timer::BeginFrame().
2011-11-27 13:40:40 +00:00
Lasse Öörni
1fbbf5f2cd Limit the amount of worker threads to half the available CPU cores. 2011-11-26 20:00:29 +00:00
Lasse Öörni
c5f6516aee Migrated to AngelScript 2.22.1 WIP. 2011-11-26 11:19:20 +00:00
Lasse Öörni
8b61a23cd0 Updated to newest ODE from svn. 2011-11-21 19:37:19 +00:00
Lasse Öörni
a51afb0631 Initial vertex lighting support. 2011-11-21 00:17:52 +00:00
Lasse Öörni
a48c7ccdfb Migrated to new scriptarray add-on. 2011-11-19 13:14:15 +00:00
Lasse Öörni
5cf7e09324 Added Octree raycast that returns only a single drawable result.
Fixed conditions in raycast code.
2011-11-18 00:16:01 +00:00
Lasse Öörni
75c33d8b5c Changed the global script property arguments to GetArguments() function, as it performs an expensive vector to array conversion on each call. 2011-11-17 18:34:49 +00:00
Lasse Öörni
3313a7a66b Updated script API. 2011-11-12 21:53:41 +00:00
Lasse Öörni
2f0d3caecd Migrated to AngelScript 2.22.0. 2011-11-10 00:05:05 +00:00
Lasse Öörni
8a52455faa Added shadow mask feature, which allows selective shadow casting by different lights.
Documented multithreading.
2011-11-07 20:11:20 +00:00
Lasse Öörni
d470af37cb Added command line option to disable worker threads. 2011-11-04 08:44:54 +00:00
Lasse Öörni
d5c42e8c2c Added Node::LookAt().
Added Quaternion::FromAxes().
2011-10-25 22:04:11 +00:00
Lasse Öörni
b60a806058 Updated changelog in the docs as well. 2011-10-23 21:14:46 +00:00
Lasse Öörni
6e51dffdeb Updated readme.
Allow to switch force SM2 / force fallback modes at runtime.
2011-10-23 18:18:47 +00:00
Lasse Öörni
35e58c42f9 Added select/deselect all in the editor. 2011-10-23 16:28:28 +00:00
Lasse Öörni
bdc29caebd Reverted to AngelScript 2.21.1 because of crash with VariantMap.
Find the zone at far clip plane and use it for the background color.
Added zone mask for drawables, allowing to select which zones they can belong to.
When zone moves or changes its bounding box, clear the cached zone from all drawables that were inside.
2011-10-22 18:49:15 +00:00
Lasse Öörni
1c47bc6f20 Migrated to AngelScript 2.22.0 WIP. 2011-10-21 23:01:30 +00:00
Lasse Öörni
4f9f83eaab Made the move mode arrows smaller to match the scaling mode axes.
Corrected documentation about fallback mode shadow filtering.
2011-10-21 20:05:57 +00:00
Lasse Öörni
4ca9035ba5 Reimplemented the MSVC random number generator to produce same random number output on all platforms. 2011-10-21 19:12:20 +00:00
Lasse Öörni
2b57762508 Added zone property for Drawables in the script API where applicable.
Removed the viewmask attribute from Zone as it is not currently used.
2011-10-21 07:13:44 +00:00
Lasse Öörni
15e8c14623 Separated SetIntensitySortValue() into two separate functions.
Use the drawable's bounding box in light sort value calculations, instead of just the bounding box center.
Added Rect::Clip().
2011-10-19 23:03:36 +00:00
Lasse Öörni
eba23029c0 Fixed maxLights not exposed to script.
Added maxLights setting to TestSceneOld animated models as a test.
Improved drawable light sorting.
2011-10-19 07:27:36 +00:00
Lasse Öörni
63f23313d6 Sort also the postalpha pass back to front. 2011-10-18 06:36:07 +00:00
Lasse Öörni
7f7e8b970d Added subgeometry centers to the model format for proper sorting of transparent geometries. 2011-10-17 21:59:47 +00:00
Lasse Öörni
7be9585861 Fixed erroneous use of local axis movement when more than one node selected.
Split the extra (custom) rendering pass into prealpha and postalpha.
2011-10-17 20:59:13 +00:00
Lasse Öörni
0e6b9508b9 Gizmo improvements.
Reduced node transform edit related code duplication in the editor.
Exposed Plane class to script.
2011-10-17 18:55:55 +00:00
Lasse Öörni
b11b0f8de1 Initial gizmo-based node transform editing.
Fixed material assignments in the axes model.
Possibility to add unculled drawables to the octree.
2011-10-16 23:59:53 +00:00
Lasse Öörni
4a34382798 Fixed clicking on UI elements clearing the scene node selection in the editor. 2011-10-16 17:52:27 +00:00
Lasse Öörni
a32f0f1c26 Fixed rotation of the axes model.
Added ray-frustum intersection test.
Added accurate raycasts for point and spot lights. Directional light now never returns a raycast result, as it has an "infinite" bounding box.
Added better debug visualization of a point light.
Reorganization of the editor script code.
2011-10-16 14:53:14 +00:00
Lasse Öörni
bad42bcc5f Take node parenting into account when moving nodes in the editor.
Added LocalToWorld() & WorldToLocal() functions to Node.
2011-10-15 18:37:55 +00:00
Lasse Öörni
83dbac20fc Fixed Camera's view override flags not exposed to script. 2011-10-15 13:28:28 +00:00
Lasse Öörni
a436badf8f More documentation updates. 2011-10-14 18:43:17 +00:00
Lasse Öörni
2e32aace3c Documentation update. 2011-10-14 18:20:32 +00:00
Lasse Öörni
dd131fbd66 Added missing file.
Updated script API.
2011-10-14 17:43:54 +00:00
Lasse Öörni
4dd0c17651 Editor multi-edit & multi-delete.
Reversed node selection logic: select nodes by default, and components when Shift is held down. This is to avoid mistakenly deleting components and leaving nodes intact when intending to do a node multi-delete.
2011-10-12 22:15:38 +00:00
Lasse Öörni
58843be1fa Initial multiselection in the editor. 2011-10-12 13:17:04 +00:00
Lasse Öörni
407ffc684b Do not close the scene hierarchy or node/component edit window with ESC. 2011-10-09 17:43:59 +00:00
Lasse Öörni
d9524b79ad Added light & zone picking to editor. 2011-10-09 17:17:09 +00:00
Lasse Öörni
a9c5641371 Return to xGxR encoded normal maps and separate specular maps.
Instead of double buffered VBOs, avoid glMapBuffer & glUnmapBuffer in "discard" mode and use a CPU-side buffer instead.
Reduce UI & DebugRenderer vertex buffer size if grossly too large.
Updated documentation. Suggest AMD's Compressonator utility for normal map processing.
2011-10-07 21:30:02 +00:00
Lasse Öörni
2f74622427 Converted DebugGeometry to use a vertex buffer instead of using immediate rendering.
Removed immediate rendering.
2011-10-05 07:05:33 +00:00
Lasse Öörni
71d2e019e6 Use a vertex buffer for UI rendering instead of several immediate mode draw operations. The vertex buffer is locked and updated once per frame, instead of several smaller locks. 2011-10-04 21:49:22 +00:00
Lasse Öörni
653327dd15 Added E_NETWORKUPDATESENT event.
Added direct script access to the Controls object of Connection, instead of going through setter & getter.
Improved NinjaSnowWar controls responsiveness during low FPS, by checking for action button presses separately, and accumulating button presses for networking.
2011-10-04 16:26:19 +00:00
Lasse Öörni
4e18121be0 Updated documentation. 2011-10-04 06:50:01 +00:00
Lasse Öörni
7f09ddcb14 Simplified shader register mapping code. 2011-10-02 14:12:30 +00:00
Lasse Öörni
7d96303e39 Finalized support for overlapping Direct3D9 shader parameters, or the same shader parameters using different registers in different shaders. 2011-10-02 11:17:45 +00:00
Lasse Öörni
0e84c54306 Added shader parameter register count information in the D3D shader file format.
Added tracking of last assigned shader parameter per hardware register to D3D9Graphics. This allows reusing shader registers for different parameters in different shaders.
Removed the ElapsedTime shader parameter, as wrapping it is problematic depending on the calculations it would be used for.
Removed support for bool & int shader parameters from Graphics, as bool constants are not supported in OpenGL 2.0, and int parameters are not (at least currently) needed, and can lead to worse performance.
2011-10-01 09:28:27 +00:00
Lasse Öörni
589c0ee141 Expanded the lit base pass optimization to cover also the first spot or point light affecting a drawable.
Do not render light to stencil if camera is inside the light volume.
Added optimization for directional light shadow casters that are fully occluded by another shadow caster: do not render the lit pass for them.
Removed the alpha masking hint. Alpha test no longer gives the batch a lower priority.
2011-09-29 22:53:16 +00:00
Lasse Öörni
80a6948b22 Large rendering architecture refactoring.
Optimized shaders to do more work in the vertex shader.
Deferred rendering removed, at least for now.
Switched to RGB normal maps, with specular intensity in the alpha channel. Removed NormalMapTool.
Optimization of light influence on objects by stencil masking.
Split shadowed lights are now rendered in one pass. A virtual shadow depth cube texture is used for point lights.
Refactored shadow map allocation. Allow to use lower resolution shadow maps than quarter size.
Added the Polyhedron math object, used for improved shadow map focusing.
Reversed the convention for the plane intercept parameter.
Math-related code cleanup.
2011-09-26 21:56:31 +00:00
Lasse Öörni
18edecbb70 Added release history. 2011-09-11 08:02:10 +00:00
Lasse Öörni
f67165bcf3 Documentation fixes. 2011-09-10 20:06:37 +00:00
Lasse Öörni
fe495f6bcc Added deferred fallback mode, which renders the G-buffer in 2 passes.
Made the OpenGL extensions mandatory to unify expected functionality with Direct3D9 mode.
2011-09-10 19:28:59 +00:00
Lasse Öörni
d6a3f89393 Added low-quality (1-sample) shadow filtering option.
Refactored fallback shaders so that they are compiled as variations into the SM2 directory.
2011-09-09 20:41:56 +00:00
Lasse Öörni
514ef8966d Fixed OpenGL path.
Documentation update.
2011-09-09 07:51:13 +00:00
Lasse Öörni
292ebed51f Added initial fallback mode (no MRT, no hardware shadows.) 2011-09-08 23:12:48 +00:00
Lasse Öörni
ad6243870b Updated to newest kNet & AngelScript.
Fixed spot light shadow map focusing.
Code cleanup.
2011-09-05 19:17:44 +00:00
Lasse Öörni
a5089929b6 Documentation update. 2011-09-05 07:02:03 +00:00
Lasse Öörni
fc3896fe02 Added configurable instancing group minimum size and maximum triangles per instanced object. 2011-09-05 06:39:28 +00:00
Lasse Öörni
a4508509ee Documentation edits. 2011-09-01 10:42:31 +00:00
Lasse Öörni
a89cb22161 Replaced edge filtering with temporal antialiasing with ghosting prevention. 2011-09-01 07:19:32 +00:00
Lasse Öörni
3c0298dcf8 Updated documentation on G-buffer setup. 2011-08-29 20:00:26 +00:00
Lasse Öörni
40c8306691 Added triple buffering option. On OpenGL it is a no-op.
Removed the pass HashMap from Technique. Now it is just a static array.
2011-08-29 17:45:48 +00:00
Lasse Öörni
f0ecda9785 Fixed numerical stability in Quaternion matrix constructor.
Fixed spotlight wrong size in deferred rendering.
Removed "first light" optimization pass due to buggy interactions with alpha blending.
Fixed morphWeights property naming on AnimatedModel.
Fixed missing shader combinations.
Ported the GraphicsTest example from Urho3D 1.0.
2011-08-24 03:52:41 +00:00
Lasse Öörni
b6e09d2655 Renamed FinishUpdate() to ApplyAttributes() to be more descriptive, and to not confuse with frame updates. 2011-08-23 06:43:18 +00:00
Lasse Öörni
47eae408b5 Updated script API reference. 2011-08-22 22:25:32 +00:00
Lasse Öörni
6f5f3c252b Specify diameter instead of radius for sphere, capsule and cylinder CollisionShapes so that switching between shape types is more intuitive.
Capsule and cylinder shapes are now upright by default.
Fixed geometry offset staying if it was first set, but then zeroed after assigning the rigid body.
Fixed geometry offset not updating after the rigid body is assigned.
2011-08-22 21:35:23 +00:00
Lasse Öörni
3f7fffbf49 Some renames. CollisionGroup -> CollisionLayer, Scene::GetNodeByID() -> GetNode(), Ray::Distance() -> HitDistance().
Moved all hit distance tests to Ray.
Tundra scene physics import.
2011-08-22 20:06:27 +00:00
Lasse Öörni
0298cd3e00 Removed assumptions of root node's identity transform.
Re-added the root node transform attributes so they can be edited, though this is not recommended.
Fixed needless creation of almost similar collision meshes caused by floating point inaccuracy.
Fixed bug where parenting a node back to the root node would not be replicated correctly on the network.
2011-08-22 07:05:19 +00:00
Lasse Öörni
d39446c592 Fixed menu item name.
Added editor instructions.
2011-08-21 23:59:49 +00:00
Lasse Öörni
906b528cc5 Adding and removing of node user variables in the editor. 2011-08-21 18:57:59 +00:00
Lasse Öörni
10ad7a3dd2 Added phantom attribute to CollisionShape. Phantom shapes create collision events, but do not generate contact joints to the physics simulation.
Fixed opening resources externally in the editor.
2011-08-21 12:39:28 +00:00
Lasse Öörni
23d51b853e Pick resource functionality in editor.
Editor script code cleanup.
Added missing functions to the script API.
2011-08-21 10:06:52 +00:00
Lasse Öörni
3576a81993 Initial node/component attribute editing.
Attributes reorganized for editing. Accessor attributes used more for verifying correct value ranges.
More editor settings, including rendering quality.
PhysicsWorld raycast returns CollisionShapes instead of Nodes.
Fixed LineEdit cursor not showing when at text start.
Script API fixes.
2011-08-21 08:15:21 +00:00
Lasse Öörni
d0ab5fb7d6 Disabled shader branching from lighting calculations as on some GPUs it has a dramatic negative performance impact.
Added -noflush command line option to disable GPU command queue flushing before rendering.
2011-08-20 14:12:16 +00:00
Lasse Öörni
84fb81684b Documentation update. 2011-08-19 10:53:36 +00:00
Lasse Öörni
5e2682d3e5 Cut/copy/paste in editor.
Exposed Serializable::FinishUpdate() to script.
2011-08-18 21:52:59 +00:00
Lasse Öörni
16911eab63 Added delete support to the editor.
Fixed erroneous script API bindings.
2011-08-18 18:46:12 +00:00
Lasse Öörni
9bebc4898e Switched to AngelScript 2.21.1 WIP.
Fixed node reparenting removing extra items from the scene hierarchy window in the editor.
Guard against cyclic parent-child assignments in Node & UIElement.
2011-08-18 15:25:51 +00:00
Lasse Öörni
f1bb8bd2ba Updated to latest kNet.
Editor script fixes.
Fixed loading resources from script.
Fixed crashes when handling events from objects that subsequently get destroyed.
Fixed not being able to load elements of type UIElement from xml layouts.
2011-08-15 20:56:53 +00:00
Lasse Öörni
700520f320 Further comments and code cleanup. 2011-08-14 09:28:40 +00:00
Lasse Öörni
de67af8825 CoreData / Data reorganization.
Comments cleanup.
Removed the fallback-data mechanism from IndexBuffer and VertexBuffer as unnecessary.
2011-08-13 15:43:52 +00:00
Lasse Öörni
bf2b9ded9a Switched to Open Asset Import Library svn revision 1062. 2011-08-11 21:54:28 +00:00
Lasse Öörni
e22483e482 Added viewmask parameter to octree queries to avoid manual viewmask checking in View and to allow partial scene queries for logic.
Reordered ray query parameters; added default query parameters to script.
Renamed BeginRender & EndRender events to BeginRendering & EndRendering.
2011-08-09 15:48:32 +00:00
Lasse Öörni
dca6687166 In absence of packet loss, use dynamic send rate increase/decrease based on utilization.
Removed unused UDPMessageConnection code.
2011-08-01 00:03:06 +00:00
Lasse Öörni
57e8e910af Fixed missing alwaysUpdateOwner script property in NetworkPriority. 2011-07-31 17:22:27 +00:00
Lasse Öörni
b694ad047e Refactored interest management into the NetworkPriority component.
Fixed setter functions referring to the Set class in Doxygen comments.
2011-07-31 17:19:00 +00:00
Lasse Öörni
6d552a8193 Use fixed size 24 bit network object IDs for more deterministic bandwidth use.
ReadID() / WriteID() renamed to ReadFileID() / WriteFileID().
2011-07-30 20:57:28 +00:00
Lasse Öörni
bd76a14249 Fixed Unix build. Fixed counting of enemies in multiplayer NinjaSnowWar. Disabled snowball CollisionShape replication due to divergent simulation on the client. Removed previousControls from Connection as it is potentially unreliable if multiple controls packets arrive between updates. 2011-07-29 22:57:14 +00:00
Lasse Öörni
abe05c6a53 MinGW is no longer officially supported.
Documentation update.
2011-07-29 15:46:47 +00:00
Lasse Öörni
7f88b9977e Documentation update. 2011-07-29 12:44:45 +00:00
Lasse Öörni
7b254df85d Added simple distance-based interest management for networking. 2011-07-29 12:24:22 +00:00
Lasse Öörni
38fe1554ba Initial multiplayer NinjaSnowWar.
Various networking and script API bugfixes.
Fixed kNet profiling compile errors due to STL -> Container library conversion.
Fixed loading of textures failing in headless mode (just return success without doing anything.)
The E_CLIENTCONNECTED and E_CLIENTDISCONNECTED events now also come from the Connection in question, to allow using GetSender() for convenience, instead of looking up the connection from event data.
Added simple network traffic statistics logging to Connection.
2011-07-29 00:04:52 +00:00
Lasse Öörni
1c154ef17e Uncommented the package file download test from TestScene.as.
Fixed missing default arguments in the script API.
Fixed crash if a script file is unloaded while executing a script function.
Fixed Urho3D.exe not correcting the script file name to internal format (slashes instead of backslashes.)
Use black default background for the Direct3D9 window.
2011-07-28 11:41:56 +00:00
Lasse Öörni
43671aa66f Fixed up to one second delay in starting UDP datagram sends.
Refactored SendMessage API in Connection & Network, allowing the user to specify message priority.
Split Network library internal messages into 3 priority categories.
2011-07-28 09:01:33 +00:00
Lasse Öörni
1d3f797643 Removed unnecessary code from Connection. 2011-07-27 23:06:12 +00:00
Lasse Öörni
f70cc35815 Added package file download support to the network protocol.
Added commented out package download test code to TestScene.as.
Increased kNet's UDP send rate upper limit and aggressiveness in increasing the send rate.
Fixed being unable to do sparse seeks in files when writing.
Container library bugfixes.
2011-07-27 22:41:12 +00:00
Lasse Öörni
bad8e776de Added networking documentation. 2011-07-27 08:41:16 +00:00
Lasse Öörni
4d0e922e3f Added common script code for parsing network-related command line arguments. 2011-07-26 15:29:33 +00:00
Lasse Öörni
40d04b377b Added Compare function to String, which is optionally case-insensitive.
Added registration of allowed remote events.
2011-07-25 23:15:04 +00:00
Lasse Öörni
ffad4ba005 Fixed UI related crashes in headless mode.
Fixed loading of materials in headless mode (just return success while doing nothing.)
Fixed EventType parameter of SendRemoteEvent() / BroadcastRemoteEvent() in the script API, should be a string.
Added smoothed motion for nodes in network client scene.
Added enum CreateMode to CreateChild() & CreateComponent() which replaces the "local" bool parameter.
Added possibility for client to spawn physics boxes in networked TestScene.
2011-07-23 23:33:57 +00:00
Lasse Öörni
ee9b6cc0f8 Renamed the script PostLoad() to FinishUpdate().
Optimized the finalization of CollisionShape & Joint attributes: the ODE object is not needlessly recreated.
2011-07-21 23:16:28 +00:00
Lasse Öörni
4c3dd57980 Added more networking functionality, including remote events and client's controls update.
Added Append functions to String.
Removed networking mode from Scene, as it seems to be unnecessary.
2011-07-15 14:52:43 +00:00
Lasse Öörni
f28728b3e2 Send identity VariantMap on connecting to server.
Fixed possible bug in WriteString/ReadString if the string contains zeroes in the middle.
2011-07-14 13:11:39 +00:00
Lasse Öörni
71603ae52e Initial kNet-based networking implementation.
Renamed SharedPtr::Ptr() to RawPtr() to avoid conflicts with kNet's Ptr macro.
Added chat test program.
2011-07-13 23:32:57 +00:00
Lasse Öörni
af2b4311dc Function name unification and cleanup. ChildElement -> Child. RootElement -> Root. ScriptedChildren -> ChildrenWithScript. 2011-07-12 09:08:17 +00:00
Lasse Öörni
4d5b7fa05a Fixed newline character being returned from GetConsoleInput() on Unix.
Comments & documentation fixes.
2011-07-10 22:18:50 +00:00
Lasse Öörni
5a6c8f6d27 Removed global properties related to the script object's ScriptInstance. The ScriptInstance is available as the global property "self" instead.
Documentation update.
2011-07-05 08:46:45 +00:00
Lasse Öörni
180da947fa Added generated scripting API reference.
Modified Script::DumpAPI() to output in Doxygen format.
2011-07-05 08:25:04 +00:00
Lasse Öörni
40caea422e Migrated to AngelScript 2.21.0.
Removed manual invocation of AngelScript garbage collection.
2011-07-04 21:33:42 +00:00
Lasse Öörni
a7a94a7af2 Unified the texture get/set data API between Direct3D9 & OpenGL.
Refactored OpenGL texture data restore on context recreation: now data is explicitly stored then restored, instead of relying on resource reload.
2011-07-04 18:55:46 +00:00
Lasse Öörni
69a78da8df Switched to GLFW 3.0. 2011-06-30 21:03:59 +00:00
Lasse Öörni
16aeec5c32 Re-enabled sound latency adjustment.
Removed support for 8-bit sound output.
2011-06-25 10:50:58 +00:00
Lasse Öörni
0d29d818ad Moved from SDL to GLFW & PortAudio. 2011-06-24 23:20:09 +00:00
Lasse Öörni
270ba840b3 Documentation update. 2011-06-21 21:37:46 +00:00
Lasse Öörni
af01853960 Fixed erroneous char input suppression in the example scripts.
If only vsync changes on OpenGL, do not recreate the context.
Documentation update.
2011-06-20 22:17:29 +00:00
Lasse Öörni
d55d29612c Documentation update. 2011-06-19 23:13:11 +00:00
Lasse Öörni
6cdddcb0f6 Documentation updates. 2011-06-19 11:45:11 +00:00
Lasse Öörni
432f57b4b0 Use SDL 1.3 in OpenGL mode.
Removed system fonts directory feature because of being platform-specific.
Added the Anonymous Pro fixed width font.
2011-06-18 18:33:29 +00:00
Lasse Öörni
83bf3d1464 Switched to NVIDIA FXAA II based edge filter. 2011-06-15 13:33:16 +00:00
Lasse Öörni
87f9bbd846 Switched back to a edge filter for deferred antialiasing, as temporal antialiasing causes problems when both the camera and objects move.
Fixed infinite loop in HashMap copy.
2011-06-14 21:10:27 +00:00
Lasse Öörni
9c9643508c Use GL_DEPTH_COMPONENT24 instead of the packed depth stencil for OpenGL deferred rendering depth buffer, because the packed format seems to be slower.
Removed light prepass rendering support, as it has implementation difficulties under OpenGL and is often unsatisfactory in performance and specular lighting quality.
Removed the shader subdirectories.
Added option to specify whether single-channel images are to be interpreted as luminance or alpha, when loading into a texture.
2011-06-12 23:38:54 +00:00
Lasse Öörni
2669231c19 Added OpenGL related documentation. 2011-06-12 15:47:21 +00:00
Lasse Öörni
483413e472 Fixed the UI not rendering on OpenGL. 2011-06-10 23:04:36 +00:00
Lasse Öörni
c9c0610709 Added alternative OpenGL rendering path, not fully complete yet.
Fixed bugs in HashMap / HashSet.
2011-06-10 22:35:43 +00:00
Lasse Öörni
3ca3f84df9 Refactored shader loading. A binary format is now used instead of XML data.
PixelShader and VertexShader classes replaced with Shader and ShaderProgram.
2011-05-22 21:34:35 +00:00
Lasse Öörni
5f4b56103f Refactored ShaderCompiler to use D3DXCompileShader() instead of invoking fxc.exe. 2011-05-21 21:04:24 +00:00
Lasse Öörni
f60321b20f Use PODVector more extensively.
Moved Color class to Core library.
2011-05-21 12:15:04 +00:00
Lasse Öörni
27661073e7 Migrated to AngelScript 2.21.0 WIP. 2011-05-21 11:02:49 +00:00
Lasse Öörni
f3859c1ed7 Added documentation about containers.
Removed unnecessary StringUtils.h includes.
Changed GetStringListIndex() to use an empty string as a terminator, similarly to enum attributes.
2011-05-21 10:01:31 +00:00
Lasse Öörni
3abd7eee88 Reverted previous commit due to bugs and performance loss.
Removed the deprecated Physics subdirectory from ResourceCache directory heuristic.
Updated documentation.
2011-05-20 23:17:10 +00:00
Lasse Öörni
516b532a8f Refactored StringUtils as member functions of String & the classes to be converted. 2011-05-19 22:22:50 +00:00
Lasse Öörni
4c94e77887 Switched skip lists to red-black trees instead. 2011-05-18 21:55:57 +00:00
Lasse Öörni
b03111146e Added custom container & string classes. So far only used by AreaAllocator. 2011-05-15 22:45:43 +00:00
Lasse Öörni
62c9aa3d9c Added local node & component ID's in preparation to networking.
Split rendering documentation on several pages.
2011-05-10 21:09:03 +00:00
Lasse Öörni
cb68328d06 Updated to AngelScript 2.20.3 WIP.
Fixed crashes with script value types and GCC.
Implemented default arguments in script API.
2011-05-09 19:32:39 +00:00
Lasse Öörni
97d698e922 Code cleanup.
Minor documentation update.
2011-05-09 16:10:45 +00:00
Lasse Öörni
a71d4d7b0e Added mention of AnimationController to the documentation. 2011-05-08 18:24:16 +00:00
Lasse Öörni
37f696be12 Added rest of the reference documentation. 2011-05-08 17:24:13 +00:00
Lasse Öörni
020232744a Even more documentation. 2011-05-08 12:20:22 +00:00
Lasse Öörni
9a5cbb6016 More documentation.
Tweaked NinjaSnowWar difficulty.
Moved CreateObject from Object to Context.
Made EventHandler & AnimationState RefCounted to simplify memory management.
2011-05-07 22:44:40 +00:00
Lasse Öörni
3979d4bbb7 Updated ODE to svn rev 1806. 2011-05-07 17:54:47 +00:00
Lasse Öörni
6098409700 Upgraded to ENet 1.3.1.
Disabled buffer security checks for smaller executable size.
Removed deprecated ODE files.
2011-05-07 16:25:25 +00:00
Lasse Öörni
dbebed33c4 Fixed bug with setting only the minimum Text width when the text changes. 2011-05-04 21:51:28 +00:00
Lasse Öörni
ee9b6232c1 Added readme for the BlueHighway font. 2011-05-04 11:17:26 +00:00
Lasse Öörni
2a986cf8e3 Quickstart wording tweaks. 2011-05-04 07:14:49 +00:00
Lasse Öörni
a7a458b3a9 Script API registration cleanup: asMETHODPR changed to asMETHOD where possible.
Added Remove() to Component & Node & UIElement; before it was script-only.
Renamed FrameUpdate back to FrameInfo.
Documentation update.
2011-05-04 07:05:26 +00:00
Lasse Öörni
2a6c10874c Documentation structure and Getting Started-documentation.
Fixed deletion of object, if no shared pointer to it existed previously, and it sent an event.
Fixed threading issue with objects' static type names. Now they are defined inside OBJECTTYPESTATIC macro as well.
Fixed Engine crash when running without the script system.
2011-05-03 23:17:15 +00:00
Lasse Öörni
9d4deaf853 AnimationController functions refactoring.
Documentation update.
Moved Engine scripting initialization to a separate function. This will result in significantly smaller executable if skipped.
Fixed ErrorDialog() when called from script.
2011-05-03 14:47:02 +00:00
Lasse Öörni
5d033b7f62 Moved Urho3D.dox into the Docs subdirectory. 2011-05-03 06:59:06 +00:00