Commit Graph

5243 Commits

Author SHA1 Message Date
Lasse Öörni
2b0d4362ff Script bindings for reading/writing 64 bit values through Deserializer/Serializer. 2016-07-29 02:06:08 +03:00
Loic Blot
694d637fd9 Add int64_t and uint64_t support for Serializer/Deserializer 2016-07-28 22:39:36 +02:00
Eugene Kozlov
014ef043ef Make HashMap::TryGetValue constant. 2016-07-25 23:26:42 +03:00
urho3d-travis-ci
79c7ded061 Travis CI: API documentation update at 2016-07-25 19:39:39 UTC.
[ci package]

Commit: 56ba0def78

Message: Add Graphics::SetDither(). Closes #1489.
2016-07-25 19:39:39 +00:00
Lasse Öörni
56ba0def78 Add Graphics::SetDither(). Closes #1489. 2016-07-25 19:03:43 +03:00
Lasse Öörni
786598f08d Merge remote-tracking branch '1vanK/master' 2016-07-25 18:37:40 +03:00
Lasse Öörni
c647ae7dfa Put zone texture to environment texture unit on OpenGL ES. Fix web build including texture unit mappings which are not included in the shaders. 2016-07-25 17:18:08 +03:00
1vanK
fafd921f32 String + number operator 2016-07-25 16:23:43 +03:00
Lasse Öörni
77cabf9bff Remove "PS" from Roughness & Metallic uniform names. 2016-07-25 01:39:15 +03:00
Lasse Öörni
dfd8939840 Squashed commit of the following:
commit 5de699c5399847dfad99a58323590f88436e1f68
Merge: d80b1d9 97c5fbf
Author: dragonCASTjosh <NUT13000804@students.wnc.ac.uk>
Date:   Sun Jul 24 18:28:50 2016 +0100

    Merge pull request #4 from hdunderscore/tweaks2

    Tweaks2

commit 97c5fbfe515a1c1ae86b059d86694a9f2c053ce6
Author: hdunderscore <hdunderscore@gmail.com>
Date:   Sun Jul 24 22:50:11 2016 +1000

    - Removed inconsistency with roughness input.
    - Switched to a different mip map selection method for the IBL.
    - Extended the angelscript PBR sample to include a slider for ambient HDR scaling.
    - Removed an extra diffuse factor in lighting output.

commit d80b1d9b3c00a04e837324af1546f407311803fd
Merge: 53603fd 7f77574
Author: joshua Nuttall <dragoncastjosh@live.com>
Date:   Fri Jul 22 23:00:59 2016 +0100

    Merge branch 'pulls/2'

commit 7f775749a9229f5b8f1d313a2c72a88acc001b11
Merge: 53603fd b339da6
Author: joshua Nuttall <dragoncastjosh@live.com>
Date:   Fri Jul 22 22:57:26 2016 +0100

    Tweaks

    # Conflicts:
    #	bin/CoreData/Shaders/GLSL/Lighting.glsl
    #	bin/CoreData/Shaders/HLSL/Lighting.hlsl
    #	bin/Data/Scenes/PBRExample.xml

commit 53603fd7165fb90c485d6fd85e2d4c41e3e86213
Merge: f88b484 a21746f
Author: joshua Nuttall <dragoncastjosh@live.com>
Date:   Wed Jul 20 22:52:41 2016 +0100

    Merge remote-tracking branch 'origin/master'

commit f88b48441965d5dbcee8667282e879c93bc31577
Author: joshua Nuttall <dragoncastjosh@live.com>
Date:   Wed Jul 20 22:49:43 2016 +0100

    Fixed Inverse Square falloff and correction mistake with output color

commit a21746f5e2b540e4dae952e181d000dd8e8101f4
Merge: 89688e8 c33f75a
Author: dragonCASTjosh <NUT13000804@students.wnc.ac.uk>
Date:   Wed Jul 20 22:28:17 2016 +0100

    Merge pull request #3 from 1vanK/master

    Modify PBR example

commit c33f75a78369760ace1f817e9c8ed288a0418a30
Author: 1vanK <1vanK@users.noreply.github.com>
Date:   Thu Jul 21 00:16:05 2016 +0300

    Labels

commit efa757e0ee39daf4a4e03714828677e79ae5e4e2
Author: 1vanK <1vanK@users.noreply.github.com>
Date:   Wed Jul 20 17:14:06 2016 +0300

    Dynamic material in PBR example

commit b339da6fc992e49d1e4139d836654c8ce6befa24
Author: hdunderscore <hdunderscore@gmail.com>
Date:   Thu Jul 21 00:09:47 2016 +1000

    - Adjusted light falloff.
    - Enabled HDR rendering in PBRMaterials.cpp

commit b233da5ccad3c1898a1f459bbc59459be525a16f
Author: 1vanK <1vanK@users.noreply.github.com>
Date:   Wed Jul 20 14:25:59 2016 +0300

    Remove unnecessary texture

commit ede652fcf39135350725c7eda5c6c9324ffb0c0a
Author: hdunderscore <hdunderscore@gmail.com>
Date:   Wed Jul 20 15:49:27 2016 +1000

    Added missing xml's.

commit fd1b187f09f4478bd32375e4ca13900b6ec59f49
Author: hdunderscore <hdunderscore@gmail.com>
Date:   Wed Jul 20 15:13:47 2016 +1000

    Minor fix to diffuse ibl calculation.

commit 1cee2d27e8abd69fe6f77d41e2a0d27dcac8624b
Author: hdunderscore <hdunderscore@gmail.com>
Date:   Wed Jul 20 10:55:58 2016 +1000

    Changed the hdr scaling to be more versatile.

commit 35623b758b1e199116b1ba9594afeb3d1ecef7ba
Author: hdunderscore <hdunderscore@gmail.com>
Date:   Wed Jul 20 09:27:46 2016 +1000

    - Fixed gamma correction
    - Added fake hdr to IBL and skybox which can be controlled via the zone ambient colour alpha channel.

commit 89688e81424eea030e5329cbd9d59b094ee02183
Author: joshua Nuttall <dragoncastjosh@live.com>
Date:   Tue Jul 19 21:17:30 2016 +0100

    Renived unlicenced files

commit 70f39b0a40b50f317aef101ce29950185a2ee7e3
Author: joshua Nuttall <dragoncastjosh@live.com>
Date:   Tue Jul 19 14:21:38 2016 +0100

    Removed gamma correction from PBR demo

commit 451f45c4d2ed360179640af31eabdf74b3673c6f
Author: joshua Nuttall <dragoncastjosh@live.com>
Date:   Tue Jul 19 14:20:32 2016 +0100

    Added legacy BRDF for GL

commit 87316006297df9dda94178f7ab81f663862553a8
Author: joshua Nuttall <dragoncastjosh@live.com>
Date:   Tue Jul 19 14:17:02 2016 +0100

    Added diffuse ibl and legacy features

commit 9f0fb0eaca4a53e49caf65661edfb9d85fe1b880
Merge: 1883a4c 4230e43
Author: joshua Nuttall <dragoncastjosh@live.com>
Date:   Tue Jul 19 10:36:08 2016 +0100

    Merge remote-tracking branch 'origin/master'

commit 1883a4c42f228306dd723098869281a7025b5987
Author: joshua Nuttall <dragoncastjosh@live.com>
Date:   Tue Jul 19 10:34:47 2016 +0100

    Changed model on the demo scene

commit 4230e4328d6ef47808a85f1b231f5116d8b99437
Merge: 900f203 607ab5c
Author: dragonCASTjosh <NUT13000804@students.wnc.ac.uk>
Date:   Tue Jul 19 00:07:17 2016 +0100

    Merge pull request #1 from Modanung/typo-fix

    Changed n to m in PBR example scene

commit 607ab5c414749f3d2dd85f2b7c441525b94a8fa3
Author: Frode Lindeijer <frode@lindeijer.nl>
Date:   Tue Jul 19 00:41:34 2016 +0200

    Changed n to m in PBR example scene

commit 900f20316da833868e6274aa7e7de01502a2a357
Author: joshua Nuttall <dragoncastjosh@live.com>
Date:   Mon Jul 18 22:19:17 2016 +0100

    Fixed reverted changes

commit 49cc201a1e0956db82b1103d23b3a4059cacd374
Author: joshua Nuttall <dragoncastjosh@live.com>
Date:   Mon Jul 18 21:58:36 2016 +0100

    PBR Rewrite

commit 262e18c71c08a5bade990f6ead0fd356732c38ee
Author: joshua Nuttall <dragoncastjosh@live.com>
Date:   Mon Jul 18 21:48:28 2016 +0100

    Complete rewrite of PBR

commit b97469b2ab73deca0613d1963500f223a5956bf9
Author: joshua Nuttall <dragoncastjosh@live.com>
Date:   Sun Jul 17 09:49:52 2016 +0100

    Dissabled nolonger needed post processed gamma correction

commit 6e4ec5b4cdaba58678a21b8a90138eb2b8a5e9d4
Author: joshua Nuttall <dragoncastjosh@live.com>
Date:   Sun Jul 17 09:48:53 2016 +0100

    Fixed rendering issue in DirectX

commit fd57ed2bea5caad1fff65e35abfe65b227ddb13a
Author: joshua Nuttall <dragoncastjosh@live.com>
Date:   Sat Jul 16 21:39:48 2016 +0100

    Fixed Spelling errors

commit 3dad639d48aee0d4d3a17ecd8d35f732b796d938
Author: joshua Nuttall <dragoncastjosh@live.com>
Date:   Sat Jul 16 21:35:09 2016 +0100

    Made GGX distrabution physically correct

commit ffda95b2df1e042d8cef611add06989c5a0fd862
Author: joshua Nuttall <dragoncastjosh@live.com>
Date:   Sat Jul 16 21:20:20 2016 +0100

    Removed redundent textures

commit 283f389951b0e29a2f3a6b445dfc3cab0e59920c
Merge: 7bbb0f6 ca6d6e5
Author: joshua Nuttall <dragoncastjosh@live.com>
Date:   Sat Jul 16 19:34:26 2016 +0100

    Merge branch 'master' of https://github.com/urho3d/Urho3D

commit 7bbb0f68bb1c8f0fa5ccf39475a5997e82c18b62
Author: joshua Nuttall <dragoncastjosh@live.com>
Date:   Sat Jul 16 18:57:49 2016 +0100

    PBR Gamma correctoin, and small prefernace changes to the demo scene
2016-07-25 00:54:21 +03:00
Lasse Öörni
63f71ab874 Remove assert from StringUtils ToVectorVariant() function and return empty variant in error case. Closes #1485. Convert assert in Log::SetLevel() to error logging, and remove assert from Log::Write(). 2016-07-23 19:00:31 +03:00
urho3d-travis-ci
896787c9dc Travis CI: API documentation update at 2016-07-23 14:52:19 UTC.
[ci package]

Commit: d506ab4288

Message: Add SetFontSize() to Text & Text3D. Fix comments of SetFont() referring to nonexistent parameter. Closes #1484.
2016-07-23 14:52:19 +00:00
Lasse Öörni
d506ab4288 Add SetFontSize() to Text & Text3D. Fix comments of SetFont() referring to nonexistent parameter. Closes #1484. 2016-07-23 17:16:33 +03:00
Lasse Öörni
515dfa760c Fix backbuffer not getting cleared in the situation where just the UI and rendertexture views are being rendered. (http://urho3d.prophpbb.com/topic2238.html) 2016-07-22 20:01:28 +03:00
Lasse Öörni
287c520810 Fix wrong UV index in Drawable OBJ export. Closes #1483. 2016-07-22 16:58:31 +03:00
Lasse Öörni
995fbd4213 Add public accessors for View's view rectangle & view dimensions. Explain that Viewport may return a zero rect, which means to dynamically use the rendertarget's full size. Add todo's related to Viewport::WorldToScreenPoint() && Viewport::ScreenToWorldPoint() potentially operating incorrectly for texture rendertargets. Closes #1482. 2016-07-22 00:35:15 +03:00
Yao Wei Tjong 姚伟忠
20da34f21b Auto-generate Urho3DAll.h header file. Close #1472. 2016-07-18 22:40:45 +08:00
Yao Wei Tjong 姚伟忠
c675421464 Normal comment to doxygen comment using regex + manual correction.
cd Source/Urho3D && git grep -lP '^\s+//[^/]+\.^M*$' -- '*.h' |xargs perl -pi -e 's|^(\s+)//([^/]+\.^M*)$|$1///$2|g'
Ctrl+M is one character.
2016-07-18 22:01:10 +08:00
Mike3D
238f09c53d Fixed TileMap2D::PositionToTileIndex() and use it in tile map sample 2016-07-18 13:18:57 +02:00
tommy3
808fd992c6 Normal comment to doxygen comment. 2016-07-16 15:30:09 +02:00
tommy3
6fbe9537f4 Normal comment to doxygen comment. 2016-07-16 14:57:28 +02:00
urho3d-travis-ci
d1802a9092 Travis CI: API documentation update at 2016-07-15 07:58:43 UTC.
[ci package]

Commit: 761afff122

Message: Fix dir manipulation off by one error in Android DirExists() function. Closes #1470.
2016-07-15 07:58:43 +00:00
Lasse Öörni
761afff122 Fix dir manipulation off by one error in Android DirExists() function. Closes #1470. 2016-07-15 09:26:19 +03:00
Lasse Öörni
af00713e12 Add Clone() to ParticleEffect & ParticleEffect2D. Closes #1469. 2016-07-15 01:32:33 +03:00
Yusuf Umar
b24bcb8928 No longer need to passing camera position to direction billboard vertex buffer because Urho3D already has default uniform to do the job. 2016-07-13 18:54:18 +07:00
Yao Wei Tjong 姚伟忠
fd9db884b4 Add template version of UIElement::GetChild() methods. 2016-07-11 19:17:52 +08:00
Yao Wei Tjong 姚伟忠
5e8ee79f2b Partial revert - use Object as base but keep lifetime management logic.
Avoid duplicate reference of "window" UI-element.
2016-07-11 15:25:54 +08:00
Lasse Öörni
9db4af58e5 Simplify returning a new MessageBox to AngelScript. Fix crash due to multiple handling of MessageBox acknowledge when modal status is manually reset. 2016-07-10 22:01:58 +03:00
urho3d-travis-ci
569314697b Travis CI: API documentation update at 2016-07-10 16:27:23 UTC.
[ci package]

Commit: 4485cb8fa4

Message: Remove unnecessary include.
2016-07-10 16:27:23 +00:00
Lasse Öörni
4485cb8fa4 Remove unnecessary include. 2016-07-10 19:10:22 +03:00
Lasse Öörni
c38d29a20c Make MessageBox a UIElement subclass for automatic lifetime management through the UI hierarchy. (Use MessageBox:new in Lua for safe operation.) Remove the "test all factories" feature in Engine class (Debug mode) since it would leave a MessageBox in the UI. Use UI root size for centering the MessageBox instead of Graphics resolution, since the UI might be scaled. Closes #1439. Closes #634. 2016-07-10 19:03:23 +03:00
fredakilla
10449971b9 get body properties when body exists 2016-07-08 21:18:11 +08:00
Lasse Öörni
96d256ed16 Refactor File internal operations to support package files also on Android. Closes #1455. 2016-07-07 15:25:46 +03:00
Lasse Öörni
28ed7c1706 Remove ambiguous WeakPtr initialization from Graphics class. Closes #1459. 2016-07-06 17:36:41 +03:00
Lasse Öörni
2c2c6d26b1 Merge branch 'api-agnostic-headers' 2016-07-06 13:51:17 +03:00
Lasse Öörni
28ad5d5dbd Fix ambiguous operations when C++11 Urho3D features are enabled by using WeakPtr default constructor instead. 2016-07-06 01:39:28 +03:00
Eugene Kozlov
c4424eb514 Make Vector::Buffer() and PODVector::Buffer() public. 2016-07-05 23:01:16 +03:00
Eugene Kozlov
7546a47497 Add initializer list constructor for PODVector. 2016-07-05 23:01:16 +03:00
Eugene Kozlov
5be488233a Add constructors from nullptr for SharedPtr and WeakPtr. 2016-07-05 23:01:16 +03:00
Lasse Öörni
46db9d1e07 Fix mip chain not being complete to 1x1, which could result in black textures on GLES2. 2016-07-05 14:50:20 +03:00
aster2013
270eabd226 Fix #1456. 2016-07-05 15:51:09 +08:00
urho3d-travis-ci
f99577523d Travis CI: API documentation update at 2016-07-04 23:28:16 UTC.
[ci package]

Commit: 03c95a1519

Message: Add contributor credit & minor edit.
2016-07-04 23:28:16 +00:00
Lasse Öörni
03c95a1519 Add contributor credit & minor edit. 2016-07-05 02:01:33 +03:00
Lasse Öörni
c611d4a069 Merge remote-tracking branch 'fredakilla/box2d' 2016-07-05 01:54:25 +03:00
Lasse Öörni
df2f7b06a0 When Button sends the Released event, make sure it's yet hovering if the mouse was released on top of it. See issue #1453. 2016-07-04 22:50:40 +03:00
fredakilla
39344c41fe Add b2Contact ptr to E_PHYSICSBEGINCONTACT2D and E_PHYSICSENDCONTACT2D events 2016-07-04 21:47:36 +02:00
Lasse Öörni
ecd3ab2f45 When an autolocalized Text is saved, make sure the stringId is saved instead of the localized text. Make sure the text gets localized even if autoLocalizable & text attributes are in swapped order in the UI xml. Fix Text3D attributes being AM_FILE mode instead of AM_DEFAULT for net replication. Closes #1451. 2016-07-04 20:49:09 +03:00
Lasse Öörni
4e198c2412 Fix wrong return value in HashMap Front() & Back(). 2016-07-04 18:33:38 +03:00
Lasse Öörni
fd5bac385a Since the SDL window is not API-specific, move it into Graphics from GraphicsImpl to simplify code. 2016-07-01 10:17:29 +03:00
Lasse Öörni
eb104906aa Remove API-specific Graphics class headers and code duplication. Closes #1422. 2016-07-01 09:38:39 +03:00
Yao Wei Tjong 姚伟忠
fb881c3360 Use CMake to auto-detect and define _TIMESPEC_DEFINED as necessary. 2016-06-30 21:01:41 +08:00
Lasse Öörni
bdce4b3dba Move API-specific Graphics class member variables to GraphicsImpl. Rename WindowMoved & WindowResized to OnWindow.. to match convention used elsewhere (eg. OnNodeSet) Change windowIcon_ member to WeakPtr to ensure safety in later access. Minor class comment fixes. 2016-06-30 02:11:19 +03:00
TheComet
7031ae8799 fixes #1444 2016-06-29 19:18:14 +02:00
Lasse Öörni
51b0a16f9a Remove API-specific RenderSurface class headers and RenderSurface code duplication. 2016-06-27 22:42:02 +03:00
Lasse Öörni
46b9a90fb1 Remove API-specific Texture subclass headers and code duplication for loading & SetSize(). 2016-06-26 23:26:14 +03:00
Lasse Öörni
26342ce69e Remove code duplication from checking max. mip levels on OpenGL. 2016-06-26 21:12:20 +03:00
Lasse Öörni
f452a16f2d Initial Texture class refactoring. Get rid of API-specific Texture header. 2016-06-26 20:35:51 +03:00
Lasse Öörni
11b1e2cc2d Shadow batches don't need a zone, since they shouldn't use ambient color or fogging settings. This also fixes a bug with erroneous fog settings when OpenGL constant buffers are used. 2016-06-25 19:52:17 +03:00
Lasse Öörni
6c77b75813 Cleanup ShaderParameter related code. 2016-06-25 17:58:37 +03:00
Lasse Öörni
f8d636426c Make ShaderVariation class header API-agnostic. 2016-06-25 16:00:44 +03:00
Lasse Öörni
9b51baa445 Separate ConstantBuffer to API-independent and -specific implementations, and unify the header. Add dummy D3D9 constant buffer implementation (that only logs error if used) so that user will not get link errors if attempting to use. 2016-06-24 20:50:05 +03:00
Lasse Öörni
6775038a44 Eliminate more duplication of API-independent index / vertex buffer code. 2016-06-24 15:15:02 +03:00
Lasse Öörni
db7f3bb56a Fix dynamic flag not being set for D3D9 vertex buffer. 2016-06-24 14:56:12 +03:00
Lasse Öörni
51b026f33d Unify IndexBuffer & VertexBuffer headers for all APIs. Move API-independent parts of vertex / index buffers to their own implementation files to eliminate code duplication. 2016-06-24 14:30:55 +03:00
Lasse Öörni
1ba87dae4c Get rid of API-specific GPUObject class header & implementation. 2016-06-24 02:17:06 +03:00
Yao Wei Tjong 姚伟忠
35a616448a Merge commit 'a1a9ce7817286783347acfbcce94bfd659915b66' into master. 2016-06-23 22:05:25 +08:00
Yao Wei Tjong 姚伟忠
993e82f9ec Fix cross-compiling builds using X11 shared libraries. 2016-06-23 20:08:34 +08:00
urho3d-travis-ci
c88891fa6f Travis CI: API documentation update at 2016-06-23 12:02:08 UTC.
[ci package]

Commit: e8559b316a

Message: Add events for node/component being cloned. These are sent by their owning scene after the cloning process (along with all attributes set) is complete.
2016-06-23 12:02:08 +00:00
Lasse Öörni
e8559b316a Add events for node/component being cloned. These are sent by their owning scene after the cloning process (along with all attributes set) is complete. 2016-06-23 14:52:06 +03:00
Yao Wei Tjong 姚伟忠
2f4ed29be8 For CI - attempt to fix broken multiarch support in older CMake.
This should be a non-issue when we have migrated to CMake 3.2.3 (now under development in refactor-buildsystem branch).
2016-06-23 00:23:12 +08:00
Yao Wei Tjong 姚伟忠
fff8b782b1 Fix cross-compiling builds using readline shared library. 2016-06-22 18:06:21 +08:00
Lasse Öörni
489356a29f Cleanup editor debug icon code to not do constant resizes of billboardsets to zero and back, and to use fixed screen size mode to eliminate need for manual sizing. BillboardSet::SetNumBillboards() is no-op if count remains same. Fix BillboardSet fixed size bug when changing between ortho & perspective camera. Do not care to resize scratch buffer smaller if it's below 1MB. Add scratch buffer debug messages also to OpenGL Graphics class for consistency. Closes #1434. 2016-06-21 22:19:42 +03:00
urho3d-travis-ci
618fd25691 Travis CI: API documentation update at 2016-06-21 16:05:19 UTC.
[ci package]

Commit: 4279990ea8

Message: Minor fixes. Add script bindings and documentation for the new renderpath command.
2016-06-21 16:05:19 +00:00
Lasse Öörni
4279990ea8 Minor fixes. Add script bindings and documentation for the new renderpath command. 2016-06-21 18:54:57 +03:00
Franck Poulain
332fe215f6 SendEvent new renderpath command 2016-06-21 14:15:53 +02:00
Franck Poulain
bcac85a0ac Tabs to spaces 2016-06-20 14:12:44 +02:00
Franck Poulain
f0775adfbc Change View::FindNamedTexture() function to be public 2016-06-20 14:10:18 +02:00
urho3d-travis-ci
9f90bdd571 Travis CI: API documentation update at 2016-06-16 18:56:49 UTC.
[ci package]

Commit: dc74d3dbc0

Message: Remove commented out lines, add MarkNetworkUpdate() to SetUpdateInvisible().
2016-06-16 18:56:49 +00:00
Lasse Öörni
dc74d3dbc0 Remove commented out lines, add MarkNetworkUpdate() to SetUpdateInvisible(). 2016-06-16 21:47:28 +03:00
Yusuf Umar
a9f7703f74 Add update invisible parameter to RibbonTrail and use it on the samples. 2016-06-16 18:09:09 +07:00
urho3d-travis-ci
797d33da94 Travis CI: API documentation update at 2016-06-16 05:39:07 UTC.
[ci package]

Commit: 239c0265a0

Message: Fix a typo in RibbonTrail's attribute and other minor cleanups.
2016-06-16 05:39:08 +00:00
Yao Wei Tjong 姚伟忠
239c0265a0 Fix a typo in RibbonTrail's attribute and other minor cleanups. 2016-06-16 13:28:02 +08:00
urho3d-travis-ci
54143eba49 Travis CI: API documentation update at 2016-06-15 18:51:59 UTC.
[ci package]

Commit: 6d046d57c8

Message: More minor code, comment and tab-to-spaces changes. Use the more specific TrailPoint struct name instead of Point, and export it in case a derived class wants to manipulate them. Add RibbonTrail to documentation's drawable class list.
2016-06-15 18:51:59 +00:00
Lasse Öörni
6d046d57c8 More minor code, comment and tab-to-spaces changes. Use the more specific TrailPoint struct name instead of Point, and export it in case a derived class wants to manipulate them. Add RibbonTrail to documentation's drawable class list. 2016-06-15 21:16:28 +03:00
Yusuf Umar
1f7c5c8a59 Delete some debug leftovers and fix big index buffer size. 2016-06-15 21:16:27 +03:00
Lasse Öörni
f6d413aee4 Minor comment and code convention edits. 2016-06-15 21:14:59 +03:00
Yusuf Umar
f9e65027e3 Implementing RibbonTrail 2016-06-15 21:14:58 +03:00
urho3d-travis-ci
bb658965c2 Travis CI: API documentation update at 2016-06-14 18:51:53 UTC.
[ci package]

Commit: 27f40f15be

Message: Add contributor credit.
2016-06-14 18:51:53 +00:00
Eugene Kozlov
c92894d250 Add support of custom per-instance data in batches. 2016-06-13 18:06:38 +03:00
Yao Wei Tjong 姚伟忠
224320d6d0 Add missing include for iOS build. 2016-06-11 23:34:53 +08:00
Yao Wei Tjong 姚伟忠
a5b4512966 Reduce direct exposure to SDL headers as much as possible. 2016-06-11 21:58:22 +08:00
Yao Wei Tjong 姚伟忠
eff1cd46b9 Sort samples list, just for consistency sake. 2016-06-11 20:43:33 +08:00
Lasse Öörni
3b4b354d51 If targeting 60 fps or above on iOS, skip the framelimiter sleep loop, since it could cause running below 60 fps even if the frame was executed fast enough. 2016-06-11 15:12:32 +03:00
Yao Wei Tjong 姚伟忠
d0bcac5fe0 Ensure iPhoneOS and iPhoneSimulator use the same code path.
This commit should also fix the issue reported in issue #1369.
2016-06-11 13:11:38 +08:00
Lasse Öörni
576216c3c2 Fix MOBILE_GRAPHICS define not being defined on iOS, which would break shadow rendering. 2016-06-11 04:31:36 +03:00
Lasse Öörni
f4f3ffde76 Improve comment for Renderer::SetDynamicInstancing(). 2016-06-11 03:48:14 +03:00
Lasse Öörni
391d93ced0 Use nanosleep instead of usleep. Closes #1413. 2016-06-10 23:51:09 +03:00
Loic Blot
ef949533c6 Update to SQLite 3.13.0 2016-06-10 22:04:35 +03:00
Yao Wei Tjong 姚伟忠
1243d8bcda Regex replace all the uppercase key bindings with their constants. 2016-06-11 02:56:39 +08:00
Lasse Öörni
8710de6197 Fix pause in NinjaSnowWar. Fix keycodes defined in screen joystick to conform to SDL keycodes (lowercase) 2016-06-10 20:30:40 +03:00
Yao Wei Tjong 姚伟忠
3ab69da3af Use __ANDROID__ compiler define consistently. 2016-06-10 20:28:07 +08:00
Yao Wei Tjong 姚伟忠
991b0c5986 Undefine first before redefine to suppress the compilation warnings. 2016-06-10 19:53:17 +08:00
Yao Wei Tjong 姚伟忠
5bdd519ce7 Another attempt to reenable AS wrapper for 64-bit ARM platform.
For CI - switch all the Android CI jobs to use Clang compiler toolchian instead of GCC compiler toolchain. The old GCC 4.9 is not able to handle C++11 standard for AS wrapper. Besides, the latest change log in Android NDK has marked GCC as deprecated and recommended developers to migrate to Clang.
2016-06-10 17:17:21 +08:00
Yao Wei Tjong 姚伟忠
64d975ba1a Add initial build support for generic ARM platform.
Add a new build option "ARM_ABI_FLAGS" for supplying additional ABI compiler flags when targeting generic arm.
Fix Linux build from using OpenGLES instead of GLEW, fix RPI build from using wrong OpenGLES library, fix iOS build from using arm-specific compiler flags directly which would cause problem in universal binary build containing iphonesimulator archs as well.
And other minor refactoring.
2016-06-10 17:17:21 +08:00
proller
0dc85f14a9 compile on arm arch with opengles2 2016-06-10 17:17:20 +08:00
Lasse Öörni
a1c458f28e Reduce amount of unnecessary Frustum::UpdatePlanes() calls. A default-constructed degenerate frustum no longer has its planes updated on construction, but instead the planes will remain in default-constructed state. 2016-06-10 02:09:50 +03:00
Lasse Öörni
d759a0e51b Call GainFocus() on Input initialization instead of just setting focusedThisFrame_ true. Fixes #1411. 2016-06-09 21:20:42 +03:00
Lasse Öörni
6033ffd116 Fix wrong bool check. 2016-06-09 20:02:57 +03:00
Lasse Öörni
7b18a9a8b2 Slider knob fixed size fix from Lumak. Closes #1412. 2016-06-09 18:47:38 +03:00
Yao Wei Tjong 姚伟忠
3afe44678c Set the compiler flags at the target level when enabling PCH.
We do not support disabling PCH per compilation unit anymore so we do not need to use custom compiler flags per compilation unit. Using this kind of configuration would result in unwanted target rebuild when the list of compilation unit gets changed due to new/deleted source files for the target in question.
2016-06-09 20:42:22 +08:00
Lasse Öörni
1535323815 Set default mobile shadow bias adjustments to ineffective since they no longer appear necessary. 2016-06-08 23:49:31 +03:00
Lasse Öörni
f36abeb57c Force highp for shadow related samplers, uniforms & varyings on GLES for better shadows on iOS. Note: may be incompatible for some mobile GPU's that don't support highp at all. 2016-06-08 21:30:31 +03:00
ArtemKulyk
cfec9a95bc fix for typo in UTF16 decoder 2016-06-07 18:41:07 +03:00
Lasse Öörni
0ed42d0f9d Fix letter accelerator keys not working. Closes #1403. 2016-06-06 11:01:35 +03:00
Yao Wei Tjong 姚伟忠
e260a3354c Revert back to temporarily disable AS wrapper for 64-bit ARM platform.
The earlier commit lacks the inclusion of logic to enable C++11 standard and boost preprocessor library. However, after locally tested it, it appears that Android NDK 4.9 is not able to able handle it. Need more time to experiment with it in another branch first.
[ci only: Android, OSX] [skip appveyor]
2016-06-05 23:55:55 +08:00
Yao Wei Tjong 姚伟忠
ccd9dac3c7 Also enable AS wrapper when targeting 64-bit ARM platform. 2016-06-05 22:42:01 +08:00
Yao Wei Tjong 姚伟忠
9345cff42e Remove custom memory adjustment as the default is set to 128 MB now. 2016-06-05 13:17:28 +08:00
Lasse Öörni
cc5761d09d Clean up the code to check for AS_MAX_PORTABILITY define so that it could also come from AS' own config. Minor typo fix. 2016-06-04 17:34:33 +03:00
Lasse Öörni
96451d891e Use the proper form of EMSCRIPTEN define throughout. 2016-06-04 12:33:02 +03:00
Lasse Öörni
fb508365af Fix logic for getting the script file name in web Urho3DPlayer in case arguments were already specified and the command line file is not used. 2016-06-04 12:26:36 +03:00
Lasse Öörni
f097224968 Avoid hardcoding the script file name on web platform Urho3DPlayer. Rather attempt to read from CommandLine.txt later once resources are initialized. Setup a default windowed resolution to match the executable web samples. 2016-06-04 00:21:54 +03:00
Lasse Öörni
98dfaf3c75 Add Boost Preprocessor library to Source/ThirdParty. Force C++11 for AngelScript / Emscripten combo. Default to CharacterDemo instead of NinjaSnowWar in Urho3DPlayer on Emscripten due to missing Network subsystem. 2016-06-02 20:55:52 +03:00
Lasse Öörni
0803320a9a Remove mention of AngelScript not being supported on Emscripten. Leave the generic call convention autohandle fix on at all times, since it doesn't hurt. Clarify CommandLine.txt not being able to be read on Emscripten. 2016-06-02 19:27:15 +03:00
Lasse Öörni
5e60325d5f Merge remote-tracking branch 'SirNate0/master' into emscripten-angelscript 2016-06-02 19:10:30 +03:00
urho3d-travis-ci
1cfe5f3967 Travis CI: API documentation update at 2016-06-01 19:15:40 UTC.
[ci package]

Commit: 37e3c8269d

Message: Added UIBatch::AddQuad overloads which allow defining a quad with arbitrary points & UVs, and optionally colors.
2016-06-01 19:15:40 +00:00
Lasse Öörni
37e3c8269d Added UIBatch::AddQuad overloads which allow defining a quad with arbitrary points & UVs, and optionally colors. 2016-06-01 22:03:58 +03:00
Lasse Öörni
a3023bf2b3 Add Lua binding for the new tile map type & add contributor credit. 2016-06-01 21:00:36 +03:00
Lasse Öörni
d278bd6a9a Merge remote-tracking branch 'tungsteen/master' 2016-06-01 20:36:11 +03:00
Yao Wei Tjong 姚伟忠
4b03614216 Minor documentation update to mark deprecated methods.
[ci only: master] [skip appveyor]
2016-06-01 23:35:58 +08:00
Lasse Öörni
31f608408d Minor documentation update on scene model. 2016-06-01 13:27:23 +03:00
Sergey Bosko
9c298beb54 Add O_HEXAGONAL type of 2D Map 2016-05-31 10:46:02 +02:00
nathan
618b37519a Fixed indentation of my change to Urho3DPlayer.cpp hardcoding NinjaSnowWar.as for the EMSCRIPTEN build. 2016-05-31 00:37:34 +02:00
nathan
30f9d91bdd Formatted stuff in a format more appropriate for Urho. See previous commit message for build instructions.
Note that I quadrupled the default emscripten memory size as I found the 32 MB was all but always too small.
2016-05-31 00:26:39 +02:00
nathan
d7b0604d93 Made Angelscript work on the Emscripten build. Not thoroughly tested!!!
-Has been tested by running Urho3DPlayer with the 12_PhysicsStressTest script
 (the file copied in place of NinjaSnowWar.as requested)
-built with "-std=gnu++14 -I/usr/include/boost" for the CMAKE_CXX_FLAGS
 and "-I/usr/include/boost" for the CMAKE_C_FLAGS.
  ** /usr/include/boost contains a simlink pointing to itself so that boost/
     preprocessor____ can be found
-Networking still doesn't work, so NinjaSnowWar shouldn't work
-Debug builds did not work for me: see http://urho3d.prophpbb.com/topic2151.html
-Defining FORCE_AS_PORTABLE can be used to force it to use the generic build
 with, for example, a gcc build (which should allow more apples-to-apples
 testing of the efficiency of the bindings)
-Discussion of this work originally at http://urho3d.prophpbb.com/topic2044.html
2016-05-30 22:32:48 +02:00
urho3d-travis-ci
0d4d9575cd Travis CI: API documentation update at 2016-05-30 17:58:08 UTC.
[ci package]

Commit: a794f9e59b

Message: Prefer key constants instead of ascii codes in keydown/keypress checks. (AngelScript & C++)
2016-05-30 17:58:08 +00:00
Lasse Öörni
a794f9e59b Prefer key constants instead of ascii codes in keydown/keypress checks. (AngelScript & C++) 2016-05-30 20:45:13 +03:00
Lasse Öörni
7b44ba098e Merge remote-tracking branch 'cosmy1/scancode-fix' 2016-05-30 20:08:12 +03:00
Lasse Öörni
a3a21a5c68 Merge remote-tracking branch 'cosmy1/escape-fix' 2016-05-30 20:07:59 +03:00
Lasse Öörni
ef212b9290 Fix BillboardSet & Text3D fixed screen size with multiple views. Remove unused variable. Fix potential bug with BillboardSet update LOD timer & fixed screen size (always force update) 2016-05-28 16:02:27 +03:00
1vanK
461a075501 Send elapsedTime to UI shader 2016-05-28 11:01:31 +03:00
cosmy
2c152977c9 Remove extra comment. 2016-05-28 02:30:09 +02:00
cosmy
945c231fd2 Use SDL character key constants. 2016-05-28 02:29:51 +02:00
cosmy
b057434bfa Make escape key name consistent between keycode and scancode. 2016-05-27 13:27:53 +02:00
Lasse Öörni
e6881956fa Fix erroneous wording in physics events. Node collision events aren't sent "to" nodes, rather "by" nodes. 2016-05-27 10:57:09 +03:00
Lasse Öörni
fce6c3162a More informative class description for RenderPath. 2016-05-27 10:42:53 +03:00
Lasse Öörni
6c5bda871f Only need to ensure stroke thickness doesn't go over font size, as negative values are already checked for. 2016-05-26 16:13:48 +03:00
Bengt Soderstrom
49727ce20c Text effect stroke thickness setter value is made absolute 2016-05-26 13:56:18 +02:00
Bengt Soderstrom
3d0ab6e2ca Stroke thickness attribute is kept positive 2016-05-26 13:16:52 +02:00
urho3d-travis-ci
520f50615c Travis CI: API documentation update at 2016-05-25 20:29:12 UTC.
[ci package]

Commit: f7ffdd8770

Message: Update LZ4 license text.
2016-05-25 20:29:12 +00:00
Lasse Öörni
eb7eed9ace Merge remote-tracking branch 'cosmy1/lz4-update' 2016-05-25 20:27:44 +03:00
Lasse Öörni
64b2a83869 Add fixed screen size option to Text3D. 2016-05-25 20:16:17 +03:00
urho3d-travis-ci
11557444be Travis CI: API documentation update at 2016-05-25 12:51:39 UTC.
[ci package]

Commit: caf663eac3

Message: Possibility for BillboardSet / ParticleEffect billboards to be fixed screen size. In this case the billboard size is measured in pixels.
2016-05-25 12:51:39 +00:00
Lasse Öörni
caf663eac3 Possibility for BillboardSet / ParticleEffect billboards to be fixed screen size. In this case the billboard size is measured in pixels. 2016-05-25 15:39:26 +03:00
Yao Wei Tjong 姚伟忠
d2fe7b1228 Remove "z" shortcut for console (consistent with scripting samples). 2016-05-25 16:39:50 +08:00
urho3d-travis-ci
5069a9b62f Travis CI: API documentation update at 2016-05-24 16:01:41 UTC.
[ci package]

Commit: c347cae4fa

Message: Add contributor credit.
2016-05-24 16:01:41 +00:00
Lasse Öörni
c8ea5fc74e Prevent crash from negative stroke thickness. Simplify non-round stroke code so that thickness=1 corresponds to the earlier nonadjustable stroke. 2016-05-24 18:36:54 +03:00
Lasse Öörni
2165b76506 Use const ref IntVector2 for the shadow effect offset. 2016-05-24 18:08:40 +03:00
Lasse Öörni
7e7ad78f5e Merge remote-tracking branch 'bengtsts/master' 2016-05-24 17:55:32 +03:00
cosmy
e0e43635a4 Update LZ4 compression library. 2016-05-24 16:53:28 +02:00
Bengt Soderstrom
d24a1af425 Text effect get functions placed consistantly with order of other get functions 2016-05-24 16:00:34 +02:00
Bengt Soderstrom
bcbaf08026 Text effect attributes accessible from Lua 2016-05-24 15:03:25 +02:00
Yao Wei Tjong 姚伟忠
30f793c747 Merge commit 'a7b0474d11d1bd88efa371581d1a30f7e231b1cd' into master. 2016-05-24 19:47:12 +08:00
Bengt Soderstrom
34bd347513 Text effect attributes accessible from Angel Script 2016-05-24 12:05:21 +02:00
Lasse Öörni
9e22d226c5 Add explanation of sceneless sound nodes to the documentation. Closes #1385. 2016-05-24 10:57:15 +03:00
Lasse Öörni
cac0d0e5aa Add note of potential bug on old GPU's and seamless cube map extension. 2016-05-23 22:37:51 +03:00
Bengt Soderstrom
19b69aad7e Text effect settings accessible through Text3D and minor variable name consistancy change in Text.h 2016-05-23 20:42:09 +02:00
urho3d-travis-ci
0aa4ec9e72 Travis CI: API documentation update at 2016-05-23 18:07:35 UTC.
[ci package]

Commit: 2ea850ff14

Message: Do not compile HttpRequestDemo sample if URHO3D_NETWORK is not defined. Fix HttpRequest class Lua bindings to not inherit Deserializer to avoid crash, instead expose read functions manually like File does. Fix string concatenation in HttpRequestDemo lua code.
2016-05-23 18:07:35 +00:00
Lasse Öörni
2ea850ff14 Do not compile HttpRequestDemo sample if URHO3D_NETWORK is not defined. Fix HttpRequest class Lua bindings to not inherit Deserializer to avoid crash, instead expose read functions manually like File does. Fix string concatenation in HttpRequestDemo lua code. 2016-05-23 20:37:02 +03:00
Bengt Soderstrom
73980249ee New text effect getters made const and removed executable status of Text and Text3D source files 2016-05-23 19:34:35 +02:00
Lasse Öörni
d50e15dc48 Merge remote-tracking branch 'cosmy1/http-req-demo' 2016-05-23 19:42:38 +03:00
cosmy
2b1118528b Simplify sample code. 2016-05-23 17:16:15 +02:00
cosmy
c2128e054e Clean C++ sample and add Lua version. 2016-05-23 14:35:06 +02:00
cosmy
e8d0d60a98 Fix Clang compilation errors. 2016-05-23 14:14:49 +02:00
cosmy
bdb5035eb4 Add C++ Http Request demo sample. 2016-05-23 13:01:04 +02:00
urho3d-travis-ci
90eccb6ac5 Travis CI: API documentation update at 2016-05-23 08:00:30 UTC.
[ci package]

Commit: 6c589286d0

Message: Merge pull request #1381 from cosmy1/json-fix

Add JSON method to deserialize from string and expose it to script interfaces.
2016-05-23 08:00:30 +00:00
Lasse Öörni
6c589286d0 Merge pull request #1381 from cosmy1/json-fix
Add JSON method to deserialize from string and expose it to script interfaces.
2016-05-23 10:49:52 +03:00
Lasse Öörni
ec05d239f3 Check seamless cubemap extension before trying to enable it on GL2. Related to #1380. 2016-05-23 01:09:54 +03:00
Lasse Öörni
6e78a22271 Fix NamedPipe compilation on Emscripten (make it a no-op) 2016-05-23 00:57:22 +03:00
cosmy
9bb620ad17 Add JSON method to deserialize from string and expose it to script interfaces. 2016-05-22 21:08:38 +02:00
Lasse Öörni
c4b40ae04c Lowercase Windows.h for MinGW. 2016-05-22 21:59:25 +03:00
Bengt Soderstrom
51a35a9556 Enhanced Text Effects: Drop shadow offset, custom stroke thickness and stroke roundness can be set in editor 2016-05-22 20:18:22 +02:00
urho3d-travis-ci
9e95e891c1 Travis CI: API documentation update at 2016-05-22 18:16:32 UTC.
[ci package]

Commit: 9a1d0a857f

Message: Eliminate end-of-line spaces from NamedPipe code, minor cleanup.
2016-05-22 18:16:32 +00:00
Lasse Öörni
9a1d0a857f Eliminate end-of-line spaces from NamedPipe code, minor cleanup. 2016-05-22 20:54:48 +03:00
Lasse Öörni
e7e0cb51a6 Take advantage of Deserializer::IsEof() being virtual to clean up HttpRequest code. Now position_ is no longer manipulated to fake the EOF behavior. 2016-05-22 20:50:55 +03:00
Lasse Öörni
0095fbb41e Unix named pipe support. Fixed GCC warning in OGLGraphics.cpp. Closes #1346. 2016-05-22 20:07:28 +03:00
Bengt Soderstrom
1d552092b4 Enhance Text Effects: Drop shadow can be offset in editor and custom stroke thickness can be set as well as stroke roundness 2016-05-22 17:32:48 +02:00
Bengt Soderstrom
46b9af52ec Added Text effect enhancement: Stroke generated procedurally 2016-05-22 15:30:30 +02:00
Bengt Soderstrom
3ecba5a52c Added Text effect enhancement: Stroke generated procedurally 2016-05-22 15:27:37 +02:00
Lasse Öörni
daef54490e Added NamedPipe class, Windows implementation. Make Deserializer::IsEof() virtual. 2016-05-22 14:41:22 +03:00
Lasse Öörni
83e3772a34 Halve default VSM softness. Scale VSM blurring to shadow resolution, so that low resolutions don't receive too much blur. Note: when using VSM, you should set all your large surfaces (such as floors or terrains) to cast shadows. Otherwise shadows will be unnaturally thin. The Urho builtin samples don't do this to avoid artifacts on mobiles where VSM can't be used, and the bias is tricky to get right. 2016-05-21 15:12:58 +03:00
Yao Wei Tjong 姚伟忠
d15553fce9 Fix building of PackageTool target due to inclusion of new class. 2016-05-21 12:02:53 +08:00
urho3d-travis-ci
cd692756e0 Travis CI: API documentation update at 2016-05-20 23:28:35 UTC.
[ci package]

Commit: 96e76164b8

Message: Update Civetweb license in root dir License.txt.
2016-05-20 23:28:35 +00:00
Lasse Öörni
94db13ed69 Merge remote-tracking branch 'cosmy1/civetweb-update' 2016-05-21 01:10:07 +03:00
Lasse Öörni
f3beda9164 Merge remote-tracking branch '1vanK/master' 2016-05-21 00:13:20 +03:00
1vanK
2d19a26743 ScrollBar base class from UIElement to BorderImage 2016-05-20 15:58:32 +03:00
Lasse Öörni
d17da2382c Merge pull request #1375 from cosmy1/warn-fix
Fix float casting.
2016-05-20 14:31:13 +03:00
cosmy
26d1b6cf54 Fix VS15 compilation error. 2016-05-20 13:06:34 +02:00
cosmy
ff745005ed Update Civetweb code. 2016-05-20 12:40:32 +02:00
cosmy
9a55d403be Update Civetweb documentation files. 2016-05-20 12:39:04 +02:00
cosmy
7647d43367 Fix float casting. 2016-05-20 12:34:41 +02:00
Lasse Öörni
cffdcb6ed8 Make Text3D private data protected instead to aid in subclassing (e.g. for more text effects.) 2016-05-20 12:14:24 +03:00
carnalis
55d2ed8e7c Add Urho3D namespace 2016-05-19 15:38:16 -04:00
Lasse Öörni
97bb1769d0 Rework renderpath quad commands to use same quad transform as deferred directional lights, with the camera projection set correctly. Set quad command's shader parameters last to allow overriding any engine shader parameter (except the quad's model transform.) Remove unused function parameters. Closes #1370. 2016-05-19 22:08:17 +03:00
urho3d-travis-ci
04dc4712d8 Travis CI: API documentation update at 2016-05-19 15:55:55 UTC.
[ci package]

Commit: d09f67f249

Message: Clean up Image::SavePNG() to use just Image::Save(). Fix jo & stbi_image_write to use wchar paths on Windows.
2016-05-19 15:55:55 +00:00
Lasse Öörni
d09f67f249 Clean up Image::SavePNG() to use just Image::Save(). Fix jo & stbi_image_write to use wchar paths on Windows. 2016-05-19 17:59:28 +03:00
Lasse Öörni
5ac188d459 Add event name subscription to AngelScript & Lua API's as a global function, so that script-defined events can work with EventProfiler. Simplify code to terminate EventProfiler block when event send ends. Also terminate EventProfiler block if event send is terminated abnormally (sender expired.) 2016-05-19 17:30:41 +03:00
Lasse Öörni
a090cd94fd Minor code convention & class documentation edit: put static variables to the beginning of .cpp file and don't use underscore. 2016-05-19 17:04:31 +03:00
Lasse Öörni
3fdaba3a68 Add missing consts to DebugHud.pkg. 2016-05-19 16:34:25 +03:00
Lasse Öörni
2ca6d16b28 Mention EventProfiler in the documentation. Simplify code in DebugHud to activate/deactivate event profiler. 2016-05-19 16:32:36 +03:00
Lasse Öörni
fcfb17a2b0 Merge remote-tracking branch 'svifylabs/f_EventProfiler' 2016-05-19 16:10:54 +03:00
Lasse Öörni
387f1346e2 Merge remote-tracking branch 'cosmy1/glew-update' 2016-05-19 15:47:05 +03:00
Lasse Öörni
5a04309fa5 Fix Material::SetUVTransform() adding an extra offset when repeat is adjusted. Fix SetUVTransform() rotation to be centered at any repeat value. 2016-05-19 15:36:49 +03:00
svifylabs
a91a6cf924 Added static bool to EventProfiler 2016-05-19 09:18:46 +02:00
svifylabs
16257f80c5 Revert "Testing static registration of subsystems"
This reverts commit 2a0a9df4dd.
2016-05-19 08:44:28 +02:00
cosmy
94fabf7287 Update GLEW to 1.13. 2016-05-18 23:41:17 +02:00
Lasse Öörni
187b343563 Remove cast since it wasn't consistent, and equality comparison doesn't produce a warning between signed/unsigned. 2016-05-18 17:05:56 +03:00
Lasse Öörni
8ebe1e2050 Write PNG first to memory, then to file to handle UTF8 paths correctly. Unfortunately stbi_image_write lacks the same API for TGA format, and jo_jpeg doesn't support memory write either. 2016-05-18 16:30:12 +03:00
Lasse Öörni
5d71f8012a Update documentation. Skip material / texture save in AssetImporter "anim" mode. 2016-05-18 16:24:54 +03:00
Lasse Öörni
77325b0ef0 Merge remote-tracking branch 'svifylabs/f_importAnim' 2016-05-18 15:15:53 +03:00
svifylabs
2a0a9df4dd Testing static registration of subsystems
dont know if its ok or really bad ...
2016-05-18 13:04:09 +02:00
Bengt Soderstrom
d6d2bc7433 Added multiple stroke thicknesses to Text effects which are more visible with larger font sizes 2016-05-18 12:48:05 +02:00
Lasse Öörni
250bfbaafe Merge pull request #1364 from cosmy1/fix
Initialize various missing class members.
2016-05-18 11:11:06 +03:00
svifylabs
d304d941d1 Add import only animation 2016-05-18 09:50:12 +02:00
svifylabs
bffb89b60d Added EventProfiler
- EventProfiler is based on the normal profiler
- encapsulated between URHO3D_PROFILING blocks
- added "EventProfiler" to the engineParameters and is default false
- can be activated and deactivated (should be reworked)

Added EventProfiler

- EventProfiler is based on the normal profiler
- encapsulated between URHO3D_PROFILING blocks
- added "EventProfiler" to the engineParameters and is default false
- can be activated and deactivated (should be reworked)
2016-05-18 09:44:49 +02:00
cosmy
385df5f101 Initialize all Image members. 2016-05-17 21:46:51 +02:00
cosmy
9b9d77f09c Initialize all ListBase members. 2016-05-17 21:38:33 +02:00
cosmy
dfb3c8409c Initialize all HashBase members. 2016-05-17 21:38:12 +02:00
urho3d-travis-ci
b39f1b30e7 Travis CI: API documentation update at 2016-05-17 16:13:08 UTC.
[ci package]

Commit: 7da8374a3b

Message: Option to override culling mode in pass. Closes #1363.
2016-05-17 16:13:08 +00:00
Lasse Öörni
7da8374a3b Option to override culling mode in pass. Closes #1363. 2016-05-17 18:58:32 +03:00
Yao Wei Tjong 姚伟忠
78a55a8422 Attempt to fix random segfault on CrowdNavigation demo.
Related to #1200.
2016-05-16 17:36:00 +08:00
Lasse Öörni
5e7a3b1265 Disable IRRMESH if IRR is disabled. Closes #1362. 2016-05-15 22:35:02 +03:00
Yao Wei Tjong 姚伟忠
4f72a673d9 Fix the compression ratio calculation. Suppress compilation warnings. 2016-05-14 22:57:14 +08:00
urho3d-travis-ci
83f254c317 Travis CI: API documentation update at 2016-05-14 07:19:37 UTC.
[ci package]

Commit: c28634c206

Message: Minor enhancement on the PackageTool to have output option.
2016-05-14 07:19:37 +00:00
Yao Wei Tjong 姚伟忠
c28634c206 Minor enhancement on the PackageTool to have output option. 2016-05-14 15:07:14 +08:00
Lasse Öörni
16997009c6 Send E_ANIMATIONFINISHED event also for AnimatedSprite2D animation loop/end. 2016-05-14 02:48:04 +03:00
Lasse Öörni
7b9e6aa436 Merge remote-tracking branch 'cosmy1/indent-fix' 2016-05-12 13:49:17 +03:00
cosmy
6bce856acf Fix code indent. 2016-05-12 12:31:42 +02:00
Yao Wei Tjong 姚伟忠
b29a9481c0 Mark the SDL source code changes to comply with its license. 2016-05-11 19:46:44 +08:00
Lasse Öörni
0d3ea5148d Merge remote-tracking branch '1vanK/master' 2016-05-11 12:21:15 +03:00
Yao Wei Tjong 姚伟忠
beb9bcd8c7 Fix memory leak in SDL library. 2016-05-11 16:55:37 +08:00
1vanK
d6f5f5d45c Fix gold coin animation 2016-05-11 11:27:29 +03:00
urho3d-travis-ci
1a060523e0 Travis CI: API documentation update at 2016-05-09 20:02:33 UTC.
[ci package]

Commit: a955725bd0

Message: Add the interpolation mode IM_NONE to ValueAnimation. Add animating UI element to LightAnimation example. Add ResourceRef constructor that takes type & name as strings for easier script bindings.
2016-05-09 20:02:33 +00:00
Lasse Öörni
a955725bd0 Add the interpolation mode IM_NONE to ValueAnimation. Add animating UI element to LightAnimation example. Add ResourceRef constructor that takes type & name as strings for easier script bindings. 2016-05-09 22:38:06 +03:00
Yao Wei Tjong 姚伟忠
965e646fb5 Minor clean up on build script. 2016-05-08 09:44:32 +08:00
urho3d-travis-ci
45d5854288 Travis CI: API documentation update at 2016-05-07 17:38:57 UTC.
[ci package]

Commit: 7220b37676

Message: Fix spotlight spot matrix in deferred rendering. Remove unused variables.
2016-05-07 17:38:57 +00:00
Lasse Öörni
7220b37676 Fix spotlight spot matrix in deferred rendering. Remove unused variables. 2016-05-07 20:22:59 +03:00
Lasse Öörni
44ba1f04b8 Enhance documentation related to normal offset. Add missing Lua property for mobileNormalOffsetMul. Closes #1347. 2016-05-07 20:20:45 +03:00
Lasse Öörni
f908fa4cfd Fix normal offset GLSL code for GLES. Set default mobile multiplier for normal offset to 2. 2016-05-07 20:20:44 +03:00
Lasse Öörni
a123794886 Normal offset support in GLSL. Fix deferred specular in GLSL. 2016-05-07 20:20:43 +03:00
Lasse Öörni
7160a0ab7c Normal offset shadow support for HLSL. Fix deferred specular calculation on HLSL. 2016-05-07 20:20:42 +03:00
Yao Wei Tjong 姚伟忠
83a1f3889b Enhance buildsystem to support MSVC to be used in other build tools.
Related to #1328.
2016-05-07 18:09:05 +08:00
urho3d-travis-ci
ed511aba60 Travis CI: API documentation update at 2016-05-06 17:38:03 UTC.
[ci package]

Commit: 8e8ee798a7

Message: New click / click end events sent by the UI element in question (see UIEvents.h.) Fix IsInside() check for the sprite UI element to allow accurate click detection. Register the full UIElement API for the Sprite element in AngelScript, though not all functions make sense. Clean up empty virtual functions from .cpp files in favor of defining them in headers. Closes #1343.
2016-05-06 17:38:04 +00:00
Lasse Öörni
8e8ee798a7 New click / click end events sent by the UI element in question (see UIEvents.h.) Fix IsInside() check for the sprite UI element to allow accurate click detection. Register the full UIElement API for the Sprite element in AngelScript, though not all functions make sense. Clean up empty virtual functions from .cpp files in favor of defining them in headers. Closes #1343. 2016-05-06 19:58:27 +03:00
urho3d-travis-ci
12ed42caeb Travis CI: API documentation update at 2016-05-06 12:51:53 UTC.
[ci package]

Commit: 6b680cd6ee

Message: Remove unused variable.
2016-05-06 12:51:53 +00:00
Lasse Öörni
6b680cd6ee Remove unused variable. 2016-05-06 15:36:27 +03:00
Lasse Öörni
74d6d5678c Ensure full Text3D material update if opacity or alpha changes from nonzero to zero. 2016-05-06 15:35:16 +03:00
Lasse Öörni
e023f448f1 Add missing opacity attribute for Text3D. Prevent illegal index access when amount of text batches is in mismatch with amount of Drawable batches. Closes #1350. 2016-05-06 15:30:00 +03:00
Lasse Öörni
53302819fa Improve error message in OcclusionBuffer when width is not a power of two. 2016-05-03 15:09:38 +03:00
Lasse Öörni
21bf5d4bea When deserializing a VariantMap from XML, also accept entries without "hash" attribute but a "name" attribute. Closes #1342. 2016-05-03 15:08:50 +03:00
urho3d-travis-ci
c0d023a8f0 Travis CI: API documentation update at 2016-05-02 19:49:47 UTC.
[ci package]

Commit: 551521212d

Message: Register HierarchyContainer into Lua bindings so that accessing a ListView's contentelement in hierarchy mode doesn't choke. Closes #1341.
2016-05-02 19:49:47 +00:00
Lasse Öörni
551521212d Register HierarchyContainer into Lua bindings so that accessing a ListView's contentelement in hierarchy mode doesn't choke. Closes #1341. 2016-05-02 21:19:11 +03:00
urho3d-travis-ci
d24d882bca Travis CI: API documentation update at 2016-05-02 17:47:52 UTC.
[ci package]

Commit: 7fbf89b728

Message: Add Clone() function to Animation. Expose Animation constructor in Lua.
2016-05-02 17:47:52 +00:00
Lasse Öörni
7fbf89b728 Add Clone() function to Animation. Expose Animation constructor in Lua. 2016-05-02 20:34:58 +03:00
Lasse Öörni
31e57e01fb Add PBR sample C++ version. 2016-05-01 13:41:18 +03:00
Yao Wei Tjong 姚伟忠
9baac62031 Improve NextPowerOfTwo().
Also make it consistent with IsPowerOfTwo() to treat 0 as if it is power of 2 (although mathematically it is not). NextPowerOfTwo(0) now returns 0.
In the old version when value is larger than 0x80000000 then the function returned 0x80000000 which is not exactly correct because it is not the "next" number. In the new version the function returns 0 in this case because the next number has overflow the unsigned data type.
2016-05-01 15:33:04 +08:00
Lasse Öörni
97bf7fa8a2 Fix crash when driver allows GL version 3.2 but doesn't support instancing. 2016-05-01 00:16:44 +03:00
Yao Wei Tjong 姚伟忠
1bcae0ca2b No-ops when VertexDeclaration.h is being included for OGL graphics API.
You may want to uncomment the #error compiler directive instead to flag out the occurrences.
2016-04-30 12:42:10 +08:00
Yao Wei Tjong 姚伟忠
e28e6e5c85 Quick fix to suppress confusing output msgs from SDL's CMakeLists.txt.
[ci skip]
2016-04-30 11:33:23 +08:00
Lasse Öörni
e7599463ba Improved IsPowerOfTwo(). Thanks to Y-way for initial PR. 2016-04-29 14:58:05 +03:00
Lasse Öörni
8d2c7230f0 Prevent Android / iOS reporting the mouse as grabbed. Closes #1337. 2016-04-27 18:28:03 +03:00
Yao Wei Tjong 姚伟忠
6abb199bc6 Use file symlink instead of directory for STB library.
Fix #1330.
2016-04-27 20:07:26 +08:00
Yao Wei Tjong 姚伟忠
a15abf5068 Avoid hard-coding of the sample list in the build script. 2016-04-27 12:23:35 +08:00
Yao Wei Tjong 姚伟忠
87f408be51 For CI - avoid hard-coding of the sample list in the build script.
Switch the build output verboseness to normal as the diagnostic mode also does not help to reveal any additional information on the crowd navigation sample when it segfaulted during test.
2016-04-26 13:25:45 +08:00
urho3d-travis-ci
29f2984d71 Travis CI: API documentation update at 2016-04-24 09:48:53 UTC.
[ci package]

Commit: 31d362f879

Message: Add new engine parameter for enabling/disabling high DPI window mode.
Temporary fix for issue #1252. The high DPI mode is disabled by default.
2016-04-24 09:48:53 +00:00
Yao Wei Tjong 姚伟忠
31d362f879 Add new engine parameter for enabling/disabling high DPI window mode.
Temporary fix for issue #1252. The high DPI mode is disabled by default.
2016-04-24 17:36:32 +08:00
Lasse Öörni
d492d32f41 When building input layouts, put VS element hash to the upper 32 bits to reduce possibility of collisions. 2016-04-23 15:39:10 +03:00
Lasse Öörni
2151426adc Use proper world space in deferred light shaders. This allows the cLightPos uniform and shadow matrices to behave the same in all passes (simplifies code.) Closes #1335. 2016-04-23 01:35:41 +03:00
Lasse Öörni
91b799d666 Change the signature of the new HashMap Insert() function. Do not allow user to specify findExisting flag. As the meaning of the bool return value is reverse to std::map::insert(), do not return it in a pair to avoid confusion, but rather in a separate bool value which is passed by reference. Add corresponding function to HashSet. Edit comments. 2016-04-21 01:58:02 +03:00
Lasse Öörni
25f1d1442a Merge remote-tracking branch 'svifylabs/ExtendContainer' 2016-04-20 23:34:32 +03:00
Lasse Öörni
d80e5f9a32 Simplify OpenGL code. 2016-04-20 23:15:01 +03:00
Lasse Öörni
eedb47f612 Merge remote-tracking branch 'svifylabs/basevertexindex' 2016-04-20 22:08:29 +03:00
svifylabs
e7db8ffeab renamed local variable (copy error) 2016-04-20 08:49:09 +02:00
svifylabs
b54b5b9ef7 add TryGetValue, Insert, EraseSwap, RemoveSwap 2016-04-20 07:34:49 +02:00
Lasse Öörni
ed8740428c Remove cCameraRot uniform. Instead derive from cViewInv as necessary. Closes #1163. 2016-04-19 23:18:07 +03:00
svifylabs
e94d00517c fix compile error and added runtime check 2016-04-19 18:22:34 +02:00
svifylabs
c09b638524 Add Graphics draw call with baseVertexIndex (offset)
only  supported for opengl 3  and direct3d
2016-04-19 16:06:31 +02:00
urho3d-travis-ci
03f355ca96 Travis CI: API documentation update at 2016-04-19 09:54:00 UTC.
[ci package]

Commit: 57389d42c2

Message: Minor documentation edit.
2016-04-19 09:54:00 +00:00
Lasse Öörni
c003af1114 Merge branch 'master' into vertexdeclaration 2016-04-18 22:34:00 +03:00
Lasse Öörni
cd19bf0939 Merge pull request #1327 from BlueMagnificent/ScriptInstance_Execute
Add additional Variant Types For ScriptInstance::Execute()
2016-04-18 10:29:58 +03:00
Blue, The Magnificent
0913210731 Add additional Variant Types that have objects exposed to AngelScript subsystem 2016-04-18 00:54:48 +01:00
Lasse Öörni
1ba0958fa7 Fix render-to-texture views (part of a material) not being updated on the first frame. 2016-04-17 21:35:32 +03:00
Lasse Öörni
3f861d67dd Enable seamless cubemap if possible on desktop GL (from 1vanK). Clarify meaning of Light::SetShadowIntensity(). 2016-04-17 16:58:41 +03:00
Lasse Öörni
c48b25abca Use the new model format in OgreImporter. 2016-04-16 21:11:42 +03:00
Lasse Öörni
19f3b0f120 Merge branch 'master' into vertexdeclaration 2016-04-16 14:58:30 +03:00
Yao Wei Tjong 姚伟忠
7a979cad3d Attempt to fix SDL OpenGLES auto-detection for Emscripten on Windows. 2016-04-16 12:29:03 +08:00
Yao Wei Tjong 姚伟忠
43bea49674 Fix the PBRDemo shell script. 2016-04-15 18:56:31 +08:00
urho3d-travis-ci
60a1416b2b Travis CI: API documentation update at 2016-04-14 21:11:19 UTC.
[ci package]

Commit: 39ca95b662

Message: Squashed commit of the following:

commit 8197605c1c6c660c71727db8472bf9a9ac2ae76d
Author: Lasse Öörni <loorni@gmail.com>
Date:   Thu Apr 14 23:55:05 2016 +0300

    Convert cubemap to DDS.

commit a06cf912e3a106f66137241722c7fd49c1805e2b
Author: Lasse Öörni <loorni@gmail.com>
Date:   Thu Apr 14 23:42:56 2016 +0300

    Fix D3D11 crash if trying to assign color texture as a depth stencil or vice versa. Remove mistaken assignment of the 4th rendertarget output from PBRDeferredHWDepth.xml.

commit de765127b10c8cef45689fd8117875930af7031a
Author: Lasse Öörni <loorni@gmail.com>
Date:   Thu Apr 14 23:17:37 2016 +0300

    Add possibility to configure default material technique in Renderer.

commit d876a081932f423a42adcc1371a6fac622e8d585
Author: Lasse Öörni <loorni@gmail.com>
Date:   Thu Apr 14 23:10:32 2016 +0300

    Refer to Utilities/Rotator.as script in the PBR scene.

commit 9e4078c9a1cfa4be040a523d3b51aaf55a332c40
Author: Lasse Öörni <loorni@gmail.com>
Date:   Thu Apr 14 23:06:00 2016 +0300

    Readd deleted Flare.dds.

commit 1f606cc883e89e15e32272f6d47877c6e511b74b
Author: Lasse Öörni <loorni@gmail.com>
Date:   Thu Apr 14 22:31:04 2016 +0300

    Remove NinjaSnowWar copypasta.

commit 745937646f3638a208e58c3cce76df7afbab8416
Author: Lasse Öörni <loorni@gmail.com>
Date:   Thu Apr 14 22:11:28 2016 +0300

    Separate skybox2 material. Remove unused materials. Fix typo in material name.

commit 258d0325d4bed282f28d8ec8364ee64700e4f025
Author: Lasse Öörni <loorni@gmail.com>
Date:   Thu Apr 14 22:04:48 2016 +0300

    Squashed commit of the following:

    commit a329abe9a2a0f77dcb415bafd15c6e309261e7cc
    Author: dragonCASTjosh <dragonCASTjosh@gmail.com>
    Date:   Thu Apr 14 15:08:26 2016 +0100

        removed white space

    commit 434b1d8599ce2d0828acfc2939b94b33cd821fad
    Author: dragonCASTjosh <dragonCASTjosh@gmail.com>
    Date:   Thu Apr 14 15:06:36 2016 +0100

        Updated Licence

    commit f89a2369c83791c43762ca2b34f8b3aeeb562b24
    Author: dragonCASTjosh <dragonCASTjosh@gmail.com>
    Date:   Thu Apr 14 15:03:57 2016 +0100

        Converted texture formats

    commit 028cd1da4d7ac226e1943a70abfd6037912c86b0
    Author: dragonCASTjosh <dragonCASTjosh@gmail.com>
    Date:   Thu Apr 14 14:55:31 2016 +0100

        Updated Licence

    commit ecc288b3cbc046a678bbc2d0df408b2f29220b30
    Author: dragonCASTjosh <dragonCASTjosh@gmail.com>
    Date:   Wed Apr 13 00:02:34 2016 +0100

        Added basic licence

    commit ce34c0496e80043e3e79f4273468a66463ed13cb
    Author: dragonCASTjosh <dragonCASTjosh@gmail.com>
    Date:   Tue Apr 12 14:00:52 2016 +0100

        Cleaned Up Data and Reverted Default Technique

    commit a9e08bbd3a4f08c09baa477a0ce06cef517d506e
    Merge: 53c53ae d009f11
    Author: dragonCASTjosh <NUT13000804@students.wnc.ac.uk>
    Date:   Sat Apr 9 11:10:30 2016 +0100

        Merge pull request #11 from hdunderscore/typoFix_Metallic

        Fix metallic typo

    commit 53c53aec4c1d935b31cbc0ce5eac93faaa5b9f89
    Merge: 851487e 9c1d728
    Author: dragonCASTjosh <NUT13000804@students.wnc.ac.uk>
    Date:   Sat Apr 9 11:08:17 2016 +0100

        Merge pull request #10 from cosmy1/patch-10

        Remove extra float casts

    commit d009f11865dfdf9634fa9c297f2cc339164724de
    Author: hdunderscore <hdunderscore@gmail.com>
    Date:   Sat Apr 9 15:07:44 2016 +1000

        Fix metallic typo

    commit 9c1d728be919a74dfee8973b146f312121daed9e
    Author: cosmy1 <cosmy_rulezz@hotmail.it>
    Date:   Sat Apr 9 04:50:36 2016 +0200

        Remove extra float casts

    commit 851487ea63c181eb45c5988eb71dd526e2c12852
    Merge: 3142270 8edbae9
    Author: dragonCASTjosh <NUT13000804@students.wnc.ac.uk>
    Date:   Fri Apr 8 19:32:06 2016 +0100

        Merge pull request #9 from hdunderscore/PBRChangesR

        Updates to IBL

    commit 8edbae92c5e454727126c444b49075ef07e36ab8
    Author: hdunderscore <hdunderscore@gmail.com>
    Date:   Fri Apr 8 20:01:33 2016 +1000

        - Updated glsl shaders
        - Fixed a potential bug with direct lighting.
        - Introduced a new define 'PBRFAST' that will allow the IBL to take a short-cut for significantly higher frame-rate, but lower quality.

    commit e63a5d4faedb22710f28dbfdff3705fdfb3b1d22
    Author: hdunderscore <hdunderscore@gmail.com>
    Date:   Fri Apr 8 10:06:18 2016 +1000

        Fixed a divide-by-zero in the CookTorranceBRDF, which was causing a visual issue in DX11.

    commit 37d30d906c93ebb2e4165f91db5adc7e7893edc4
    Author: hdunderscore <hdunderscore@gmail.com>
    Date:   Fri Apr 8 00:30:26 2016 +1000

        Fixed specular IBL energy conservation.

    commit 4643342079dce76c3b26ac101745e49cabad7b68
    Author: hdunderscore <hdunderscore@gmail.com>
    Date:   Thu Apr 7 21:27:16 2016 +1000

        - Exposed tangents and bi-tangents to the IBL.
        - Removed unused calculations in deferred first pass.
        - Added a simpler image sampling calculation.

    commit b7ea9b89fe455d8e9c62fc3a1dd441a8860c9708
    Author: hdunderscore <hdunderscore@gmail.com>
    Date:   Wed Apr 6 22:44:09 2016 +1000

        - Fixed a few errors in the BRDF functions
        - Fixed the specular calculations
        - Small code refactor to allow for more consistency and easier experimentation.
        - Implemented the ImageSampling algorithm as described in Epic's 2013 paper, with improvements.
        - Implemented a true working deferred renderer.
        - Updated the concrete normal map (reversed the direction).
        - Changed the sRGB setting of the diffuse textures and cubemap, to perform calculations in linear space.
        - Added post-process effects to the PBR sample.

    commit 314227053b26c6ba70d7de32b2c5894d60d25784
    Author: dragonCASTjosh <dragonCASTjosh@gmail.com>
    Date:   Wed Apr 6 01:35:52 2016 +0100

        Missing OpenGL changes (reverted from commit 4169cfca4abe7b23b5f2a84aa391992fe22e3a8b)

    commit 9cd441c413f4742bca3889d3cdf9f2c290462e3d
    Author: dragonCASTjosh <dragonCASTjosh@gmail.com>
    Date:   Wed Apr 6 01:27:42 2016 +0100

        - Fix Metallic typo
        - Fix HLSL specular metallic bug
        - Fix indentation.
        - Fix BRDF typo.
        - Fix sample scene material to use normal maps.
        - Revert IBL Importance sample to use Epic described method.
        - Removed incorrect application of split sum on top of importance sample method.
        - Added diffuse IBL calculation. (reverted from commit 143379cee9968588974879e1ce53123f45d8741a)

    commit 143379cee9968588974879e1ce53123f45d8741a
    Author: dragonCASTjosh <dragonCASTjosh@gmail.com>
    Date:   Wed Apr 6 01:10:37 2016 +0100

        - Fix Metallic typo
        - Fix HLSL specular metallic bug
        - Fix indentation.
        - Fix BRDF typo.
        - Fix sample scene material to use normal maps.
        - Revert IBL Importance sample to use Epic described method.
        - Removed incorrect application of split sum on top of importance sample method.
        - Added diffuse IBL calculation.

    commit fbba0f389b571d0b3814254c16b05279bfd29a58
    Merge: 4169cfc c9ba2ec
    Author: dragonCASTjosh <NUT13000804@students.wnc.ac.uk>
    Date:   Tue Apr 5 14:03:40 2016 +0100

        Merge pull request #5 from cosmy1/patch-6

        Update BDRF.hlsl

    commit 4169cfca4abe7b23b5f2a84aa391992fe22e3a8b
    Author: dragonCASTjosh <dragonCASTjosh@gmail.com>
    Date:   Mon Apr 4 22:55:56 2016 +0100

        Missing OpenGL changes

    commit 62491b160cd356cdf4bc292815862fbdea2be22a
    Author: dragonCASTjosh <dragonCASTjosh@gmail.com>
    Date:   Mon Apr 4 22:54:50 2016 +0100

        Fixed OpenGL PBR

    commit a453cfea1a061900c9de604b5d422d5915cf1712
    Author: dragonCASTjosh <dragonCASTjosh@gmail.com>
    Date:   Mon Apr 4 02:37:53 2016 +0100

        Fixed IBL function taking metallic

    commit e33efba25b455a6c77679941c489619a02fa1098
    Author: dragonCASTjosh <dragonCASTjosh@gmail.com>
    Date:   Mon Apr 4 02:35:28 2016 +0100

        Improve IBL and fixed specular color

    commit 4c7058f1c41bbed32c96df550cb93a14b17ec07d
    Author: dragonCASTjosh <dragonCASTjosh@gmail.com>
    Date:   Sat Apr 2 01:43:18 2016 +0100

        Fixed HLSL

    commit 9d095a14ac64e34fa2c016e4503b2b076e64b025
    Merge: 2de2597 0a9ea24
    Author: dragonCASTjosh <NUT13000804@students.wnc.ac.uk>
    Date:   Sun Apr 3 14:22:46 2016 +0100

        Merge pull request #6 from cosmy1/patch-8

        Update PBRExample.xml

    commit 2de259781a588c80117744892083065fbe5bb5c8
    Merge: 92ab68c 12bd826
    Author: dragonCASTjosh <NUT13000804@students.wnc.ac.uk>
    Date:   Sat Apr 2 20:51:30 2016 +0100

        Merge pull request #4 from cosmy1/patch-4

        Update IBL.glsl

    commit 92ab68ce3b94a092ad96d9cd0e577d1b7fedf61c
    Merge: 295a23e e1f5ac2
    Author: dragonCASTjosh <NUT13000804@students.wnc.ac.uk>
    Date:   Sat Apr 2 20:51:05 2016 +0100

        Merge pull request #3 from cosmy1/patch-3

        Update BRDF.glsl

    commit 0a9ea24b6681bac8e3deab58081ee9462b6ada31
    Author: cosmy1 <cosmy_rulezz@hotmail.it>
    Date:   Sat Apr 2 11:54:33 2016 +0200

        Update PBRExample.xml

    commit c9ba2ec10f34da559c6148cb0d8d9cbc2ca62ff0
    Author: cosmy1 <cosmy_rulezz@hotmail.it>
    Date:   Sat Apr 2 11:50:30 2016 +0200

        Update BDRF.hlsl

    commit 12bd826c73092b8e96782c91b9cc7d925e77708f
    Author: cosmy1 <cosmy_rulezz@hotmail.it>
    Date:   Sat Apr 2 11:47:29 2016 +0200

        Update IBL.glsl

    commit e1f5ac27606295bf81c07d3d46fda1dae6f191a7
    Author: cosmy1 <cosmy_rulezz@hotmail.it>
    Date:   Sat Apr 2 11:43:37 2016 +0200

        Update BRDF.glsl

    commit 295a23e96f3dcdf05aac8d4e9057e8e6c67b3607
    Author: dragonCASTjosh <dragonCASTjosh@gmail.com>
    Date:   Sat Apr 2 00:19:01 2016 +0100

        Updated Example

    commit 9b105230ecd33082bb82a8963057d635ffbe41ac
    Author: dragonCASTjosh <dragonCASTjosh@gmail.com>
    Date:   Sat Apr 2 00:15:55 2016 +0100

        Fixed IBL and indentation

    commit 185d31b6a0af7d084e7305d783e407d354274cac
    Merge: 6b7b5be dad5c04
    Author: dragonCASTjosh <NUT13000804@students.wnc.ac.uk>
    Date:   Fri Apr 1 23:55:46 2016 +0100

        Merge pull request #2 from cosmy1/patch-2

        Update BRDF.glsl

    commit dad5c042fc3272accbb9c26f2e17214ece66ebf8
    Author: cosmy1 <cosmy_rulezz@hotmail.it>
    Date:   Sat Apr 2 00:39:35 2016 +0200

        Update BRDF.glsl

    commit 6b7b5bee9c56304aa92a4009d15282b6456d77c6
    Merge: a5b6b93 c398e82
    Author: dragonCASTjosh <NUT13000804@students.wnc.ac.uk>
    Date:   Fri Apr 1 23:34:40 2016 +0100

        Merge pull request #1 from cosmy1/patch-1

        Fix whitespaces in Material

    commit c398e82153ac0d0ab2b29f61d4345d747be3d40c
    Author: cosmy1 <cosmy_rulezz@hotmail.it>
    Date:   Sat Apr 2 00:33:27 2016 +0200

        Fix whitespaces in Material

    commit a5b6b93b96a053f304b7326b4fa3930d60195051
    Author: dragonCASTjosh <dragonCASTjosh@gmail.com>
    Date:   Fri Apr 1 21:33:52 2016 +0100

        fixed indentation

    commit 5b402e75092e680975435384ecb8b0af0292139d
    Author: dragonCASTjosh <dragonCASTjosh@gmail.com>
    Date:   Fri Apr 1 21:32:35 2016 +0100

        Fixed issue with deletion of wrong values

    commit 4ca39ec5bfb905621de8c80999cf640a8ad6d5e0
    Author: dragonCASTjosh <dragonCASTjosh@gmail.com>
    Date:   Fri Apr 1 21:28:59 2016 +0100

        removed nolonger needed licence

    commit d2ab0f9a048d594d7115c41c2dbea2ce2d39e31b
    Author: dragonCASTjosh <dragonCASTjosh@gmail.com>
    Date:   Fri Apr 1 21:28:18 2016 +0100

        Improve PBR and moved forward PBR into new shader

    commit cdaae6e2cf234f28cef90f244e2e24e6b7d0d915
    Author: dragonCASTjosh <dragonCASTjosh@gmail.com>
    Date:   Fri Apr 1 21:26:57 2016 +0100

        Removed remaining area lighting and fixed pbr in deferred rendering

    commit 6fca9d3b98fc2cacea2a11129eb1fc69a7e2fd2f
    Author: dragonCASTjosh <dragonCASTjosh@gmail.com>
    Date:   Fri Apr 1 13:19:48 2016 +0100

        Replaced data folder with one from mater to avoid commit revert errors

    commit 543c30f0b3b035df13ce09cc127117fb160bfe5f
    Author: dragonCASTjosh <dragonCASTjosh@gmail.com>
    Date:   Thu Mar 31 20:52:47 2016 +0100

        Complete PBR work
2016-04-15 18:56:31 +08:00
Lasse Öörni
2e44b0b350 Squashed commit of the following:
commit 8197605c1c6c660c71727db8472bf9a9ac2ae76d
Author: Lasse Öörni <loorni@gmail.com>
Date:   Thu Apr 14 23:55:05 2016 +0300

    Convert cubemap to DDS.

commit a06cf912e3a106f66137241722c7fd49c1805e2b
Author: Lasse Öörni <loorni@gmail.com>
Date:   Thu Apr 14 23:42:56 2016 +0300

    Fix D3D11 crash if trying to assign color texture as a depth stencil or vice versa. Remove mistaken assignment of the 4th rendertarget output from PBRDeferredHWDepth.xml.

commit de765127b10c8cef45689fd8117875930af7031a
Author: Lasse Öörni <loorni@gmail.com>
Date:   Thu Apr 14 23:17:37 2016 +0300

    Add possibility to configure default material technique in Renderer.

commit d876a081932f423a42adcc1371a6fac622e8d585
Author: Lasse Öörni <loorni@gmail.com>
Date:   Thu Apr 14 23:10:32 2016 +0300

    Refer to Utilities/Rotator.as script in the PBR scene.

commit 9e4078c9a1cfa4be040a523d3b51aaf55a332c40
Author: Lasse Öörni <loorni@gmail.com>
Date:   Thu Apr 14 23:06:00 2016 +0300

    Readd deleted Flare.dds.

commit 1f606cc883e89e15e32272f6d47877c6e511b74b
Author: Lasse Öörni <loorni@gmail.com>
Date:   Thu Apr 14 22:31:04 2016 +0300

    Remove NinjaSnowWar copypasta.

commit 745937646f3638a208e58c3cce76df7afbab8416
Author: Lasse Öörni <loorni@gmail.com>
Date:   Thu Apr 14 22:11:28 2016 +0300

    Separate skybox2 material. Remove unused materials. Fix typo in material name.

commit 258d0325d4bed282f28d8ec8364ee64700e4f025
Author: Lasse Öörni <loorni@gmail.com>
Date:   Thu Apr 14 22:04:48 2016 +0300

    Squashed commit of the following:

    commit a329abe9a2a0f77dcb415bafd15c6e309261e7cc
    Author: dragonCASTjosh <dragonCASTjosh@gmail.com>
    Date:   Thu Apr 14 15:08:26 2016 +0100

        removed white space

    commit 434b1d8599ce2d0828acfc2939b94b33cd821fad
    Author: dragonCASTjosh <dragonCASTjosh@gmail.com>
    Date:   Thu Apr 14 15:06:36 2016 +0100

        Updated Licence

    commit f89a2369c83791c43762ca2b34f8b3aeeb562b24
    Author: dragonCASTjosh <dragonCASTjosh@gmail.com>
    Date:   Thu Apr 14 15:03:57 2016 +0100

        Converted texture formats

    commit 028cd1da4d7ac226e1943a70abfd6037912c86b0
    Author: dragonCASTjosh <dragonCASTjosh@gmail.com>
    Date:   Thu Apr 14 14:55:31 2016 +0100

        Updated Licence

    commit ecc288b3cbc046a678bbc2d0df408b2f29220b30
    Author: dragonCASTjosh <dragonCASTjosh@gmail.com>
    Date:   Wed Apr 13 00:02:34 2016 +0100

        Added basic licence

    commit ce34c0496e80043e3e79f4273468a66463ed13cb
    Author: dragonCASTjosh <dragonCASTjosh@gmail.com>
    Date:   Tue Apr 12 14:00:52 2016 +0100

        Cleaned Up Data and Reverted Default Technique

    commit a9e08bbd3a4f08c09baa477a0ce06cef517d506e
    Merge: 53c53ae d009f11
    Author: dragonCASTjosh <NUT13000804@students.wnc.ac.uk>
    Date:   Sat Apr 9 11:10:30 2016 +0100

        Merge pull request #11 from hdunderscore/typoFix_Metallic

        Fix metallic typo

    commit 53c53aec4c1d935b31cbc0ce5eac93faaa5b9f89
    Merge: 851487e 9c1d728
    Author: dragonCASTjosh <NUT13000804@students.wnc.ac.uk>
    Date:   Sat Apr 9 11:08:17 2016 +0100

        Merge pull request #10 from cosmy1/patch-10

        Remove extra float casts

    commit d009f11865dfdf9634fa9c297f2cc339164724de
    Author: hdunderscore <hdunderscore@gmail.com>
    Date:   Sat Apr 9 15:07:44 2016 +1000

        Fix metallic typo

    commit 9c1d728be919a74dfee8973b146f312121daed9e
    Author: cosmy1 <cosmy_rulezz@hotmail.it>
    Date:   Sat Apr 9 04:50:36 2016 +0200

        Remove extra float casts

    commit 851487ea63c181eb45c5988eb71dd526e2c12852
    Merge: 3142270 8edbae9
    Author: dragonCASTjosh <NUT13000804@students.wnc.ac.uk>
    Date:   Fri Apr 8 19:32:06 2016 +0100

        Merge pull request #9 from hdunderscore/PBRChangesR

        Updates to IBL

    commit 8edbae92c5e454727126c444b49075ef07e36ab8
    Author: hdunderscore <hdunderscore@gmail.com>
    Date:   Fri Apr 8 20:01:33 2016 +1000

        - Updated glsl shaders
        - Fixed a potential bug with direct lighting.
        - Introduced a new define 'PBRFAST' that will allow the IBL to take a short-cut for significantly higher frame-rate, but lower quality.

    commit e63a5d4faedb22710f28dbfdff3705fdfb3b1d22
    Author: hdunderscore <hdunderscore@gmail.com>
    Date:   Fri Apr 8 10:06:18 2016 +1000

        Fixed a divide-by-zero in the CookTorranceBRDF, which was causing a visual issue in DX11.

    commit 37d30d906c93ebb2e4165f91db5adc7e7893edc4
    Author: hdunderscore <hdunderscore@gmail.com>
    Date:   Fri Apr 8 00:30:26 2016 +1000

        Fixed specular IBL energy conservation.

    commit 4643342079dce76c3b26ac101745e49cabad7b68
    Author: hdunderscore <hdunderscore@gmail.com>
    Date:   Thu Apr 7 21:27:16 2016 +1000

        - Exposed tangents and bi-tangents to the IBL.
        - Removed unused calculations in deferred first pass.
        - Added a simpler image sampling calculation.

    commit b7ea9b89fe455d8e9c62fc3a1dd441a8860c9708
    Author: hdunderscore <hdunderscore@gmail.com>
    Date:   Wed Apr 6 22:44:09 2016 +1000

        - Fixed a few errors in the BRDF functions
        - Fixed the specular calculations
        - Small code refactor to allow for more consistency and easier experimentation.
        - Implemented the ImageSampling algorithm as described in Epic's 2013 paper, with improvements.
        - Implemented a true working deferred renderer.
        - Updated the concrete normal map (reversed the direction).
        - Changed the sRGB setting of the diffuse textures and cubemap, to perform calculations in linear space.
        - Added post-process effects to the PBR sample.

    commit 314227053b26c6ba70d7de32b2c5894d60d25784
    Author: dragonCASTjosh <dragonCASTjosh@gmail.com>
    Date:   Wed Apr 6 01:35:52 2016 +0100

        Missing OpenGL changes (reverted from commit 4169cfca4abe7b23b5f2a84aa391992fe22e3a8b)

    commit 9cd441c413f4742bca3889d3cdf9f2c290462e3d
    Author: dragonCASTjosh <dragonCASTjosh@gmail.com>
    Date:   Wed Apr 6 01:27:42 2016 +0100

        - Fix Metallic typo
        - Fix HLSL specular metallic bug
        - Fix indentation.
        - Fix BRDF typo.
        - Fix sample scene material to use normal maps.
        - Revert IBL Importance sample to use Epic described method.
        - Removed incorrect application of split sum on top of importance sample method.
        - Added diffuse IBL calculation. (reverted from commit 143379cee9968588974879e1ce53123f45d8741a)

    commit 143379cee9968588974879e1ce53123f45d8741a
    Author: dragonCASTjosh <dragonCASTjosh@gmail.com>
    Date:   Wed Apr 6 01:10:37 2016 +0100

        - Fix Metallic typo
        - Fix HLSL specular metallic bug
        - Fix indentation.
        - Fix BRDF typo.
        - Fix sample scene material to use normal maps.
        - Revert IBL Importance sample to use Epic described method.
        - Removed incorrect application of split sum on top of importance sample method.
        - Added diffuse IBL calculation.

    commit fbba0f389b571d0b3814254c16b05279bfd29a58
    Merge: 4169cfc c9ba2ec
    Author: dragonCASTjosh <NUT13000804@students.wnc.ac.uk>
    Date:   Tue Apr 5 14:03:40 2016 +0100

        Merge pull request #5 from cosmy1/patch-6

        Update BDRF.hlsl

    commit 4169cfca4abe7b23b5f2a84aa391992fe22e3a8b
    Author: dragonCASTjosh <dragonCASTjosh@gmail.com>
    Date:   Mon Apr 4 22:55:56 2016 +0100

        Missing OpenGL changes

    commit 62491b160cd356cdf4bc292815862fbdea2be22a
    Author: dragonCASTjosh <dragonCASTjosh@gmail.com>
    Date:   Mon Apr 4 22:54:50 2016 +0100

        Fixed OpenGL PBR

    commit a453cfea1a061900c9de604b5d422d5915cf1712
    Author: dragonCASTjosh <dragonCASTjosh@gmail.com>
    Date:   Mon Apr 4 02:37:53 2016 +0100

        Fixed IBL function taking metallic

    commit e33efba25b455a6c77679941c489619a02fa1098
    Author: dragonCASTjosh <dragonCASTjosh@gmail.com>
    Date:   Mon Apr 4 02:35:28 2016 +0100

        Improve IBL and fixed specular color

    commit 4c7058f1c41bbed32c96df550cb93a14b17ec07d
    Author: dragonCASTjosh <dragonCASTjosh@gmail.com>
    Date:   Sat Apr 2 01:43:18 2016 +0100

        Fixed HLSL

    commit 9d095a14ac64e34fa2c016e4503b2b076e64b025
    Merge: 2de2597 0a9ea24
    Author: dragonCASTjosh <NUT13000804@students.wnc.ac.uk>
    Date:   Sun Apr 3 14:22:46 2016 +0100

        Merge pull request #6 from cosmy1/patch-8

        Update PBRExample.xml

    commit 2de259781a588c80117744892083065fbe5bb5c8
    Merge: 92ab68c 12bd826
    Author: dragonCASTjosh <NUT13000804@students.wnc.ac.uk>
    Date:   Sat Apr 2 20:51:30 2016 +0100

        Merge pull request #4 from cosmy1/patch-4

        Update IBL.glsl

    commit 92ab68ce3b94a092ad96d9cd0e577d1b7fedf61c
    Merge: 295a23e e1f5ac2
    Author: dragonCASTjosh <NUT13000804@students.wnc.ac.uk>
    Date:   Sat Apr 2 20:51:05 2016 +0100

        Merge pull request #3 from cosmy1/patch-3

        Update BRDF.glsl

    commit 0a9ea24b6681bac8e3deab58081ee9462b6ada31
    Author: cosmy1 <cosmy_rulezz@hotmail.it>
    Date:   Sat Apr 2 11:54:33 2016 +0200

        Update PBRExample.xml

    commit c9ba2ec10f34da559c6148cb0d8d9cbc2ca62ff0
    Author: cosmy1 <cosmy_rulezz@hotmail.it>
    Date:   Sat Apr 2 11:50:30 2016 +0200

        Update BDRF.hlsl

    commit 12bd826c73092b8e96782c91b9cc7d925e77708f
    Author: cosmy1 <cosmy_rulezz@hotmail.it>
    Date:   Sat Apr 2 11:47:29 2016 +0200

        Update IBL.glsl

    commit e1f5ac27606295bf81c07d3d46fda1dae6f191a7
    Author: cosmy1 <cosmy_rulezz@hotmail.it>
    Date:   Sat Apr 2 11:43:37 2016 +0200

        Update BRDF.glsl

    commit 295a23e96f3dcdf05aac8d4e9057e8e6c67b3607
    Author: dragonCASTjosh <dragonCASTjosh@gmail.com>
    Date:   Sat Apr 2 00:19:01 2016 +0100

        Updated Example

    commit 9b105230ecd33082bb82a8963057d635ffbe41ac
    Author: dragonCASTjosh <dragonCASTjosh@gmail.com>
    Date:   Sat Apr 2 00:15:55 2016 +0100

        Fixed IBL and indentation

    commit 185d31b6a0af7d084e7305d783e407d354274cac
    Merge: 6b7b5be dad5c04
    Author: dragonCASTjosh <NUT13000804@students.wnc.ac.uk>
    Date:   Fri Apr 1 23:55:46 2016 +0100

        Merge pull request #2 from cosmy1/patch-2

        Update BRDF.glsl

    commit dad5c042fc3272accbb9c26f2e17214ece66ebf8
    Author: cosmy1 <cosmy_rulezz@hotmail.it>
    Date:   Sat Apr 2 00:39:35 2016 +0200

        Update BRDF.glsl

    commit 6b7b5bee9c56304aa92a4009d15282b6456d77c6
    Merge: a5b6b93 c398e82
    Author: dragonCASTjosh <NUT13000804@students.wnc.ac.uk>
    Date:   Fri Apr 1 23:34:40 2016 +0100

        Merge pull request #1 from cosmy1/patch-1

        Fix whitespaces in Material

    commit c398e82153ac0d0ab2b29f61d4345d747be3d40c
    Author: cosmy1 <cosmy_rulezz@hotmail.it>
    Date:   Sat Apr 2 00:33:27 2016 +0200

        Fix whitespaces in Material

    commit a5b6b93b96a053f304b7326b4fa3930d60195051
    Author: dragonCASTjosh <dragonCASTjosh@gmail.com>
    Date:   Fri Apr 1 21:33:52 2016 +0100

        fixed indentation

    commit 5b402e75092e680975435384ecb8b0af0292139d
    Author: dragonCASTjosh <dragonCASTjosh@gmail.com>
    Date:   Fri Apr 1 21:32:35 2016 +0100

        Fixed issue with deletion of wrong values

    commit 4ca39ec5bfb905621de8c80999cf640a8ad6d5e0
    Author: dragonCASTjosh <dragonCASTjosh@gmail.com>
    Date:   Fri Apr 1 21:28:59 2016 +0100

        removed nolonger needed licence

    commit d2ab0f9a048d594d7115c41c2dbea2ce2d39e31b
    Author: dragonCASTjosh <dragonCASTjosh@gmail.com>
    Date:   Fri Apr 1 21:28:18 2016 +0100

        Improve PBR and moved forward PBR into new shader

    commit cdaae6e2cf234f28cef90f244e2e24e6b7d0d915
    Author: dragonCASTjosh <dragonCASTjosh@gmail.com>
    Date:   Fri Apr 1 21:26:57 2016 +0100

        Removed remaining area lighting and fixed pbr in deferred rendering

    commit 6fca9d3b98fc2cacea2a11129eb1fc69a7e2fd2f
    Author: dragonCASTjosh <dragonCASTjosh@gmail.com>
    Date:   Fri Apr 1 13:19:48 2016 +0100

        Replaced data folder with one from mater to avoid commit revert errors

    commit 543c30f0b3b035df13ce09cc127117fb160bfe5f
    Author: dragonCASTjosh <dragonCASTjosh@gmail.com>
    Date:   Thu Mar 31 20:52:47 2016 +0100

        Complete PBR work
2016-04-15 18:56:19 +08:00
damu
15ae25cd62 Fixed compiler error in https://github.com/urho3d/Urho3D/pull/1321.
Close #1322.
2016-04-14 07:39:10 +08:00
damu
43515e1c91 Added template version of ReleaseResource similar to the GetResource function. 2016-04-13 19:43:58 +03:00
Lasse Öörni
2771411577 Fix OBJ export in Drawable class. Fix wrong indexing in writing vertex colors in AssetImporter. Minor addition to documentation. 2016-04-13 15:48:43 +03:00
Lasse Öörni
ede04a46f1 Added equality operator to VertexElement. Add multiple color & UV channel (up to 4) support to AssetImporter. Make editor's resource browser recognize the UMD2 model format. Closes #707. 2016-04-13 13:43:33 +03:00
Lasse Öörni
31f8ff69ec New model format that supports arbitrary vertex declarations. 2016-04-12 23:57:19 +03:00
urho3d-travis-ci
2933454a21 Travis CI: API documentation update at 2016-04-12 19:24:12 UTC.
[ci package]

Commit: 2b259e85e0

Message: Change Texture::SetData() to take a raw pointer instead of shared to match rest of the API and simplify script bindings.
2016-04-12 19:24:12 +00:00
Lasse Öörni
7b738c54ac Merge branch 'master' into vertexdeclaration 2016-04-12 22:20:09 +03:00
Lasse Öörni
2b259e85e0 Change Texture::SetData() to take a raw pointer instead of shared to match rest of the API and simplify script bindings. 2016-04-12 22:02:58 +03:00
Lasse Öörni
49400b4b19 Fix using SDL booleans instead of window flags in SDL_SetWindowFullscreen(). Does not change actual behavior since SDL_TRUE & SDL_WINDOW_FULLSCREEN both equal 1. 2016-04-12 22:02:57 +03:00
Orz
09292b415b Shader animation bug is fixed.
Changed the conditions when unsubscribes the shader animation events.
Or it will unsubcribe all the events if you call SetShaderParameterAnimation function twice. (For example, you need to animate texture U and V )
2016-04-13 00:41:35 +08:00
Yao Wei Tjong 姚伟忠
8d7027179e Refactor to move the map's populate logic to base class for code reuse. 2016-04-12 12:51:34 +08:00
Lasse Öörni
2203cd41a6 Hack fix for window always getting maximized after fullscreen -> windowed change on D3D9 & D3D11. 2016-04-12 00:56:04 +03:00
Lasse Öörni
181c24e380 Since D3D9/11 graphics systems don't initialize OpenGL, it's arguably incorrect to call SDL_GL_GetDrawableSize. Use SDL_GetWindowSize instead. Correct line endings in Drawable2D. 2016-04-11 23:55:35 +03:00
Lasse Öörni
9cd0cbb200 Prevent taking screenshot when device is lost. 2016-04-11 23:36:07 +03:00
Lasse Öörni
5dc030c1dd Prevent taking screenshot when device is lost. 2016-04-11 22:03:56 +03:00
Yao Wei Tjong 姚伟忠
422406c3e7 Add C++11 variadic template version of the SendEvent() method. 2016-04-11 16:06:42 +08:00
Lasse Öörni
44133d00d9 Fix typo. 2016-04-11 00:35:41 +03:00
Lasse Öörni
a8ed3dd3a5 Updated VertexBuffer Lua bindings + demonstrate arbitrary vertex elements in DynamicGeometry Lua example. 2016-04-11 00:27:55 +03:00
Lasse Öörni
25f039b7e1 Add GetElementOffset & HasElement function bindings to AS VertexBuffer API. 2016-04-10 22:46:16 +03:00
Lasse Öörni
c872d6d335 Fix missing offset member in VertexElement AS binding. 2016-04-10 15:56:49 +03:00
urho3d-travis-ci
63c4cfa443 Travis CI: API documentation update at 2016-04-10 12:46:31 UTC.
[ci package]

Commit: fcb687bd08

Message: For Travis CI - attempt to free up more space on OSX build environment.
2016-04-10 12:46:31 +00:00
Lasse Öörni
644eecfa7d Demonstrate defining non-legacy vertex elements in the DynamicGeometry C++ & AngelScript examples. 2016-04-10 15:37:48 +03:00
Mike3D
b606060b98 Revert Graphics API commits af42c37 and b751108 2016-04-10 14:21:47 +02:00
Yao Wei Tjong 姚伟忠
bb428a1c21 Minor clean up to remove unused struct member. 2016-04-10 12:57:11 +08:00
Lasse Öörni
35b516b866 AngelScript binding for VertexElement struct + related enums. 2016-04-10 03:13:41 +03:00
urho3d-travis-ci
78bfb744ab Travis CI: API documentation update at 2016-04-09 15:25:13 UTC.
[ci package]

Commit: 4c8bd3efdd

Message: When debug drawing NavigationMesh, use earlier collected areas. Fix typos. Do not skip areas with ID 0, as it isn't documented anywhere that the default ID should equal ineffective.
2016-04-09 15:25:14 +00:00
Lasse Öörni
4c8bd3efdd When debug drawing NavigationMesh, use earlier collected areas. Fix typos. Do not skip areas with ID 0, as it isn't documented anywhere that the default ID should equal ineffective. 2016-04-09 17:37:08 +03:00
MonkeyFirst
070957e9b6 add Clear() on rebuild navMesh 2016-04-09 17:37:07 +03:00
MonkeyFirst
46d084b4e5 delete old get 2016-04-09 17:37:07 +03:00
MonkeyFirst
2f3290be26 gcc space inbetweene 2016-04-09 17:37:06 +03:00
MonkeyFirst
81f949faa6 add forwardecl 2016-04-09 17:37:05 +03:00
MonkeyFirst
320e8dac5c prefer nearest navArea & weakPtr array 2016-04-09 17:37:04 +03:00
MonkeyFirst
f9dbe2930c fix-areaID 2016-04-09 17:37:03 +03:00
Yao Wei Tjong 姚伟忠
8ac6bc2666 Add new API to get joystick by its name. 2016-04-09 22:29:14 +08:00
urho3d-travis-ci
c8fdc6eb2c Travis CI: API documentation update at 2016-04-09 14:13:25 UTC.
[ci package]

Commit: 3b1ab0ffea

Message: Partially revert back changes from commit af42c37.
2016-04-09 14:13:25 +00:00
Yao Wei Tjong 姚伟忠
3b1ab0ffea Partially revert back changes from commit af42c37. 2016-04-09 22:01:19 +08:00
Mike3D
af42c37179 More AS bindings fixes for Graphics API 2016-04-09 11:36:53 +02:00
urho3d-travis-ci
b682f559b6 Travis CI: API documentation update at 2016-04-08 17:23:36 UTC.
[ci package]

Commit: b751108456

Message: Fixed AS bindings for Animation and AnimationState
2016-04-08 17:23:36 +00:00
Mike3D
b751108456 Fixed AS bindings for Animation and AnimationState 2016-04-08 19:13:58 +02:00
1vanK
49a25f787c OgreImporter: fix relative to absolute transform and Jack's walk animation 2016-04-07 18:45:24 +03:00
Lasse Öörni
e0b76920ea Merge branch 'master' into vertexdeclaration 2016-04-07 15:58:20 +03:00
Lasse Öörni
de956301a0 D3D11 arbitrary vertex attributes. Eliminate constant string manipulation when switching shaders on D3D11. 2016-04-07 14:36:42 +03:00
Lasse Öörni
d6ccd8a644 Reinstate the "null VBO" check to prevent crash from rendering with an uninitialized vertex buffer. 2016-04-07 00:59:05 +03:00
Lasse Öörni
8215c42e37 OpenGL arbitrary vertex attributes. Change GLSL attribute indexing to zero-based to match HLSL, so the second texcoord (lightmaps, billboard sizes) is now called texCoord1, and instancing texcoords are texCoord4,5,6. 2016-04-07 00:32:41 +03:00
Lasse Öörni
06d8ea602d Move legacy vertex element information to GraphicsDefs.cpp so that it doesn't have to be repeated for different graphics APIs. 2016-04-06 00:39:23 +03:00
Lasse Öörni
ab1902ad0a When creating a vertex declaration, do not go through current buffer's elements unnecessarily when looking for elements to override. 2016-04-06 00:16:12 +03:00
urho3d-travis-ci
1f2ee21135 Travis CI: API documentation update at 2016-04-05 11:40:12 UTC.
[ci package]

Commit: 0c10106cd8

Message: Dummy implementation for D3D9 Texture2DArray. Texture2DArray Lua bindings.
2016-04-05 11:40:12 +00:00
Lasse Öörni
0c10106cd8 Dummy implementation for D3D9 Texture2DArray. Texture2DArray Lua bindings. 2016-04-05 14:31:33 +03:00
Lasse Öörni
e0e5bb713a Special case check for LOG_RAW in Log::Write(). Closes #1307. 2016-04-05 12:21:17 +03:00
Yao Wei Tjong 姚伟忠
e6121551bc Refactor SIMD support. Related to #1293. 2016-04-05 06:35:47 +08:00
Lasse Öörni
6a3f61f770 Fix billboard rendering. Calculate legacy vertex element bitmask only once. When setting vertex data for directional billboards, query camera world position just once. 2016-04-05 01:19:26 +03:00
Lasse Öörni
9523a36334 Fix Lua bindings & declaration of legacy vertex elements. 2016-04-05 00:32:18 +03:00
Lasse Öörni
a458d30fd5 Initial freeform vertex declarations for D3D9. 2016-04-05 00:32:17 +03:00
Lasse Öörni
55d1d82784 Improved occluder sorting contributed by Enhex. Closes #1305. 2016-04-04 20:47:12 +03:00
Lasse Öörni
93927e39e6 Merge remote-tracking branch 'cosmy1/update-libcpuid' 2016-04-04 19:55:12 +03:00
Lasse Öörni
deaeb1d9fa Merge remote-tracking branch 'r-ku/c++11-events' 2016-04-04 19:31:06 +03:00
rokups
740ff3491a C++11 event binding (lambdas/std::bind).
Removed redundant EventHandler() constructor.
2016-04-04 16:43:33 +03:00
hdunderscore
ace93bd98a - Fix touch input bug (https://github.com/urho3d/Urho3D/issues/1303)
- Fix event name typo in script samples.
2016-04-04 19:36:53 +10:00
Yao Wei Tjong 姚伟忠
4d67a73bfc Adjust CMakeLists.txt as now STB is a header-only implementation.
Additionally, remove all the local changes as they are either not required as the bug has already been fixed upstream or there are other ways to do what we want to do without altering the original code.
2016-04-03 16:45:40 +08:00
Yao Wei Tjong 姚伟忠
81146fb816 Merge commit '5fa31a5194c0bf3a93662670a6e8f77cb6efddc0' as 'Source/ThirdParty/STB' 2016-04-03 16:44:10 +08:00
Yao Wei Tjong 姚伟忠
7a8986813f Replace Source/ThirdParty/STB subdirectory with subtree. 2016-04-03 16:44:06 +08:00
cosmy
b8054fc057 Update libcpuid to 0.2.2 2016-04-02 22:29:34 +02:00
Lasse Öörni
3cb270060f Fix compile for OpenGL ES 2.0. 2016-04-02 20:42:32 +03:00
urho3d-travis-ci
3ee4483e39 Travis CI: API documentation update at 2016-04-02 15:40:08 UTC.
[ci package]

Commit: b8e2df4373

Message: Merge pull request #1298 from cosmy1/patch-9

Use _WIN32 for code consistency
2016-04-02 15:40:08 +00:00
Lasse Öörni
b8e2df4373 Merge pull request #1298 from cosmy1/patch-9
Use _WIN32 for code consistency
2016-04-02 18:17:39 +03:00
Lasse Öörni
30fbe453ef Add AngelScript binding (when applicable) for Texture2DArray. 2016-04-02 18:10:50 +03:00
cosmy1
a6b9fb3f8b Use _WIN32 for code consistency 2016-04-02 16:12:53 +02:00
reattiva
e253afe756 Fixed D3D9 build. 2016-04-02 10:37:08 +02:00
reattiva
88d403b9b8 Added Texture2DArray. 2016-04-02 02:04:42 +02:00
Yao Wei Tjong 姚伟忠
c833a03b9f Fix sincosf() function detection. Hide new defines from Urho3D.pc. 2016-04-01 08:28:21 +08:00
Lasse Öörni
e9b094c8d2 Check for existence of sincosf / __sincosf instead of guessing. Closes #1294. 2016-03-31 23:33:50 +03:00
Lasse Öörni
9abc4712a6 Remove unneeded GetD3DColor() function from D3D11 code. 2016-03-31 11:45:02 +03:00
Yao Wei Tjong 姚伟忠
ce434a5057 Attempt to fix nanodbc library build using VS2015.
Disable URHO3D_DATABASE_ODBC build option when MSVC compiler version is less than 14.0 (VS2015).
[skip travis]
2016-03-31 13:29:51 +08:00
Lasse Öörni
a2d26d8797 AngelScript ScriptInstance attribute storage during hot reload. Also restores attributes for later use if hot reload resulted in an error and inability to recreate the object right away. Closes #1291. 2016-03-30 22:23:23 +03:00
Yao Wei Tjong 姚伟忠
929d8acbae Misc. bug fixes and refactoring in configuring SDL library build.
- Fix the regex to get the shared library soname correctly.
- Use the GCC_ATOMIC and CLOCK_GETTIME whenever they are available.
- Reorganize the if-else block in the SDL CMakeLists.txt to prevent Unix-like platforms (e.g. Android) from entering the block meant for genuine Unix/Linux.
- and more.
2016-03-30 07:15:20 +08:00
Lasse Öörni
d1096470d5 Execute DelayedStart() in ScriptInstance, LuaScriptInstance & LogicComponent before first FixedUpdate() if it comes sooner than Update(). Fix long-standing bug in NinjaSnowWar where the ninja orientation would be overwritten by yaw=0 from controls. 2016-03-29 21:45:18 +03:00
rokups
6fd0fa7a5b Aggregate initializers for container types. 2016-03-29 21:45:17 +03:00
rokups
6a9e2eaee7 Expose ValueAnimationInfo in shared library 2016-03-29 21:45:17 +03:00
urho3d-travis-ci
5e65eee41e Travis CI: API documentation update at 2016-03-29 17:43:44 UTC.
[ci package]

Commit: 5246f74984

Message: Merge remote-tracking branch 'hdunderscore/input_mousemode_update'
2016-03-29 17:43:44 +00:00
Lasse Öörni
5246f74984 Merge remote-tracking branch 'hdunderscore/input_mousemode_update' 2016-03-29 19:49:55 +03:00
Lasse Öörni
32904aefec Guard against drawable updates being inserted during threaded drawable update. Add these to separate container and process later. Inspired by PR work submitted by guijun. 2016-03-29 15:27:29 +03:00
Lasse Öörni
45d7509ed7 Remove unused variable from Octree. 2016-03-29 12:10:45 +03:00
Lasse Öörni
da906d5c7c Merge remote-tracking branch 'cosmy1/fix' 2016-03-29 11:31:25 +03:00
Lasse Öörni
28dc4ff557 Fix wrong true/false logic and unnecessary CString() in AnimatedSprite2D code. Closes #1289. 2016-03-29 11:18:14 +03:00
hdunderscore
467c4bd4e8 - Updated sample mouse mode setup.
- (Web) Removed some of the exit engine logic.
2016-03-27 20:01:22 +11:00
hdunderscore
97a94f9022 Updated mouse suppression and relative code. 2016-03-27 19:32:27 +11:00
cosmy
918f3fdcc6 Initialize all class members in DetourCrowd 2016-03-26 14:28:01 +01:00
cosmy
7f4ddfcd33 Add contributor name in file header 2016-03-26 14:25:46 +01:00
cosmy
8e4d21f6ae Initialize all class members in DetourTileCache 2016-03-26 14:04:02 +01:00
Frode Lindeijer
af2cf18229 Moved container begin and end from std to Urho3D namespace 2016-03-25 15:46:55 +02:00
Lasse Öörni
062856a26d Merge pull request #1283 from cosmy1/fix-warnings
Fix signed/unsigned mismatch in FontFaceFreeType.cpp
2016-03-25 12:57:01 +02:00
Yao Wei Tjong 姚伟忠
433a97a351 Follow the latest code convention for source code modification. 2016-03-25 10:16:46 +08:00
Lasse Öörni
ea3f05c1c5 Restore the explicit xpath_node copy constructor. 2016-03-24 23:49:20 +02:00
cosmy
ad7aeafa10 Use C style casting on numbers to keep code consistency 2016-03-24 22:18:31 +01:00
Lasse Öörni
3a51592493 Merge remote-tracking branch 'cosmy1/update_pugixml' 2016-03-24 23:15:25 +02:00
cosmy
6406996d6a Fix signed/unsigned mismatch in FontFaceFreeType.cpp 2016-03-24 21:15:43 +01:00
cosmy
ec3cbc37b6 Update pugixml from 1.5 to 1.7 2016-03-24 15:50:00 +01:00
cosmy
5bcc6663a4 Remove extra stb header 2016-03-24 15:46:55 +01:00
Lasse Öörni
152e090141 Alias Vector4 to Color if necessary in Variant::GetColor(). Closes #1278. 2016-03-24 16:31:33 +02:00
Lasse Öörni
382a7a35c5 Merge remote-tracking branch 'origin/sincos' 2016-03-24 14:48:35 +02:00
Lasse Öörni
9a1b92c892 Merge remote-tracking branch 'cosmy1/master' 2016-03-24 13:53:13 +02:00
Lasse Öörni
cfbe7a425a Include DebugNew.h last in Component.cpp to match convention used elsewhere. 2016-03-24 13:41:21 +02:00
Lasse Öörni
6a32b478e7 Merge pull request #1275 from cosmy1/patch-3
Fix macro ident space
2016-03-24 13:40:48 +02:00
cosmy
52d2ca5ee0 Remove unused STB headers 2016-03-24 05:22:06 +01:00
cosmy1
869e32ad6e Fix wrong directory path to JSONValue 2016-03-24 05:02:39 +01:00
cosmy1
123b600aae Fix macro ident space 2016-03-24 04:59:03 +01:00
Lasse Öörni
0378b245a9 Use __sincosf on OSX. 2016-03-23 15:21:16 +02:00
Lasse Öörni
b16fc6493b Add a function SinCos() which uses sincosf on GCC for optimized billboardset update, and falls back to separate sinf & cosf calls elsewhere. Todo: add for other cases. 2016-03-23 13:03:08 +02:00
Yao Wei Tjong 姚伟忠
72549e108d Merge commit '286f5cf9e60df25c409df07e1033478b62ddbe55' into master 2016-03-23 16:19:00 +08:00
Yao Wei Tjong 姚伟忠
bb59c16cac Merge commit 'd7560271d1699c7dc6762ca26a70f8f366491ad5' into master. 2016-03-23 16:18:31 +08:00
hdunderscore
54565005e2 Updated HTML5 behavior of the samples, mouse modes and UI cursor.
Updates:
- Exposed a new method to determine whether the mouse pointer is confined to window.
- E_MOUSEMODECHANGED now has a new parameter, P_MOUSELOCK, indicating whether the mouse pointer is locked.
- MM_ABSOLUTE now behaves more closely to the desktop equivalent (web)
- Changed some samples to use different mouse movement methods as test cases.
- Input class: suppressNextMouseMove_ now suppresses all movements within the tick.
- Added script bindings for the Input class changes.
- On Web platform, removed event polling and instead use event callbacks, allowing pointer-lock requests to occur in browser events.

Bug fixes:
- Fixed mouse jumps on entering and exiting pointer-lock (web)
- Fixed a bug that caused the UI cursor and OS cursor to fall out of sync (web)
- Fixed a bug that could allow pointer-lock to be acquired after a different mouse mode was requested. (web)
- Prevent most samples from exiting on Web platform
- Reverted previous fix to web platform touch events, as upstream SDL has corrected the corresponding bug.
2016-03-23 01:52:12 +11:00
Lasse Öörni
b7a7bdb705 Tabs to spaces, minor comment cleanup. Document new AssetImporter command line option. 2016-03-22 12:46:40 +02:00
Terence
d73be95692 AssetImpoter can import a subset animation frames. 2016-03-22 03:51:45 +08:00
Lasse Öörni
3743a3c102 Merge remote-tracking branch 'r-ku/CreateObject' 2016-03-21 12:21:45 +02:00
Lasse Öörni
e178939f33 Merge remote-tracking branch 'rikorin/sample-fix' 2016-03-21 12:09:34 +02:00
Lasse Öörni
1afdd26927 Remove IsNull() checks from JSON save. Closes #1265. 2016-03-21 11:47:50 +02:00
rikorin
51c7a94a04 Type mismatch in vehicle sample code 2016-03-21 13:18:42 +05:00
bit
d503a84e81 Convenience method Context::CreateObject<T>() for creating objects akin to Node::CreateComponent<T>(...) 2016-03-20 17:41:08 +02:00
Yao Wei Tjong 姚伟忠
adbbb08ab4 Pass extra CMake variable to external project when building tolua++. 2016-03-20 14:12:05 +08:00
Lasse Öörni
642f09817e Added contributor credit. Use "unsigned" data type consistently since it's guaranteed to be 32bit on the platforms Urho compiles on. 2016-03-19 14:11:58 +02:00
Lasse Öörni
2551e5698c Merge remote-tracking branch 'damu/master' 2016-03-19 13:38:54 +02:00
damu
1c80774106 Adapted code convention. 2016-03-19 12:14:43 +01:00
Lasse Öörni
4d3d2affbb Disable the in_title_click data & focus_click_pending tests for SDL windows mouse warp, as it seems to lead into issues when regaining focus. Closes #1258. 2016-03-19 12:10:08 +02:00
damu
8328a33de9 Optimized Image::Clear() for the four component case (ARGB). In my case this optimized Clear() only takes ~0.362ms compared to 14.853ms before, see http://i.imgur.com/8O7V77o.jpg http://i.imgur.com/qjhkaWw.jpg.
There could be an issue, see #1260.
2016-03-19 08:28:05 +01:00
Lasse Öörni
0631a8a9e2 Merge remote-tracking branch 'GKR/bugfix/sdl-wayland-undefined-references' 2016-03-19 01:16:14 +02:00
Lasse Öörni
aa1199ebf1 Add ODBC compile fix for Windows from lvshiling. Closes #1256. 2016-03-18 12:04:08 +02:00
urho3d-travis-ci
4a261b1f2c Travis CI: API documentation update at 2016-03-18 02:19:25 UTC.
[ci package]

Commit: ecb0ee38a2

Message: Added missing include.
2016-03-18 02:19:25 +00:00
hdunderscore
ecb0ee38a2 Added missing include. 2016-03-18 11:55:37 +11:00
Lasse Öörni
a973d8318d Implement pause/resume by sound type in Audio. Closes #1250. Demonstrate by pausing "Effect" type sounds in NinjaSnowWar when the game is paused. Cut quiet part from beginning of NutThrow sound to reduce perceived audio lag when attacking. 2016-03-17 23:01:55 +02:00
Gunnar Kriik
20c31802db Applied patch to fix undefined reference error when compiling for Wayland on Linux.
This has been fixed in SDL, but no SDL release has been made that includes this fix.

The SDL fix can be found here:
https://hg.libsdl.org/SDL/rev/330f500d5815

In the mean time, this fixes Urho3D compilation on Linux.
2016-03-17 19:04:09 +01:00
urho3d-travis-ci
8f4884f1fb Travis CI: API documentation update at 2016-03-16 14:36:03 UTC.
[ci package]

Commit: 3d9ea8eece

Message: Editor: fix some warnings
2016-03-16 14:36:03 +00:00
Ivan K
3d9ea8eece Editor: fix some warnings 2016-03-16 15:47:39 +02:00
urho3d-travis-ci
e9cd8db735 Travis CI: API documentation update at 2016-03-16 10:07:14 UTC.
[ci package]

Commit: a9625eae8a

Message: Add contributor credit, fix editor code comment.
2016-03-16 10:07:15 +00:00
Lasse Öörni
1877fb3b90 Minor space fix in code. Make editor stop itself when minimized and reduce defocused FPS to 10. Increase hierarchy window initial size to match inspector window initial size. 2016-03-16 11:51:17 +02:00
Lasse Öörni
cd920ccab8 Unify line break style in HashMap.h. 2016-03-16 11:26:28 +02:00
Lasse Öörni
cf64853faa Merge remote-tracking branch 'BlueMagnificent/global_variable' 2016-03-16 11:25:51 +02:00
Blue, The Magnificent
bfe39c6a3f Enhancement to global variable implementation 2016-03-15 23:08:01 +01:00
urho3d-travis-ci
385a1538fd Travis CI: API documentation update at 2016-03-15 18:11:17 UTC.
[ci package]

Commit: be2ae85427

Message: Fix all the cross-compiling builds due to bugs in SDL CMakeLists.txt.
Fix SDL library build on iOS platform.
2016-03-15 18:11:17 +00:00
Yao Wei Tjong 姚伟忠
be2ae85427 Fix all the cross-compiling builds due to bugs in SDL CMakeLists.txt.
Fix SDL library build on iOS platform.
2016-03-16 01:45:09 +08:00
Yao Wei Tjong 姚伟忠
06bcfbeb7b Fix all the cross-compiling builds due to bugs in SDL CMakeLists.txt.
Fix SDL library build on Web platform.
2016-03-16 01:45:08 +08:00
Yao Wei Tjong 姚伟忠
3e40a5ebeb Fix all the cross-compiling builds due to bugs in SDL CMakeLists.txt.
Fix SDL library build on Windows platform.
2016-03-16 01:45:08 +08:00
Yao Wei Tjong 姚伟忠
f5fcfc48f1 Set CMake minimum version to 3.2.3 for Windows platform.
This is in preparation to use optional components feature of find_package() command for FindDirectX.cmake module (was FindDirect3D).
2016-03-16 01:45:08 +08:00
Yao Wei Tjong 姚伟忠
71efb146cb Refactor the CPU instruction extensions detection mechanism.
Fix SDL build on the latest Raspbian Jessie release.
2016-03-16 01:45:08 +08:00
Yao Wei Tjong 姚伟忠
14d4e0d378 Fix all the cross-compiling builds due to bugs in SDL CMakeLists.txt.
Fix SDL library build on Linux, Android, and RPI platforms.
2016-03-16 01:45:08 +08:00
Lasse Öörni
250bb0e7d1 Include <cstdio> unconditionally in FileSystem.cpp to fix remove() compile error on Emscripten. 2016-03-16 01:45:08 +08:00
Yao Wei Tjong 姚伟忠
a09a153f5e Integrate SDL's original CMakeLists.txt into Urho3D build system.
Close #1046. Close #1123. Close #1172.
2016-03-16 01:44:11 +08:00
Yao Wei Tjong 姚伟忠
fba647f7f8 Refactor to handle graphics restore similarly between iOS and Android. 2016-03-16 01:42:01 +08:00
Yao Wei Tjong 姚伟忠
ccf6648eb3 Utilize new SDLActivity's get arguments feature. 2016-03-16 01:42:01 +08:00
Yao Wei Tjong 姚伟忠
5bcd5e4b1d Merge SDL 2.0.4
- Revert back commits from PR #191. The media keys support on Linux/x11 platform will be reinvestigated later.
- Add additional include dir for RPI platform. This change is to keep the original SDL/src/video/raspberry/SDL_rpivideo.h header file happy. Previously we were using a slightly altered header file.
- Merge changes from SDL's android-project template.
- Add new source files for Android platform into SDL's CMakeLists.txt. Use new SDL hint to separate mouse and touch events on Android platform. Strangely though a similar hint does not exist on iOS platform, so we retain our local changes to suppress emulated events on iOS platform.
- Adjust OSX and iOS linker flags to include more frameworks.
- Turn ARC on when compiling Objective-C on iOS platform.
- Enable SDL_WINDOW_ALLOW_HIGHDPI on all Apple platforms. Replace all the SDL_WindowGetSize() call with SDL_GL_GetDrawableSize() call in all the graphics backend implementation classes. The former now returns the number in screen coordinates while the latter returns the number in pixels suitable for setting up the glViewport.
- Always use fullscreen mode for iOS platform. Revert back local changes in SDL src/video/uikit/SDL_uikitviewcontroller.m.
2016-03-16 01:09:49 +08:00
Yao Wei Tjong 姚伟忠
714014baff Merge commit '295b0a95b345c060ea489ab6111cb4fff13124fd' as 'Source/ThirdParty/SDL' 2016-03-16 01:05:38 +08:00
Yao Wei Tjong 姚伟忠
d8a39273da Replace Source/ThirdParty/SDL subdirectory with subtree. 2016-03-16 01:05:35 +08:00
Lasse Öörni
07ade6e110 Don't call DebugRenderer::SetView() if viewport debug rendering is off. Fixes #1244. 2016-03-15 11:40:32 +02:00
Blue, The Magnificent
864a455572 script scoped global variable not needed anymore 2016-03-15 06:47:08 +01:00
Blue, The Magnificent
f3b505ad26 Add binding for global variables getter and setter in angelscript and lua 2016-03-15 06:46:34 +01:00
Blue, The Magnificent
f1864f498a implement application wide global variable 2016-03-15 06:44:52 +01:00
urho3d-travis-ci
23bda782ca Travis CI: API documentation update at 2016-03-14 19:34:55 UTC.
[ci package]

Commit: 18f3204c14

Message: Change textureEdgeOffset to be pixels to work similarly regardless of texture size. Add AngelScript & Lua bindings for it. Change default offset to be 0 to not change existing behavior.
2016-03-14 19:34:55 +00:00
Lasse Öörni
18f3204c14 Change textureEdgeOffset to be pixels to work similarly regardless of texture size. Add AngelScript & Lua bindings for it. Change default offset to be 0 to not change existing behavior. 2016-03-14 21:17:32 +02:00
OvermindDL1
48346b278c Fix Sprite2D edge bleeding via new member variable. 2016-03-14 21:17:32 +02:00
Lasse Öörni
6869970375 Merge pull request #1240 from 1vanK/master
tabs to spaces
2016-03-14 00:11:41 +02:00
Ivan K
5f1f311535 tabs to spaces 2016-03-14 00:12:25 +04:00
Lasse Öörni
01cd737909 Hide tooltip if the target element becomes invisible. Possible fix for #1238. 2016-03-13 14:46:23 +02:00
ssinai1
ff4d5b4125 Fix terrain index data 2016-03-11 22:53:02 +01:00
urho3d-travis-ci
4cf41f1346 Travis CI: API documentation update at 2016-03-10 14:31:49 UTC.
[ci package]

Commit: 1fba0c80de

Message: Document additive animation blending.
2016-03-10 14:31:49 +00:00
Lasse Öörni
33bea5392d Rename AnimationBlendingMode to AnimationBlendMode for brevity and similarity with Graphics class BlendMode. Rename ABM_OVERRIDE to ABM_LERP. Implement weight to additive blending. Serialize blend mode over network for AnimationController. 2016-03-10 15:49:37 +02:00
Lasse Öörni
33d9dafc0c Merge remote-tracking branch '1vanK/master' 2016-03-10 14:42:51 +02:00
Lasse Öörni
aa48f333b3 Only update View3D rendertarget when it's visible in the UI. Closes #1228. 2016-03-09 15:07:23 +02:00
Lasse Öörni
49ce2984fe Generate skinning information if animated model has non-skinned subgeometries. Closes #1227. 2016-03-09 14:14:39 +02:00
Lasse Öörni
2e96545687 Output warning in AssetImporter when model has bones and consists of many submeshes, some of which don't have skinning information. 2016-03-09 00:38:47 +02:00
Ivan K
4e1eb4df74 AniamtionCotrol supports animation blending 2016-03-08 14:02:12 +04:00
Lasse Öörni
21e9ea07f2 Restore stb_image header credits. 2016-03-08 01:32:40 +02:00
Lasse Öörni
970ebe85db Merge remote-tracking branch 'dragonCASTjosh/STB_Update' 2016-03-08 01:31:31 +02:00
Lasse Öörni
6afb1bb164 Remove the uint overloads of Min() & Max() for now as they could lead to AngelScript ambiguous overload errors if the script author is not careful. 2016-03-06 15:30:48 +02:00
Lasse Öörni
d9a295a595 Re-enable the unsigned/signed mismatch warning. Code cleanup. 2016-03-06 15:10:34 +02:00
Lasse Öörni
039542e91c Warning, compile & script binding fixes related to MathDefs.h. Use multiple template parameters where necessary to allow e.g. Min() or Max() with mixed int and unsigned values. Silence repeated warnings in MathDefs.h on MSVC. 2016-03-05 23:47:49 +02:00
TheComet
f8760c8e5a Trig functions are now templated 2016-03-05 22:20:21 +02:00
TheComet
62d8143aa3 Template versions of math functions 2016-03-05 22:20:09 +02:00
Lasse Öörni
2cbff0669d Search for a common root up to the scene root node if necessary, if there seem to be multiple skeleton roots. Allow saving animations also when no geometry. To improve animation save in that case, prepend the output filename to animation filename in any case. Closes #1221. 2016-03-05 21:31:01 +02:00
Ivan K
1eeab3f2db Additive animation blending
Additive animation blending fix

Additive animation blending normalized rotation + bindings
2016-03-05 23:26:40 +04:00
urho3d-travis-ci
d0c35c2eaf Travis CI: API documentation update at 2016-03-05 14:56:06 UTC.
[ci package]

Commit: cf92a49696

Message: Since Variant::GetVectorBuffer() returns a new value copy, it doesn't need to be const. Fixes #1226.
2016-03-05 14:56:06 +00:00
Lasse Öörni
cf92a49696 Since Variant::GetVectorBuffer() returns a new value copy, it doesn't need to be const. Fixes #1226. 2016-03-05 16:37:01 +02:00
Yao Wei Tjong 姚伟忠
64dcd0e41a Do not build Urho3DPlayer when none of the script subsystem is enabled.
Fix #1224.
2016-03-05 21:03:29 +08:00
dragonCASTjosh
405e86db46 Removed Unused STB librarys and added Urho specific changes to STB 2016-03-05 12:27:26 +00:00
Lasse Öörni
6b5b6ab4b3 Document node & UI element tagging. Closes #1176. Fixes in scene model documentation. Tabs to spaces in Scene AngelScript API. 2016-03-05 13:13:50 +02:00
urho3d-travis-ci
3ccc22f63b Travis CI: API documentation update at 2016-03-05 10:56:18 UTC.
[ci package]

Commit: fc1f05f8dc

Message: Add script binding for SpriteSheet2D::SetTexture().
2016-03-05 10:56:18 +00:00
Lasse Öörni
fc1f05f8dc Add script binding for SpriteSheet2D::SetTexture(). 2016-03-05 12:45:14 +02:00
Lasse Öörni
89a1f84fd1 Code & API convention edits. 2016-03-05 12:32:26 +02:00
Lasse Öörni
d8ddc579c0 Squashed commit of the following:
commit a6fb2a3b49b52dfb559956a6dc3b2f59373f8487
Author: OvermindDL1 <overminddl1@gmail.com>
Date:   Fri Feb 19 15:19:38 2016 -0700

    Added a check to make TmxFile2D::SetInfo return false and do nothing if there is already layer data, likely to pretty well corrupt rendering and possible access invalid memory without it in worst-case.

commit a1e5150f993f92ae84a0513718ee2eee7bbbf2f0
Author: OvermindDL1 <overminddl1@gmail.com>
Date:   Fri Feb 19 15:16:34 2016 -0700

    Helps to return success, was planning for more functionality there, but TmxFile and Tilemaps need an overhaul.

commit 39618ce0713db0246a252e8f7ca8c03d39725338
Author: OvermindDL1 <overminddl1@gmail.com>
Date:   Fri Feb 19 13:44:33 2016 -0700

    Forgot a pointer...

commit 1f9e5caa3e888deedb7c3be48cfa3726adaaf4fd
Author: OvermindDL1 <overminddl1@gmail.com>
Date:   Fri Feb 19 13:43:34 2016 -0700

    Removed the .gitignore change, better to build out-of-tree in any case.

commit f56598abdebe33a125769c527495412e759ea532
Author: OvermindDL1 <overminddl1@gmail.com>
Date:   Fri Feb 19 13:31:51 2016 -0700

    Fix TmxFile2D::SetInfo

commit 108b0ccea1f842f676085a43c73613a8ed2bf786
Merge: 4b5d636 75fbe73
Author: OvermindDL1 <overminddl1@gmail.com>
Date:   Fri Feb 19 12:58:40 2016 -0700

    Added setter for SpriteSheet2D to actually be able to set a texture.  Closes urho3d/Urho3D#1202

commit 4b5d6364d67f26ad7ee38257fa2a6026750a93ff
Author: OvermindDL1 <overminddl1@gmail.com>
Date:   Fri Feb 19 12:56:27 2016 -0700

    Added setter for SpriteSheet2D to actually be able to set a texture.  Closes urho3d/Urho3D#1202

commit 75fbe730ef0d8fcc9db7b1831b602836e1093d14
Author: OvermindDL1 <overminddl1@gmail.com>
Date:   Fri Feb 19 12:56:27 2016 -0700

    Added setter for SpriteSheet2D to actually be able to set a texture.

commit 4352d1283b27665a3090145b6608bf724c73add5
Author: OvermindDL1 <overminddl1@gmail.com>
Date:   Fri Feb 19 12:41:55 2016 -0700

    Some setters for the Tilemap, but stopped, need to rewrite it to properly fix it, *way* too integrated with the TMX foramt for some reason...

commit 23dd624dbc7ed89658c394c9cac13d33c9d2df74
Author: OvermindDL1 <overminddl1@gmail.com>
Date:   Fri Feb 19 12:25:56 2016 -0700

    Fix gitignore to ignore a build directory

commit bfec381022e57f130b502f8c4877127460e6f351
Merge: 1851f27 281de05
Author: OvermindDL1 <overminddl1@gmail.com>
Date:   Fri Feb 19 11:52:00 2016 -0700

    Merge remote-tracking branch 'upstream/master'

commit 1851f27124b5eca2851771df7d4097f97d8d129d
Author: OvermindDL1 <overminddl1@gmail.com>
Date:   Sat Nov 15 00:22:39 2014 -0700

    Revert "Spelling fix:  curent -> current"

    This reverts commit 644eed43e9a61b7fedc01a21fb6a17244a815a51.

commit 644eed43e9a61b7fedc01a21fb6a17244a815a51
Author: OvermindDL1 <overminddl1@gmail.com>
Date:   Fri Nov 14 23:43:49 2014 -0700

    Spelling fix:  curent -> current
2016-03-05 12:22:54 +02:00
dragonCASTjosh
5698f9205a Change towards getting STB working on shared 2016-03-04 21:01:59 +00:00
Lasse Öörni
6538f3bb4a Use glReadPixels() workaround to get texture data from rendertargets on GLES. For regular textures this cannot be used. 2016-03-02 18:16:58 +02:00
urho3d-travis-ci
65180c8b80 Travis CI: API documentation update at 2016-03-02 14:23:59 UTC.
[ci package]

Commit: 633a6fa512

Message: Add function to get a per-face image to TextureCube AngelScript API. Similar to GetImage for Texture2D, does not support block compressed formats.
2016-03-02 14:23:59 +00:00
Lasse Öörni
633a6fa512 Add function to get a per-face image to TextureCube AngelScript API. Similar to GetImage for Texture2D, does not support block compressed formats. 2016-03-02 16:14:14 +02:00
dragonCASTjosh
948f99bd6f Merge pull request #3 from urho3d/master
Update from master
2016-03-02 11:40:28 +00:00
Yao Wei Tjong 姚伟忠
3a29bc2f3c Suppress unnecessary debug log entry due to default autoload feature. 2016-03-02 17:46:54 +08:00
dragonCASTjosh
206176eb7a Changes to fix compile errors related to stb_vorbis 2016-02-29 12:59:00 +00:00
Lasse Öörni
84b41355a7 Fix compiling Urho3D without physics. Note that the editor would still be unable to run without physics support compiled in. Closes #1216. 2016-02-29 12:23:50 +02:00
dragonCASTjosh
10a92cd49a changes to CMake to add headers 2016-02-29 00:32:43 +00:00
dragonCASTjosh
f67f35f002 Changes to fix the compile error 2016-02-29 00:23:26 +00:00
dragonCASTjosh
4fb746bfd1 Removed code that no longer is needed (as far as i know) 2016-02-28 23:58:24 +00:00
dragonCASTjosh
103fe32dd1 Now working and Added initial .HDR support 2016-02-28 23:50:21 +00:00
dragonCASTjosh
eea684879b Add define for STB 2016-02-26 11:06:14 +00:00
TheComet
b64f4a7c2e Exposing AnimationTrack class as part of the public API 2016-02-24 22:48:56 +01:00
dragonCASTjosh
6313b6f80e Initial Work (May not work) 2016-02-24 11:46:18 +00:00
Lasse Öörni
8c839265f0 Use camera's frustum for Renderer2D culling always. Closes #1191. 2016-02-24 11:51:09 +02:00
Yao Wei Tjong 姚伟忠
6e0a447ebb Break fix for SDL library build when using Raspbian Jessie.
[ci only: RPI] [skip appveyor]
2016-02-22 23:26:41 +08:00
Lasse Öörni
86adac5ff7 When a 2D rigidbody is parented, make sure the transforms are applied in parent->child order. Also apply the world position also for a static or sleeping rigidbody when it's parented, to make sure the simulation and rendering transforms stay in sync. Fix possible issue with null weakptr during physics 2D update. Closes #1183. 2016-02-21 14:14:16 +02:00
urho3d-travis-ci
c070f76ad8 Travis CI: API documentation update at 2016-02-21 10:22:26 UTC.
[ci package]

Commit: 09e1330f5f

Message: Add Technique::Clone(). Improve Technique / Pass Lua bindings. Closes #1203.
2016-02-21 10:22:27 +00:00
Lasse Öörni
09e1330f5f Add Technique::Clone(). Improve Technique / Pass Lua bindings. Closes #1203. 2016-02-21 12:12:53 +02:00
Yao Wei Tjong 姚伟忠
3582dccabb Partially revert back changes in the FileWatcher class.
The thread needs to be stopped before closing the file watcher on OSX platform to avoid segfault.
Related to e1c5057bee.
2016-02-21 10:31:23 +08:00
Lasse Öörni
4b7307ca2f Always disable use of aligned structs in Bullet API. Closes #1193 and #1134. 2016-02-20 23:18:29 +02:00
Lasse Öörni
281de051a5 Remember to copy shader parameter hash when a material is cloned. Closes #1192. 2016-02-17 19:40:23 +02:00
Lasse Öörni
e1c5057bee Merge remote-tracking branch 'TheComet93/iss1196' 2016-02-17 19:10:26 +02:00
Lasse Öörni
9fa87d54b6 Similar implicit conversion for WeakPtr. 2016-02-15 17:58:35 +02:00
Lasse Öörni
01d98cdf2c Tab to space. Added contributor credit. 2016-02-15 17:46:46 +02:00
Lasse Öörni
67a7c3f2bc Merge remote-tracking branch 'AntonPetrov83/sharedptr-implicit-conversion' 2016-02-15 17:31:24 +02:00
Lasse Öörni
46e434141e Apply & further improve WorldToHeightMap() fix from Lumak. 2016-02-15 17:00:33 +02:00
TheComet
a48f0e57ad fixes #1196 - Filewatcher no longer gets stuck in read() 2016-02-13 01:53:48 +01:00
Антон Петров
a6015e921b Allow implicit conversions of SharedPtr objects. 2016-02-13 01:39:19 +03:00
Lasse Öörni
213be51f92 Fix 2D particle emitter case where it would potentially try to emit more particles than there is space reserved for. Thanks yiown. Closes #1190. 2016-02-11 17:32:35 +02:00
Lasse Öörni
30c9fcc8df Cleanup use of unsigned long from OBJ exporter code, as it's actually different sized on different platforms. 2016-02-10 11:11:23 +02:00
MonkeyFirst
4a9fb69f62 fix obj exporter bugs 2016-02-06 15:57:37 +06:00
Yao Wei Tjong 姚伟忠
b528268d81 Correct copy-paste error on Matrix2 header file.
[ci package]
2016-02-06 00:05:30 +08:00
urho3d-travis-ci
64877df1e3 Travis CI: API documentation update at 2016-02-05 12:05:57 UTC.
[ci package]

Commit: 45572769c6

Message: Merge remote-tracking branch 'TheComet93/matrix2'

# Conflicts:
#	Source/Urho3D/AngelScript/MathAPI.cpp
2016-02-05 12:05:57 +00:00
Lasse Öörni
45572769c6 Merge remote-tracking branch 'TheComet93/matrix2'
# Conflicts:
#	Source/Urho3D/AngelScript/MathAPI.cpp
2016-02-05 13:51:07 +02:00
TheComet
bfa6e3de91 Adding Lua bindings for Vector2::Angle() 2016-02-04 18:45:47 +01:00
TheComet
2281162d7a Adding AngelScript bindings for Vector2::Angle() 2016-02-04 18:44:27 +01:00
TheComet
d38c24d4f2 Wrote Angle() member function for Vector2 class 2016-02-04 18:42:45 +01:00
TheComet
217066baf2 Adding lua bindings for Matrix2 2016-02-04 18:41:38 +01:00
TheComet
a42299202c Adding AngelScript bindings for Matrix2 2016-02-04 18:41:23 +01:00
TheComet
ab2198ecb1 Added Matrix2 class 2016-02-04 17:20:52 +01:00
Yao Wei Tjong 姚伟忠
7c2be809c0 Don't use Clang color diagnostics when building LuaJIT_universal. 2016-02-03 15:40:40 +08:00
Yao Wei Tjong 姚伟忠
911d26674a Fix luajit (interpreter) target dependency.
It should just depend on LuaJIT_universal custom target instead of LuaJIT target when the custom target is available. This ensures parallel build always ends up in a deterministic/desired order. The issue was picked up thanks to Travis CI again.
[ci only: OSX] [skip appveyor]
2016-02-03 11:48:11 +08:00
Yao Wei Tjong 姚伟忠
1e311acb6a Speed up build for Debug configuration by building only active arch. 2016-02-02 22:19:57 +08:00
Yao Wei Tjong 姚伟忠
17026be8eb Expose RenderPathCommand and RenderTargetInfo as Urho public API. 2016-01-31 09:06:38 +08:00
Lasse Öörni
f651101a28 Merge master AnimatedModel bone bounding boxes from the other AnimatedModels in the same node to prevent culling errors. Closes #1179. 2016-01-30 15:30:35 +02:00
urho3d-travis-ci
dc91be4dd1 Travis CI: API documentation update at 2016-01-30 10:43:25 UTC.
[ci package]

Commit: dcdcccd541

Message: Added missing AS bindings for Quaternion
2016-01-30 10:43:25 +00:00
Mike3D
dcdcccd541 Added missing AS bindings for Quaternion 2016-01-30 11:25:26 +01:00
Lasse Öörni
6b775d7537 Refactor rendertarget update handling, to ensure both always-update and manual-update respect the order of backbuffer views rendering first. Closes #1171. 2016-01-27 20:45:30 +02:00
Lasse Öörni
e92a5c1c5f Merge remote-tracking branch 'TheComet93/c89_sdl_msvc2012_fix' 2016-01-26 17:01:30 +02:00
urho3d-travis-ci
1c72d5b10f Travis CI: API documentation update at 2016-01-26 14:15:06 UTC.
[ci package]

Commit: c4f6f315ff

Message: Travis CI: bump copyright to 2016.
[ccache clear]
2016-01-26 14:15:06 +00:00
urho3d-travis-ci
c4f6f315ff Travis CI: bump copyright to 2016.
[ccache clear]
2016-01-26 13:55:03 +00:00
TheComet
180fff7011 Using whitespace instead of tabs 2016-01-26 00:15:35 +01:00
TheComet
717f0d518c Fixes code that is not compliant with the C89 standard when compiling with MSVC 2016-01-26 00:08:31 +01:00
Lasse Öörni
45dfe368a5 Allow to call AnimatedModel::UpdateBoneBoundingBox() manually. Closes #1168. 2016-01-25 18:37:17 +02:00
Lasse Öörni
a2323a63a8 Fix missing return values in D3D9 Graphics::ResolveToTexture(). 2016-01-25 18:02:10 +02:00
Lasse Öörni
6bd8229819 Tabs to spaces. Fix copy-paste error in comment. 2016-01-25 17:23:11 +02:00
Yao Wei Tjong 姚伟忠
41b87b3690 Merge commit '3d5994381df631739187c89bd0c2752900ae6c2a' as 'Source/ThirdParty/nanodbc' 2016-01-25 15:59:30 +08:00
Yao Wei Tjong 姚伟忠
c1ae46ec41 Replace Source/ThirdParty/nanodbc subdirectory with subtree. 2016-01-25 15:59:26 +08:00
Yao Wei Tjong 姚伟忠
a68c36b7e5 Merge commit 'bcd587a1bef9d8ed0e37d38b0b00b4faf43cea6c' into master. 2016-01-24 13:25:41 +08:00
Yao Wei Tjong 姚伟忠
705e06dd1c Remove an unprintable \015 character in the cmake_codelite.sh.
The character had caused the script not operable.

For Travis CI and AppVeyor - bug fixes and improvement to make the CI builds more stable, hopefully.
2016-01-23 23:39:06 +08:00
urho3d-travis-ci
a5373fe83b Travis CI: API documentation update at 2016-01-22 17:55:28 UTC.
[ci package]

Commit: bd21208a5f

Message: Added contributor credit.
2016-01-22 17:55:28 +00:00
Lasse Öörni
474276fc17 Code convention & minor logic edits. Unify tag API between UIElement & Node. Use ; as the default tag separator to match the editor. Do not allow adding empty tags. 2016-01-22 17:51:31 +02:00
svifylabs
4297cdedd2 Added Simple String Multitag System
removed old implementation, no optimisation, scene caches tagged nodes
2016-01-22 17:51:31 +02:00
svifylabs
9bb980b8a1 Revert "multitag test"
This reverts commit 754210898c524c4d4275ef0ae1ccb0471f6c606c.
2016-01-22 17:51:30 +02:00
svifylabs
fd8b760330 multitag test 2016-01-22 17:51:30 +02:00
svifylabs
997906d55e added tag as a string for easy editing 2016-01-22 17:51:30 +02:00
svifylabs
41f5ff1a51 added node tags 2016-01-22 17:51:29 +02:00
urho3d-travis-ci
5e0701ad42 Travis CI: API documentation update at 2016-01-22 13:48:39 UTC.
[ci package]

Commit: a9e62241a7

Message: Unify fixed update source handling in ScriptInstance, LuaScriptInstance & LogicComponent. It can now be either PhysicsWorld or PhysicsWorld2D. Remove auto-creation of PhysicsWorld from ScriptInstance, as LogicComponent or LuaScriptInstance don't do that either, and the ScriptInstance can not known whether PhysicsWorld or PhysicsWorld2D should be created.
2016-01-22 13:48:39 +00:00
Lasse Öörni
a9e62241a7 Unify fixed update source handling in ScriptInstance, LuaScriptInstance & LogicComponent. It can now be either PhysicsWorld or PhysicsWorld2D. Remove auto-creation of PhysicsWorld from ScriptInstance, as LogicComponent or LuaScriptInstance don't do that either, and the ScriptInstance can not known whether PhysicsWorld or PhysicsWorld2D should be created. 2016-01-22 14:59:08 +02:00
Lasse Öörni
99c731db19 Merge remote-tracking branch 'ucupumar/particle-direction-fix' 2016-01-22 13:41:23 +02:00
Yao Wei Tjong 姚伟忠
d267c5ee3c Fix build system to find 32-bit readline package correctly on Debian. 2016-01-22 13:41:29 +08:00
Yao Wei Tjong 姚伟忠
1066c52fb6 Fix build system to find 32-bit packages correctly on Linux. 2016-01-22 12:01:23 +08:00
urho3d-travis-ci
cc6f1a3d81 Travis CI: API documentation update at 2016-01-21 19:58:41 UTC.
[ci package]

Commit: ff42717419

Message: Rename IsTagged -> HasTag. Pass tag scripts in Lua by value to match the other API bindings.
2016-01-21 19:58:41 +00:00
Lasse Öörni
ff42717419 Rename IsTagged -> HasTag. Pass tag scripts in Lua by value to match the other API bindings. 2016-01-21 21:42:18 +02:00
Ivan K
68668266d2 Add tags to UIElement 2016-01-21 21:42:17 +02:00
Yao Wei Tjong 姚伟忠
105aa2699e Use Readline library when it is found for Lua and isql. 2016-01-22 02:05:30 +08:00
Lasse Öörni
ca3f3ced4f Prefer to use camera's EffectiveWorldTransform for view inverse to avoid double inversing. 2016-01-21 18:44:02 +02:00
Lasse Öörni
1e8335d5a4 Merge remote-tracking branch 'hjmediastudios/AddViewMatrix' 2016-01-21 18:38:36 +02:00
Yusuf Umar
aa16b5003a Fixing some Coverity scan bug. 2016-01-21 22:49:08 +07:00
Yao Wei Tjong 姚伟忠
cff5fe2d3d For Travis CI - enable URHO3D_LUAJIT build option on iOS CI builds.
Upgrade to CMake 3.4.1 for OSX CI build jobs.
Close #1146
2016-01-21 19:28:02 +08:00
Yao Wei Tjong 姚伟忠
17734a1b77 Enable LuaJIT universal binary build on iOS platform. 2016-01-21 10:56:58 +08:00
Yao Wei Tjong 姚伟忠
44e7322e4e Enable LuaJIT universal binary build on OSX platform.
Enable universal binary executables by default when targeting 64-bit OSX platform.
2016-01-21 10:56:58 +08:00
Yao Wei Tjong 姚伟忠
50f64a88a1 Minor formatting correction. 2016-01-21 10:55:44 +08:00
Yao Wei Tjong 姚伟忠
da3a82979b Bake URHO3D_TESTING to ensure downstreams get consistent struct size. 2016-01-21 00:01:28 +08:00
Lasse Öörni
f721aea1d3 On D3D11, force dynamic textures to use 1 mip level, as more is not supported. Closes #1153. 2016-01-19 22:43:07 +02:00
Nick Royer
360328d2d1 Added inverse view matrix 2016-01-18 14:30:54 -06:00
Yao Wei Tjong 姚伟忠
0906da48ba Fix LuaJIT build for VS build to suppress unknown option warnings.
[ci only: AppVeyor]
2016-01-15 21:02:56 +08:00
Lasse Öörni
c46f414034 Reset SDL's internal in_title_click variable whenever a normal mouse up/down event is received. Fixes #1151. 2016-01-14 22:52:20 +02:00
urho3d-travis-ci
c3f336829e Travis CI: API documentation update at 2016-01-14 19:58:13 UTC.
[ci package]

Commit: 25ed4020a0

Message: Match the enum order in EmitterType edit field.
2016-01-14 19:58:13 +00:00
Lasse Öörni
25ed4020a0 Match the enum order in EmitterType edit field. 2016-01-14 21:14:43 +02:00
Lasse Öörni
e18f801103 Use GetStringListIndex() also for the emitter type. 2016-01-14 21:07:53 +02:00
Lasse Öörni
79f32fad0a Shorter name for the directional mode in XML serialization. Eliminate duplicate code from ParticleEffect. Eliminate manual string compare in favor of GetStringListIndex(). 2016-01-14 21:04:55 +02:00
Lasse Öörni
f5cee983f1 Code convention minor edits. Expose the new enum value to Lua. 2016-01-14 20:43:20 +02:00
Lasse Öörni
925b69ef4c Merge remote-tracking branch 'ucupumar/particle-editor' 2016-01-14 20:11:22 +02:00
Lasse Öörni
c04aadec58 Apply component ID save fix from vivienneanthony. Also verify that JSON save works similarly. Closes #1150. 2016-01-13 11:42:26 +02:00
Yao Wei Tjong 姚伟忠
e61cf6fc40 Upgrade to LuaJIT v2.1 (unstable) branch. 2016-01-13 01:22:01 +08:00
Yao Wei Tjong 姚伟忠
b36135489f Merge commit '643fa4aad86bba3567b3b7441e36c2cbd438d79c' into master 2016-01-13 01:21:26 +08:00
Yusuf Umar
a8d9308abe Moving billboard rotate computation from CPU to GPU. Particle with direction should run faster now. 2016-01-12 19:50:01 +07:00
Yusuf Umar
353c459e0d Adding direction for particle/billboard. It can create pseudo 3d effect inspired by Unity stretched billboard. Can be used by using face camera option 'Rotate Along Direction'. 2016-01-12 10:46:23 +07:00
urho3d-travis-ci
e5f07d790a Travis CI: API documentation update at 2016-01-11 15:19:32 UTC.
[ci package]

Commit: 5e780d9e8b

Message: Allow configurable minidump write location via ProcessUtils.h functions. Closes #1142.
2016-01-11 15:19:32 +00:00
Lasse Öörni
5e780d9e8b Allow configurable minidump write location via ProcessUtils.h functions. Closes #1142. 2016-01-11 17:06:38 +02:00
Lasse Öörni
4a6d39beee Implement missing applying of basepath to package file entries. Closes #1147. 2016-01-11 16:23:21 +02:00
Yao Wei Tjong 姚伟忠
5a97c68a49 Fix a regression issue caused by external project target renaming.
Close #1137.
2016-01-09 19:25:44 +08:00
Yao Wei Tjong 姚伟忠
d01bdbf2df Merge commit '68be709e44b87216b5c41a626571d8a8f44938e9' as 'Source/ThirdParty/LuaJIT' 2016-01-08 18:14:37 +08:00
Yao Wei Tjong 姚伟忠
7d65d52455 Remove LuaJIT subdirectory. It will be added back as subtree. 2016-01-08 18:13:52 +08:00
Yao Wei Tjong 姚伟忠
21b01fcd5b Refactor how the EXE and SHARED linker flags are being setup. 2016-01-06 16:38:59 +08:00
Yao Wei Tjong 姚伟忠
bc64b053a3 Bake URHO3D_LUAJIT as downstream project needs extra linker flags.
Without these extra linker flags the executable would most likely get a runtime error, especially when targeting 64-bit OSX platform.
2016-01-06 16:38:59 +08:00
Yao Wei Tjong 姚伟忠
431559c2bd For Travis CI & AppVeyor - unified 'ci' rake task and spring cleaning. 2016-01-06 16:38:58 +08:00
Yao Wei Tjong 姚伟忠
7252327e70 Minor code formatting on Variant.h file.
[ci skip]
2016-01-06 08:44:16 +08:00
Lasse Öörni
87a5e4fcb3 Simplify RigidBody code. Allow kinematic rigid body to set its initial transform in OnMarkedDirty() so that e.g. loaded prefabs in the editor don't appear to have their body in the wrong place initially. 2016-01-05 22:37:05 +02:00
Lasse Öörni
bdadb1b116 Fix missing export specifier for the specializations of Variant::Get<T>(). Closes #1138. 2016-01-05 22:20:44 +02:00
Lasse Öörni
087772c539 If AnimatedModel is temporary, make the bone nodes it creates temporary too. Closes #1135. 2016-01-05 11:27:56 +02:00
Lasse Öörni
dce2345b8a Disable BT_USE_SSE_IN_API in OSX debug mode. Closes #1132. 2016-01-04 22:07:18 +02:00
Lasse Öörni
05cd6f4346 Before rigidbody has simulated at least once, allow also setting the interpolation transform. Possible fix for #1128. 2016-01-04 15:57:23 +02:00
urho3d-travis-ci
4a0e883d7d Travis CI: API documentation update at 2015-12-28 18:44:03 UTC.
[ci package]

Commit: 7afc3cd9ce

Message: HasSubscribedToEvent() exposed to scripting. Closes #1122.
2015-12-28 18:44:03 +00:00
Lasse Öörni
7afc3cd9ce HasSubscribedToEvent() exposed to scripting. Closes #1122. 2015-12-28 20:32:52 +02:00
Yao Wei Tjong 姚伟忠
bf50a58a0a Fix clang-tools build.
[skip appveyor] [ci only: Annotate]
2015-12-27 15:51:28 +08:00
urho3d-travis-ci
e0d3b2339e Travis CI: API documentation update at 2015-12-26 21:42:23 UTC.
[ci package]

Commit: 9fccfe5417

Message: Fix error when serializing DropDownList. Fix scroll snap epsilon attribute default value. Closes #1121.
2015-12-26 21:42:23 +00:00
Lasse Öörni
9fccfe5417 Fix error when serializing DropDownList. Fix scroll snap epsilon attribute default value. Closes #1121. 2015-12-26 23:33:51 +02:00
Lasse Öörni
d2c47a14c4 Add hit fraction to PhysicsRaycastResult and set it for all physics cast tests. Similar to ConvexCast, set SphereCast result distance based on hit fraction. Closes #1120. 2015-12-26 22:03:53 +02:00
Yao Wei Tjong 姚伟忠
108705d0e2 Bake compiler defines used by the database subsystem.
The auto-discovered variables are removed as build options from cmake-gui when it is invoked by Urho3D downstream projects.
Still, ensure the auto-discovered variables prevail over conflicting values potentially specified by user manually or via CLI.
2015-12-26 19:38:17 +08:00
Lasse Öörni
1f4793031c Fix forced one-sample shadowing when hardware compare not supported (instead should be forced four-sample shadowing) 2015-12-25 15:24:54 +02:00
Yao Wei Tjong 姚伟忠
60b3d8af40 Fix GetCompilerDefines() for possibility of returning empty string.
[skip appveyor] [ci only: master, Emscripten]
2015-12-25 18:48:06 +08:00
Yao Wei Tjong 姚伟忠
5af983234f Check the compiler defines at the time when the lib is built instead. 2015-12-25 17:55:17 +08:00
Yao Wei Tjong 姚伟忠
68e2813298 Attempt to use try_run logic to auto-discover build options.
For AppVeyor - let URHO3D_D3D11 be auto-discovered when scaffolding.
Close #1066.
2015-12-25 10:37:56 +08:00
Lasse Öörni
b218aececc Sync AssetImporter documentation with the program's actual command line options. Simplify D3D9 uninitialization code with SAFE_RELEASE. Minor code convention edit. 2015-12-24 13:16:17 +02:00
yushli
86825b2ee8 add save as JSON option 2015-12-24 11:36:25 +08:00
urho3d-travis-ci
f4edf3fc15 Travis CI: API documentation update at 2015-12-23 14:52:21 UTC.
[ci package]

Commit: a3ba4d8ff6

Message: Check HRESULT and log error with it included in case of failure in D3D9/D3D11 code. Clean up releasing GPU objects. Clean up Texture3D to not have a RenderSurface, since it can't be rendered to. Fixed missing Lua Texture3D binding. Fixed binding of Texture3D SetSize() in AngelScript. Added checks to Texture2D/3D SetSize() that zero or negative size is not specified. Closes #1092.
2015-12-23 14:52:21 +00:00
Lasse Öörni
a3ba4d8ff6 Check HRESULT and log error with it included in case of failure in D3D9/D3D11 code. Clean up releasing GPU objects. Clean up Texture3D to not have a RenderSurface, since it can't be rendered to. Fixed missing Lua Texture3D binding. Fixed binding of Texture3D SetSize() in AngelScript. Added checks to Texture2D/3D SetSize() that zero or negative size is not specified. Closes #1092. 2015-12-23 16:43:43 +02:00
Lasse Öörni
04f46f9abc Fix bug in String::DecodeUTF16. Thanks graveman! 2015-12-23 11:41:02 +02:00
Lasse Öörni
48ab1f3bda Squashed commit of the following:
commit b21e10951ff9535e80f2b222336c5f88e11e63af
Author: Nick Royer <hjmediastudios@gmail.com>
Date:   Tue Dec 22 22:00:14 2015 -0600

    Added Context parameter in JSONValue::SetVariantVector to fix
    ResourceRef bug

commit 297f8bcde3e24ad67e5fce56b7d0bab6fb616432
Merge: 5a150b2 2802146
Author: Nick Royer <hjmediastudios@gmail.com>
Date:   Tue Dec 22 21:35:50 2015 -0600

    Merge branch 'JSONValueFix' of https://github.com/hjmediastudios/Urho3D into JSONValueFix

commit 5a150b298e860c81fa17e9f0c6906b493477f97b
Author: Nick Royer <hjmediastudios@gmail.com>
Date:   Tue Dec 22 21:35:23 2015 -0600

    Fixed bug caused by attempting to set a JSONValue to a VariantVector;
    previous behavior attempted to assign values to indices beyond the size
    of the JSONValue's array storage.

commit 2802146005849314d8d3662468ec324ae8b321b3
Merge: 65c8125 e1647d1
Author: NickRoyer <hjmediastudios@gmail.com>
Date:   Tue Dec 22 21:29:06 2015 -0600

    Merge pull request #2 from urho3d/master

    Make Urho3D_universal custom target as one of the default target.
2015-12-23 11:23:02 +02:00
Yao Wei Tjong 姚伟忠
e1647d18dd Make Urho3D_universal custom target as one of the default target.
Close #1111.
2015-12-23 10:44:27 +08:00
urho3d-travis-ci
65c8125609 Travis CI: API documentation update at 2015-12-22 17:19:49 UTC.
[ci package]

Commit: 6d2853d81d

Message: Add 32-bit integer object index attribute for custom instancing schemes. May not work on GLES2 as it's using attribute index 13. Not supported on D3D9. Closes #1108.
2015-12-22 17:19:49 +00:00
Lasse Öörni
6d2853d81d Add 32-bit integer object index attribute for custom instancing schemes. May not work on GLES2 as it's using attribute index 13. Not supported on D3D9. Closes #1108. 2015-12-22 18:55:40 +02:00
Yao Wei Tjong 姚伟忠
e616662d69 Remove code duplication and minor code formatting. 2015-12-22 21:00:46 +08:00
Lasse Öörni
b593380632 When attaching a UIElement as child, apply potentially changed style recursively. Remove default size from Button's style (generally style shouldn't change element size.) Closes #1103. 2015-12-21 15:34:30 +02:00
Lasse Öörni
0dafa13b0c Ensure CustomGeometry world bounding box gets updated on Commit(). 2015-12-21 13:55:24 +02:00
Jukka Jylänki
f7d5684001 Implement GetNumPhysicalCPUs() and GetNumLogicalCPUs() on Emscripten, which calls to emscripten_num_logical_cores() (navigator.hardwareConcurrency API in JS when available, or a guessed "4 cores" when not) 2015-12-19 20:22:24 +02:00
urho3d-travis-ci
d9c412f7e8 Travis CI: API documentation update at 2015-12-18 12:57:29 UTC.
[ci package]

Commit: 6a3bbb8aab

Message: Fix D3D11 constant buffers for VSM. Fix editor shadow mode selection. Fix script API for new shadow modes. Fix debughud for new shadow modes. Edit documentation to refer to new shadow modes. Added contributor credit. Some code convention edits, e.g. VSM instead of Vsm. Dump new NinjaSnowWarShaders.xml file.
2015-12-18 12:57:29 +00:00
Lasse Öörni
6a3bbb8aab Fix D3D11 constant buffers for VSM. Fix editor shadow mode selection. Fix script API for new shadow modes. Fix debughud for new shadow modes. Edit documentation to refer to new shadow modes. Added contributor credit. Some code convention edits, e.g. VSM instead of Vsm. Dump new NinjaSnowWarShaders.xml file. 2015-12-18 14:22:24 +02:00
Lasse Öörni
1103fe2f3e Merge remote-tracking branch 'darwikey/master' 2015-12-18 12:34:42 +02:00
Lasse Öörni
415b15b421 Buffer variant serialization in Material. 2015-12-18 12:10:17 +02:00
Lasse Öörni
21f896fa49 Add possibility to set buffer type Variants as a shader parameter (will be interpreted as an array of floats.) 2015-12-18 11:41:47 +02:00
Xavier Maupeu
dbcfc9721e merge VSM shadow 2015-12-17 23:04:48 +01:00
Xavier Maupeu
cf501d9585 add functions in Renderer to set shadow softness and VSM shadow parameters 2015-12-17 19:16:52 +01:00
Xavier Maupeu
4dffd9d9ca minor stylistic modifications 2015-12-17 12:22:06 +01:00
Xavier Maupeu
583542bb19 SHADOWCMP must only be define when direct3d is used and Graphics::GetHardwareShadowSupport() returns false 2015-12-17 12:06:34 +01:00
Lasse Öörni
01857f5149 If sprite texture has the default wrap address mode, set to clamp. It's also possible to configure the texture to border address mode (via the XML parameters file), but that requires choosing a good border color. Closes #1096. 2015-12-16 19:31:35 +02:00
Yao Wei Tjong 姚伟忠
f471dd66dd Refactor installation structure for Windows platform.
Attempt to reenable the try_compile logic to verify if the found Urho3D
library is ABI-compatible with the chosen compiler toolchain.
2015-12-16 22:21:24 +08:00
Lasse Öörni
b49837f462 Added note of library modification. 2015-12-14 17:27:29 +02:00
Pranjal Raihan
b03a89c0e7 Fix narrowing conversion from int to unsigned char in jo_jpeg 2015-12-14 17:27:27 +02:00
urho3d-travis-ci
bbe8e77462 Travis CI: API documentation update at 2015-12-14 15:26:56 UTC.
[ci package]

Commit: b110b4e51b

Message: Tabs to spaces. Add Lua API for RaycastSingleSegmented().
2015-12-14 15:26:56 +00:00
Lasse Öörni
b110b4e51b Tabs to spaces. Add Lua API for RaycastSingleSegmented(). 2015-12-14 17:03:35 +02:00
Enhex
e57cc88020 Added PhysicsWorld::RaycastSingleSegmented(). It's much more efficient for big scenes with many bodies in them. 2015-12-14 17:03:33 +02:00
Yao Wei Tjong 姚伟忠
1cd242273e Verify found Urho3D library has matching ABI with the chosen compiler.
Check the CMake minimum version before setting project name as recommended by CMake.
Minor documentation update on how to setup downstream projects using Urho3D library as external library.
For AppVeyor - attempt to add scaffolding test using Urho3D SDK.
2015-12-14 22:43:00 +08:00
Lasse Öörni
e95feb9d7e Add URHO3D_API specifier. 2015-12-14 14:41:05 +02:00
Lasse Öörni
f41f1f2b10 Squashed commit of the following:
commit 8b26bb3353730a831952e30a91f0da43d98d5a69
Merge: dc248ce 746a57b
Author: Nick Royer <hjmediastudios@gmail.com>
Date:   Thu Dec 10 12:23:36 2015 -0600

    Merge remote-tracking branch 'refs/remotes/origin/master' into PathTools

    Conflicts:
    	Source/Urho3D/Navigation/NavigationMesh.cpp
    	Source/Urho3D/Navigation/NavigationMesh.h

commit dc248ce4e03c789f5417af00567b4c3915542d63
Merge: aa7e0e4 a2ba148
Author: Nick Royer <hjmediastudios@gmail.com>
Date:   Thu Dec 10 12:16:57 2015 -0600

    Merge branch 'refs/heads/urho3d-master' into PathTools

commit a2ba1482af2927f3e7349e65ac266cac414c5f3d
Merge: 90ab5ae aa7e0e4
Author: Nick Royer <hjmediastudios@gmail.com>
Date:   Thu Dec 10 12:15:00 2015 -0600

    Merge branch 'PathTools' into urho3d-master

    Removing conflicts

commit aa7e0e40a611c10cc4b5aa36829d958ca847e23d
Author: Nick Royer <hjmediastudios@gmail.com>
Date:   Thu Dec 10 12:07:55 2015 -0600

    Resolving conflicts for NavigationPathPoint

commit 90ab5aeaf0f5f657115e30f702bb7aaa3027f3db
Author: Nick Royer <hjmediastudios@gmail.com>
Date:   Thu Dec 10 11:59:43 2015 -0600

    Added documentation on the NavigationPathPoint struct.

commit 459e79f9ccda38d07be142aa0056def5fcb85ce8
Merge: 1ae5838 0302040
Author: Nick Royer <hjmediastudios@gmail.com>
Date:   Thu Dec 10 11:54:44 2015 -0600

    Merge remote-tracking branch 'refs/remotes/origin/master' into PathTools

commit 1ae5838d07ea01f8442b92aad1e6d9f22d886719
Author: Nick Royer <hjmediastudios@gmail.com>
Date:   Thu Dec 10 11:48:09 2015 -0600

    Altered the NavigationPathPoint structure to use predefined flags.

commit 7acba3bcd67bfc12fe5f9d33f1587c8bd60da13e
Author: NickRoyer <hjmediastudios@gmail.com>
Date:   Wed Dec 9 14:48:51 2015 -0600

    Update NavigationMesh.h

    Removed extra `_`'s from navigation point flags.

commit 9db9444ca8a5f8ba831d430acfc4e0032ff7e337
Author: Nick Royer <hjmediastudios@gmail.com>
Date:   Wed Dec 9 14:42:58 2015 -0600

    Added extra options for retreiving a path from a NavigationMesh.

commit af6080d8c9fd78978153f5efd69b8be8ec0ab999
Author: Nick Royer <hjmediastudios@gmail.com>
Date:   Wed Dec 9 13:11:59 2015 -0600

    Added expanded navigation path point structure.
2015-12-14 14:37:57 +02:00
Lasse Öörni
675aa9c94c Since it was encountered in the wild (#1092), make failure to create the read-only depth stencil view only result in a warning instead of error, and fallback to the normal view if read-only view is not available. It is only needed when sampling and depth-testing the same texture in the HWDepth renderpaths. 2015-12-14 12:28:35 +02:00
Yao Wei Tjong 姚伟忠
55286eb820 Fix host-tool building.
[skip appveyor]
2015-12-13 17:43:54 +08:00
urho3d-travis-ci
0d5a38540f Travis CI: API documentation update at 2015-12-11 22:33:24 UTC.
[ci package]

Commit: 42ba4f9824

Message: Fix material JSON save in editor. Fix AngelScript API bindings where XMLElement or JSONValue is passed as reference and should be modified (needs to be unsafe inout reference.)
2015-12-11 22:33:24 +00:00
Lasse Öörni
42ba4f9824 Fix material JSON save in editor. Fix AngelScript API bindings where XMLElement or JSONValue is passed as reference and should be modified (needs to be unsafe inout reference.) 2015-12-12 00:08:38 +02:00
Lasse Öörni
5165aa91fb Remove GetJsonType() function from editor resource browser code since JSON files don't have a similar root element name, and it was causing the editor not to compile. Fix save of ResourceRef / ResourceRefList in JSON. Fix missing child nodes in JSON scenes. Fix editor to use the correct function to save / load JSON nodes. Fix number of attempts in finding the attribute matching JSON data. 2015-12-11 22:57:33 +02:00
Lasse Öörni
2d7ab2080f Merge remote-tracking branch 'hjmediastudios/master' 2015-12-11 21:36:30 +02:00
Yao Wei Tjong 姚伟忠
13e4cc332e For downstream - auto detect Urho3D lib type from build artifact. 2015-12-11 22:54:30 +08:00
Lasse Öörni
5acb70802c Re-enable OpenGL depth test in the beginning of frame in case of third party overlay programs such MSI Afterburner having modified it. Closes #1089. 2015-12-11 11:47:31 +02:00
Nick Royer
fdb14bf0d7 Merge branch 'master' of https://github.com/hjmediastudios/Urho3D 2015-12-10 14:31:52 -06:00
Nick Royer
10bad1e36a Added JSON animation triggers as well as a few quick file filter
settings for the editor and documentation changes.
2015-12-10 14:31:05 -06:00
NickRoyer
746a57bbd4 Merge pull request #3 from urho3d/master
Updating from main repository
2015-12-10 12:01:06 -06:00
urho3d-travis-ci
8eaa00c4aa Travis CI: API documentation update at 2015-12-10 12:50:54 UTC.
[ci package]

Commit: e09413bec8

Message: Merge remote-tracking branch 'hjmediastudios/NavEventsChange'
2015-12-10 12:50:54 +00:00
Lasse Öörni
e09413bec8 Merge remote-tracking branch 'hjmediastudios/NavEventsChange' 2015-12-10 13:59:24 +02:00
Lasse Öörni
2b25100ef6 Fix writing to the inverse size uniforms as if they were Vector4's. Closes #1087. 2015-12-10 13:42:19 +02:00
Nick Royer
6ce8cc0f62 Merge branch 'master' of https://github.com/hjmediastudios/Urho3D 2015-12-09 12:41:46 -06:00
NickRoyer
0302040389 Merge pull request #1 from urho3d/master
Updating dev fork
2015-12-09 12:41:30 -06:00
Nick Royer
6dc3051702 Added SpriteSheet2D JSON loading capability. 2015-12-09 11:52:35 -06:00
Nick Royer
2b2408118b Added SpriteSheet2D JSON loading capability. 2015-12-09 11:45:58 -06:00
Nick Royer
295adceef6 Added material load type selection (JSON/XML) by file extension. 2015-12-09 11:32:25 -06:00
Nick Royer
fe408e4910 Added AngelScript Serializable API JSON functions 2015-12-09 11:22:13 -06:00
Nick Royer
318e0f6552 Added node-specific CrowdAgent events 2015-12-09 11:17:12 -06:00
Lasse Öörni
bd6845d50e Fix off by one error in mipmap data size counting. Image code cleanup. Closes #1072. 2015-12-09 17:52:57 +02:00
Nick Royer
bab7daa211 Added expanded structure for path calculation and appropriate FindPath
method.
2015-12-09 07:27:50 -06:00
Nick Royer
a3326e086a Made CrowdAgent emit events from the attached Node as well as the
associated CrowdManager, to allow for simpler reaction of other
components on the same Node to crowd agent events.
2015-12-08 20:12:06 -06:00
Nick Royer
ecdb9f84c4 Added JSON loading support for materials. 2015-12-08 13:08:24 -06:00
Nick Royer
79bc4feb1e Updated Lua API with scene and node JSON load/save capabilities. 2015-12-08 12:15:48 -06:00
Nick Royer
44bdb94047 Updated Scene and Node AngelScript APIs to reflect JSON scene and node
save/load features.
2015-12-08 12:09:37 -06:00
Nick Royer
379860e543 Added functions for scenes, nodes, etc. to be saved/loaded to JSON data
as well as XML.
2015-12-08 11:56:40 -06:00
urho3d-travis-ci
c0c149dfa5 Travis CI: API documentation update at 2015-12-08 12:08:06 UTC.
[ci package]

Commit: 310c32db9e

Message: Adapt PhysicsWorld::GetRigidBodies() to use Nick Royer's immediate contact test code to work with static bodies properly. (https://github.com/urho3d/Urho3D/pull/1077) Exposed PhysicsWorld::GetCollidingBodies() for the previous behavior, similar to RigidBody::GetCollidingBodies().
2015-12-08 12:08:06 +00:00
Lasse Öörni
310c32db9e Adapt PhysicsWorld::GetRigidBodies() to use Nick Royer's immediate contact test code to work with static bodies properly. (https://github.com/urho3d/Urho3D/pull/1077) Exposed PhysicsWorld::GetCollidingBodies() for the previous behavior, similar to RigidBody::GetCollidingBodies(). 2015-12-08 13:58:20 +02:00
Lasse Öörni
45c11acd6c Create a read-only depth stencil view and use it when depth write is disabled to allow simultaneous sampling of the depth buffer in pixel shader. Closes #1076. 2015-12-07 15:55:55 +02:00
Xavier Maupeu
fc41f4bfa6 fix bug with simple shadow and pcf shadow in direct3d9 2015-12-05 19:09:49 +01:00
Xavier Maupeu
45aa12c496 VSM shadow map can be blurred 2015-12-05 13:26:38 +01:00
Lasse Öörni
e9cf66b992 Marked todo related to child priority sorting. 2015-12-04 12:44:51 +02:00
Lasse Öörni
3c792eb2cd Merge remote-tracking branch '1vanK/master' 2015-12-04 12:34:06 +02:00
Lasse Öörni
733c2e2d5b Fix DropDownList placeholder text not hiding when an item is selected. Clarify function comments on use of placeholder text. 2015-12-03 10:59:27 +02:00
Ivan K
372c5b3481 editor: fix positioning of status text 2015-12-02 19:14:32 +04:00
Ivan K
b3656119fd unnecessary if 2015-12-02 18:04:03 +04:00
Xavier Maupeu
0567cbeaf4 remove shadow bias for vsm 2015-12-01 16:57:23 +01:00
urho3d-travis-ci
41672c95cb Travis CI: API documentation update at 2015-12-01 14:18:07 UTC.
[ci package]

Commit: a4e22db6e5

Message: Auto-resize the UI root when scale is changed. Fix Console to support scaled UI. Add UI scale Lua bindings. Tweak UI scale AngelScript bindings. Fix UI render scissor region to work properly with scaled UI. Added brief documentation on UI scaling.
2015-12-01 14:18:07 +00:00
Lasse Öörni
a4e22db6e5 Auto-resize the UI root when scale is changed. Fix Console to support scaled UI. Add UI scale Lua bindings. Tweak UI scale AngelScript bindings. Fix UI render scissor region to work properly with scaled UI. Added brief documentation on UI scaling. 2015-12-01 16:08:15 +02:00
Lasse Öörni
a0386ea75c Merge remote-tracking branch 'ninjastone/uiscale' 2015-12-01 12:47:46 +02:00
Lasse Öörni
f0b615f1e2 When the engine is exiting, make sure the load queue is cleared in BackgroundLoader before going to superclass teardown (thread exit.) Closes #1063. 2015-11-30 15:29:19 +02:00
urho3d-travis-ci
4b15a38bb4 Travis CI: API documentation update at 2015-11-30 12:43:54 UTC.
[ci package]

Commit: 23cdecd5db

Message: Merge pull request #1064 from cosmy1/patch-1

Add missing IntRect & IntVector2 getters and setters in XMLElement
2015-11-30 12:43:54 +00:00
Xavier Maupeu
78a85ff2c6 simple VSM is working 2015-11-29 11:26:36 +01:00
cosmy1
d2e9e1f718 Add missing IntRect & IntVector2 getters and setters in XMLElement 2015-11-28 22:06:22 +01:00
ninjastone
f39dbb2830 Fix touch positions in scaled UI. 2015-11-29 04:32:56 +09:00
Lasse Öörni
11856fd7be Make sure to send the particle effect finish event in the main thread. 2015-11-28 02:04:34 +02:00
urho3d-travis-ci
893b47f238 Travis CI: API documentation update at 2015-11-27 23:48:59 UTC.
[ci package]

Commit: 1840c749f0

Message: Particle effect finish event. Closes #1058.
2015-11-27 23:48:59 +00:00
Lasse Öörni
1840c749f0 Particle effect finish event. Closes #1058. 2015-11-28 01:39:06 +02:00
Lasse Öörni
ac67a462ba Animation finish event. 2015-11-28 00:54:20 +02:00
Lasse Öörni
d3d1538e5b Force the RigidBody's interpolation transform only inside FixedUpdate() to prevent strange behavior with parented rigidbodies. 2015-11-28 00:19:43 +02:00
Yao Wei Tjong 姚伟忠
510f7e31df Add new CMake module to detect PulseAudio development library.
[ccache clear] [ci only: RPI]
2015-11-27 01:17:29 +08:00
Yao Wei Tjong 姚伟忠
32fb97b5c9 Avoid SDL dependency when building mini Urho for PackageTool target.
[skip appveyor] [ci only: Emscripten]
2015-11-26 19:56:13 +08:00
Xavier Maupeu
362242bd3b update script API for ShadowQuality 2015-11-26 11:27:20 +01:00
Xavier Maupeu
4e41906157 first modifications in order to integrate VSM shadow 2015-11-26 10:13:27 +01:00
urho3d-travis-ci
1a1ccb0b65 Travis CI: API documentation update at 2015-11-26 08:00:16 UTC.
[ci package]

Commit: 29e62526eb

Message: Added event for sound playback finished. Deprecate SoundSource::SetAutoRemove() and change samples + NinjaSnowWar to not use it. Fix network replication of SoundSource to work with repeated playback on the same source.
2015-11-26 08:00:17 +00:00
Lasse Öörni
29e62526eb Added event for sound playback finished. Deprecate SoundSource::SetAutoRemove() and change samples + NinjaSnowWar to not use it. Fix network replication of SoundSource to work with repeated playback on the same source. 2015-11-25 22:50:19 +02:00
Yao Wei Tjong 姚伟忠
86037b99dc Quick fix for RPI cross-compiling build on a host with PulseAudio. 2015-11-25 00:15:37 +08:00
Lasse Öörni
7094817a2d Further fix for Quaternion VS2010 crash issue. 2015-11-24 17:55:31 +02:00
Jukka Jylänki
811712e141 Work around VS2010 compiler bug with SSE and copy construction/assignment misalignment. Closes #1044. 2015-11-24 17:29:16 +02:00
Jukka Jylänki
04dbf71e71 Work around bug #1053 (https://connect.microsoft.com/VisualStudio/feedback/details/2053175) by replacing the SSE1 specific _mm_ucomige_ss() with SSE2 specific _mm_cvtsi128_si32(_mm_castps_si128(c)) == -1. Given that URHO3D_SSE is targeting SSE2, this workaround has no drawbacks. Closes #1053. 2015-11-24 15:22:59 +02:00
Lasse Öörni
eb9c04fcac Make sure ScreenToWorldPoint() correctly returns points on a plane with the specified distance (Z). 2015-11-23 14:42:25 +02:00
Yao Wei Tjong 姚伟忠
371a49afb0 Escape dollar sign in the custom commands. Pardon our dust.
[skip appveyor] [ci only: OSX] [ci package]
2015-11-23 13:43:35 +08:00
Yao Wei Tjong 姚伟忠
974867cc42 For Travis CI - another attempt to remove Android SDK before packaging.
Fix a typo in custom commands for Urho3D universal build target.

[ci package] [ci only: Android, OSX] [skip appveyor]
2015-11-23 13:07:54 +08:00
Yao Wei Tjong 姚伟忠
2d39e2823e Simplify "logic" for 'Urho3D_universal' custom target.
For Travis CI - adjust heuristic rule for cutting of iOS universal binary build.
For Travis CI - clean up the Android SDK before performing the packaging for Android build.

(Test quotation marks escape in commit message)
[ci only: Android, OSX] [skip appveyor] [ci package]
2015-11-23 11:58:18 +08:00
Yao Wei Tjong 姚伟忠
90edf01c7c For Travis CI - avoid CMake 3.4 to fix #1043.
Another attempt to fix Android Intel Atom CI builds.

[skip appveyor] [ci package] [ci only: OSX, Android]
2015-11-22 16:47:38 +08:00
Yao Wei Tjong 姚伟忠
d4929af473 For Travis CI - attempt to fix Android Intel Atom CI builds.
Alter the debug print for troubleshooting iOS CI builds.
[ci package] [skip appveyor] [ci only: Android, OSX]
2015-11-22 12:01:27 +08:00
Yao Wei Tjong 姚伟忠
59fedbda58 Fix the setup of Urho3D_universal custom target on iOS build.
[ci package]
2015-11-22 09:50:41 +08:00
Yao Wei Tjong 姚伟忠
688f1f4892 For Travis CI - add debug print for iOS build. 2015-11-22 09:48:43 +08:00
Yao Wei Tjong 姚伟忠
8296370cf3 Only check for pkg-config when targeting Linux platform. 2015-11-22 09:48:43 +08:00
Lasse Öörni
ed99f4094c Make sure Application.h is usable without any other include files. Closes #1051. 2015-11-21 13:50:12 +02:00
urho3d-travis-ci
b9e939a3e8 Travis CI: API documentation update at 2015-11-17 20:46:15 UTC.
[ci package]

Commit: c614a5d321

Message: Retain node's Z position when applying 2D physics transform. Code cleanup. Closes #1045.
2015-11-17 20:46:15 +00:00
Lasse Öörni
c614a5d321 Retain node's Z position when applying 2D physics transform. Code cleanup. Closes #1045. 2015-11-17 22:38:00 +02:00
ninjastone
25433e2b5e Merge branch 'master' of https://github.com/urho3d/Urho3D into uiscale 2015-11-17 22:11:53 +09:00
ninjastone
f0532d5d61 Add script bindings to UI scaling functions.
Fix UI elements getting clipped when scaling down.
2015-11-17 22:08:32 +09:00
Lasse Öörni
e4b5140cab Eliminate KNET_UNIX define from kNet build and consequently from Urho3D client programs. 2015-11-16 14:31:05 +02:00
Lasse Öörni
a47c72aa4b Use _WIN32 define in kNet. 2015-11-16 14:31:04 +02:00
Lasse Öörni
c1893c7c51 CMakeLists formatting. 2015-11-16 14:31:03 +02:00
Jordan Patterson
bc917769d1 Build SDL with PulseAudio if available 2015-11-16 14:31:01 +02:00
Lasse Öörni
52af7a6bb8 Remove threading from Octree raycasts to prevent worker thread spin-up time and possible threading related crashes in case there are thread-unsafe custom drawable classes. 2015-11-16 11:31:23 +02:00
Lasse Öörni
1f0fc3de93 Added missing DelayedStart() functionality to LuaScriptInstance. 2015-11-16 11:20:51 +02:00
Lasse Öörni
594b91ba19 Add TryAcquire() to Mutex. Closes #1038. 2015-11-13 20:33:24 +02:00
Lasse Öörni
a51d8d0657 Merge remote-tracking branch 'evolarium/xrandr' 2015-11-13 20:11:52 +02:00
Lasse Öörni
19517e8aa4 Move empty Texture::SetShadowCompare() in D3D9 code to .cpp file to prevent warnings in client programs. 2015-11-13 17:03:43 +02:00
Lasse Öörni
c1cc27c888 Include the dummy floats in BoundingBox regardless of URHO3D_SSE to prevent ABI incompatibility if URHO3D_SSE has different value in the client application. 2015-11-13 17:03:10 +02:00
Lasse Öörni
99d93393d1 Prevent losing input focus when using an external window, as the window flags are not reliable in that case. 2015-11-13 11:08:23 +02:00
Lasse Öörni
973a6fa807 Use _WIN32 consistently in Urho3D engine code. Simplify some preprocessor conditionals. Closes #1036. 2015-11-13 10:53:36 +02:00
Jordan Patterson
d01b7315ab Backport XRandR and memory leak fix
https://hg.libsdl.org/SDL/rev/d3fa6d0d3793
https://hg.libsdl.org/SDL/rev/5fa8cf552d05
2015-11-11 18:06:59 -07:00
Lasse Öörni
e4b6749880 Convert primitive type to point list regardless of draw call specified primitive type to emulate point fill mode on D3D11. Closes #1028. 2015-11-11 16:19:59 +02:00
aster2013
a003f68be6 Add distance to 2D, now 2D object first sort with distance from camera, then use draw order. #1003 2015-11-10 21:28:22 +08:00
Lasse Öörni
e55d989475 Zero-initialize Drawable's local bounding box to make sure it doesn't contain infinities if the Drawable subclass never defines it. Closes #1027. 2015-11-10 11:36:38 +02:00
urho3d-travis-ci
0cb8d93d33 Travis CI: API documentation update at 2015-11-09 10:04:59 UTC.
[ci package]

Commit: 28acbf12b0

Message: Update changelog.
2015-11-09 10:04:59 +00:00
Lasse Öörni
6b919a8fd4 Merge remote-tracking branch 'jsandusky/TileCacheLayers' 2015-11-09 10:54:29 +02:00
JSandusky
003aedb298 Add configuration of maximum layers in DynamicNavigationMesh
- Valid range of 3 - 255
- Angelscript + Lua bindings
- Layer maximum changes only effects nav mesh build and does not trigger
a build
2015-11-08 19:15:56 -05:00
JSandusky
0994584506 Add protected check to script variable population 2015-11-08 14:05:18 -05:00
Lasse Öörni
96c14871db Fix ambiguous call on VS2010. 2015-11-08 16:02:14 +02:00
urho3d-travis-ci
38ba5f8557 Travis CI: API documentation update at 2015-11-08 13:01:48 UTC.
[ci package]

Commit: 0a88fdbc21

Message: Remove workaround fix for resource prefix path in Urho3DPlayer too.
[ccache clear]
2015-11-08 13:01:48 +00:00
Yao Wei Tjong 姚伟忠
0a88fdbc21 Remove workaround fix for resource prefix path in Urho3DPlayer too.
[ccache clear]
2015-11-08 20:34:04 +08:00
Lasse Öörni
8463b48e96 Remove SplitMode enum in favor of a bool to simplify script binding. Reverse the default behavior to not return empty strings to ensure correctness of existing code. Fix resource prefix path list to not require a space. Fix ResourceRefList deserialization. Closes #1014. 2015-11-08 14:14:46 +02:00
Colin Barrett
d83f9d0a41 New String::Split implementation; keeps empty splits by default, optionally omit-able using splitMode parameter 2015-11-07 13:00:50 +00:00
Lasse Öörni
73d7db3342 Added inaccurate (source file size) memory use reporting to ParticleEffect & ParticleEffect2D, to avoid it being zero. 2015-11-06 12:35:42 +02:00
yushli
1f8db177e7 Update AnimationSet2D.cpp
set memory usage when loading spine animation data
2015-11-06 10:17:10 +08:00
Lasse Öörni
c8eb116df9 Do not reset input state on subsequent screen mode changes, to allow key-ups / mouse-ups to happen naturally. Closes #1012. 2015-11-05 14:30:14 +02:00
Lasse Öörni
898f730d9b Let go of drag UI elements when mouse button is released, even if the cursor is hidden. Closes #1010. 2015-11-04 20:51:36 +02:00
Yao Wei Tjong 姚伟忠
587344af8a Minor cleanup to simplify the override condition for sample code. 2015-11-04 22:26:36 +08:00
Lasse Öörni
0a3e487a9e Log warnings when illegal attribute registration or base type attributes copying is attempted. 2015-11-04 14:43:03 +02:00
Lasse Öörni
77e6703b15 Detect attempt to copy a base class's attributes onto itself, and early-exit in that case. 2015-11-04 13:50:12 +02:00
Yao Wei Tjong 姚伟忠
f47c04dcee Minor fix on code comment. [ci skip] 2015-11-04 00:16:27 +08:00
Yao Wei Tjong 姚伟忠
8c8e2a97b5 Allow -pp and URHO3D_PREFIX_PATH to override the sample default paths.
This is useful for user to try out the apps with alternate asset directories.
2015-11-04 00:06:34 +08:00
Lasse Öörni
4c65b77999 Fix Spine animation update threadsafety. Fix typos & whitespace. Closes #1005. 2015-11-03 17:48:43 +02:00
Lasse Öörni
bdded7a4f7 Position 2D particles correctly on the Z axis. Closes #1007. 2015-11-03 14:36:06 +02:00
Lasse Öörni
d731b218f1 When allocating a spritesheet dynamically, leave 1 pixel empty row/column inbetween to avoid errors at the edges of sprites. Set the whole texture data at once. 2015-11-03 13:51:25 +02:00
Yao Wei Tjong 姚伟忠
4f1722f223 Fix RPATH for tools built with Shared Urho3D library type. 2015-11-03 17:57:50 +08:00
Yao Wei Tjong 姚伟忠
22bd3de807 Refactor resource prefix path parameter to accept a list of paths.
Close #1000.
2015-11-03 17:46:56 +08:00
JSandusky
500d59c032 Use Urho3D M_INT_MAX instead of INT_MAX in OBJ export 2015-11-02 16:11:24 -05:00
JSandusky
056f1a391a Fix handling of indices in OBJ export 2015-11-02 15:49:31 -05:00
Lasse Öörni
af985e0df1 Alternative O key to create obstacles in the navigation demos. Closes #995. 2015-10-31 22:01:04 +02:00
Lasse Öörni
12bac51e78 Use freopen() instead of low level API calls to redirect stdin & stdout to opened console window to fix crash on 64bit build. Closes #999. 2015-10-31 18:07:19 +02:00
Yao Wei Tjong 姚伟忠
95580f6ba0 For Appveyor - first attempt to enable 32-bit CI jobs on Windows host. 2015-10-31 23:13:19 +08:00
Lasse Öörni
385493f39a Explain that touch input is needed for multiple dragging. Closes #997. 2015-10-31 16:48:25 +02:00
Yao Wei Tjong 姚伟忠
c0d8415ae8 Fix the spawn button label in CrowdNavigation demo.
[ci skip]
2015-10-31 14:41:26 +08:00
Yao Wei Tjong 姚伟忠
deaa23a140 Ensure SIMD code path is being used when BT_USE_SSE is on.
Related to ommit dabfcff14e.
2015-10-30 13:18:29 +08:00
Yao Wei Tjong 姚伟忠
dabfcff14e Enable BT_USE_SSE on Windows platform using MinGW compiler toolchain. 2015-10-29 23:30:15 +08:00
Lasse Öörni
94a7f4ef63 Make UI element layouting not modify the user assigned minSize. Instead keep record of the min.size required by layout separately. Fix HelloGUI sample to the new behavior. Closes #955. 2015-10-29 17:22:53 +02:00
Yao Wei Tjong 姚伟忠
d31fbf2f45 Fix LuaJIT SSE2 detection on 32-bit MSVC build. 2015-10-29 21:49:34 +08:00
Yao Wei Tjong 姚伟忠
2e4a076e5e Fix LuaJIT SSE2 detection on 32-bit MinGW build. 2015-10-29 19:48:07 +08:00
urho3d-travis-ci
fb7f622858 Travis CI: API documentation update at 2015-10-29 10:53:03 UTC.
[ci package]

Commit: d4a5b74cc5

Message: Also add updateEnabled to PhysicsWorld. Make Scene, PhysicsWorld and PhysicsWorld2D behave in the same way: when auto update is disabled, manual stepping can still be performed. Rewrite some comments for clarity.
2015-10-29 10:53:03 +00:00
Lasse Öörni
d4a5b74cc5 Also add updateEnabled to PhysicsWorld. Make Scene, PhysicsWorld and PhysicsWorld2D behave in the same way: when auto update is disabled, manual stepping can still be performed. Rewrite some comments for clarity. 2015-10-29 12:43:53 +02:00
cosmy1
3cb48a64a6 Minor whitespace edit 2015-10-29 11:46:16 +02:00
cosmy
04996445cc Add function to control 2D physics update 2015-10-29 11:45:57 +02:00
Lasse Öörni
00410aabd8 Move ParticleEffect::GetEffect() into the .cpp implementation, as it uses shared pointer access. 2015-10-29 11:34:16 +02:00
Yao Wei Tjong 姚伟忠
fa82c55efd Suppress warnings on MinGW build. 2015-10-29 11:24:03 +08:00
Lasse Öörni
239ab98315 Omit static keyword from kNet's custom debug memory allocation functions to allow compilation on VS2015 Update 1. 2015-10-28 20:16:23 +02:00
Yao Wei Tjong 姚伟忠
db5cb36057 Remove the quick fix now that the ABI is correctly detected for MinGW.
Related to #872 and commit 6ca3bdbb1c.
2015-10-28 19:15:59 +08:00
urho3d-travis-ci
5270af7bb1 Travis CI: API documentation update at 2015-10-28 08:30:46 UTC.
[ci package]

Commit: 416da06b74

Message: Merge pull request #989 from newbthenewbd/master

Fix Android MIPS build
2015-10-28 08:30:46 +00:00
Newb I the Newbd
dd2494cb33 Fix Android MIPS build. 2015-10-28 03:07:45 +01:00
urho3d-travis-ci
aa60a1aea6 Travis CI: API documentation update at 2015-10-27 22:51:55 UTC.
[ci package]

Commit: eff2c913e8

Message: Remove defined_ bool from Rect & Sphere. Closes #986.
2015-10-27 22:51:55 +00:00
Lasse Öörni
eff2c913e8 Remove defined_ bool from Rect & Sphere. Closes #986. 2015-10-28 00:40:20 +02:00
Lasse Öörni
608183ba22 Reset HashMap & HashSet bucket pointers when beginning clear. As ResourceCache may not be returned during exit phase, add nullchecks to ScriptFile & Shader. Should help with #988. 2015-10-27 15:00:04 +02:00
Lasse Öörni
812e019d03 Minor whitespace edit. 2015-10-27 11:20:50 +02:00
cosmy1
c8fb90898f Trigger double-click event over no element
Since E_UIMOUSECLICK is triggered also over no element most people want the same effect with E_UIMOUSEDOUBLECLICK
2015-10-26 15:08:33 +01:00
Lasse Öörni
1b7e1fdf5c Simplify code and use static cast since the type is checked beforehand. Allow to create CollisionChain2D from editor. 2015-10-26 11:19:11 +02:00
cosmy1
444695f2a6 Check vertices count
Check vertices count for chain shape collision before creating fixture.
2015-10-26 10:49:48 +02:00
urho3d-travis-ci
55d97b1ba9 Travis CI: API documentation update at 2015-10-25 19:13:43 UTC.
[ci package]

Commit: 13bc777ab6

Message: Fix using old attribute name in the editor. Closes #979.
2015-10-25 19:13:43 +00:00
Lasse Öörni
60d946eb64 Option to enable threaded occlusion rendering. May actually result in worse performance, so disabled by default. Report number of rendered occluders accurately (taking into account occluders rejected by being occluded themselves, or by running out of triangles.) Closes #970. 2015-10-25 20:53:25 +02:00
Lasse Öörni
9661f33f01 Fix uninitialized variables in ParticleEmitter. Closes #981. 2015-10-25 20:44:05 +02:00
ninjastone
4daf7fd3f0 Added rendering scale to UI 2015-10-26 01:35:44 +09:00
Yao Wei Tjong 姚伟忠
d7bc2d6a0d Move GetFileSizeString() to StringUtils. 2015-10-24 10:34:04 +08:00
Lasse Öörni
ae52d8ce45 Fix logging in Engine.cpp. 2015-10-23 22:31:54 +03:00
Lasse Öörni
b616aa6272 Merge remote-tracking branch '1vanK/master'
Conflicts:
	Source/Urho3D/Engine/DebugHud.cpp
	Source/Urho3D/Engine/Engine.cpp
2015-10-23 22:27:39 +03:00
urho3d-travis-ci
92e976eb0f Travis CI: API documentation update at 2015-10-23 11:53:15 UTC.
[ci package]

Commit: 6f60ee7f48

Message: Print memory use for all resources in ResourceCache::PrintMemoryUsage(). Change memory budget & use API to use unsigned long long (64bit). Expose GetFileSizeString() to script. Refactor Engine to use PrintMemoryUsage(). Match width of profiler and resource outputs. Rename Profiler::GetData() to Profiler::PrintData() to match the new ResourceCache function.
2015-10-23 11:53:15 +00:00
Lasse Öörni
6f60ee7f48 Print memory use for all resources in ResourceCache::PrintMemoryUsage(). Change memory budget & use API to use unsigned long long (64bit). Expose GetFileSizeString() to script. Refactor Engine to use PrintMemoryUsage(). Match width of profiler and resource outputs. Rename Profiler::GetData() to Profiler::PrintData() to match the new ResourceCache function. 2015-10-23 14:12:13 +03:00
Lasse Öörni
19027b4ae4 Merge remote-tracking branch 'JSandusky/MemoryReporting' 2015-10-23 11:55:20 +03:00
urho3d-travis-ci
d3e5abb45f Travis CI: API documentation update at 2015-10-23 07:07:21 UTC.
[ci package]

Commit: 83d0f9a23c

Message: Add Z-up and handedness options to OBJ export
2015-10-23 07:07:21 +00:00
JSandusky
83d0f9a23c Add Z-up and handedness options to OBJ export 2015-10-22 22:44:28 -04:00
JSandusky
379a80f3f5 Remove ambiguity from ResourceCache mem use printing of lines 2015-10-22 20:06:14 -04:00
JSandusky
8e39692ef3 Show "Memory usage" DebugHud in all samples (F3 key) 2015-10-22 19:49:49 -04:00
JSandusky
44aac796fb Add resource memory usage display to DebugHud 2015-10-22 19:49:14 -04:00
Ivan K
4532a3a72e LOGRAWF -> URHO3D_LOGRAWF 2015-10-23 00:34:01 +04:00
Ivan K
4b015f3c51 LOGERRORF -> URHO3D_LOGERRORF 2015-10-23 00:32:06 +04:00
Ivan K
bfe60520bd LOGWARNINGF -> URHO3D_LOGWARNINGF 2015-10-23 00:29:24 +04:00
Ivan K
f3de678cfd LOGINFOF -> URHO3D_LOGINFOF 2015-10-23 00:28:05 +04:00
Ivan K
c9a77c8d56 LOGDEBUGF -> URHO3D_LOGDEBUGF 2015-10-23 00:26:04 +04:00
Ivan K
ecafb47f73 LOGRAW -> URHO3D_LOGRAW 2015-10-23 00:20:52 +04:00
Ivan K
ad2eb74d83 LOGERROR -> URHO3D_LOGERROR 2015-10-23 00:17:49 +04:00
Ivan K
3a7e7f058e LOGWARNING -> URHO3D_LOGWARNING 2015-10-23 00:06:38 +04:00
Ivan K
d53fc4b94b LOGINFO -> URHO3D_LOGINFO 2015-10-22 23:59:47 +04:00
Ivan K
0c3f67abfe LOGDEBUG -> URHO3D_LOGDEBUG 2015-10-22 23:53:15 +04:00
Ivan K
ec17b8f73d IS_ASSET -> URHO3D_IS_ASSET 2015-10-22 23:44:39 +04:00
Ivan K
d78219d014 ASSET -> URHO3D_ASSET 2015-10-22 23:41:04 +04:00
Lasse Öörni
48c600711a Fix wrong boolean check for determining what viewport read/write operations are used by the renderpath. Closes #974. 2015-10-22 12:22:59 +03:00
Lasse Öörni
7fc377b546 Make Text3D refresh the text batches (triggering font face reload) if the font texture(s) have data lost. Closes #967. 2015-10-22 00:44:54 +03:00
Lasse Öörni
c810f9908f DLL export specializations of the Swap function. 2015-10-21 23:00:05 +03:00
Ivan K
db15f0358e PROFILE -> URHO3D_PROFILE 2015-10-21 23:46:50 +04:00
Ivan K
31f3c9ab65 DEFINE_APPLICATION_MAIN -> URHO3D_DEFINE_APPLICATION_MAIN 2015-10-21 23:08:28 +04:00
Ivan K
a976309138 DEFINE_MAIN -> URHO3D_DEFINE_MAIN 2015-10-21 22:59:09 +04:00
Ivan K
fe05d4b16c UPDATE_ATTRIBUTE_DEFAULT_VALUE -> URHO3D_UPDATE_ATTRIBUTE_DEFAULT_VALUE 2015-10-21 22:50:08 +04:00
Ivan K
3959d569fa MIXED_ACCESSOR_ATTRIBUTE -> URHO3D_MIXED_ACCESSOR_ATTRIBUTE 2015-10-21 22:45:13 +04:00
Ivan K
83b811b7e8 ENUM_ACCESSOR_ATTRIBUTE -> URHO3D_ENUM_ACCESSOR_ATTRIBUTE 2015-10-21 22:39:49 +04:00
Ivan K
212f419026 ACCESSOR_ATTRIBUTE -> URHO3D_ACCESSOR_ATTRIBUTE 2015-10-21 22:32:36 +04:00
Ivan K
14b1669735 ENUM_ATTRIBUTE -> URHO3D_ENUM_ATTRIBUTE 2015-10-21 22:18:12 +04:00
Ivan K
431e29d2cd ATTRIBUTE -> URHO3D_ATTRIBUTE 2015-10-21 22:14:03 +04:00
Ivan K
8b351bcf01 REMOVE_ATTRIBUTE -> URHO3D_REMOVE_ATTRIBUTE 2015-10-21 22:08:33 +04:00
Ivan K
82b9a034a2 COPY_BASE_ATTRIBUTES -> URHO3D_COPY_BASE_ATTRIBUTES 2015-10-21 22:05:52 +04:00
Ivan K
4bcbae61fe HANDLER -> URHO3D_HANDLER 2015-10-21 21:49:02 +04:00
Ivan K
f954325243 HANDLER_USERDATA -> URHO3D_HANDLER_USERDATA 2015-10-21 21:39:04 +04:00
Ivan K
974ae9d4bb fix ScriptAPIDump.cpp 2015-10-21 21:33:28 +04:00
Ivan K
6abe6b66c0 PARAM -> URHO3D_PARAM 2015-10-21 21:28:02 +04:00
Ivan K
6b54578bc5 EVENT -> URHO3D_EVENT 2015-10-21 20:43:05 +04:00
Lasse Öörni
24ac93600e Go through all vertices of the StaticSprite2D to update its bounding box. Closes #972. 2015-10-21 11:32:09 +03:00
Ivan K
f02cd63437 OBJECT -> URHO3D_OBJECT 2015-10-21 11:12:45 +04:00
Lasse Öörni
1d4e379dea Implement proper rounding in the fixed point to integer conversion (>> 6). Fixes #968. 2015-10-20 16:15:02 +03:00
urho3d-travis-ci
246aaf703f Travis CI: API documentation update at 2015-10-20 10:46:03 UTC.
[ci package]

Commit: 9469ef1a67

Message: Merge remote-tracking branch 'JSandusky/DetourCrowdLocalSpace'
2015-10-20 10:46:03 +00:00
Lasse Öörni
9469ef1a67 Merge remote-tracking branch 'JSandusky/DetourCrowdLocalSpace' 2015-10-20 12:26:34 +03:00
Lasse Öörni
52a9c9853a Merge pull request #962 from ijsonlin/hotfix
fixed the wrong behavior of spriter animation
2015-10-19 21:49:29 +03:00
JSandusky
77942c4f1a Make obstacle seek up through ALL parents to find mesh 2015-10-19 14:48:05 -04:00
Lasse Öörni
5395082c36 To match Bullet's own behavior when debug rendering the whole physics world, also draw disabled constraints. Closes #964. 2015-10-19 17:49:21 +03:00
Yao Wei Tjong 姚伟忠
d7eee3b134 Only update the toluabind.c back to source tree when it is opted. 2015-10-19 16:12:57 +08:00
JSandusky
8df17a41ee Bind GetParentComponent to angelscript and lua
- Fix issues encountered in testing Node::GetParentComponent
2015-10-18 22:48:07 -04:00
JSandusky
9c90ac913d Make obstacle seek upwards to find DynamicNavigationMesh
- Also reset ownerMesh on scene change to null to facilitate transfer
between scenes
2015-10-18 22:31:41 -04:00
JSandusky
b5af4fcf96 Addition of "GetParentComponent" methods for seeking components up the scene tree 2015-10-18 22:19:24 -04:00
Jukka Jylänki
cd48b1fcb8 Manually optimize Quaternion construction from __m128 to avoid bad codegen from Visual Studio 2015. 2015-10-19 03:09:58 +03:00
Jukka Jylänki
984e52dbea Use slower but precise SSE mathematics for Quaternion operations. Closes #959. 2015-10-19 03:08:43 +03:00
aster2013
466c2f73a4 Remove unused OnFlipChanged, Move OnWorldBoundingBoxUpdate to StaticSprite2D. 2015-10-18 21:03:35 +08:00
aster2013
7aa6b9d6e0 Fix issue #963 2015-10-18 20:24:01 +08:00
Hualin Song
c4edf6d327 fixed wrong attribute name for spriter scml file
Recently versions of the Spriter use the attribute name "object_type" instead of "type"
2015-10-17 17:20:36 +08:00
Hualin Song
c35e4283e0 Correct the values of SpriteInfo x and y
When we has only one texture in the scml file, we will get wrong x and y values of SpriteInfo, and then the code in line 490 would cause invalid rectangle area.
2015-10-17 17:14:40 +08:00
Hualin Song
da3848716c Correct the frameWidth and frameHeight
We will get wrong values of frameWidth and frameHeight sometimes when we run SpritePacker without the option "-trim".
2015-10-17 17:10:42 +08:00
Yao Wei Tjong 姚伟忠
e03965fbbf Mark local changes in Bullet source files for NEON support on Android. 2015-10-17 10:54:15 +08:00
Lasse Öörni
e95542e9d6 Fix missing export specifier in HttpRequest. Closes #957. 2015-10-16 16:44:15 +03:00
Jukka Jylänki
e28a678914 Optimize away some uses of _MM_TRANSPOSE4_PS(), to remove two shuffles, two movs and replace shufps with the lighter movehl/lh and unpacks. Also do vector loads and stores manually in BoundingBox::Transformed() to avoid VS2015 from generating dirty asm code for the function. This has a few percent improvement on the heavy BoundingBox::Transformed() function call. 2015-10-16 13:21:33 +03:00
Yao Wei Tjong 姚伟忠
8a447c7eda Enable BT_USE_SSE on Linux platform & BT_USE_NEON on Android platform.
Add new build option URHO3D_NEON to enable/disable NEON code branch.
Fix a bug where previously URHO3D_SSE was also erroneously being used to switch off BT_USE_NEON on iOS.
Add new build option URHO3D_DEPLOYMENT_TARGET to set the GCC/Clang target arch (-march compiler flag). Default value is 'native'. Setting this to any cpu type higher than Pentium 4 may influence the effective SSE level being used in the build. The BulletPhysics library may switch to use higher level SSE as the result, for instance.
2015-10-16 16:32:28 +08:00
urho3d-travis-ci
1abd059b66 Travis CI: API documentation update at 2015-10-15 22:50:43 UTC.
[ci package]

Commit: 9bd1a02655

Message: Copy the nostencil flag correctly from the source view.
2015-10-15 22:50:43 +00:00
Lasse Öörni
9bd1a02655 Copy the nostencil flag correctly from the source view. 2015-10-16 01:30:23 +03:00
Lasse Öörni
bd3efa69c1 Remove code duplication from render stats gathering. 2015-10-16 01:15:04 +03:00
Lasse Öörni
5161060d5b Allow to define a culling camera for Viewport. When defined, multiple views can share the same culling and other view preparations, reducing CPU use. 2015-10-16 01:11:22 +03:00
Lasse Öörni
d66e8787e3 Only find AnimationController states using the animation's resource name (instead of user-supplied) to avoid potential ambiguous/unsanitated resource names leading to creation of duplicate animation states. 2015-10-14 11:24:53 +03:00
urho3d-travis-ci
58df09ae95 Travis CI: API documentation update at 2015-10-13 14:38:40 UTC.
[ci package]

Commit: 42ac49d933

Message: Merge remote-tracking branch 'juj/no_boundingbox_bool'
2015-10-13 14:38:40 +00:00
Lasse Öörni
42ac49d933 Merge remote-tracking branch 'juj/no_boundingbox_bool' 2015-10-13 16:13:58 +03:00
Lasse Öörni
563c4cc2d6 Merge remote-tracking branch 'juj/sse_opt_quat' 2015-10-13 16:13:46 +03:00
Lasse Öörni
222cb27a74 Add URHO3D_API specifier to SourceBatch struct. 2015-10-13 14:17:43 +03:00
Jukka Jylänki
fbd07ac39c Remove BoundingBox::defined_ boolean and instead have min = INF and max = -INF denote the case when a bounding box is degenerate. This helps reduce branching and SSE'ifying BoundingBox. SSE optimize some hot BoundingBox functions. 2015-10-13 13:58:04 +03:00
Jukka Jylänki
a44466c150 SSE optimize Quaternion.h. 2015-10-13 13:52:48 +03:00
Lasse Öörni
af5a14c3d9 Mark potentially dangerous math class constructors explicit. Closes #947. 2015-10-13 11:18:12 +03:00
Jukka Jylänki
fd6a6e9336 SSE optimize Quaternion multiplication. 2015-10-12 20:45:38 +03:00
Jukka Jylänki
86e86bcd30 SSE optimize BoundingBox::Transformed(). 2015-10-12 20:45:38 +03:00
Jukka Jylänki
4ffff7ab4c SSE optimize Matrix3x4 construction from translation, rotation and scale. 2015-10-12 20:45:37 +03:00
Lasse Öörni
173080cbc8 Make bounding box undefined if it was clipped to be degenerate. Closes #944. 2015-10-12 12:10:45 +03:00
Lasse Öörni
52805e2709 Merge remote-tracking branch 'juj/sse_matrix_math' 2015-10-12 11:49:14 +03:00
Lasse Öörni
3988f8873e Merge remote-tracking branch 'juj/unsynchronized_jacks' 2015-10-12 11:44:26 +03:00
Yao Wei Tjong 姚伟忠
d45c85302b Rectify wrong object registration.
[ci skip]
2015-10-12 15:37:38 +08:00
aster2013
b7ee2575d7 Convert tab to spaces, [ci skip] 2015-10-12 13:59:54 +08:00
aster2013
27184504c9 Reset slots to setup pose, fix issue #932. 2015-10-12 13:40:47 +08:00
urho3d-travis-ci
7af9276249 Travis CI: API documentation update at 2015-10-12 04:35:21 UTC.
[ci package]

Commit: 96917c5412

Message: Minor Fix, Thanks @weitjong
2015-10-12 04:35:21 +00:00
aster2013
96917c5412 Minor Fix, Thanks @weitjong 2015-10-12 11:42:16 +08:00
aster2013
a1105f7d38 Minor refactor, add comment to type info. 2015-10-12 10:31:38 +08:00
Jukka Jylänki
bf9111b862 Make Jacks not walk in synchronized lockstep timing in 06_SkeletalAnimation sample. 2015-10-11 19:05:51 +03:00
aster2013
3a948899a7 Add type info, remove BASEOBJECT macro, now user can use type info check object type. for example:
Button::IsTypeOf<UIElement>() is ture, Button::IsTypeOf<BorderImage>() is ture, Button::IsTypeOf<CheckBox>() is false.
2015-10-11 23:26:29 +08:00
aster2013
6bd1d77634 Add baseTypeName argument to OBJECT macro. 2015-10-11 22:17:55 +08:00
Jukka Jylänki
3ac2cb6e37 Avoid depending on 64-bit only function _mm_cvtsi128_si64() in Matrix operator == to allow targeting 32-bit as well. 2015-10-11 01:07:01 +03:00
Lasse Öörni
af7ed744f0 URHO3D_THREADING build option. Closes #939. 2015-10-10 23:17:03 +03:00
Jukka Jylänki
0107a0bf75 SSE optimize Urho3D/Math/Matrix3x4.h and Urho3D/Math/Matrix4.h. These yield a ~3% improvement in 06_SkeletalAnimation sample with 2000 Jacks in it. 2015-10-10 21:20:29 +03:00
Lasse Öörni
da81b99ca3 Do not return a resolution list containing 1x1 on Emscripten, rather return empty. Do not check fullscreen mode validity if the resolution list is empty. 2015-10-10 19:29:28 +03:00
Lasse Öörni
e6e16b90ed Minor code formatting. Document that we have returned to the old behavior of not notifying dirty node transform if it was already dirty before, and users of the TransformChanged() function should read the node's world transform to ensure continued notifications. 2015-10-10 14:42:29 +03:00
Jukka Jylänki
d168ab9d91 Optimize Node::MarkDirty() implementation by a) relying on the invariant that all children of a dirty node must also be dirty, and that all parents of a clean node must also be clean, b) avoid double-dereferencing Component WeakPtr in listeners, c) use the swap-with-last erase trick to avoid O(n^2) behavior in removing listeners, and d) perform tail call optimization to avoid excessive recursive function calls when marking children dirty. This optimizes the Node::MarkDirty() time in 06_SkeletalAnimation scene with 2000 Jacks from 42.73% down to 16.43%, a net saving of -61.5% less time spent in that call site. Closes #931. 2015-10-10 14:42:28 +03:00
Yao Wei Tjong 姚伟忠
fde2ad45ac Fix Android and Raspberry-Pi build by always disabling SSE support.
[ci only: RPI, Android]
2015-10-10 17:49:29 +08:00
Yao Wei Tjong 姚伟忠
d05226e448 Only include object/bitcode files when archiving the hard way on Win.
Fix #937.
[ci only: master, Emscripten]
2015-10-10 12:12:34 +08:00
urho3d-travis-ci
2d80a25394 Travis CI: API documentation update at 2015-10-09 22:24:01 UTC.
[ci package]

Commit: 4bdd80775b

Message: Add accelerator keys for reset pos/rot/scale also in editor standard mode. Add reset transform function (Alt-Q).
2015-10-09 22:24:01 +00:00
Lasse Öörni
0e8aafbbb6 Make the Slerp approximation conditional of Emscripten platform to preserve consistency with rest of the math operations. 2015-10-09 23:24:04 +03:00
Lasse Öörni
7287e02278 Expose Node::MarkDirty() to AngelScript for consistency. 2015-10-09 23:12:30 +03:00
Lasse Öörni
f9de34e994 Code formatting. 2015-10-09 22:34:11 +03:00
Lasse Öörni
ed633009c2 Merge remote-tracking branch 'juj/approx_quat_slerp' 2015-10-09 22:29:22 +03:00
Lasse Öörni
e82708d0e0 Merge remote-tracking branch 'juj/ANGLE_instanced_arrays' 2015-10-09 22:29:12 +03:00
Lasse Öörni
b9d753171f Merge remote-tracking branch 'juj/sse_matrix' 2015-10-09 22:28:56 +03:00
Jukka Jylänki
52ef3e92eb Optimize Quaternion::Slerp() to remove the costly trigonometric functions and replace them by approximations instead. The approximations have been profiled to generate a maximum interpolation error of 0.38 degrees (see test Quat_Slerp_precision in MathGeoLib). In native 64bit Windows 8.1 VS2015 builds, testing in 06_SkeletalAnimation sample with 2000 Jacks, the time taken in Quaternion::Slerp() is reduced by -17.4%, and in Emscripten build of the same sample running in Firefox 41, the time taken by Quaternion::Slerp() is reduced by -44.7%. Closes #914. 2015-10-09 21:35:34 +03:00
Jukka Jylänki
af8d27e8b4 Use fast and sub-millisecond-precise Emscripten-specific emscripten_get_now() for timer queries instead of gettimeofday(), which is slower and has only millisecond precision. Closes #916. 2015-10-09 21:34:10 +03:00
Jukka Jylänki
e3ce38bb52 Remove code repetition in Source/Urho3D/Core/Timer.cpp. 2015-10-09 21:34:00 +03:00
Jukka Jylänki
3ad9ba306d SSE optimize matrix-matrix multiplications when URHO3D_SSE is enabled. These constitute 7.82% of 06_SkeletalAnimation sample with 2000 Jacks in it. After SSE optimizations applied, matrix multiplication takes only 2.13% of total time in AMD CodeXL profile. This change also seems to have the effect that in scalar version, VS2015 did not dare to inline Matrix3x4 multiplication in AnimatedModel::UpdateSkinning(), but after SSE, the instruction count is small enough that it happily does so. 2015-10-09 20:36:10 +03:00
Jukka Jylänki
fc0d427557 Add support for GPU hardware instancing on Emscripten. In WebGL 1 it is exposed by the ANGLE_instanced_arrays ( https://www.khronos.org/registry/webgl/extensions/ANGLE_instanced_arrays/ ) extension, and in WebGL 2, it is enabled in core. 2015-10-09 18:58:42 +03:00
Lasse Öörni
2cc066d709 Update Bullet to 2.83.6. Thanks to Jukka for the initial work & Emscripten fix. Closes #929. 2015-10-09 16:52:51 +03:00
urho3d-travis-ci
0cefd559a7 Travis CI: API documentation update at 2015-10-08 19:32:15 UTC.
[ci package]

Commit: 7db65a8952

Message: Added possibility to set time position of attribute or object animation manually. SetAnimationEnabled(false) should be used in that case to disable auto update. Closes #926. Added RemoveObjectAnimation() and RemoveAttributeAnimation() to Animatable. Closes #928. Fixed attribute animations in hierarchy (e.g. in components) not getting removed when a null object animation is assigned.
2015-10-08 19:32:15 +00:00
Lasse Öörni
7db65a8952 Added possibility to set time position of attribute or object animation manually. SetAnimationEnabled(false) should be used in that case to disable auto update. Closes #926. Added RemoveObjectAnimation() and RemoveAttributeAnimation() to Animatable. Closes #928. Fixed attribute animations in hierarchy (e.g. in components) not getting removed when a null object animation is assigned. 2015-10-08 22:18:06 +03:00
urho3d-travis-ci
bef4de0bc1 Travis CI: API documentation update at 2015-10-08 12:09:46 UTC.
[ci package]

Commit: 730388c0ce

Message: Fixed SplinePath AngelScript bindings and added documentation for it.
2015-10-08 12:09:46 +00:00
Mike3D
730388c0ce Fixed SplinePath AngelScript bindings and added documentation for it. 2015-10-08 14:00:44 +02:00
aster2013
1ab328db34 Only apply world transform for active and awake rigid body. 2015-10-08 18:10:01 +08:00
aster2013
67a3b10e94 Remove half size offset in D3D mode in Sprite2D::GetDrawRectangle. Fix #927 2015-10-08 13:57:59 +08:00
Lasse Öörni
2a223949aa Optionally move model's initial bone positions to bind pose (-bp argument). 2015-10-06 23:15:37 +03:00
Yao Wei Tjong 姚伟忠
e1341f7261 Replace the usage of Emscripten define and include to follow its norm.
Close #921.
[ci only: Emscripten]
2015-10-06 17:42:15 +08:00
Yao Wei Tjong 姚伟忠
01cae9de6a Switch off the sound support for most of the sample apps by default.
Close #924.
[ci package]
2015-10-06 16:58:02 +08:00
Lasse Öörni
b6ff82571a Remove glEnable & glDisable calls related to GL texture types, as they're not needed with GLSL shaders, which Urho3D uses always. Ensure that SetTextureForUpdate() also correctly unbinds the old texture type if it changes in the unit. Closes #922. 2015-10-06 11:35:46 +03:00
Lasse Öörni
9fcf88eb2c Merge pull request #923 from juj/webgl_etc1_pvrtc
Add support for detecting ETC1 and PVRTC extensions in Emscripten/WebGL.
2015-10-06 10:38:50 +03:00
Yao Wei Tjong 姚伟忠
5961b7f2d6 Always use file symlinks for dummy custom library targets.
So that when in fallback mode, the post-build step will use copy_if_different for each individual file to avoid unnecessary file copying and triggering subsequent dependency to rebuild. Close #913.
2015-10-06 11:40:36 +08:00
Jukka Jylänki
78514da22e Add support for detecting ETC1 and PVRTC extensions in Emscripten/WebGL. 2015-10-05 20:22:15 -07:00
Lasse Öörni
e6416070f2 Force loading of the space glyph even if the font's charcode listing doesn't mention it. 2015-10-05 20:38:53 +03:00
Lasse Öörni
7b9692cbfb Disable frame limiter Sleep() on Emscripten builds. Closes #915. 2015-10-05 19:29:33 +03:00
Lasse Öörni
03ed41ccb7 Store resource dependencies always, so that switching on resource autoreload in the middle of execution will work correctly. Closes #919. 2015-10-05 11:54:37 +03:00
urho3d-travis-ci
ee08479d7a Travis CI: API documentation update at 2015-10-04 15:17:35 UTC.
[ci package]

Commit: 4360c5ed21

Message: Register BorderImage functions to Window in AngelScript API. Closes #912.
2015-10-04 15:17:35 +00:00
Lasse Öörni
4360c5ed21 Register BorderImage functions to Window in AngelScript API. Closes #912. 2015-10-04 18:08:44 +03:00
Yao Wei Tjong 姚伟忠
ff1ee0e4ad Fix the Urho3D DLL installation for targets in external projects. 2015-10-02 14:24:06 +08:00
Yao Wei Tjong 姚伟忠
929c842b57 Copy/Install Urho3D shared library to the runtime dir outside of 'bin'.
Fix doc target dependencies to include other non-generated dox files.
2015-10-01 00:15:26 +08:00
Lasse Öörni
65d36e4db2 Fix crash / null exception in CharacterDemo which would result if the character node did not exist after loading the scene. 2015-09-30 16:34:24 +03:00
urho3d-travis-ci
fcfd76328a Travis CI: API documentation update at 2015-09-29 18:22:02 UTC.
[ci package]

Commit: 315115295b

Message: Fix OBJ output when vertex data has all of pos/uv/normal.
2015-09-29 18:22:02 +00:00
Lasse Öörni
315115295b Fix OBJ output when vertex data has all of pos/uv/normal. 2015-09-29 21:11:04 +03:00
JSandusky
4a16d34367 Implement OBJ export functionality in editor
- Global utility method for writing Drawables to an OBJ in Drawable
- AllContentOctreeQuery added
- Minor fixes to Octree query angelscript bindings
2015-09-29 20:24:33 +03:00
JSandusky
57cff2fcd3 Apply Urho3D specific config changes 2015-09-29 20:24:32 +03:00
JSandusky
a8d42c8f99 Fix crowdmanager angelscript bindings of methods with dtPolyRef* outputs 2015-09-29 20:24:32 +03:00
JSandusky
928c08d22e Update Angelscript to 2.30.2, resolves #892 in Urho3D master 2015-09-29 20:24:31 +03:00
JSandusky
8239cc2e5e Update Angelscript to 2.30.1 2015-09-29 20:24:30 +03:00
Lasse Öörni
e76dd6e4b9 Return cast travel distance using m_closestHitFraction in ConvexCast() result. If desired, the distance to hit position from start position (earlier behavior) can be calculated manually. Closes #906. 2015-09-28 21:10:26 +03:00
Lasse Öörni
04bbaf588a Make sure a null pointer is not returned from RigidBody::GetCollidingBodies(), if a colliding body was just destroyed. 2015-09-27 15:38:30 +03:00
Yao Wei Tjong 姚伟忠
8652de217d Rename Source/Urho3D/Script to Source/Urho3D/AngelScript. 2015-09-27 16:06:49 +08:00
Yao Wei Tjong 姚伟忠
f34205fd3b More scaffolding for Clang-tools build. Pardon our dust.
[ci only: Annotate]
2015-09-26 23:35:33 +08:00
Yao Wei Tjong 姚伟忠
566d0767e2 Fix Android and Rasperry-Pi cross-compiling build due to LuaJIT change.
[ci only: Android, RPI]
2015-09-26 13:12:08 +08:00
Yao Wei Tjong 姚伟忠
8538620437 Fix Emscripten build using incoming branch 1.34.10.
Close #905.
2015-09-26 12:52:34 +08:00
Yao Wei Tjong 姚伟忠
add1c2c67b Fix a typo which had caused wrong LuaJIT OS to be detected. 2015-09-26 12:50:50 +08:00
Yao Wei Tjong 姚伟忠
1e0c51fbe7 Fix dependency issue when building AutoBinder on host with no symlink. 2015-09-25 21:30:26 +08:00
Yao Wei Tjong 姚伟忠
a25f982043 Add more scaffolding logic in build system for AutoBinder invocation.
[ci only: Annotate]
2015-09-25 17:00:45 +08:00
Yao Wei Tjong 姚伟忠
b6abf67ca1 Trim the dependency libs of our Clang-tools.
[ci only: master, Annotate]
2015-09-25 10:59:55 +08:00
Yao Wei Tjong 姚伟忠
ba837af5a4 Add skeleton project for AutoBinder tool.
[ci only: Annotate]
2015-09-24 19:57:18 +08:00
Yao Wei Tjong 姚伟忠
fb8bd56874 Minor restructuring to prepare for annotating other symbol categories.
[ci only: Annotate]
2015-09-22 21:15:39 +08:00
urho3d-travis-ci
0cff0eb837 Travis CI: API documentation update at 2015-09-22 11:15:21 UTC.
[ci package]

Commit: e55915502e

Message: Added MM_FREE mouse mode, which allows the cursor to move around and go out of the window also when hidden, and give accurate GetMousePosition() readings when inside the window. Closes #904.
2015-09-22 11:15:21 +00:00
Lasse Öörni
e55915502e Added MM_FREE mouse mode, which allows the cursor to move around and go out of the window also when hidden, and give accurate GetMousePosition() readings when inside the window. Closes #904. 2015-09-22 13:36:07 +03:00
Lasse Öörni
b6b0f01794 Merge branch 'update-assimp' 2015-09-21 19:14:25 +03:00
Yao Wei Tjong 姚伟忠
1cc28dfe1c Make it possible to invoke Annotate tool on already annotated codes.
[ci annotate]
2015-09-21 19:23:04 +08:00
Yao Wei Tjong 姚伟忠
448f3ebf44 Fix the Rewriter not saving to filesystem issue.
It turns out that RefactoringTool and RefactoringCallback classes are not made for each other.
For Travis CI - attempt to push the annotated source files into a new branch. DO NOT check out from this branch, instead just use GitHub GUI to browse through the changes.
[ci only: Annotate]
2015-09-20 15:57:37 +08:00
Lasse Öörni
69f4a405b7 Removed mention of missing functionality from CrowdNavigation help text. Fixed double -> float conversion warning. 2015-09-19 13:29:37 +03:00
Yao Wei Tjong 姚伟忠
dbd23c17a1 Add new wrapper target to invoke the newly added clang-query tool.
It seems there is a bug in the rewriter that prevents it to save the source files with replacements out to disk, so at the moment nothing get changed yet in the source tree.
[ci only: Annotate]
2015-09-19 17:21:02 +08:00
Yao Wei Tjong 姚伟忠
4355e99c36 Restructure to run the extract and annotate in a single tool.
The AST matcher is currently only able to extract the exposed class names.
[ci only: Annotate]
2015-09-18 00:11:46 +08:00
Lasse Öörni
befdd58483 Allow creating forced headless (CPU-only) vertex & index buffers although the engine itself is running in headful mode. Useful for custom created physics only collision models. 2015-09-16 21:07:50 +03:00
Lasse Öörni
10c3e15298 Do not require index data for convex hulls, as it's not used. 2015-09-16 21:07:50 +03:00
urho3d-travis-ci
a6c3915e50 Travis CI: API documentation update at 2015-09-16 17:34:44 UTC.
[ci package]

Commit: c4e3633baf

Message: Store CustomGeometry's componentID instead of nodeID to CollisionShape in SetCustomConvexHull() & SetCustomTriangleMesh() functions. This allows using multiple customgeometries in the same node.
2015-09-16 17:34:44 +00:00
Lasse Öörni
c4e3633baf Store CustomGeometry's componentID instead of nodeID to CollisionShape in SetCustomConvexHull() & SetCustomTriangleMesh() functions. This allows using multiple customgeometries in the same node. 2015-09-16 20:24:57 +03:00
urho3d-travis-ci
0e682d5bbc Travis CI: API documentation update at 2015-09-16 15:08:29 UTC.
[ci package]

Commit: 6f01d1cac9

Message: Added globalVars VariantMap to AngelScript API which can be used to share data between script modules or persist data through script reloads.
2015-09-16 15:08:29 +00:00
Lasse Öörni
6f01d1cac9 Added globalVars VariantMap to AngelScript API which can be used to share data between script modules or persist data through script reloads. 2015-09-16 17:58:49 +03:00
Lasse Öörni
8720cea4c3 More MinGW missing Direct3D defines. Potential fix for #898. 2015-09-16 13:46:35 +03:00
Lasse Öörni
07374ffb3f Remove unnecessary line from Assimp CMakeLists. 2015-09-16 11:48:42 +03:00
urho3d-travis-ci
541d590537 Travis CI: API documentation update at 2015-09-16 06:38:44 UTC.
[ci package]

Commit: b9155ca8b3

Message: CirCle -> Circle. Convert color to uint prior to drawing the lines, instead of converting on each line.
2015-09-16 06:38:44 +00:00
Lasse Öörni
b9155ca8b3 CirCle -> Circle. Convert color to uint prior to drawing the lines, instead of converting on each line. 2015-09-15 22:34:45 +03:00
Lasse Öörni
f7dac783ee Merge remote-tracking branch '299299/pull_branch' 2015-09-15 21:38:25 +03:00
Yao Wei Tjong 姚伟忠
b3e01a1424 Add another skeleton project for for script binding extractor tool.
[ci only: Annotate]
2015-09-16 00:12:46 +08:00
Yao Wei Tjong 姚伟忠
14e0626c62 Minor code formatting and suppress warning from Clang compiler. 2015-09-16 00:12:46 +08:00
Lasse Öörni
08293b4cf4 Fix non-MSVC build. 2015-09-15 18:58:49 +03:00
Lasse Öörni
eee58fe742 Nullcheck tiles before operating on them in DetourNavMesh & DetourTileCache destructors. Closes #895. 2015-09-15 17:17:52 +03:00
Lasse Öörni
6f75a777cb Fixes for non-C++11 support. 2015-09-15 16:31:54 +03:00
aster2013
92eefa7fc0 Refactor JSONValue SetVariantXXX functions. 2015-09-15 20:06:58 +08:00
aster2013
f091c6591f Recover sprite sheet support for spriter animation. 2015-09-15 19:35:19 +08:00
Lasse Öörni
07dab99469 Update Assimp to latest head from github. Closes #786. 2015-09-15 14:29:53 +03:00
lixin
8954f1d0a4 fix for typo and coding convention 2015-09-15 16:09:58 +08:00
Yao Wei Tjong 姚伟忠
f2289b10e1 Avoid hardcoding to improve the chance of using it on Windows host.
[ci annotate]
2015-09-15 14:57:06 +08:00
lixin
44638345e7 add method for circle,cross,quad debug renderering 2015-09-15 12:58:12 +08:00
urho3d-travis-ci
a1fc1b8f6e Travis CI: API documentation update at 2015-09-14 20:50:39 UTC.
[ci package]

Commit: dc7eb0d17a

Message: Make the editor's cube map save path setting relative to the scene resource path, instead of being a relative filesystem path. Ensure that the generated cube map XML does not have double slashes and uses resource path relative filenames. Minor code cleanup.
2015-09-14 20:50:39 +00:00
Lasse Öörni
f2ad55556d Create intermediate paths in FileSystem::CreateDir() as necessary. 2015-09-14 23:39:45 +03:00
Lasse Öörni
b8fea26470 Do not attempt to capture 16bit or float textures to Image, as that is unsupported by the Image class. Delete image if format was illegal. 2015-09-14 21:22:41 +03:00
Lasse Öörni
06f4eee4a9 Merge remote-tracking branch 'jsandusky/CubeMapGeneration' 2015-09-14 21:01:21 +03:00
urho3d-travis-ci
9bbc81e6a4 Travis CI: API documentation update at 2015-09-14 17:57:42 UTC.
[ci package]

Commit: ae0544291a

Message: Add wrapper functions for NavigationMesh functions that take optional pointer parameters to fix crashes on MSVC. Closes #889.
2015-09-14 17:57:42 +00:00
Lasse Öörni
ae0544291a Add wrapper functions for NavigationMesh functions that take optional pointer parameters to fix crashes on MSVC. Closes #889. 2015-09-14 20:47:47 +03:00
Yao Wei Tjong 姚伟忠
c68f957dc4 Add a new section on how to start the Clang-tools development.
[ci annotate]
2015-09-14 22:44:20 +08:00
Yao Wei Tjong 姚伟忠
f9fd477103 For Travis CI - attempt to fix Annotator linking issue on CI server.
[ci only: Annotate, Emscripten]
2015-09-14 22:01:12 +08:00
Yao Wei Tjong 姚伟忠
440bc484e7 Add skeleton project for Annotator tool.
Currently it just dumps the AST out instead of actually annotating.
[ci only: master, Annotate]
2015-09-14 20:13:26 +08:00
Lasse Öörni
556fe7de87 Make skeleton bones initial transform modifiable in AngelScript. 2015-09-14 10:59:34 +03:00
Yao Wei Tjong 姚伟忠
2fcf1d3146 Only patch Android assets directories when it is being requested.
Without the patch though, the FileSystem::DirExist() works with reduce accuracy and FileSystem::ScanDir() no longer ables to differentiate between files and directories (thus, cannot scan recursively as well).
2015-09-13 21:35:51 +08:00
Lasse Öörni
9b41a9974c Safeguard against animation state or its node getting removed during trigger processing. Iterate using indices instead of iterator in AnimationController::Update() so that adding animation while iterating doesn't cause potential illegal memory access. Fixes #885. 2015-09-12 16:40:49 +03:00
Lasse Öörni
2fa676337b Removed unneeded script API helper functions. 2015-09-11 16:18:40 +03:00
urho3d-travis-ci
e08883122c Travis CI: API documentation update at 2015-09-11 13:17:42 UTC.
[ci package]

Commit: 7356bdecfb

Message: Add API to Animation / AnimationTrack to create tracks and keyframes and expose it to script. Change AnimationTracks to be stored in a HashMap so that removal and creation is safe without invalidating pointers. Changed the AnimationTriggerPoint API to resemble the AnimationTrack API, and change it to be handled as a value type in AngelScript API. Closes #878.
2015-09-11 13:17:42 +00:00
Lasse Öörni
7356bdecfb Add API to Animation / AnimationTrack to create tracks and keyframes and expose it to script. Change AnimationTracks to be stored in a HashMap so that removal and creation is safe without invalidating pointers. Changed the AnimationTriggerPoint API to resemble the AnimationTrack API, and change it to be handled as a value type in AngelScript API. Closes #878. 2015-09-11 16:08:48 +03:00
Yao Wei Tjong 姚伟忠
fe6d397609 Revert back whitespaces found in the original 3rdparty source file.
Make life easier when we have merged from upstream again.
2015-09-11 15:19:56 +08:00
Yao Wei Tjong 姚伟忠
a2d8f8670e Revert back the generated toluabind.c. 2015-09-10 15:18:48 +08:00
JSandusky
da0463ec49 Add cubemap generation capability to the Urho3D editor 2015-09-10 00:13:38 -04:00
Yao Wei Tjong 姚伟忠
71a8f6d104 Parameterise the asset directory indicator character(s) using env-var. 2015-09-10 00:51:58 +08:00
Lasse Öörni
7c5e441e89 Fixed Graphics::ResolveToTexture() to support less than full screen viewport on D3D11. Fixed missing release of source texture in failure case with a multisampled screenshot. Closes #882. 2015-09-09 18:04:06 +03:00
aster2013
b8a21972ed Add empty line at file end.[ci skip] 2015-09-09 13:57:10 +08:00
aster2013
1c58846f2d Add more curve type support in Spriter. 2015-09-09 13:48:47 +08:00
Lasse Öörni
87e882e261 Fix Graphics::ResolveToTexture() erroneously reading current rendertarget instead of backbuffer on D3D11. Work around less-than-fullscreen viewport not resolving properly on D3D11. 2015-09-08 18:13:57 +03:00
Yao Wei Tjong 姚伟忠
ac2b2ba121 Add new JNI function to interface with AssetManager.list() method.
Fix #855.
2015-09-08 22:37:45 +08:00
aster2013
d1f22dd80a Add missing files. 2015-09-08 13:55:46 +08:00
aster2013
27aaabd6d7 Move spriter from ThirdParty to Urho2D, credit to @weitjong. 2015-09-08 13:52:30 +08:00
urho3d-travis-ci
fe5b01b56d Travis CI: API documentation update at 2015-09-07 11:31:39 UTC.
[ci package]

Commit: 634393d7c8

Message: Add network replication for animations' removeOnCompletion flag. Add GetRemoveOnCompletion(). Add Lua binding for removeOnCompletion. Fix missing AngelScript binding for GetFadeTime().
2015-09-07 11:31:39 +00:00
Lasse Öörni
634393d7c8 Add network replication for animations' removeOnCompletion flag. Add GetRemoveOnCompletion(). Add Lua binding for removeOnCompletion. Fix missing AngelScript binding for GetFadeTime(). 2015-09-07 14:23:03 +03:00
Lasse Öörni
29b178914c Merged hjmediastudios/master. Adds removeOnCompletion functionality to AnimationController. 2015-09-07 13:33:57 +03:00
urho3d-travis-ci
b159735d85 Travis CI: API documentation update at 2015-09-07 09:02:35 UTC.
[ci package]

Commit: b61a239d51

Message: Merge pull request #877 from bjorn/fix-tmx-docs

Removed outdated warning in TMX documentation
2015-09-07 09:02:35 +00:00
aster2013
fc2a3805ea Remove line end spaces.[ci skip] 2015-09-07 12:22:29 +08:00
aster2013
60dff27440 Merge branch 'spine-spriter-new' 2015-09-07 12:19:24 +08:00
aster2013
5d50ad4b71 Change SetAnimtion function in AnimatedSprite2D. 2015-09-06 20:37:15 +08:00
aster2013
dc0e1023da Add entity attribute in AnimatedSprite2D. 2015-09-06 17:58:20 +08:00
aster2013
2de2f633c6 Minor Fix. 2015-09-06 17:05:20 +08:00
aster2013
0d20befa70 Fix build error on Ubuntu. 2015-09-06 12:02:46 +08:00
aster2013
5dedc993a9 Remove URHO3D_SPINE option, if exists ThirdParty/spine make URHO3D_SPINE enabled. 2015-09-05 23:44:45 +08:00
Yao Wei Tjong 姚伟忠
dbfd0ca65c Add new job matrix for linked LLVM bitcode Emscripten CI build.
Upload HTML5 samples built from this new job matrix.
[ci package] [ci only: Emscripten]
2015-09-05 23:21:23 +08:00
aster2013
5bcb12afa2 Fix comment. 2015-09-05 22:28:39 +08:00
aster2013
0cded698e4 Merge from spine-spriter branch.
Main changes:
     Make spriter as a lib
     Enable spine support in AnimatedSprite2D and Animation2D.
2015-09-05 22:23:35 +08:00
Lasse Öörni
0fa04d4c3f Keep track of animation being dirtied while model was invisible, and force update in that case during UpdateGeometry(). Potentially a fix for #875. 2015-09-04 16:35:04 +03:00
Yao Wei Tjong 姚伟忠
3e765ba446 Minor code clean up for build system.
Suppress tolua++ tool not found message in the stderr stream on initial build.
Raise a fatal error message when user attempting to generate VS2008 project with spaces in the source/build tree path.
2015-09-04 13:14:52 +08:00
Yao Wei Tjong 姚伟忠
c4a138ae4f Add new build option to allow host tool building to use native ABI.
Possibly fix issue #872.
2015-09-04 11:20:26 +08:00
Lasse Öörni
0d54cb1b7f Fallback for VS2008, do not enclose library names in quotes for the librarian. Downside is that build path with spaces will not work (again.) Closes #873. 2015-09-03 18:23:41 +03:00
Yao Wei Tjong 姚伟忠
353ee7f870 Remove force include as now export header is auto-included once again. 2015-09-03 22:40:13 +08:00
Yao Wei Tjong 姚伟忠
2731e48405 Improve build robustness. Prevent make clean to remove toluabind.c. 2015-09-03 20:14:23 +08:00
Lasse Öörni
c2301bfc6f Remove the mechanism to comment out "attribute" as the COMPILEVS / COMPILEPS define mechanism already takes care of that, as long as it's also used for user-defined custom attributes. Fixes #870. 2015-09-03 11:35:22 +03:00
urho3d-travis-ci
1486904964 Travis CI: API documentation update at 2015-09-02 15:48:49 UTC.
[ci package]

Commit: 5bd672f02a

Message: Add missing Lua bindings to SplinePath. Make hierarchy & inspector windows the same width on editor startup. Remove unnecessary attributes from EditorHierarchyWindow.xml.
2015-09-02 15:48:49 +00:00
Lasse Öörni
5bd672f02a Add missing Lua bindings to SplinePath. Make hierarchy & inspector windows the same width on editor startup. Remove unnecessary attributes from EditorHierarchyWindow.xml. 2015-09-02 18:07:42 +03:00
MonkeyFirst
aafca39d39 add length property for scripts 2015-09-02 18:07:32 +03:00
Yao Wei Tjong 姚伟忠
4914b0e71c Remove file generation timestamp to avoid unnecessary git diff. 2015-09-02 22:40:11 +08:00
Yao Wei Tjong 姚伟忠
d71b76ed27 Add automation to generate toluabind.c and toluabind.h. 2015-09-02 17:40:01 +08:00
Lasse Öörni
0a6a8a9de6 Allow the application to get access to a View's occlusion buffer for debug visualization. Clear occlusion buffer to farclip Z value instead of maximum (0x7fffffff) 2015-08-31 20:57:00 +03:00
Lasse Öörni
6b33ba60f9 Allow multiple resource routers in ResourceCache. Script subsystem installs its own resource router to allow loading compiled scripts (.asc) when the originals (.as) don't exist. Closes #864. 2015-08-31 12:41:12 +03:00
Yao Wei Tjong 姚伟忠
4ff826ddf8 Support spaces in source and/or build tree path for Windows build.
Close #779.
2015-08-31 16:15:46 +08:00
Yao Wei Tjong 姚伟忠
05e4001697 Support spaces in source and/or build tree path for OSX and iOS build.
[ci only: OSX]
2015-08-30 18:27:58 +08:00
Yao Wei Tjong 姚伟忠
a234ab4e6e Support spaces in source and/or build tree path for Linux build. 2015-08-30 16:40:41 +08:00
Lasse Öörni
7845389866 Nullcheck UI in UIElement functions that may be called at exit time when UI is already destroyed. Closes #860. 2015-08-29 12:41:12 +03:00
Yao Wei Tjong 姚伟忠
f9e27e33f2 Ensure Lua function references are released when refcounter reaches 0.
Add support for constructing Lua function from C function.
2015-08-28 16:27:30 +08:00
Yao Wei Tjong 姚伟忠
2a5d659c2e Reorganize includes. [ci skip] 2015-08-28 10:23:56 +08:00
Yao Wei Tjong 姚伟忠
c2471a240a Reorganize includes for Samples and Extras.
Since the URHO3D_PCH build option is made available to support non-PCH build, our build system does not rely on precompiled header to include the Urho3D.h export header anymore. The export header is auto-included by one of Urho3D headers when it is required using the right format with the help of URHO3D_IS_BUILDING compiler define. As such, there is no need to explicitly include Urho3D.h in external project too. Sorry for the flip-flop.
2015-08-27 18:07:20 +08:00
Yao Wei Tjong 姚伟忠
9f75ea54a1 Minor clean up to remove unused instance variable. 2015-08-27 18:06:57 +08:00
aster2013
349a3ee981 Sort include file in samples. 2015-08-27 13:54:54 +08:00
urho3d-travis-ci
d17dbebcf4 Travis CI: API documentation update at 2015-08-27 03:10:06 UTC.
[ci package]

Commit: d8cfd72571

Message: Fix JSONNumberType enum error.
2015-08-27 03:10:06 +00:00
aster2013
d8cfd72571 Fix JSONNumberType enum error. 2015-08-27 10:59:41 +08:00
aster2013
b27d32a134 JSONFile
- SetRoot
    + GetRoot
JSONValue
    Rename GetUint to GetUInt
    - GetType
    + GetValueType GetNumberType
    + SetVariantXXX GetVariantXXX
2015-08-26 20:26:51 +08:00
aster2013
7082d17555 Add FALLBACK_TO_COPY argument in create_symlink.[ci skip]. 2015-08-26 20:02:13 +08:00
Lasse Öörni
e0ce3e4ad0 Take into account CollisionShape's offset position & rotation in ConvexCast. Closes #856. 2015-08-26 14:52:03 +03:00
urho3d-travis-ci
46b7d0cd89 Travis CI: API documentation update at 2015-08-25 07:28:37 UTC.
[ci package]

Commit: 2fafa4c366

Message: Add rudimentary Lua function overload checker to catch invalid order.
Fix two of the pkg files being detected to have wrong order declared.
2015-08-25 07:28:37 +00:00
Yao Wei Tjong 姚伟忠
2fafa4c366 Add rudimentary Lua function overload checker to catch invalid order.
Fix two of the pkg files being detected to have wrong order declared.
2015-08-25 15:19:53 +08:00
urho3d-travis-ci
25c00c895d Travis CI: API documentation update at 2015-08-24 14:22:21 UTC.
[ci package]

Commit: 770be2319e

Message: Fix Lua bindings for AnimationSet2D and Vector2 classes.
2015-08-24 14:22:21 +00:00
Yao Wei Tjong 姚伟忠
770be2319e Fix Lua bindings for AnimationSet2D and Vector2 classes. 2015-08-24 22:12:23 +08:00
urho3d-travis-ci
d78ea9175a Travis CI: API documentation update at 2015-08-24 10:23:12 UTC.
[ci package]

Commit: 934c640835

Message: Fix Lua binding for Localization and Database subsystems.
Fix Lua version of the localization demo.
2015-08-24 10:23:12 +00:00
Yao Wei Tjong 姚伟忠
934c640835 Fix Lua binding for Localization and Database subsystems.
Fix Lua version of the localization demo.
2015-08-24 18:14:06 +08:00
urho3d-travis-ci
3b8b06783e Travis CI: API documentation update at 2015-08-24 05:40:12 UTC.
[ci package]

Commit: 61647bb887

Message: Optimize Lua Variant class bindings.
Take advantage of Lua being type-less by binding generic methods that can handle all the supported data type conversion.
At the same time reduce the amount of the overloads generated by tolua++ which could be potentially just dead code.
2015-08-24 05:40:12 +00:00
Yao Wei Tjong 姚伟忠
61647bb887 Optimize Lua Variant class bindings.
Take advantage of Lua being type-less by binding generic methods that can handle all the supported data type conversion.
At the same time reduce the amount of the overloads generated by tolua++ which could be potentially just dead code.
2015-08-24 13:26:25 +08:00
urho3d-travis-ci
9c140b503a Travis CI: API documentation update at 2015-08-21 16:27:51 UTC.
[ci package]

Commit: 53b4afcab6

Message: Fix TOC for generated LuaScript API documentation page.
2015-08-21 16:27:51 +00:00
Yao Wei Tjong 姚伟忠
53b4afcab6 Fix TOC for generated LuaScript API documentation page. 2015-08-22 00:14:15 +08:00
urho3d-travis-ci
0bbf66f40f Travis CI: API documentation update at 2015-08-21 15:51:57 UTC.
[ci package]

Commit: b1e1ab47c3

Message: Fix Lua version of crowd simulation demo due to VariantMap API changes.
2015-08-21 15:51:57 +00:00
Yao Wei Tjong 姚伟忠
a0125a19c1 Move the pieces around for code reuse opportunity. 2015-08-21 23:32:37 +08:00
Yao Wei Tjong 姚伟忠
937b0bcbc6 Add exposed tolua functions into documentation page. 2015-08-21 23:32:36 +08:00
Yao Wei Tjong 姚伟忠
35f3bb0a4d Store Urho3D context directly inside Lua state global table.
Remove static Lua state to context mapping. Expose the context as global property.
Prevent potential Lua VM crash when trying to get event sender or handler outside of event handling.
2015-08-21 23:32:36 +08:00
Lasse Öörni
e7b492b307 Fix integer overflow in the Random(int) functions when the range is large. 2015-08-21 17:29:51 +03:00
Lasse Öörni
42fcc37acd Merge remote-tracking branch 'silverkorn/master' 2015-08-21 13:19:12 +03:00
urho3d-travis-ci
9a23f5f172 Travis CI: API documentation update at 2015-08-21 09:50:38 UTC.
[ci package]

Commit: f0b3c8b805

Message: Allow interchangeable numeric value in Variant GetXXX(), e.g. GetFloat() succeeds when it's actually an int. Comparison still requires type and value to match exactly. Closes #851.
2015-08-21 09:50:38 +00:00
Lasse Öörni
f0b3c8b805 Allow interchangeable numeric value in Variant GetXXX(), e.g. GetFloat() succeeds when it's actually an int. Comparison still requires type and value to match exactly. Closes #851. 2015-08-21 11:59:13 +03:00
Lasse Öörni
75b1b53416 Re-fix AngelScript API. JSONArray & JSONObject are not registered into AngelScript, so they cannot be mentioned in any bindings. 2015-08-21 11:42:35 +03:00
aster2013
cd71104e90 Merge branch 'master' of https://github.com/urho3d/Urho3D
Conflicts:
	Source/Urho3D/Script/ResourceAPI.cpp
2015-08-21 15:42:24 +08:00
aster2013
57551ca717 Remove At function in JSONValue, add SetXXX functions for LuaAPI. 2015-08-21 15:36:20 +08:00
urho3d-travis-ci
2486d36a60 Travis CI: API documentation update at 2015-08-21 07:04:33 UTC.
[ci package]

Commit: f7dd38d70e

Message: Remove M_INFINITY default value from PhysicsWorld AngelScript bindings, which is illegal to Bullet.
2015-08-21 07:04:33 +00:00
Lasse Öörni
f7dd38d70e Remove M_INFINITY default value from PhysicsWorld AngelScript bindings, which is illegal to Bullet. 2015-08-21 09:56:55 +03:00
Lasse Öörni
83c889ab48 Remove invalid JSONValue AngelScript bindings, which prevent AngelScript applications from starting. Fixes #852. 2015-08-21 09:56:15 +03:00
aster2013
ddc19bf278 Fix name error, add iterator for JSON object type. 2015-08-21 10:56:19 +08:00
Silverkorn
792531552f Fix missing escape characters for the Zerobrane Studio API. 2015-08-20 22:11:57 -04:00
aster2013
d3247fccf5 Minor fixed. 2015-08-21 00:30:49 +08:00
aster2013
c0014f40bb Accroding the discuss on forum by Lasse and other users and refer to the json code in Lasse's Turso3D engine, rewrite JSONFile and JSONValue class, make it looks like JSON. 2015-08-21 00:12:42 +08:00
Lasse Öörni
7b312275a2 Merge remote-tracking branch 'bjorn/fix-objecttype' 2015-08-20 10:59:45 +03:00
Lasse Öörni
b456f369c5 Merge remote-tracking branch 'bjorn/fix-typo' 2015-08-20 10:59:39 +03:00
Yao Wei Tjong 姚伟忠
f7a30b8306 Add back the logic to first check if keybinding length is correct. 2015-08-20 07:51:17 +08:00
Thorbjørn Lindeijer
094d146c3c TmxFile2D: Fix determination of object type
TmxObjectGroup2D::Load was using the presence of the "width" and
"height" attributes for deciding whether an object was a rectangle,
ellipse or something else. This is wrong, and the approach breaks for
maps saved in more recent versions of Tiled. This is because the width
and height are only saved when they differ from the default (0), and
because the width and height are now also used to store the size of tile
objects.

So for maps saved with Tiled >= 0.12, this change:

* Fixes identification of rectangle and ellipse objects with 0 width and
  height (which was leading to the entire map failing to load).
* Fixes identification of tile objects.
2015-08-19 21:45:22 +02:00
Thorbjørn Lindeijer
64afa327de Fix a typo: worlsScaleX -> worldScaleX 2015-08-19 21:26:47 +02:00
Yao Wei Tjong 姚伟忠
ded284e6c3 Fix a copy pasta error.
Related to commit 530950ed7c.
2015-08-20 00:41:05 +08:00
Lasse Öörni
7499e19998 Prevent creation of multiple value childs to XMLElement, when SetValue() is called several times. 2015-08-19 18:51:21 +03:00
Yao Wei Tjong 姚伟忠
530950ed7c Store keymap bindings for hat using an IntRect instead of String.
Fix #847.
2015-08-19 23:40:37 +08:00
Lasse Öörni
d4696f92a0 Make sure adding & deleting RigidBody2D fixtures doesn't reset the mass when not wanted (useFixtureMass = false). Fixed some mistaken if statement logic, and improved some RigidBody2D comments. Note that when useFixtureMass = false, you must set nonzero inertia to get rotation. Closes #844. 2015-08-19 18:19:31 +03:00
Yao Wei Tjong 姚伟忠
55635bdf3a Replace friend func with explicit template specialization for Get().
Credit to Aster Jian.
2015-08-19 22:11:27 +08:00
Lasse Öörni
44acf54118 Make sure the lowest bone influences are dropped if too many. 2015-08-18 21:58:24 +03:00
Lasse Öörni
b631612ff7 Force normalization of vertex weights in AssetImporter. More than 4 weights is no longer a fatal error, instead any more than that are dropped and a warning is logged. 2015-08-18 19:27:25 +03:00
Yao Wei Tjong 姚伟忠
102e8862bd Avoid repetition by accessing Variant::value directly via friend func. 2015-08-19 00:13:51 +08:00
urho3d-travis-ci
5c4562ba67 Travis CI: API documentation update at 2015-08-18 09:26:22 UTC.
[ci package]

Commit: b202aa6ee7

Message: Minor typo correction on Lua scripting documentation page.
2015-08-18 09:26:22 +00:00
Yao Wei Tjong 姚伟忠
4c7f8664b6 Further improve Lua binding for Variant and VariantMap classes.
- VariantMap can be indexed by a StringHash object directly.
- Bind a generic Get() method for Variant class to automatically "unbox" the stored object and assign it to a type less Lua object.
- Prevent Lua VM crashes when invalid type name is being passed when calling GetVoidPtr() and GetPtr().
2015-08-18 17:04:55 +08:00
Lasse Öörni
0f0a73c9f6 Fallback when crossproduct in Quaternion::FromLookRotation() becomes zero. Fixes #846. 2015-08-17 18:16:00 +03:00
Lasse Öörni
adc04560ce Added warning for infinite PhysicsWorld raycast. 2015-08-17 11:50:14 +03:00
Yao Wei Tjong 姚伟忠
1cc09cb704 For Coverity Scan - check in the failed model file anyway.
[ci skip]
2015-08-17 12:01:46 +08:00
Yao Wei Tjong 姚伟忠
0e031852d1 Suppress most of the false positive on out-of-bound access.
The affect of this change can only be checked after the next Coverity Scan run on this Thursday.
2015-08-16 16:44:19 +08:00
Yao Wei Tjong 姚伟忠
ff501b39cc Fix CID 105884 (UNINIT_CTOR) - initialize Renderer2D::viewMask_. 2015-08-16 16:44:19 +08:00
urho3d-travis-ci
002d5a2688 Travis CI: API documentation update at 2015-08-16 07:57:58 UTC.
[ci package]

Commit: 69dd312d54

Message: Reformat and reorganize include for Navigation sub-library.
2015-08-16 07:57:58 +00:00
Yao Wei Tjong 姚伟忠
69dd312d54 Reformat and reorganize include for Navigation sub-library. 2015-08-16 15:43:13 +08:00
Yao Wei Tjong 姚伟忠
ac0a712f0b Refactor to rename 'filter type' to 'query filter type'.
Minor clean up on the NavBuildData class.
2015-08-16 15:43:12 +08:00
Yao Wei Tjong 姚伟忠
a58d855e60 Do not assume the location of the NavigationMesh component. 2015-08-16 15:43:12 +08:00
Yao Wei Tjong 姚伟忠
27cc9c4277 Add filter and obstacle avoidance type attribute to CrowdManager class.
Enhance Editor to have functionality to edit the CrowdManager's filter and obstacle avoidance type attributes.
2015-08-16 15:43:12 +08:00
Yao Wei Tjong 姚伟忠
b7d03abfe1 Add navigation mesh id attribute to CrowdManager class. 2015-08-16 15:43:12 +08:00
Yao Wei Tjong 姚伟忠
c9bc4cbae3 Add new event for crowd agent formation.
Add convenient methods for querying point, path, raycast, etc using crowd's extent and filter type configuration.
2015-08-16 15:43:12 +08:00
Yao Wei Tjong 姚伟忠
549b6fd8be Add crowd update callback support. Remove redundant vectors. 2015-08-16 15:43:12 +08:00
Yao Wei Tjong 姚伟忠
2c3033d62a Limit interface to use only crowd agent's parameters and public APIs. 2015-08-16 15:43:12 +08:00
urho3d-travis-ci
1cd8ca0cd7 Travis CI: API documentation update at 2015-08-15 10:33:47 UTC.
[ci package]

Commit: 7f4b115744

Message: Make Drawable2D respect viewmask in rendering & raycast. Added viewmask attribute to Drawable2D's. Added proper category to 2D constraints to allow adding in editor. Closes #843.
2015-08-15 10:33:47 +00:00
Lasse Öörni
7f4b115744 Make Drawable2D respect viewmask in rendering & raycast. Added viewmask attribute to Drawable2D's. Added proper category to 2D constraints to allow adding in editor. Closes #843. 2015-08-15 13:23:37 +03:00
Yao Wei Tjong 姚伟忠
373d989d53 For Travis CI - keep the backup logic simple and stupid.
Related to commit 9d1a66d108
[ci skip]
2015-08-15 11:18:06 +08:00
Lasse Öörni
c24d709ee1 Use a free area index parameter instead of IntRect in AreaAllocator::SplitRect() to make it clear that the freeAreas_ is being manipulated inside the function. 2015-08-14 21:16:39 +03:00
Lasse Öörni
c3427a6dd5 Merge remote-tracking branch 'cosmy1/master' 2015-08-14 20:41:38 +03:00
Ivan K
b63167ebd8 fix add RigidBody2D after CollisionShape2D 2015-08-14 18:34:41 +04:00
cosmy
4f1c071452 Const references
Fixed some parameters wrongly passed by value
2015-08-14 15:10:20 +02:00
urho3d-travis-ci
ab2776e7d3 Travis CI: API documentation update at 2015-08-14 10:55:47 UTC.
[ci package]

Commit: 9e331d04d4

Message: Ensure correct 0,1,2 order in the RigidBody2D body type enum for serialization. Closes #837.
2015-08-14 10:55:47 +00:00
Lasse Öörni
9e331d04d4 Ensure correct 0,1,2 order in the RigidBody2D body type enum for serialization. Closes #837. 2015-08-14 13:40:22 +03:00
Lasse Öörni
3dcab4c039 Disable VS warning C6293, as the unsigned overflow trick used in reverse iteration is intentional. Added missing DebugNew.h includes. Closes #832. 2015-08-14 11:48:53 +03:00
Yao Wei Tjong 姚伟忠
7947df8299 For Travis CI - give instruction to [ccache clear]. Close #838. 2015-08-14 13:31:37 +08:00
cosmy
1b9f1f7fd9 Wrong Casting
Fixed some casting warnings
2015-08-14 01:26:46 +02:00
cosmy1
3e62884d69 Added = operator
Added assign operator since there is a copy constructor. (More consistent)
2015-08-13 19:01:27 +02:00
cosmy1
258afe775b Added = operator
Added assign operator since there is a copy constructor. (More consistent)
2015-08-13 19:00:45 +02:00
cosmy1
abcd534d30 Added = operator
Added assign operator since there is a copy constructor. (More consistent)
2015-08-13 18:45:29 +02:00
cosmy1
ac5aac32f2 Added = operator
Added assign operator since there is a copy constructor. (More consistent)
2015-08-13 18:43:52 +02:00
urho3d-travis-ci
a99da6d952 Travis CI: API documentation update at 2015-08-12 16:20:01 UTC.
[ci package]

Commit: 93a7ae4352

Message: Bind original Variant::GetBuffer() to Lua as GetRawBuffer().
Taking advantage of the new vector to table conversion template function.
2015-08-12 16:20:01 +00:00
Yao Wei Tjong 姚伟忠
93a7ae4352 Bind original Variant::GetBuffer() to Lua as GetRawBuffer().
Taking advantage of the new vector to table conversion template function.
2015-08-13 00:11:09 +08:00
Yao Wei Tjong 姚伟忠
b1c3261b91 Fix CID 104877 (UNINIT) - useScissor_ is uninitialized.
In fact this instance variable is not being used anymore.
2015-08-12 22:51:06 +08:00
Yao Wei Tjong 姚伟忠
55e68f4e0e Code cleanup and bug fixes for DB subsystem and ToluaUtils refactoring. 2015-08-12 17:33:25 +08:00
urho3d-travis-ci
d949b19b8d Travis CI: API documentation update at 2015-08-11 17:29:55 UTC.
[ci package]

Commit: 8658afabb0

Message: Clean up tolua++ bindings for handling (POD)Vector to table conversion.
Any C++ classes (either RefCounted or not) that are exposed to Lua scripting should be now supported in this conversion via new template function implementation. There should be no need to modify the ToluaUtils.cpp and .h anymore.
2015-08-11 17:29:55 +00:00
Yao Wei Tjong 姚伟忠
8658afabb0 Clean up tolua++ bindings for handling (POD)Vector to table conversion.
Any C++ classes (either RefCounted or not) that are exposed to Lua scripting should be now supported in this conversion via new template function implementation. There should be no need to modify the ToluaUtils.cpp and .h anymore.
2015-08-12 01:17:56 +08:00
Yao Wei Tjong 姚伟忠
1f3f5e4933 Suppress unavoidable build warnings when generating Lua bindings. 2015-08-10 22:49:50 +08:00
Yao Wei Tjong 姚伟忠
777889580f Cancel the GCC -ffast-math option only when the flag is found. 2015-08-10 18:51:27 +08:00
Lasse Öörni
79ef4c54c5 Fix ValueAnimation to override BeginLoad() correctly. Closes #828. 2015-08-10 12:06:04 +03:00
Lasse Öörni
5ce33abb51 Fix preprocessor condition in DatabaseAPI.cpp. 2015-08-10 11:20:54 +03:00
urho3d-travis-ci
875dffcc92 Travis CI: API documentation update at 2015-08-09 18:06:19 UTC.
[ci package]

Commit: 7a7f250996

Message: Add new documentation page for database subsystem.
2015-08-09 18:06:19 +00:00
Yao Wei Tjong 姚伟忠
7a7f250996 Add new documentation page for database subsystem. 2015-08-10 01:51:26 +08:00
Yao Wei Tjong 姚伟忠
5fb6482e14 Add dependent C++ source file when building PackageTool for Emscripten.
[ci only: Emscripten]
2015-08-10 01:51:26 +08:00
Yao Wei Tjong 姚伟忠
4edba76ec2 Fix AngelScript and Lua bindings. Fix Lua samples to use new getters.
Tips: use this one liner to convert Lua scripts to use new getter signature.
find . -type f -exec grep -lP "eventData:Get.+?\(.+?\)" {} \; |xargs -n 1  perl -pi.bak -e 's/eventData:Get(.+?)\((?:([^,)]+),\s*(.*?)|(.+?))\)/eventData[\3\4]:Get\1(\2)/g'
2015-08-10 01:51:26 +08:00
Yao Wei Tjong 姚伟忠
4807206bd7 Bind all variant types from C++ to Lua and vice versa. See #820.
Other misc Lua binding enhancements:
- VariantMap in Lua can be indexed using both string literal and unsigned int literal. Internally they are both converted to StringHash. Lua table of strings/variants and any registered user types are now accepted as RHS value when assigning VariantMap's value, the variant type would be set accordingly based on the lua object type. Refcounted object would end up as VAR_PTR while others as VAR_VOIDPTR.
- Variant knows how to convert to string implicitly.
2015-08-10 01:51:26 +08:00
Yao Wei Tjong 姚伟忠
8acb9e6441 Fix Variant and VariantMap bindings to Lua. Close #820.
Add Lua bindings to return VariantVector as table of Variant.
Fix Lua database demo. It is in full working condition now.
[ci only: database, OSX]
2015-08-10 01:51:26 +08:00
Yao Wei Tjong 姚伟忠
842de2fe48 Exposed the database subsystem API to scripting.
Add AngelScript version of the database demo.
Add Lua versio nof the database demo. WIP.
2015-08-10 01:51:26 +08:00
Yao Wei Tjong 姚伟忠
d8181e0b5b Update to nanodbc release 2.2.2.
No need for local modifications anymore as they are already merged into nanodbc upstream repo.
2015-08-10 01:51:26 +08:00
Yao Wei Tjong 姚伟忠
33145bf18f Use numCols to determine whether a result object impl has resultset.
Only supports one resultset per execution at the moment.
Enhance db sample demo to accept connectiong string setting to connect to different database during runtime.
[skip ci]
2015-08-10 01:51:26 +08:00
Yao Wei Tjong 姚伟忠
d39a80b1a9 Pass compiler defines from the ODBC config tool to our build system.
Make FindODBC module to prefer unixODBC over libiodbc when both ODBC driver managers are available.
2015-08-10 01:51:26 +08:00
Yao Wei Tjong 姚伟忠
f420b14ad2 Make URHO3D_DATABASE_ODBC suppresses URHO3D_DATABASE_SQLITE.
Correct a typo in the database demo.
[ci skip]
2015-08-10 01:51:26 +08:00
Yao Wei Tjong 姚伟忠
0e2af9c788 Initial ODBC API support.
Enhance db demo to work with ODBC database connectioon string.
2015-08-10 01:51:25 +08:00
Yao Wei Tjong 姚伟忠
7d6f0ffeab Fix Database subsystem on Emscripten build.
[ci only: Emscripten]
2015-08-10 01:51:25 +08:00
Yao Wei Tjong 姚伟忠
560ef3bb37 Add Database subsystem. Add new build option to enable it.
Initial C++ sample database demo using execute immediate mode.
2015-08-10 01:51:25 +08:00
Lasse Öörni
ed39940b2e Added float <> half-float conversion functions. 2015-08-09 12:03:18 +03:00
Lasse Öörni
ca71cafcf5 Unify float texture data upload behavior between D3D & OpenGL: half float textures are expected to be provided in that format, and are not converted from single precision on OpenGL anymore. 2015-08-09 01:32:43 +03:00
Lasse Öörni
a626021d95 Fixes for VS texture fetch on D3D11. 2015-08-06 22:28:05 +03:00
urho3d-travis-ci
bc58db968d Travis CI: API documentation update at 2015-08-06 13:59:00 UTC.
[ci package]

Commit: b53b584123

Message: 8-bit render order support in materials. This adjusts the drawing order within a scene pass, and takes precedence over both state & distance sorting.
2015-08-06 13:59:00 +00:00
Lasse Öörni
b53b584123 8-bit render order support in materials. This adjusts the drawing order within a scene pass, and takes precedence over both state & distance sorting. 2015-08-06 16:42:52 +03:00
Lasse Öörni
3bd55ecc14 Fix DDS size calculation errors and potential unwanted object destruction in Image class. Closes #826. 2015-08-05 21:22:03 +03:00
urho3d-travis-ci
1592c95915 Travis CI: API documentation update at 2015-08-05 16:16:10 UTC.
[ci package]

Commit: a737bbb671

Message: Fix terrain occlusion leaving holes in the occlusion geometry, and being over-aggressive with height reduction, which would result in poor occlusion. Allow to configure terrain number of LOD levels to be less than 4. Allow to configure the LOD level used for terrain occlusion (not recommended to be changed.) Closes #825.
2015-08-05 16:16:10 +00:00
Lasse Öörni
a737bbb671 Fix terrain occlusion leaving holes in the occlusion geometry, and being over-aggressive with height reduction, which would result in poor occlusion. Allow to configure terrain number of LOD levels to be less than 4. Allow to configure the LOD level used for terrain occlusion (not recommended to be changed.) Closes #825. 2015-08-05 19:05:18 +03:00
urho3d-travis-ci
4d0f0b9ef3 Travis CI: API documentation update at 2015-08-05 12:26:11 UTC.
[ci package]

Commit: 5edc729ee5

Message: Remove occlusionOffset from TerrainPatch, instead calculate the minimum height in the neighborhood of each lowest LOD terrain vertex. Occlusion still uses lowest LOD to not use up occlusion triangles quickly. Fixes #822.
2015-08-05 12:26:11 +00:00
Lasse Öörni
5edc729ee5 Remove occlusionOffset from TerrainPatch, instead calculate the minimum height in the neighborhood of each lowest LOD terrain vertex. Occlusion still uses lowest LOD to not use up occlusion triangles quickly. Fixes #822. 2015-08-05 15:15:19 +03:00
Lasse Öörni
681e91635e Handle caching of SmoothedTransform in RigidBody component using a weak pointer instead of a bool flag so that it can be deleted by the client if necessary, without getting a state mismatch. 2015-08-05 10:47:06 +03:00
urho3d-travis-ci
be1feb49be Travis CI: API documentation update at 2015-08-05 00:53:57 UTC.
[ci package]

Commit: 7da3eb5616

Message: Exposed various kNet connection stats.
2015-08-05 00:53:57 +00:00
Lasse Öörni
7da3eb5616 Exposed various kNet connection stats. 2015-08-04 22:26:45 +03:00
urho3d-travis-ci
ad1ea20f20 Travis CI: API documentation update at 2015-08-04 14:58:47 UTC.
[ci package]

Commit: fba5948ab0

Message: Allow to disable rendering of the whole UI (except for the cursor and modal elements) by setting the UI root to not visible. Added new function UIElement::IsVisibleEffective() which checks for propagated visibility. Make sure to clear focus also if a child element (that has focus) becomes effectively invisible. Closes #811.
2015-08-04 14:58:47 +00:00
Lasse Öörni
fba5948ab0 Allow to disable rendering of the whole UI (except for the cursor and modal elements) by setting the UI root to not visible. Added new function UIElement::IsVisibleEffective() which checks for propagated visibility. Make sure to clear focus also if a child element (that has focus) becomes effectively invisible. Closes #811. 2015-08-04 17:47:46 +03:00
Lasse Öörni
b10b28eef3 Do not allow invisible UI elements to have focus. Lose focus when an element is hidden. Closes #819. 2015-08-03 13:20:29 +03:00
urho3d-travis-ci
0eda0fa9e2 Travis CI: API documentation update at 2015-07-31 16:47:06 UTC.
[ci package]

Commit: 97e8e89e23

Message: Merge remote-tracking branch 'jsandusky/DDSImageChain'
2015-07-31 16:47:06 +00:00
Lasse Öörni
97e8e89e23 Merge remote-tracking branch 'jsandusky/DDSImageChain' 2015-07-31 19:10:32 +03:00
JSandusky
8a1073b14f Correction of missing merge of Lua packages. 2015-07-30 22:05:08 -04:00
JSandusky
9d4f4f9bd9 Correction of misuses of xml element in OGLTextureCube 2015-07-30 21:35:32 -04:00
JSandusky
fc40614beb Loading cube images in OGL and D3D11. Scripting bindings for cube, array, and sRGB traits of image. 2015-07-30 21:28:33 -04:00
Lasse Öörni
bbfdafa00b Re-fix to previous commit to prevent endlessly forced material update. Added note that custom materials will not be modified. 2015-07-30 23:41:56 +03:00
Lasse Öörni
29c49afa3b Make sure the SDF shader flag is only updated on the relevant codepath to prevent possible erroneous state. 2015-07-30 23:37:34 +03:00
Lasse Öörni
9977ee909b Fix line height in the included .sdf font files. Force reevaluation of material when font changed from ttf to sdf or vice versa. Added .sdf to attribute editor font picker. Closes #801. 2015-07-30 23:27:31 +03:00
Lasse Öörni
a7c488b1bc Use SDL message box for ErrorDialog() function for cross-platform support. 2015-07-29 18:52:31 +03:00
Lasse Öörni
7abfe637e7 Prevent exactly zero Node scale on any axis. May be related to #796. 2015-07-29 17:57:32 +03:00
Lasse Öörni
13a8e7c9b6 Remove test code which wasn't seen to trigger in practice, when using the editor. 2015-07-27 18:20:53 +03:00
Lasse Öörni
50013c85d4 Merge remote-tracking branch 'monkeyfirst/hotkeys-smg-instances'
Conflicts:
	bin/Data/EditorStrings.json
2015-07-27 16:26:42 +03:00
Ivan K
6dc8dc9203 Localization: warning when translation is overrided 2015-07-27 14:42:44 +04:00
JSandusky
f0a7f30fa1 Expanded DDS support
- DX10 format support (only data formats compatible)
- Images may be "chained" as a list off of the first image (DDS
cubemaps, texture arrays)
- Direct3D9 cubemap loading from DDS cubemap
2015-07-26 17:55:17 -04:00
Lasse Öörni
21e401ddce Allow negative scale for nodes. 2015-07-25 22:56:50 +03:00
Lasse Öörni
6cab81cf50 Merge remote-tracking branch '1vanK/master' 2015-07-22 18:22:43 +03:00
Ivan K
d00438c224 Editor: select language in preferences 2015-07-22 15:40:35 +04:00
urho3d-travis-ci
0dc9256b2a Travis CI: API documentation update at 2015-07-22 06:14:06 UTC.
[ci package]

Commit: 3da81f2b91

Message: Added missing script bindings for Vector::Abs() & IsInsideFast()
2015-07-22 06:14:06 +00:00
Mike3D
3da81f2b91 Added missing script bindings for Vector::Abs() & IsInsideFast() 2015-07-22 08:06:57 +02:00
Ivan K
eb2457ce6a editor russification, add warnings to Localization::LoadJSON 2015-07-21 23:12:20 +04:00
urho3d-travis-ci
60ea83dbfd Travis CI: API documentation update at 2015-07-21 12:08:42 UTC.
[ci package]

Commit: c5a75e523a

Message: Added Node function to remove all components of type.
2015-07-21 12:08:42 +00:00
Lasse Öörni
c5a75e523a Added Node function to remove all components of type. 2015-07-21 14:51:38 +03:00
Lasse Öörni
e594b9e6dd Edit Localization docs. Minor comment edit. 2015-07-21 14:33:23 +03:00
Lasse Öörni
87c8a0874a Merge remote-tracking branch '1vanK/improvements' 2015-07-21 13:46:06 +03:00
Ivan K
8480f603fd Localization: asserts to warnings 2015-07-20 17:40:38 +04:00
Ivan K
d540f79eec Localization: fixes, adding comments, reworking samples, partial russification of editor 2015-07-19 16:07:24 +04:00
Ivan K
1d845712c8 Internationalization: initial commit
Localization
2015-07-18 14:43:51 +04:00
urho3d-travis-ci
472cdfa50f Travis CI: API documentation update at 2015-07-17 17:52:17 UTC.
[ci package]

Commit: 32ba366f0b

Message: Fixed return value for Image Save
2015-07-17 17:52:17 +00:00
Mike3D
32ba366f0b Fixed return value for Image Save 2015-07-17 19:43:48 +02:00
urho3d-travis-ci
bbe1e9a1bf Travis CI: API documentation update at 2015-07-16 11:28:51 UTC.
[ci package]

Commit: 3b4738ee25

Message: Clean up Spline comments. Add a Catmull-Rom full path mode which duplicates or loops the start and end. Closes #780.
2015-07-16 11:28:51 +00:00
Lasse Öörni
3b4738ee25 Clean up Spline comments. Add a Catmull-Rom full path mode which duplicates or loops the start and end. Closes #780. 2015-07-16 14:20:38 +03:00
Yao Wei Tjong 姚伟忠
7e2d897235 Avoid unnecessary library rebuild while still keeping CLion happy. 2015-07-15 22:46:41 +08:00
Yao Wei Tjong 姚伟忠
eb35aaf8f5 Restore copyright year.
[ci skip]
2015-07-15 11:54:52 +08:00
urho3d-travis-ci
a1edde4e4d Travis CI: API documentation update at 2015-07-14 19:35:54 UTC.
[ci package]

Commit: 52885a22c4

Message: Clean up Spline code, add support for Catmull-Rom interpolation of other values than Vector3, and fix out of bounds array access in Catmull-Rom interpolation. Add linear interpolation mode. Add script bindings of new interpolation mode enums. Closes #772. Closes #773.
2015-07-14 19:35:54 +00:00
Lasse Öörni
52885a22c4 Clean up Spline code, add support for Catmull-Rom interpolation of other values than Vector3, and fix out of bounds array access in Catmull-Rom interpolation. Add linear interpolation mode. Add script bindings of new interpolation mode enums. Closes #772. Closes #773. 2015-07-14 22:17:26 +03:00
Lasse Öörni
8539e64dff Merge remote-tracking branch 'szamq/master' 2015-07-14 20:21:32 +03:00
Lasse Öörni
6f8ed55c0a Fix the Depth shader on D3D11. Simplify View code to determine whether a substitute RT for the backbuffer is needed. Fix having to render the hardware depth stencil twice in the ForwardDepth renderpath. 2015-07-14 19:32:58 +03:00
szamq
7299f3abf1 delete old spline files 2015-07-14 17:47:54 +02:00
szamq
528493d3b5 Merge branch 'master' of https://github.com/szamq/Urho3D
Conflicts:
	Source/Engine/Core/Spline.cpp
	Source/Engine/Core/Spline.h
2015-07-14 17:32:41 +02:00
szamq
e75fbec200 Added Catmull-Rom spline type which interpolates through the control nodes 2015-07-14 17:30:05 +02:00
Lasse Öörni
56ad4078aa Added contributor credit. 2015-07-13 13:17:48 +03:00
Lasse Öörni
8bd0959342 Merge remote-tracking branch 'cosmy1/master' 2015-07-13 13:09:00 +03:00
Lasse Öörni
eb3408282d Ensure PackageFile::GetEntryNames() returns names with original case. Case-sensitive PackageFile operation on other platforms than Windows, to match host filesystem. 2015-07-13 12:34:30 +03:00
cosmy1
ee35539a32 Empty statement fix
Empty statement fix when URHO3D_LOGGING=0
2015-07-12 15:32:45 +02:00
Yao Wei Tjong 姚伟忠
7a80b37c22 Fix URHO3D_PACKAGING build option on Windows platform with SHARED lib.
[ci scan]
2015-07-12 19:04:19 +08:00
Lasse Öörni
304308ea83 Add warning for creating AnimatedSprite2D to the scene root. Closes #770. 2015-07-12 12:31:20 +03:00
Yao Wei Tjong 姚伟忠
60f6a7482a Fix control flow bug identified by Coverity Scan in recent refactoring.
[ci only: Scan]
2015-07-08 02:18:00 +08:00
Yao Wei Tjong 姚伟忠
1a5268f427 Reformat D3D9 and D3D11 source files. 2015-07-07 23:46:51 +08:00
Yao Wei Tjong 姚伟忠
86641d847c Fix MSVC debug build. 2015-07-07 23:43:57 +08:00
Yao Wei Tjong 姚伟忠
9770e3dc99 Include 'Precompiled.h' to auto generated Lua binding C++ source files. 2015-07-07 23:43:56 +08:00
Yao Wei Tjong 姚伟忠
fa77a456f8 Reformat Urho3D source files to get rid of the indents on empty lines.
Reorganize includes.
Misc. fixes to perform explicit C-style cast on type mismatch.
Misc. fixes on bugs identified by CLion's static analyzer.
2015-07-07 23:43:56 +08:00
Yao Wei Tjong 姚伟忠
f0d107d3db Add new build option to support non-PCH build.
In order to achieve this, the Precompiled.h is now included back in all the Urho3D implementation source file. So, when the Precompiled.h is not being force-included in the PCH build, then the compiler is still able to find all the required symbol declarations. By doing so, it should also fix the indexer in some IDEs to index all the Urho3D declared symbols correctly whether it is a PCH build or not.
2015-07-07 23:43:56 +08:00
Lasse Öörni
d44feb37ec Ensure replace blend mode before rendering quad geometry to emulate partial rendertarget clear on D3D11. Closes #764. 2015-07-05 13:34:17 +03:00
Lasse Öörni
d937b8fd0b Fix whitespace. 2015-07-04 13:08:35 +03:00
thebluefish
c3d5df1ea4 Update OGLGraphicsImpl.h
Added function GetGLContext().

This allows us to switch multiple contexts like so:

    auto graphics = _context->GetSubsystem<Urho3D::Graphics>();
    auto graphicsImpl = graphics->GetImpl();
    				
    SDL_GL_MakeCurrent(graphicsImpl->GetWindow(), graphicsImpl->GetGLContext());
    _engine->RunFrame();
2015-07-03 21:46:49 -07:00
Lasse Öörni
56d1cbba1f Silence unnecessary LogicComponent warning at construction time; event subscription will be handled later when the component has access to the scene. 2015-07-03 19:03:01 +03:00
Lasse Öörni
7ac5c2d542 Fix remaining classes for OnSceneSet(). 2015-07-02 20:20:09 +03:00
Lasse Öörni
7bff2a4734 Fixes for moving a node from one scene to another. Related CollisionShape & Constraint fixes. 2015-07-02 15:17:02 +03:00
Lasse Öörni
52b739e2a4 Initial work to separate Component's association with its owner node and scene (OnNodeSet() and OnSceneSet()). This should allow components to work properly when moved from one scene to another, or when created initially outside a scene, and be removed from rendering & physics when removed from the scene, even if the node's refcount keeps it alive after the removal. 2015-07-01 23:45:12 +03:00
Lasse Öörni
bcd2991fa2 Make Octree::Raycast() possible to call from worker threads. This doesn't necessarily mean that it's safe to do so, unless you make sure you're not modifying the scene in the main thread at the same time. 2015-07-24 15:17:32 +03:00
urho3d-travis-ci
29e02e0ae8 Travis CI: API documentation update at 2015-06-30 09:45:49 UTC.
[ci package]

Commit: caf78d6178

Message: Minor typo corection on binding and code comment.
2015-06-30 09:45:49 +00:00
Yao Wei Tjong 姚伟忠
caf78d6178 Minor typo corection on binding and code comment. 2015-06-30 17:35:40 +08:00
urho3d-travis-ci
3cf39a1389 Travis CI: API documentation update at 2015-06-29 19:53:46 UTC.
[ci package]

Commit: e8af02f453

Message: Add double serialization support to Variant, Deserializer/Serializer, XMLElement & JSONValue. Use double to store a Lua object's number attributes. Add editing of double attributes to the editor. Closes #758.
2015-06-29 19:53:46 +00:00
Lasse Öörni
e8af02f453 Add double serialization support to Variant, Deserializer/Serializer, XMLElement & JSONValue. Use double to store a Lua object's number attributes. Add editing of double attributes to the editor. Closes #758. 2015-06-29 22:36:12 +03:00
Lasse Öörni
4306985a47 Fix uninitialized variable in DetourCrowd. Closes #753. 2015-06-26 12:26:11 +03:00
Yao Wei Tjong 姚伟忠
3052385081 Fix build tree configuration and generation under CLion IDE. 2015-06-23 16:36:47 +08:00
Lasse Öörni
afd714ac00 Make sure blend mode of existing Urho2D materials is not overwritten. Closes #742. 2015-06-18 17:16:14 +03:00
Lasse Öörni
27735786da Merge remote-tracking branch 'feltech/lua-load-raw-script-files' 2015-06-16 15:34:13 +03:00
Yao Wei Tjong 姚伟忠
df31b6ad7c Fix ProcessRayQuery() method to use correct overload for RAY_TRIANGLE.
Minor formatting and code clean up.
2015-06-16 13:12:19 +08:00
David Feltell
414e92dad2 Tidied/updated Lua raw script loader CMake definition and documentation.
* Tidied CMake definition and defaulted to disabled for
multi-configuration build types.
* Added CMake variable to table in "Building Urho3D" docs page.
* Added a section on "Debugging script files" to the "Lua scripting"
docs page.
2015-06-15 23:59:38 +01:00
urho3d-travis-ci
13e854c946 Travis CI: API documentation update at 2015-06-15 21:06:30 UTC.
[ci package]

Commit: e89184b38c

Message: Rename texture_uv_ to textureUV_
2015-06-15 21:06:30 +00:00
nemerle
e89184b38c Rename texture_uv_ to textureUV_ 2015-06-15 20:15:28 +02:00
nemerle
8bad584cb4 Match project's coding conventions and expose the new functionality to angelscript and lua
Remove debugging code from Decals example.
2015-06-15 19:06:05 +02:00
nemerle
c479fd72d5 Convert back from c++11 2015-06-15 17:20:39 +02:00
nemerle
16006239c1 Add support for retrieving UV coordinates of successful Ray query.
Conflicts:
	Source/Samples/08_Decals/Decals.cpp
	Source/Urho3D/Graphics/Geometry.cpp
	Source/Urho3D/Graphics/Geometry.h
	Source/Urho3D/Graphics/OctreeQuery.h
	Source/Urho3D/Graphics/StaticModel.cpp
	Source/Urho3D/Math/Ray.cpp
	Source/Urho3D/Math/Ray.h
2015-06-15 17:05:50 +02:00
David Feltell
a8afde31b2 Fix tab indent to space indent. 2015-06-14 20:28:04 +01:00
David Feltell
67b6f0d533 Add luaL_loadfile support, with CMake option to prefer this strategy.
* Added `LuaScript::LoadRawFile` and `LuaScript::ExecuteRawFile` to load
files using `luaL_loadfile` rather than via the resource cache
(`luaL_loadbuffer`).  This strategy makes the source available to Lua
debuggers (e.g. eclipse LDT) for setting breakpoints, etc.
* Added a CMake option `URHO3D_LUA_RAW_SCRIPT_LOADER` to make
`luaL_loadfile` the default script loading strategy.
  - `LuaScript::ExecuteFile` will thus prefer the `luaL_loadfile`
strategy, aiding in debugging as above, but without needing to change
method calls.
  -  `LuaScript::Loader` will also prefer the `luaL_loadfile` strategy,
so that scripts `require`d in the main script are also amenable to
debugging.
  - If a script file cannot be loaded from the file system, then it will
fall back on the default resource cache `luaL_loadbuffer` strategy (e.g.
for packaged scripts).
2015-06-14 20:13:03 +01:00
urho3d-travis-ci
92075c6b43 Travis CI: API documentation update at 2015-06-14 12:28:34 UTC.
[ci package]

Commit: 476c4f25c8

Message: Allow GetChildrenWithClassName() in AngelScript API to return derived classes. Thanks to JSandusky for the original forum post on which the code is based.
2015-06-14 12:28:34 +00:00
Lasse Öörni
476c4f25c8 Allow GetChildrenWithClassName() in AngelScript API to return derived classes. Thanks to JSandusky for the original forum post on which the code is based. 2015-06-14 15:20:06 +03:00
Lasse Öörni
e142319eb0 Only perform animation length fixing for non-looped 2D animations. Fixes incorrect looping in animations where the start & end keyframes don't match. 2015-06-11 17:16:31 +03:00
Lasse Öörni
bb17ef1570 Blit to backbuffer before debug geometry if used resolve from backbuffer to acquire the scene initially for postprocessing. Closes #741. 2015-06-11 11:45:30 +03:00
Yao Wei Tjong 姚伟忠
6923bd0736 Install tools to the 'bin/tool' directory.
Related to commit 6b6447eb8c.
2015-06-10 18:39:39 +08:00
urho3d-travis-ci
f0999ad2ff Travis CI: API documentation update at 2015-06-10 10:22:01 UTC.
[ci package]

Commit: 3e930c5a6f

Message: Added IsAtEnd() function to AnimationController.
2015-06-10 10:22:01 +00:00
Lasse Öörni
3e930c5a6f Added IsAtEnd() function to AnimationController. 2015-06-10 13:13:00 +03:00
nemerle
a779d56c82 Fix lightmap texture imports - likely copy-paste error 2015-06-06 21:11:01 +02:00
urho3d-travis-ci
b3fda4de9c Travis CI: API documentation update at 2015-05-31 17:31:20 UTC.
[ci package]

Commit: 46ebfb4b22

Message: Fix GetData() from rendertarget textures on D3D9. Thanks for JSandusky for bringing into attention. Added GetComponents() to Texture to easily determine which kind of Image needs to be created to receive the texture data.
2015-05-31 17:31:20 +00:00
Lasse Öörni
46ebfb4b22 Fix GetData() from rendertarget textures on D3D9. Thanks for JSandusky for bringing into attention. Added GetComponents() to Texture to easily determine which kind of Image needs to be created to receive the texture data. 2015-05-31 20:16:28 +03:00
ninjastone
c984c18a8b removed unused lines 2015-06-01 00:32:02 +09:00
ninjastone
d0fea4abd3 Fixed: AssetImporter was not importing single keyframe animation correctly. 2015-05-31 23:37:14 +09:00
Lasse Öörni
1c4e6f43ff Added the AMD equivalent for NvOptimusEnablement. 2015-05-30 23:31:40 +03:00
urho3d-travis-ci
4e27d96482 Travis CI: API documentation update at 2015-05-28 14:10:58 UTC.
[ci package]

Commit: d090b0be56

Message: Added blendmode to renderpath commands (only used by QUAD commands.)
2015-05-28 14:10:58 +00:00
Lasse Öörni
d090b0be56 Added blendmode to renderpath commands (only used by QUAD commands.) 2015-05-28 17:00:00 +03:00
Lasse Öörni
6a21873824 Fix over-long time in 2D animations which would cause sprite flashing or sprites vanishing in clamp mode (for example the included "attack" animation) 2015-05-28 16:06:58 +03:00
urho3d-travis-ci
12f220618c Travis CI: API documentation update at 2015-05-28 10:02:09 UTC.
[ci package]

Commit: 88d86548a4

Message: Further minor clean up the CrowdAgent class.
Revise the sample so Jack walk and turn more naturally.
2015-05-28 10:02:09 +00:00
Yao Wei Tjong 姚伟忠
88d86548a4 Further minor clean up the CrowdAgent class.
Revise the sample so Jack walk and turn more naturally.
2015-05-28 17:52:12 +08:00
urho3d-travis-ci
fd386c8bcd Travis CI: API documentation update at 2015-05-27 13:59:39 UTC.
[ci package]

Commit: 6b72c4412a

Message: Minor code clean up and bug fixes for DetourCrowd implementation.
Avoid using multiple vectors to hold the same set of objects in the DetourCrowd sample.
2015-05-27 13:59:39 +00:00
Yao Wei Tjong 姚伟忠
6b72c4412a Minor code clean up and bug fixes for DetourCrowd implementation.
Avoid using multiple vectors to hold the same set of objects in the DetourCrowd sample.
2015-05-27 21:51:10 +08:00
Lasse Öörni
c94bd4310b Fix incorrect viewport size when mixing rendering to backbuffer and to other textures in the renderpath. 2015-05-26 01:32:24 +03:00
Mike3D
e166e7a84d Added moving obstacles and teleportation to sample 39. Also various behavior tweaks and ground texture modified to break monotony and discriminate with sample 15. If something doesn't appeal it can be reverted.
Also set default mask and areaID at OffMeshConnection initialization.
2015-05-23 09:27:39 +02:00
Yao Wei Tjong 姚伟忠
89ff346a2e Prefer class forward than full header include. 2015-05-22 18:56:48 +08:00
urho3d-travis-ci
96e9e87e35 Travis CI: API documentation update at 2015-05-22 08:30:22 UTC.
[ci package]

Commit: 4fab742e50

Message: Added accessors for navMesh debug geometry
2015-05-22 08:30:22 +00:00
Mike3D
4fab742e50 Added accessors for navMesh debug geometry 2015-05-22 10:22:01 +02:00
urho3d-travis-ci
24e11c6b6c Travis CI: API documentation update at 2015-05-22 06:08:11 UTC.
[ci package]

Commit: 44d5d21bbe

Message: Exposed Node::GetComponents(), Node::GetChildren() and Node::GetChildrenWithComponent() to lua
2015-05-22 06:08:11 +00:00
Mike3D
44d5d21bbe Exposed Node::GetComponents(), Node::GetChildren() and Node::GetChildrenWithComponent() to lua 2015-05-22 08:00:01 +02:00
urho3d-travis-ci
e78d91d00e Travis CI: API documentation update at 2015-05-21 14:08:22 UTC.
[ci package]

Commit: b274be3997

Message: Added Get/SetMaxObstacles() to DynamicNavigationMesh
2015-05-21 14:08:22 +00:00
Mike3D
b274be3997 Added Get/SetMaxObstacles() to DynamicNavigationMesh 2015-05-21 16:00:04 +02:00
JSandusky
a4cec53adb Iterate through updating the tilecache
until open request space is available during obstacle addition/removal.
Pending tile updates may interfere with processing requests.
2015-05-20 16:48:53 -04:00
Lasse Öörni
66f967c9eb Only enable quantized AABB compression on a collision mesh when triangle count is below one million, to work around a Bullet issue. Closes #730. 2015-05-20 16:35:20 +03:00
Mike3D
7f3a6ef86b Added off-mesh connections to sample 39 2015-05-20 10:56:32 +02:00
urho3d-travis-ci
dadca9931e Travis CI: API documentation update at 2015-05-19 14:37:15 UTC.
[ci package]

Commit: bb03eb0f12

Message: Moved the transformation of AngelScript function name to void signature to GetFunction() / GetMethod() to allow all of execute, delayed execute and event subscription to handle either a function name or full signature. Added HasMethod() to ScriptInstance to allow checking for existence of function (avoid error log print in cases where an "optional" function is being called on a script object.) Updated scripting documentation.
2015-05-19 14:37:15 +00:00
Lasse Öörni
bb03eb0f12 Moved the transformation of AngelScript function name to void signature to GetFunction() / GetMethod() to allow all of execute, delayed execute and event subscription to handle either a function name or full signature. Added HasMethod() to ScriptInstance to allow checking for existence of function (avoid error log print in cases where an "optional" function is being called on a script object.) Updated scripting documentation. 2015-05-19 17:27:58 +03:00
Lasse Öörni
8246bb003d Allow submitting bare function names to DelayedExecute. In this case function is assumed to be a void function without parameters. Log error when trying to execute a nonexistent script object method. 2015-05-19 16:17:09 +03:00
JSandusky
29d9892e9b Exclude nodes with Obstacle components from navigation mesh geometry collection 2015-05-18 13:28:04 -04:00
urho3d-travis-ci
058ba0a4c3 Travis CI: API documentation update at 2015-05-18 16:19:29 UTC.
[ci package]

Commit: 562700fceb

Message: Added more navigation bindings
Also added global toggle for NavArea::DrawDebugGeometry()
and OffMeshConnection::DrawDebugGeometry()
Also added lua binding for DrawDebugGeometry() in Component.pkg
2015-05-18 16:19:29 +00:00
Mike3D
562700fceb Added more navigation bindings
Also added global toggle for NavArea::DrawDebugGeometry()
and OffMeshConnection::DrawDebugGeometry()
Also added lua binding for DrawDebugGeometry() in Component.pkg
2015-05-18 18:11:21 +02:00
Yao Wei Tjong 姚伟忠
be2280918b Adjust .gitignore to filter generated stuff in non out-of-source build.
Related to #716. [ci skip]
2015-05-18 22:33:55 +08:00
Yao Wei Tjong 姚伟忠
9a7d51b0e1 Fix UI-Element debug draw. 2015-05-18 17:02:34 +08:00
Lasse Öörni
fd8703dcec Flush the DetourTileCache update queue if necessary, when adding or removing an obstacle. Closes #726. 2015-05-17 18:31:52 +03:00
urho3d-travis-ci
7d5fea25cb Travis CI: API documentation update at 2015-05-17 14:02:01 UTC.
Commit: f9f920964f

Message: Remove agents & obstacles on OnNodeSet(null), similar to Drawables. Do not allow adding an agent when node is already null. Added missing enum in AngelScript navigation API. Do not keep a persistent array of agent handles in the AngelScript crowd example, as that keeps the agents alive even past removal from scene. Closes #729.
[ci package]
2015-05-17 14:02:01 +00:00
Lasse Öörni
f9f920964f Remove agents & obstacles on OnNodeSet(null), similar to Drawables. Do not allow adding an agent when node is already null. Added missing enum in AngelScript navigation API. Do not keep a persistent array of agent handles in the AngelScript crowd example, as that keeps the agents alive even past removal from scene. Closes #729. 2015-05-17 16:54:57 +03:00
urho3d-travis-ci
dafca26c97 Travis CI: API documentation update at 2015-05-17 10:46:33 UTC.
Commit: https://github.com/$TRAVIS_REPO_SLUG/commit/$TRAVIS_COMMIT

Message: $COMMIT_MESSAGE
[ci package]
2015-05-17 10:46:33 +00:00
Lasse Öörni
4a79c14189 Fix missing Lua Component class property bindings. Removed some "unsafe" Node functions from Lua bindings. 2015-05-17 13:37:06 +03:00
Mike3D
cca861f6d3 Simplified sample 39 using the crowd manager 2015-05-17 10:15:41 +02:00
Yao Wei Tjong 姚伟忠
b1d6031673 Show root cause error from SDL when SDL fails to create main window. 2015-05-17 16:05:35 +08:00
urho3d-travis-ci
6bacbe4230 Travis CI: API documentation update at 2015-05-16 19:16:03 UTC.
[ci package]
2015-05-16 19:16:03 +00:00
Lasse Öörni
082cd11edc Expose DetourCrowdManager::GetActiveAgents() to Lua. Closes #728. 2015-05-16 22:08:36 +03:00
Lasse Öörni
33122036f3 Clear obstacleId_ also in silent mode obstacle removal. Fixed event type when obstacle removed. May or may not have anything to do with #726. 2015-05-16 19:44:54 +03:00
urho3d-travis-ci
3debae64f8 Travis CI: API documentation update at 2015-05-16 14:59:59 UTC.
[ci package]
2015-05-16 14:59:59 +00:00
Mike3D
fed3846611 Improved navigation debug geometry and added missing bindings 2015-05-16 16:50:15 +02:00
Lasse Öörni
9b25da5f7b Make sure agents are removed from crowd upon destruction. Closes #725. 2015-05-16 00:28:04 +03:00
Yao Wei Tjong 姚伟忠
dfab28fed6 Fix iOS host-tool building for Urho3D_universal target.
For Travis CI - when releasing disregard commit message instruction from the last commit being tagged. This is to ensure all CI jobs are run for releasing the artifacts.
[ci package]
2015-05-15 19:21:25 +08:00
Yao Wei Tjong 姚伟忠
5cd6272bf6 Fix iOS "unsupported architecture" issue when precompiling PCH.
When using Xcode, instead of precompiling PCH using our own build rules, simply switch on the Xcode support for PCH and delegate the task to it.
2015-05-13 16:41:26 +08:00
urho3d-travis-ci
064b67aba8 Travis CI: API documentation update at 2015-05-12 13:10:01 UTC.
[ci package]
2015-05-12 13:10:01 +00:00
Lasse Öörni
5b41352680 Minor whitespace and code convention edits. 2015-05-12 15:37:27 +03:00
Lasse Öörni
a4851ab36d Merge remote-tracking branch 'JSandusky/CrowdStateTracking' 2015-05-12 12:06:50 +03:00
Lasse Öörni
4c9005785b Do not use float luminance formats, as they are deprecated on GL3. Instead return R16F & R32F formats (red channel only) to match Direct3D behavior. Closes #722. 2015-05-12 12:02:57 +03:00
Lasse Öörni
507b1fd9ab Forward-declare Texture in Renderer.h. Fix potential missing return value for FindNamedTexture(). Closes #721. 2015-05-12 11:10:37 +03:00
JSandusky
ca7a6af1f3 CrowdAgent state handling
- CrowdAgentStateChanged event includes Node and Agent parameters
- CrowdAgentFailure event for target/agent-state failures
- GetAreaCost in NavigationMesh, script bindings updated
- Fixed error spawning Jack nodes on top of boxes in Angelscript sample
- DebugRendering for DynamicNavigationMesh layers
- Rename all references to AreaType as AreaID
- CrowdAgent angelscript enum bindings made consistent
- Include simple example handling of CrowdAgentFailure for faulty
initial state (sides of boxes) in all samples
- Consistent values in samples (box/mushroom counts)
- Completed "todo" for investigating rcFilterLedgeSpans in
DynamicNavigationMesh
2015-05-12 02:29:32 -04:00
Lasse Öörni
f42dd05319 Restored the previous mouse move logic for Emscripten only. 2015-05-10 14:28:51 +03:00
Lasse Öörni
16a1894cb2 Never use SDL mouse move event data when mouse is hidden and being recentered, as that causes RELATIVE mode to return wrong mouse deltas on OSX. 2015-05-10 12:41:16 +03:00
Yao Wei Tjong 姚伟忠
fb84bcf179 For Travis CI - tune down email notifications frequency.
Add checkpoint for Emscripten CI build and use it to determine whether to skip make test and/or scaffolding test when running short of time.

For Travis CI - perform the full CI jobs for topic branches and PRs.

For Travis CI - use custom data in .travis.yml for excluding samples.
2015-05-08 18:39:14 +08:00
Lasse Öörni
a19eead144 Fix non-desktop graphics builds. 2015-05-08 13:32:42 +03:00
urho3d-travis-ci
a88a57c6ca Travis CI: API documentation update at 2015-05-08 09:51:55 UTC.
[ci package]
2015-05-08 09:51:55 +00:00
Lasse Öörni
318a3db786 Merge branch 'renderpath-cubemap'
Conflicts:
	Source/Urho3D/Graphics/View.cpp
2015-05-08 11:40:01 +03:00
Lasse Öörni
c1e2d51338 Fix readable HW depth rendering on D3D11. Do not allocate a dummy color rendertarget for depth-only rendering unnecessarily on D3D11. 2015-05-08 01:53:54 +03:00
Lasse Öörni
0298740da2 Fix wrong viewport being used in depth-only rendering. Do not setup rendertarget & depth stencil for debug geometry rendering, if nothing to render. 2015-05-08 00:15:59 +03:00
Lasse Öörni
9f044cb1fa Refactor FindNamedTexture() so that programmatically stored cubemap textures without a proper file extension can be used for texture binding in the renderpath. Expose GetExistingResource() to script. 2015-05-07 21:45:18 +03:00
Lasse Öörni
b3f39da360 Fix missing camelcasing. 2015-05-07 21:28:18 +03:00
Lasse Öörni
4619040250 Fix GetExistingResource(). 2015-05-07 21:25:56 +03:00
Lasse Öörni
03c517ebda Fix out of bounds array access related to RenderPathCommand outputs. Changed to store name and face within a pair. Added missing render path-related script bindings. 2015-05-07 21:05:27 +03:00
Lasse Öörni
0bf8877d1e Fix D3D build. 2015-05-07 19:52:30 +03:00
Lasse Öörni
a8bf39ca7e Remove redundant check. 2015-05-07 19:43:32 +03:00
Lasse Öörni
15f338b3c0 Allow RenderPath to define cube map rendertargets. Allow RenderPath to refer to rendertargets created programmatically and stored as named manual resources. 2015-05-07 18:56:00 +03:00
Mike3D
581d1b550b Do not hardcode obstacle radius 2015-05-07 17:20:05 +02:00
urho3d-travis-ci
1e49c1938c Travis CI: API documentation update at 2015-05-07 10:15:09 UTC.
[ci package]
2015-05-07 10:15:09 +00:00
Yao Wei Tjong 姚伟忠
252206a207 Decouple Physics subsystem from DetourCrowd implementation.
Also minor code clean up (dot the i's and cross the t's).
2015-05-07 16:52:18 +08:00
Lasse Öörni
f4b5ead164 On D3D11 & OpenGL3, convert luminance & luminance-alpha textures to RGBA on upload. Revert RampGenerator & Spot/SpotWide texture changes to use RGB format. Closes #718. 2015-05-06 17:23:10 +03:00
Lasse Öörni
bb831d75f8 Added nullcheck to AnimatedSprite2D::UpdateAnimation(). Thanks to rku for noticing. 2015-05-06 13:07:00 +03:00
urho3d-travis-ci
bf1b4e3a15 Travis CI: API documentation update at 2015-05-06 09:09:03 UTC.
[ci package]
2015-05-06 09:09:03 +00:00
Lasse Öörni
42c352f2ba Tabs to spaces. Change NavArea Bounds to BoundingBox to match Urho convention elsewhere. Added NavArea component Lua binding. 2015-05-06 11:56:12 +03:00
Lasse Öörni
bc5f009d75 Readded nullcheck to AnimatedSprite2D::OnFlipChanged(). 2015-05-06 11:54:48 +03:00
urho3d-travis-ci
131d2122e8 Travis CI: API documentation update at 2015-05-05 17:32:38 UTC.
[ci package]
2015-05-05 17:32:38 +00:00
Mike3D
88459684ab Added some missing bindings for CrowdAgent (+indentations) 2015-05-05 19:22:47 +02:00
urho3d-travis-ci
2da72b4b89 Travis CI: API documentation update at 2015-05-05 15:21:32 UTC.
[ci package]
2015-05-05 15:21:32 +00:00
Lasse Öörni
8f29e751b7 Fix memory leak in NavBuildData. Match capitalization of the CrowdNavigation help text in all versions. 2015-05-05 17:58:31 +03:00
JSandusky
567a29d74e Implementation of DetourCrowd and DetourTileCache
Added Components:
- DynamicNavigationMesh (uses DetourTileCache)
- Obstacle (interacts with DynamicNavigationMesh)
- DetourCrowdManager (uses DetourCrowd for crowd control)
- CrowdAgent (interacts with DetourCrowdManager)
- NavArea (marks area types)

Changes:
- Refactor NavigationMesh build process
- Addition of cylinder debug rendering
- Exposed Area Type Costs in navigation

CrowdNavigation sample for Lua, Angelscript, and C++ using
DynamicNavigationMesh, Obstacle, CrowdAgent, and DetourCrowdManager
components.
2015-05-04 22:14:00 -04:00
Yao Wei Tjong 姚伟忠
2aa2cab2c6 Fix Assimp's CMakeLists.txt so the lib built successfully on Xcode.
Close #709.
For Travis CI - when performing a release, keep the CI mirror branches around for a little longer just in case we need to restart the CI job again due to Travis CI build error.
2015-05-02 21:05:49 +08:00
Lasse Öörni
830eede29b Restore old check for forceinline in stb_vorbis to fix MinGW build. 2015-05-01 15:56:40 +03:00
Lasse Öörni
20ac7fb2e5 Update STB libraries. 2015-05-01 15:33:39 +03:00
Lasse Öörni
e6c8acdf40 Add contributor credit. Mark AngelScript modifications. 2015-04-29 13:57:55 +03:00
Joshua Cearley
0b2228b7cd Support MinGW 4.7 ABIs on Clang. 2015-04-28 18:34:05 -05:00
urho3d-travis-ci
94372097fb Travis CI: API documentation update at 2015-04-27 10:40:13 UTC.
[ci package]
2015-04-27 10:40:13 +00:00
Lasse Öörni
ba777f0d17 Fix omissions in Lua VertexBuffer / IndexBuffer / Model bindings. Add 34_DynamicGeometry.lua example. Closes #704. 2015-04-27 13:32:39 +03:00
urho3d-travis-ci
3591990e24 Travis CI: API documentation update at 2015-04-27 07:37:18 UTC.
[ci package]
2015-04-27 07:37:18 +00:00
Lasse Öörni
0235c02653 Expose Geometry, IndexBuffer & VertexBuffer to script, with VB & IB content access using VectorBuffer. AngelScript 34_DynamicGeometry example. Lua version to follow. 2015-04-27 10:29:38 +03:00
Lasse Öörni
b227fb7680 Document where to find the QUALITY & SHADOWQUALITY constant definitions. 2015-04-25 01:08:57 +03:00
urho3d-travis-ci
2e81fa9c6a Travis CI: API documentation update at 2015-04-24 12:33:24 UTC.
[ci package]
2015-04-24 12:33:24 +00:00
Lasse Öörni
08ea925895 Fix Variant::GetUInt() return type. Closes #710. 2015-04-24 15:15:58 +03:00
urho3d-travis-ci
6424fa00c7 Travis CI: API documentation update at 2015-04-21 12:40:12 UTC.
[ci package]
2015-04-21 12:40:12 +00:00
aster2013
6beb325b69 Merge branch 'master' of https://github.com/urho3d/Urho3D 2015-04-21 20:29:07 +08:00
Lasse Öörni
9a3ec30b4a Add add-assign also for signed long and long long integers in String. Added contributor credit. 2015-04-16 16:51:10 +03:00
marynate
7df29b9897 Add unsigned long and unsigned long long support to String += operator 2015-04-16 19:42:18 +08:00
Lasse Öörni
ff8f4b7525 On Windows, when stdout/stderr has been redirected, use fprintf instead of WriteConsoleW() to allow capturing log output from tools. Closes #703. 2015-04-15 21:53:49 +03:00
Yao Wei Tjong 姚伟忠
67ce3e48bd Increase the multiplier for the EMRUN time out setting.
Emscripten has just released version 1.30 which, among others, fixes the EMRUN time out handling. In the previous version it did not time-out as expected. But now as EMRUN times out correctly, the build test failed on our Emscripten build due to Travis CI latency.
2015-04-13 17:26:10 +08:00
Ali Kämäräinen
8332e68f56 Improve AssetImporter error print. 2015-04-13 10:17:22 +03:00
Lasse Öörni
4ddc71b769 Make glWrapMode related arrays & function static. 2015-04-07 11:44:13 +03:00
Lasse Öörni
1423c1cf29 Fix wrong enum for border clamp mode on GL3. Closes #695. 2015-04-07 11:40:33 +03:00
aster2013
21b90f6b86 Add Angelscript and Lua script API. 2015-04-07 16:37:40 +08:00
aster2013
32b12dcc57 Add GetDrawRectangle and GetTextureRectangle in Sprite2D. 2015-04-07 13:43:47 +08:00
aster2013
aeb1806f78 Add SourceBatch2D in Drawable2D;
Add ViewBatchInfo2D in Renderer2D;
Remove texture and blend mode in Drawable2D;
Add blend mode in ParticleEffect2D;
Add blend mode and custom material in StaticSprite2D.
2015-04-07 13:01:45 +08:00
urho3d-travis-ci
cbdc0f4c48 Travis CI: API documentation update at 2015-04-06 18:22:43 UTC.
[ci package]
2015-04-06 18:22:43 +00:00
Lasse Öörni
ddb9362ef4 Added possibility to new a ParticleEffect from Lua, and exposed missing functions. Fixed crash if ParticleEffect has no color frames. Closes #689. 2015-04-06 20:47:43 +03:00
Lasse Öörni
be994d62e4 Remove extra parentheses from CreateObject(), as suggested by Modanung. 2015-04-06 19:55:35 +03:00
Lasse Öörni
3ca9b7d499 Add WorkQueue functions to remove items (single or multiple) before being assigned to worker threads. Closes #690. 2015-04-06 19:50:07 +03:00
urho3d-travis-ci
a626c9d6c8 Travis CI: API documentation update at 2015-04-04 10:32:48 UTC.
[ci package]
2015-04-04 10:32:48 +00:00
Lasse Öörni
97fb2638db Add fill mode to materials. 2015-04-04 02:40:38 +03:00
Lasse Öörni
79e89dfad3 Fix losing input focus right after startup on Linux. 2015-04-04 00:58:14 +03:00
Lasse Öörni
a716bbcf61 Fix mouse move jumps in mixed touch & mouse usage. 2015-04-03 23:40:57 +03:00
Lasse Öörni
03602fbd1c Use the "click to focus" mechanism on all desktop platforms in windowed & mouse-hidden mode. Code cleanup in Input. 2015-04-03 22:57:47 +03:00
Lasse Öörni
9d9ea418e3 Disable use of fullscreen space on OS/X to fix black screen on fullscreen switch. 2015-04-03 14:47:30 +03:00
Lasse Öörni
0285d50302 When making a triangle-level raycast to StaticModel, return the hit batch (submesh) index in the subObject field of the ray result. 2015-04-02 20:26:35 +03:00
Yao Wei Tjong 姚伟忠
b2c2bb372b Attempt to suppress some of the compiler warnings from iOS 64bit build.
Something must have changed on the Travis CI Mac OS X build environment recently that causes the compiler to produce tons of warning on iOS 64-bit build. It not only slows down the CI build but also causes the log to be truncated in the Travis CI web interface.
2015-04-02 23:59:26 +08:00
Lasse Öörni
8ea3476479 Bind the backbuffer FBO before cleaning up frame buffers. 2015-04-02 01:53:52 +03:00
Lasse Öörni
474d725c5a Do not recenter mouse during window resize to fix erratic window sizes on Linux. Removed unnecessary input code. Check for external window before recentering mouse in relative mode. 2015-04-02 01:01:49 +03:00
Lasse Öörni
dae17d375c Clean up OpenGL frame buffers when window size changes. 2015-04-02 00:42:45 +03:00
Lasse Öörni
acfeab71d1 Remove the OSX REQUIRE_CLICK_TO_FOCUS mechanism as it seems to not be necessary, and does not work with the event flushing when not focused. 2015-04-01 20:53:30 +03:00
Lasse Öörni
821d6bd036 Added missing null checks for StaticSprite2D component. 2015-04-01 15:57:30 +03:00
urho3d-travis-ci
8e1169079b Travis CI: API documentation update at 2015-03-31 21:03:59 UTC.
[ci package]
2015-03-31 21:03:59 +00:00
Lasse Öörni
5c448d6e1d Support DXT1,3,5 on Emscripten. Simplify GL / GLES code path differences in OGLTexture.cpp. 2015-03-31 23:43:55 +03:00
Lasse Öörni
2961166acb Graphics code cleanup. Remove the GraphicsFeatures event, as now the features can not change during runtime. Move all OpenGL extensions checks to CheckFeatureSupport(). Fix an AMD GLSL compilation bug, which caused buggy 4-sample shadows. 2015-03-31 23:06:09 +03:00
Lasse Öörni
b92372264b Ensure that the OpenGL extensions are initialized after context recreation, and a valid VAO exists on GL3, before giving the GPU objects the chance to restore themselves. 2015-03-31 21:51:56 +03:00
Lasse Öörni
2ddb7c9d1a Use GetTempResource() for the inherited XML file when async loading. Generalize resource loading to switch into async mode whenever not in the main thread so that unsafe (main thread -only) functionality is avoided. 2015-03-31 19:04:05 +03:00
Yao Wei Tjong 姚伟忠
41d9ab29a9 For Travis CI - add CI build jobs for Direct3D 11.
Fix Emscripten build due to earlier faulty fix on MinGW build to support building of PackageTool for both host and target systems.
2015-03-30 23:02:01 +08:00
Yao Wei Tjong 姚伟忠
6125f08716 Fix MinGW build when PackageTool is built for both host and target. 2015-03-30 20:47:13 +08:00
urho3d-travis-ci
769cbcaf86 Travis CI: API documentation update at 2015-03-25 10:15:47 UTC.
[ci package]
2015-03-25 10:15:47 +00:00
Lasse Öörni
5282cda206 Do not show the Is Modal attribute in editor, as if it's enabled, the user can do nothing except dismiss it by ESC. Closes #682. 2015-03-25 12:02:33 +02:00
urho3d-travis-ci
de1b9b2e1a Travis CI: API documentation update at 2015-03-24 21:54:08 UTC.
[ci package]
2015-03-24 21:54:08 +00:00
Lasse Öörni
d06ffe1445 Merge pull request #680 from urho3d/render-refactor
Render refactor
2015-03-24 23:34:39 +02:00
Lasse Öörni
7666853b3a Revert "Create depth-stencil texture instead of renderbuffer on OpenGL 3 / Intel / Windows to work around a driver bug." as the issue is fixed on the latest Intel driver. There was also a OpenGL 2 corrupted rendering bug related to clip planes on the earlier driver version, which was not fixable.
This reverts commit d99fefa68b.
2015-03-23 20:54:33 +02:00
Lasse Öörni
d99fefa68b Create depth-stencil texture instead of renderbuffer on OpenGL 3 / Intel / Windows to work around a driver bug. 2015-03-23 03:06:18 +02:00
Lasse Öörni
64600d5526 Enable GLEW experimental mode only on a 3.2+ context so that OpenGL 2 extensions can be checked strictly. 2015-03-22 19:00:04 +02:00
Lasse Öörni
ac60622d6b Fix WinXP compatibility of kNet's Clock class. 2015-03-22 15:16:54 +02:00
Lasse Öörni
596c32345e Force extra screen buffers to RGBA only on OpenGL 2. 2015-03-21 23:38:33 +02:00
Lasse Öörni
b8c7c59eca Configure amount of allowed bones for hardware skinning based on the rendering API. Allow 128 bones on Direct3D 11 & OpenGL 3. Add -mb (maxbones) parameter to AssetImporter & OgreImporter. When using OpenGL 3, allow deferred rendering to use different MRT formats without forcing an RGBA substitute rendertarget. 2015-03-21 23:22:08 +02:00
Lasse Öörni
7989be4ba8 Set D3D11 textures also for the vertex shader to enable vertex texture fetch to work as on OpenGL. 2015-03-21 02:03:40 +02:00
Lasse Öörni
81e6647b60 Clean up OpenGL Graphics class code. Use core functions for instancing on OpenGL 3. Do not enable/disable texture targets on OpenGL 3. Removed the framebuffer aging mechanism; instead framebuffers are cleaned up on context loss (resolution change.) Disable OpenGL constant buffer use by default (from Uniforms.glsl) as they were found to be slower in practice. 2015-03-21 01:56:38 +02:00
Lasse Öörni
7716b4860c Use a reinterpret-cast trick to eliminate code duplication from Graphics::SetVertexBuffers(). Removed D3DCOMPILER_STRIP_PRIVATE_DATA flag as it may be undefined when compiling using the DirectX SDK. 2015-03-20 18:34:31 +02:00
Lasse Öörni
f4dc0bf149 If GL3 context creation fails, retry with GL2. 2015-03-20 12:31:46 +02:00
urho3d-travis-ci
ff91008697 Travis CI: API documentation update at 2015-03-20 00:29:33 UTC.
[ci package]
2015-03-20 00:29:33 +00:00
Lasse Öörni
0e17c34570 Typo fix and minor documentation tweak. 2015-03-20 01:17:05 +02:00
Lasse Öörni
99e49ac3b8 Add an 8-bit timestamp to client controls, which gets incremented on each sent update. Echo this timestamp back in server updates sent to client. Allow to intercept network attribute updates into an event instead of applying them immediately, to facilitate implementing application-level client prediction. Add simulated latency & packet loss parameters to Network. Note that these changes break protocol compatibility with earlier Urho3D releases. 2015-03-20 01:05:11 +02:00
Lasse Öörni
227b2b03dc Fix / simplify GL3 or GL2 detection. 2015-03-19 12:43:22 +02:00
Lasse Öörni
607b173e53 Reinterpret-cast shader parameter source hash values consistently to const void* to avoid potential 64bit build warnings. 2015-03-19 02:01:07 +02:00
Lasse Öörni
cdfb6b77d9 Set shaders before material state to ensure changing the depth bias on OpenGL dirties the camera shader parameter group properly. 2015-03-19 01:25:59 +02:00
Lasse Öörni
bd8f455e15 Minor code formatting. 2015-03-19 00:26:16 +02:00
Lasse Öörni
88b05c738f Remember shader parameter sources inside individual ShaderPrograms to reduce redundant uniform assignments. 2015-03-19 00:05:07 +02:00
Lasse Öörni
42963a7300 Keep track of last bound VBO & UBO to avoid redundant binding. 2015-03-18 23:09:39 +02:00
Lasse Öörni
040b6263f5 Fix crash with null constant buffer slots. 2015-03-18 20:54:21 +02:00
Lasse Öörni
f450d0c3b4 Reuse constant buffer object number when resizing. Do not mark light queue to shadow batches, as it is unnecessary and could lead to shader parameter update bugs (requires further refactoring to prevent in the Graphics class.) 2015-03-18 20:19:05 +02:00
Lasse Öörni
2cefd437de Check if shader uses uniforms outside buffer and invalidate all parameter groups in that case, when switching shaders. Add define in Uniforms.glsl which allows to disable constant buffers on OpenGL 3, as using them may actually be slower. 2015-03-18 10:27:46 +02:00
Lasse Öörni
0e5a05afc7 OpenGL 3 constant buffer support. 2015-03-18 02:40:28 +02:00
Lasse Öörni
5fd6d42159 Use core functions for FBO operations when using OpenGL 3. 2015-03-17 22:06:09 +02:00
Lasse Öörni
006c17f78e Added command line & engine startup option to disable OpenGL 3. 2015-03-17 20:44:49 +02:00
Lasse Öörni
992cbcc73f Fix GLSL deprecation warnings. OpenGL 3 clip plane support. Use R32F format on OpenGL 3 for deferred linear depth instead of manual RGB encoding & decoding. 2015-03-17 01:01:11 +02:00
Lasse Öörni
07a75dc37b Initial OpenGL 3.2 support. 2015-03-16 23:36:35 +02:00
Lasse Öörni
a0a1d13109 Do pass queue lookup only once when executing the scene pass command. 2015-03-16 02:50:38 +02:00
Lasse Öörni
918d299450 Minor optimization of Drawable::MarkInView(): resize once instead of clear and push. 2015-03-16 00:57:43 +02:00
Lasse Öörni
6c3b8078f6 Split GetBatches() into sub-functions to aid in profiling. Minor optimization of View::GetTechnique() when using the default material. 2015-03-16 00:34:08 +02:00
Lasse Öörni
e2afa34bb7 Refactor Technique to not use HashTable for passes, but instead a vector with dynamically allocated pass indices. HashTable class removed as there were no other uses for it, and it was programmer-unfriendly compared to HashMap. 2015-03-15 21:07:51 +02:00
Yao Wei Tjong 姚伟忠
adcf016433 Fix ToCpHook.lua when it is being used in external project. 2015-03-15 10:58:21 +08:00
Lasse Öörni
0c58651c5c Store constant buffer pointer directly to the ShaderProgram parameters to avoid indirection and if statement choosing between VS & PS parameters. 2015-03-15 01:21:36 +02:00
Lasse Öörni
2858755334 Log missing vertex element(s) when vertex layout fails to create. Add texcoords to the editor grid to keep D3D11 happy. 2015-03-15 00:23:49 +02:00
Yao Wei Tjong 姚伟忠
d2ea0ca934 Finetune the default test timeout value for Emscripten platform.
We have a time constraint on Travis CI side for all our CI builds and tests. Default value of 10 for Emscripten and 5 for native platform is also inline with Emscripten's claim that asm.js is about 50% slower than native speed.
2015-03-14 12:46:15 +08:00
Lasse Öörni
e17a88b46f GetData() on D3D11 for Texture3D & TextureCube. 2015-03-13 09:09:41 +02:00
Lasse Öörni
d1b03d95db Texture2D::GetData() for D3D11. D3D11 texture code cleanup. 2015-03-13 01:11:01 +02:00
Lasse Öörni
785df863e4 Save spot textures generated by RampGenerator as RGB. 2015-03-12 21:39:28 +02:00
Lasse Öörni
e3f2220fe0 Remove forgotten todo. Implement Graphics::GetMultisampleLevels() properly on D3D11. 2015-03-12 10:15:54 +02:00
Yao Wei Tjong 姚伟忠
10e18da92e Slightly improve code size and startup speed for Emscripten platform. 2015-03-12 11:30:47 +08:00
Lasse Öörni
9dae13c4ab Disable system bell sounds from Alt key combinations. 2015-03-12 01:03:14 +02:00
Lasse Öörni
b55321fc40 When AnimatedSprite2D creates new sprite components, use the AnimatedSprite2D's enabled status. Closes #678. 2015-03-11 14:12:00 +02:00
Yao Wei Tjong 姚伟忠
17f6bc5ff8 Make it more bullet-proof to copy paste error by new user.
The project name 'Urho3D' is reserved just for Urho3D project.
2015-03-11 15:37:06 +08:00
Yao Wei Tjong 姚伟忠
2c798dd5bf Add support for ToCppHook.lua to accept extra parameter.
The extra param 'IS_BUILDING_URHO3D' should not be passed by external project.
2015-03-11 14:57:59 +08:00
Lasse Öörni
43a7e8a430 sRGB texture sampling on D3D11. 2015-03-11 01:17:59 +02:00
Lasse Öörni
242a675b01 sRGB backbuffer support on D3D11. 2015-03-11 00:56:14 +02:00
Lasse Öörni
c8e406489d Revert OpenGL-incompatible change in Batch::Prepare(). 2015-03-10 23:22:39 +02:00
Lasse Öörni
db62248def Only collect the shadow caster projection space merged bounding box when necessary (focused spot lights.) 2015-03-10 23:12:27 +02:00
Lasse Öörni
401585972d Optimize Graphics::SetVertexBuffers() on D3D11. 2015-03-10 22:07:06 +02:00
Lasse Öörni
c833b34b7a Remove Graphics::SetDrawAntialiased() as it does not help the situation it was created for (blurred UI rendering on Nvidia 16x multisampling on OpenGL) and it cannot be implemented on D3D11. 2015-03-10 21:30:09 +02:00
Lasse Öörni
16ec1f5812 Strip D3D11 shader bytecode. 2015-03-10 12:35:49 +02:00
Lasse Öörni
a5a8442397 Keep track of the dirtied vertex buffer range to not set D3D11 buffer slots unnecessarily. 2015-03-10 01:45:42 +02:00
Lasse Öörni
12c4f2a2b9 Nullcheck materials before using them in Drawable2D sorting. 2015-03-09 20:23:08 +02:00
Lasse Öörni
2239f5750f D3D11 screenshot save. Fix not releasing the backbuffer texture after GetResource(). 2015-03-08 22:45:59 +02:00
Lasse Öörni
4e308f21c3 3D textures on D3D11. Fixed the ColorCorrection shader. 2015-03-08 20:16:15 +02:00
Lasse Öörni
e106f1b389 D3D11 clip plane support. Check that multisample level is supported. Various shader fixes. 2015-03-08 02:57:08 +02:00
Lasse Öörni
b9278e0a94 Implement partial rendertarget clear on D3D11. Implement Graphics::ResolveToTexture() on D3D11. Fix most post-process shaders on D3D11. Readded the custom constant buffer slot. Update documentation. 2015-03-07 23:02:31 +02:00
Lasse Öörni
988f1fdc33 Merge branch 'master' into render-refactor 2015-03-07 17:59:37 +02:00
Lasse Öörni
e6194640ff Do not skip the assimp scene root, if it has non-identity transform or contains models itself. 2015-03-07 16:34:29 +02:00
Lasse Öörni
1c549bceee Import also empty child nodes in AssetImporter scene mode, unless disabled with the -ne option. Refactor handling of the root scene node to prevent unnecessary creation of a duplicate root node. Do not attempt to parse .json files as XML in the editor resource browser. Closes #673. 2015-03-07 13:36:27 +02:00
Yao Wei Tjong 姚伟忠
0fe597223f Add initial support for integration tests on Emscripten platform.
At the moment the 'make test' cannot be run non-interactively yet on Linux host and Mac OS X host systems due to what-could-be a bug in 'emrun' script. The issue with 'emrun' has been reported to upstream (https://github.com/kripken/emscripten/issues/3234).
2015-03-07 12:00:47 +08:00
Lasse Öörni
f660213930 Fix AngelScript API compile on VS2015. Add CMake bat file for VS2015. 2015-03-07 01:09:13 +02:00
Lasse Öörni
6112220b16 Cube maps, point light shadows & deferred / light prepass rendering on D3D11. 2015-03-05 23:32:16 +02:00
Lasse Öörni
1d165f3e55 Fix crash when calling FixInterpolation() on compressed sound data. Add better explanation as this function is normally not needed to be called. 2015-03-05 20:45:20 +02:00
Lasse Öörni
17cf79ab82 D3D11 rendertarget and initial shadow (directional & spot light) support. Fix creating too many rasterizer states for depth bias by quantizing. Fix crash on exit if states failed to create. 2015-03-05 00:21:21 +02:00
Lasse Öörni
6f68c07486 Moved std::begin() and std::end() for Urho containers into their respective header files, so that including ForEach.h is not needed for using the native range-based for. 2015-03-04 16:38:04 +02:00
Lasse Öörni
6fd6efc4c3 Update PugiXml to 1.5. Do not attempt to parse .txt & .icns files as xml in the editor resource browser, to prevent log spam. 2015-03-04 16:10:21 +02:00
aster2013
d34dd34fc9 Use array for glyph index to char code mapping. 2015-03-04 10:06:47 +08:00
Yao Wei Tjong 姚伟忠
4d34d0a626 Add new Emscripten build option for creating shared data file. 2015-03-03 23:32:27 +08:00
aster2013
897b1e6acc Fix #675. 2015-03-03 18:57:21 +08:00
Lasse Öörni
3feb6875fd Do not redirect final quad rendering to the backbuffer on OpenGL after rendertarget ping-ponging. Fixes #674. 2015-03-02 21:04:34 +02:00
Yao Wei Tjong 姚伟忠
02572a9ec5 Add generic support for embedding and loading files for Emscripten.
Via the following source file property "EMCC_OPTION". The supported property values are: js-library, pre-js, post-js, embed-file, preload-file, shell-file. The files are added as link dependency so a relink will automatically occur when they are modified (have newer timestamp than target).
2015-03-03 01:16:40 +08:00
Lasse Öörni
e919935abd Merge back D3D9 & D3D11 shaders using macros. Removed the "custom" constant buffer slot; rather allow to prevent the default material CB from being defined. 2015-03-02 03:39:21 +02:00
Lasse Öörni
7b339ef36b Fixed rasterizer state hash calculation. 2015-03-01 23:47:53 +02:00
Lasse Öörni
4ea4485d9f Fix LitSolid & LitParticle shaders failing to create input layout (missing normals.) Log more detailed error when input layout creation fails. 2015-03-01 21:33:55 +02:00
Lasse Öörni
d1a7fad925 More SM4 shaders. Do not render on D3D11 when shaders are not valid. 2015-03-01 19:34:41 +02:00
Lasse Öörni
73c847fbeb Separate D3D11 shaders as the compatibility mode did not sample eg. the light ramp texture correctly. 2015-03-01 19:14:56 +02:00
Lasse Öörni
e7f83624aa Fix update of smallest compressed texture miplevels on D3D11. 2015-03-01 15:37:16 +02:00
Lasse Öörni
d7a16d6713 Fix potential negative specular lighting. Fix recreating the sampler state when a texture has been reloaded. 2015-03-01 14:08:01 +02:00
Lasse Öörni
480284fb23 Removed the triangle count based instancing check, as instancing a large number of the same mesh should always result in less CPU time. 2015-03-01 13:54:09 +02:00
Lasse Öörni
e870cd6624 Implement flush GPU mode by calling SetMaximumFrameLatency(). 2015-03-01 03:04:06 +02:00
Lasse Öörni
876d1834eb Add D3D11 sampler states. Fix crash on empty vertex declaration. Fix Matrix3x3 uniforms on D3D11. Modify gpuObjects_ to PODVector. 2015-03-01 02:38:39 +02:00
Lasse Öörni
45d4e42240 Remove the shader parameter enum from Lua bindings as it is not used anywhere in the script-callable API. 2015-02-28 22:34:50 +02:00
Lasse Öörni
2d8696f7dd Fix crash on fullscreen / windowed switch. 2015-02-28 22:15:12 +02:00
Lasse Öörni
abe0614268 Fix skinning on D3D11. 2015-02-28 21:40:42 +02:00
Lasse Öörni
a1d1f08190 Split uniforms into constant buffers on D3D11. 2015-02-28 21:09:41 +02:00
Lasse Öörni
5ac8f1fb43 Clean up / reorder light shader parameter handling. 2015-02-28 19:51:18 +02:00
Lasse Öörni
f13a6a338f Fix typo and unnecessary expansion of the terrain update region. 2015-02-28 19:32:20 +02:00
Lasse Öörni
e8d4a05ab8 Fix incorrect partial terrain update when smoothing was used. Improve worst-case performance for partial terrain update by only tracking one rectangular region that encloses the changed area. 2015-02-28 16:07:20 +02:00
Lasse Öörni
7a91aa0852 Initial Texture2D support. 2015-02-28 02:27:45 +02:00
Yao Wei Tjong 姚伟忠
536b0a5429 Add new build option for better targeting Raspberry Pi platform. 2015-02-27 22:19:44 +08:00
Lasse Öörni
d4524e25c7 Fixed vertex position not getting passed to pixel shader. Rework the mechanism used to keep track of dirty constant buffers. 2015-02-27 01:27:59 +02:00
Lasse Öörni
cf5f5e4a18 Fixed missing CheckFeatureSupport() & missing PrepareDraw() in instanced draw call. 2015-02-27 01:00:03 +02:00
Lasse Öörni
20756b554d Applied btGjkPairDetector fix from Bullet head revision. 2015-02-26 11:17:45 +02:00
Lasse Öörni
a936eab7c7 Initial D3D11 constant buffer handling. If URHO3D_D3D11 option given, disable OpenGL, but error out on non-Windows platforms. 2015-02-26 02:50:59 +02:00
Lasse Öörni
48483ac07c Reduce number of distinct shader parameter groups to prepare for mapping them to constant buffers. 2015-02-26 00:58:25 +02:00
Lasse Öörni
3685373e77 Do not store window position in fullscreen mode; would be 0,0 and position the window to hard top-left after switching back to windowed. 2015-02-26 00:04:56 +02:00
Lasse Öörni
6e6c39c5a8 Add a ShaderProgram class also for D3D9, which holds the combined shader parameters. Cleaned up ShaderProgram handling on OpenGL. Optimized away repeated assignment of constant values from D3D9 SetShaderParameter(). 2015-02-25 23:31:10 +02:00
Yao Wei Tjong 姚伟忠
cf77a15e6f Fix Android build with LuaJIT enabled on Mac OS X host system. Take 2. 2015-02-25 22:46:11 +08:00
Yao Wei Tjong 姚伟忠
904aedef93 Fix Android build with LuaJIT enabled on Mac OS X host system.
Close #670.
2015-02-25 19:07:53 +08:00
Lasse Öörni
4ce7ed6838 Parse shader parameters & texture units. Removed comment stripping as it did not work reliably for SM4 shaders. 2015-02-25 02:05:18 +02:00
Lasse Öörni
1c32e957f8 Create input layouts on demand. Inspect vertex shader's input signature. Fixed setting rendertarget & depth-stencil views. Implement draw calls. 2015-02-24 23:46:27 +02:00
Lasse Öörni
0c48c9df87 Fix Assimp to not give negative light direction. Fix FOV handling for spot lights in AssetImporter. Added error prints to Editor if fails to execute AssetImporter. Closes #669. 2015-02-24 12:19:25 +02:00
Lasse Öörni
1e1b44c4aa Added placeholder for shader resource view in Texture classes. Fixed shader creation from bytecode to use the correct bytecode size. 2015-02-24 09:46:36 +02:00
Lasse Öörni
f4aee7da2b Vertex & index buffer creation & update. State object creation. 2015-02-23 23:04:38 +02:00
Josh Engebretson
4339a09194 Fix typo in View3D size check 2015-02-22 16:15:35 -08:00
Lasse Öörni
9f129ecd51 Merge branch 'master' into render-refactor 2015-02-23 01:43:02 +02:00
Lasse Öörni
9a98779ae9 Remove StreamFrequency related functions from Graphics public API as unnecessary. 2015-02-23 00:32:50 +02:00
Lasse Öörni
281809121c Skeleton of D3D11 graphics classes. Does not render anything visible yet and many functions lack implementation. 2015-02-22 22:44:12 +02:00
Lasse Öörni
51c80107e9 Removed debug log prints from OGLGraphics.cpp. Fixed build warnings. 2015-02-21 22:08:25 +02:00
Lasse Öörni
88080dad31 Remove Shader Model 2 mode & instancing without stream offset (D3D9) as they are hard to test. Added Graphics::GetApiName() function. 2015-02-21 20:53:12 +02:00
Lasse Öörni
87338ce74c Minor optimization of GetLitBatches() by calculating only once if the light has a negative color. 2015-02-21 15:32:47 +02:00
Lasse Öörni
21d7883455 Optimize and clean up base batch / vertex light batch processing. Fix light limiting not taking point light's effective intensity into account properly. 2015-02-21 13:54:33 +02:00
hdunderscore
603e5fd7b8 Reverting a change to fix an input bug -- mouse mode relative wasn't being recentered in non-emscripten builds. 2015-02-21 01:32:07 +11:00
Lasse Öörni
e6ab7f5ccc More kNet include order fixes. 2015-02-19 16:27:44 +02:00
Lasse Öörni
2d3f9bf141 Include Socket.h earlier in kNet to potentially fix Winsock.h / Winsock2.h conflict. 2015-02-19 15:25:01 +02:00
Lasse Öörni
445c87ed96 Enforce LOCAL components in LOCAL nodes, as otherwise scene network synchronization will risk a component ID overwrite. 2015-02-18 19:51:55 +02:00
Lasse Öörni
941821bde7 Minor cleanup / optimization of StaticModel::UpdateBatches() & AnimatedModel::UpdateBatches(). 2015-02-18 01:06:37 +02:00
Lasse Öörni
20c79cdaaf Avoid accessing Node::GetWorldTransform() in StaticModel::UpdateBatches() if possible to reduce cache misses when collecting drawables. 2015-02-17 22:00:31 +02:00
Lasse Öörni
41b2bd749a Reorder Drawable member variables and combine functions that are called when a Drawable is marked visible for slight performance gain. Remove hardcoded check for SkyBox for whether to not include a drawable in shadow focusing calculations, and instead check for a huge bounding box. 2015-02-17 21:44:04 +02:00
Yao Wei Tjong 姚伟忠
10e477bbc8 Add flag to consider 'unresolved symbol' as an error. 2015-02-16 14:51:28 +08:00
Lasse Öörni
406b71d4c9 If drawable does not limit number of per-pixel lights, no need to store them per drawable (skips allocation of dynamic memory for the light list.) 2015-02-16 02:04:54 +02:00
Yao Wei Tjong 姚伟忠
d3f90cbe08 Make the URHO3D_LUA build option available for Emscripten build. 2015-02-16 07:23:10 +08:00
Lasse Öörni
5753a90b57 Speed up collecting visible drawables. 2015-02-16 00:12:52 +02:00
Lasse Öörni
56f64c60b9 Texture unit refactoring. On desktop ensure continuous range of 8 material texture units, while mobile has 5. Material can define a volume (3D) texture in the volume unit (desktop only.) 2015-02-15 15:33:16 +02:00
Lasse Öörni
6be3b14855 Merge branch 'master' into render-refactor 2015-02-15 12:59:09 +02:00
hdunderscore
5c0e992ef1 Fixed a bug in touch input for Emscripten.
Minor code cleanup.
2015-02-15 19:08:14 +11:00
Lasse Öörni
b7d87c613f Refer to HTML5 platform more accurately. 2015-02-14 23:37:48 +02:00
Lasse Öörni
3f2f88441d Enable cascaded shadows on Emscripten. 2015-02-14 23:30:22 +02:00
Lasse Öörni
b6ea033ce3 Enable CharacterDemo & VehicleDemo also without networking. Update documentation. 2015-02-14 22:16:39 +02:00
Lasse Öörni
84b5a2de5f Shadow support on Emscripten. For now same capability as on mobiles; no cascaded shadow map. 2015-02-14 21:31:18 +02:00
Lasse Öörni
aa2f27bc73 Do not use the mobile framerate limit on Emscripten as frame limiting to 60fps will be choppy. Rather rely on vsync. 2015-02-14 18:55:42 +02:00
Lasse Öörni
7e350343d5 Define MOBILE_GRAPHICS or DESKTOP_GRAPHICS in GraphicsDefs.h based on the platform. Avoid GetPlatform() and string compare in Technique. 2015-02-14 18:55:07 +02:00
urho3d-travis-ci
7c77ad06dc Travis CI: API documentation update at 2015-02-13 13:55:43 UTC.
[ci package]
2015-02-13 13:55:43 +00:00
Chris Friesen
b8c04a3e9e Emscripten audio support 2015-02-13 21:31:59 +08:00
Yao Wei Tjong 姚伟忠
00410603a1 Do not install NinjaSnowWar.sh and Editor.sh for Emscripten build. 2015-02-13 21:31:59 +08:00
Yao Wei Tjong 姚伟忠
c48a46303b Use -g4 flag for Emscripten Debug configuration build.
[ci package]
2015-02-13 21:31:59 +08:00
Yao Wei Tjong 姚伟忠
24e70ecd60 For Travis-CI - reduce number of samples in Emscripten build.
Also remove CI build for shared lib type. It is anyway just an emulation as Emscripten does not support dynamic library (yet) and our earlier issue with emar for static lib type has been fully resolved. Test [ci package] for Emscripten.
2015-02-13 21:31:59 +08:00
Yao Wei Tjong 姚伟忠
a77e24d8ad Enable external project macro users to find and use PackageTool.
Adjust software packaging for Emscripten.
2015-02-13 21:31:59 +08:00
hdunderscore
22d0f41943 - Restricted input processing while input focus is false.
- (Emscripten) Set focus based on page visibility on load.
2015-02-13 21:31:59 +08:00
Yao Wei Tjong 姚伟忠
bb438ac6d9 Fetch the Emscripten SDL2 port in an orderly fashion. 2015-02-13 21:31:59 +08:00
Yao Wei Tjong 姚伟忠
85c893a83d Attempt to enable CI build for Emscripten. 2015-02-13 21:31:59 +08:00
hdunderscore
129f2f7dd9 Fixed an issue in Emscripten with mouse jumping when exiting mouse mode MM_RELATIVE (Pointer Lock), and a mouse jump when entering pointer lock for the first time and pressing a mouse button. 2015-02-13 21:31:59 +08:00
Yao Wei Tjong 姚伟忠
ef38543b5a Merge custom output command into custom target for resource packaging.
Add additional logic on Windows host to prevent unnecessary re-linking due to repackaging on each build. There is still no easy way on Windows host to skip repackaging though.
Eliminate the 'Application::GetSubsystem<Engine>()' call on each frame.
2015-02-13 21:31:59 +08:00
Yao Wei Tjong 姚伟忠
e076d037c6 Minor convention and code clean up. 2015-02-13 21:31:59 +08:00
Yao Wei Tjong 姚伟忠
a66df72ff5 Fix host tool building and relinking dependency.
Also fix an issue with CMake reconfiguration where the internal cache work against the regeneration of the custom RESOURCE_CHECK target.
2015-02-13 21:31:59 +08:00
hdunderscore
ee00a78d2b - Fixed hidden OS cursor behaviour in Emscripten.
- Added a Pointer Lock API request in Emscripten when Input::SetMouseMode(MM_RELATIVE) is called.
- Added an event for mouse mode changing.
- Fixed Emscripten focus change detection.
2015-02-13 21:31:59 +08:00
Yao Wei Tjong 姚伟忠
8471dcf3e4 Add option to package resource dirs and treat those dirs as build deps.
Fix static library building using emar instead of ar (from host compiler toolchain).
2015-02-13 21:31:59 +08:00
Yao Wei Tjong 姚伟忠
6e0ff48059 Suppress linker warnings. Minor doc update. 2015-02-13 21:23:05 +08:00
Yao Wei Tjong 姚伟忠
19ab396e74 Add new Emscripten/CMake toolchain file based on Urho3D convention.
Use EMSCRIPTEN_ROOT_PATH environment variable to specify the root path to the emscripten, instead of the original EMSCRIPTEN environment variable exported in emsdk_set_env.sh.
This is because the original EMSCRIPTEN environment variable name clashes with our build scripts.
2015-02-13 21:23:05 +08:00
Yao Wei Tjong 姚伟忠
6763207787 Complet the rebase to master branch. 2015-02-13 21:23:05 +08:00
t
395191e991 eliminate some compiler warnings 2015-02-13 21:23:05 +08:00
t
e60cbcdab5 remove glew references in OGLGraphicsImpl.h when building with emscripten 2015-02-13 21:23:05 +08:00
t
5d92f18b46 engine source changes for emscripten 2015-02-13 21:23:05 +08:00
t
8487a2e308 add toolchain file for emscripten 2015-02-13 21:23:05 +08:00
t
6ff6c5fe49 modify Source/CMakeLists.txt for emscripten build options 2015-02-13 21:23:05 +08:00
t
65054942e8 delete Controls.cpp and Controls.h from Source/Engine/Network 2015-02-13 21:23:05 +08:00
t
1dfd6eebde move Controls.* from Engine/Network to Engine/Input 2015-02-13 21:23:04 +08:00
Gunnar Kriik
b2f4848115 Removal of hdrRendering variable caused compilation error when using the OpenGL renderer 2015-02-12 22:56:40 +01:00
Lasse Öörni
9c3348ed98 Only perform AnimatedModel bone hitbox ray testing when RAY_TRIANGLE is specified, to allow RAY_OBB to test against the whole model's OBB. 2015-02-12 22:45:46 +02:00
Lasse Öörni
785997b596 Removed unused variable. 2015-02-12 22:38:58 +02:00
Lasse Öörni
793a40f48a Use C-style cast as per Urho convention when dealing with primitive types. 2015-02-12 21:59:43 +02:00
Lasse Öörni
5f9ad3237c Merge remote-tracking branch 'stinkfist/Vector-int-uint-Win64' 2015-02-12 21:58:45 +02:00
Stinkfist0
03f6cb137b Fix signed-unsigned conversion warnings that leak into applications using Urho when doing Win64 build. 2015-02-12 16:31:30 +02:00
Lasse Öörni
b96f47db61 Change order of matrix multiplies in GLSL to eliminate need to transpose matrix uniforms and make the order consistent with skinned & instanced rendering. 2015-02-12 00:05:32 +02:00
Lasse Öörni
0990fd72f2 Added Graphics::GetPixelUVOffset() to get the half-pixel offset required by D3D9, avoids #ifdef'ing. Clean up shadow matrix calculation. 2015-02-11 23:21:57 +02:00
Lasse Öörni
06a7412d64 Exclude the "generated" source directory when not including Lua support. 2015-02-11 21:53:27 +02:00
urho3d-travis-ci
e6629d3c8a Travis CI: API documentation update at 2015-02-11 16:43:27 UTC.
[ci package]
2015-02-11 16:43:27 +00:00
Lasse Öörni
347a9c9719 Recreate the tab escape sequence from tab character to the dumped AngelScript API. 2015-02-11 18:30:35 +02:00
urho3d-travis-ci
0702003614 Travis CI: API documentation update at 2015-02-10 17:48:35 UTC.
[ci package]
2015-02-10 17:48:35 +00:00
Lasse Öörni
5e133eb639 Added file modification remark with credit to prettywriter.h. Added indentation parameter to several SaveXML() functions including Node & Scene. Code convention edit to use String& throughout. Removed outdated remark of being only able to save to File. 2015-02-10 19:32:45 +02:00
Lasse Öörni
70054dd036 Merge remote-tracking branch 'stinkfist/indent' 2015-02-10 18:21:27 +02:00
Stinkfist0
4b9e4f6097 User-configurable indentation for XML and JSON files (AS and Lua bindings included). Closes #591 2015-02-10 17:18:52 +02:00
Yao Wei Tjong 姚伟忠
96a3126557 Fix SpritePacker build on Mac OS X platform. 2015-02-10 00:49:52 +08:00
Lasse Öörni
4354b1709c Tabs to spaces and update copyright year. 2015-02-09 23:44:01 +02:00
Lasse Öörni
4cd279cc90 Always call SetNode(0) on removing a component from a scene node. Fixes #658. 2015-02-09 23:41:32 +02:00
Lasse Öörni
5ab72bf620 Merge remote-tracking branch 'friesencr/sprite_packer' 2015-02-09 23:40:09 +02:00
Lasse Öörni
90833996fa Make sure to avoid memory overwrite in case the light's cascade splits would be configured incorrectly in respect to hardware limits. 2015-02-09 11:41:29 +02:00
Lasse Öörni
61af3c9593 Fix GCC error with URHO3D_SAFE_LUA=1. Closes #654. 2015-02-08 00:12:13 +02:00
Lasse Öörni
cc8eb57eba Workaround for GCC optimization of IsNan, thanks to reattiva. Closes #655. 2015-02-07 23:52:51 +02:00
Chris Friesen
6f383f64df SpritePacker cli 2015-02-07 12:40:01 -06:00
urho3d-travis-ci
3aae6785a4 Travis CI: API documentation update at 2015-02-05 15:19:32 UTC.
[ci package]
2015-02-05 15:19:32 +00:00
Lasse Öörni
680d334a99 Fix Physics2D events not getting included in events documentation. Fix alphabetic sorting of event documentation sections according to header file name, not full path. Fix Physics2DPreStep2D event name to PhysicsPreStep2D to match the rest. Closes #652. 2015-02-05 17:08:31 +02:00
urho3d-travis-ci
deab9cf4de Travis CI: API documentation update at 2015-02-05 10:51:01 UTC.
[ci package]
2015-02-05 10:51:01 +00:00
aster2013
83e1fbebe3 Remove WeakPtr<LuaFunction> in LuaIntegration sample;
Convert tab to spaces in ParticleEffect2D.
2015-02-05 14:01:17 +08:00
aster2013
52731a6d22 Replace WeakPtr<LuaFunction> with LuaFunction ptr. 2015-02-05 11:44:57 +08:00
aster2013
b6e413e49d Simplify Lua event handler, keep it has same behavior as AngleScript and C++. 2015-02-05 11:37:40 +08:00
aster2013
bfea7a0e3f Use shared ptr to keep instance alive during invoking. 2015-02-04 12:13:11 +08:00
aster2013
a8104ef27c Use command to record add or remove event handler when invoking.
Convert tab to spaces.
2015-02-03 23:57:55 +08:00
aster2013
5882cb9975 Change argument type from String to StringHash. 2015-02-03 23:27:44 +08:00
aster2013
a6b4c78734 Return same LuaFunction object with index and funciton name. 2015-02-03 23:19:34 +08:00
Lasse Öörni
d0d400b1a6 Windows.h in lowercase in kNet to fix case-sensitive MinGW cross-compile. 2015-02-03 15:44:31 +02:00
urho3d-travis-ci
40b1871c31 Travis CI: API documentation update at 2015-02-03 12:03:10 UTC.
[ci package]
2015-02-03 12:03:10 +00:00
Lasse Öörni
a2da4d9763 Include kNet memory leak check only on MSVC to fix possible build error. 2015-02-03 13:51:18 +02:00
aster2013
82afdc9c02 Merge branch 'lua-event-handler' 2015-02-03 19:22:30 +08:00
aster2013
10f80cd011 Add LuaScriptEventInvoker in LuaScriptInstance. 2015-02-03 18:29:10 +08:00
aster2013
1782985056 Separate LuaScriptEventInvoker out of LuaScript. 2015-02-03 13:15:32 +08:00
aster2013
73fad1dc04 Fix build error. 2015-02-03 12:53:53 +08:00
Lasse Öörni
4d69285422 Update to kNet master branch latest revision, with Urho's custom flow control re-applied on top. Fixes #645. 2015-02-03 01:56:07 +02:00
Lasse Öörni
8bb3e649e5 Add profiling block for Lua garbage collection. 2015-02-02 23:12:09 +02:00
aster2013
ff91be64ad Fix bug. 2015-02-02 23:54:49 +08:00
aster2013
f5522a07a8 Add LuaScriptEventListener and LuaScriptEventInvoker. 2015-02-02 23:48:44 +08:00
urho3d-travis-ci
5adbf2876d Travis CI: API documentation update at 2015-02-02 10:41:03 UTC.
[ci package]
2015-02-02 10:41:03 +00:00
hdunderscore
7000780beb Fixed an error in AngelScript bindings for Octree::GetDrawables (incorrect return type). 2015-02-02 21:30:59 +11:00
hdunderscore
3ec8ecdfcf Merge pull request #648 from friesencr/infinate_package
Fixed a bug in ResourceCache->AddPackageFile(string) that was causing infinite loop. The issue prevents packages loading in Emscripten.
2015-02-02 18:11:35 +11:00
hdunderscore
9a9a79412e Fixed a bug in ResourceCache->AddPackageFile(string) that was causing infinite loop. 2015-02-01 20:22:26 -06:00
Lasse Öörni
c08fa5e94d Calculate a shader parameter hash value to eliminate setting of unnecessary constants/uniforms when rendering with multiple materials that have the same parameters. 2015-02-01 15:20:07 +02:00
Lasse Öörni
2716bcf12e Code cleanup related to the D3D9 shader parameter change. 2015-02-01 13:56:07 +02:00
Lasse Öörni
73bbf3f787 Fix textures left bound in multiple units if the texture type (2D, cubemap) differs on OpenGL. 2015-02-01 13:33:37 +02:00
Lasse Öörni
79e45ba7e3 Reduce cost of shader switching on Direct3D9 by maintaining shader parameter list for each vertex/pixel shader combination similarly to the OpenGL ShaderProgram class. Remove the shadertype parameter from Graphics::HasShaderParameter() as unnecessary. 2015-02-01 13:33:37 +02:00
Yao Wei Tjong 姚伟忠
cfff44873f Bump missed out files. [ci skip]
$ for f in `git grep -l '2008-2014 the Urho3D project'`; do perl -pi -e 's/2008-2014 the Urho3D project/2008-2015 the Urho3D project/g' $f; done
2015-02-01 08:16:05 +08:00
Lasse Öörni
bb2ebf7568 Bump copyright to 2015. 2015-01-31 21:03:53 +02:00
urho3d-travis-ci
c747198101 Travis CI: API documentation update at 2015-01-29 14:56:49 UTC.
[ci package]
2015-01-29 14:56:49 +00:00
aster2013
c11db9fdcd Add SetAlpha in StaticSprite2D to AnimatedSprite2D alpha animation bug.
Add typedef in Vector and HashMap.
2015-01-29 22:45:22 +08:00
Yao Wei Tjong 姚伟忠
64a96090e3 Code and comment clean up. 2015-01-29 20:51:35 +08:00
Yao Wei Tjong 姚伟忠
9c61a7673b Add option to exclude individual C++ source file from using PCH.
Clean up enable_pch() macro and minor update on code comments.
2015-01-29 16:13:43 +08:00
Yao Wei Tjong 姚伟忠
51178c4328 Enable PCH for Assimp library with GCC/Clang compilers too.
Simplify to always use force include when enabling the PCH.
2015-01-29 16:13:43 +08:00
Yao Wei Tjong 姚伟忠
e0bab60f46 On MSVC also enable PCH in two phases to cater for generated C++ files. 2015-01-29 16:13:43 +08:00
Yao Wei Tjong 姚伟忠
7ddd46b172 Move GenerateExportHeader module inclusion to Urho3D common module. 2015-01-29 16:13:42 +08:00
Yao Wei Tjong 姚伟忠
18261e3d2a Use Cmake function to determine whether to add compiler export flags. 2015-01-29 16:13:42 +08:00
Yao Wei Tjong 姚伟忠
8f2ac49cb0 Suppress GCC/Clang warning on pragma once on main file.
Fix precompiling header file on MinGW builds.
2015-01-29 16:13:42 +08:00
Yao Wei Tjong 姚伟忠
f719e3a429 Remove explicit inclusion of precompiled header file.
The precompiled header file would be included using compiler flags.
2015-01-29 16:13:42 +08:00
Yao Wei Tjong 姚伟忠
8743413816 Attempt to enable precompiled header support for GCC and Clang. 2015-01-29 16:13:41 +08:00
Lasse Öörni
4ff4d8e486 Fix crash related to dragElements_ iteration re-entry. Code convention fixes. Closes #642. 2015-01-28 22:03:30 +02:00
Lasse Öörni
4d8ad0888f Clang friction fix from bullet3 repo. 2015-01-28 14:02:33 +02:00
Lasse Öörni
86df5e0a96 Use Renderer as the event sender for view update begin & end events to not break code relying on that. 2015-01-27 22:02:55 +02:00
Lasse Öörni
2153a5dfc5 Removed unnecessary line of code. 2015-01-27 21:38:13 +02:00
Lasse Öörni
62b3d6987f Remove all instances of Drawable2D from materialDirtyDrawables_ when it is being removed from the scene. Fixes #618. 2015-01-27 21:36:04 +02:00
Lasse Öörni
7740bb5ee4 Do not call MarkForUpdate() in AnimatedSprite2D, as Drawable2D's are not added to the octree. 2015-01-27 20:58:37 +02:00
Lasse Öörni
a12cd3823e Multiple view support for 2D drawables. Closes #638. 2015-01-27 01:21:13 +02:00
urho3d-travis-ci
b8e66f96ac Travis CI: API documentation update at 2015-01-26 20:36:19 UTC.
[ci package]
2015-01-26 20:36:19 +00:00
Lasse Öörni
c2535edac3 Added LOD level attribute support to Terrain collision shape & SetTerrain() function. This works like mipmap levels: each successive LOD level halves the resolution. Closes #639. 2015-01-26 22:23:26 +02:00
Lasse Öörni
c75f38b5a1 Use range-based for in ForEach.h if available. Closes #561. 2015-01-26 17:56:01 +02:00
urho3d-travis-ci
39bbb86205 Travis CI: API documentation update at 2015-01-26 12:26:14 UTC.
[ci package]
2015-01-26 12:26:14 +00:00
Lasse Öörni
3dc651ca74 Fix Renderer2D build. Code cleanup. 2015-01-26 13:33:37 +02:00
Lasse Öörni
988d77f06c Removed GetVisibility / SetVisibility from Drawable2D. Instead they are marked for view similarly as other drawables. Fixes #636. 2015-01-26 00:59:39 +02:00
Lasse Öörni
e67d9d3065 Include iOS 8 orientation fix conditionally. Fixes #635. 2015-01-25 23:49:35 +02:00
urho3d-travis-ci
809d4fb920 Travis CI: API documentation update at 2015-01-23 13:47:05 UTC.
[ci package]
2015-01-23 13:47:05 +00:00
Mike3D
354d1bb8c0 Added lua bindings for TileMap2D::DrawDebugGeometry() and TileMapLayer2D::DrawDebugGeometry() 2015-01-23 13:53:55 +01:00
aster2013
69185a10ce Revert typedef. 2015-01-23 20:22:02 +08:00
aster2013
a8833c9712 Add typedef in Vector and HashMap. 2015-01-23 20:02:56 +08:00
Lasse Öörni
f1545328b3 Hack fix for window size on iOS 8. Fix screen joysticks not resizing along with the screen. Note that there may still be other iOS 8 orientation bugs, for example related to the screen keyboard. These are pending a proper fix from SDL. Closes #553. 2015-01-23 11:29:35 +02:00
Yao Wei Tjong 姚伟忠
75c1d9780c Fix red screen issue on affected Android devices models, e.g. S3. 2015-01-22 20:07:16 +08:00
Lasse Öörni
3115f08265 Enforce Urho3DPlayer command line format and only use the first argument as the script file name to avoid misparsing rest of the command line. See #628. 2015-01-22 11:27:54 +02:00
Yao Wei Tjong 姚伟忠
fd84488a73 Add new build option to setup main executable as console application.
The new build option is only applicable for Windows platform only.
2015-01-21 16:50:09 +08:00
urho3d-travis-ci
97b83aaa0a Travis CI: API documentation update at 2015-01-21 04:12:47 UTC.
[ci package]
2015-01-21 04:12:47 +00:00
Lasse Öörni
2cb66a1d36 Clean up ScriptFile & ScriptInstance Execute() AngelScript bindings. Allow to call ScriptFile::Execute() without parameters. 2015-01-20 23:54:43 +02:00
Lasse Öörni
6e5d0db379 If Urho3DPlayer command line is empty, attempt to read Data/CommandLine.txt on all platforms. Closes #615. 2015-01-20 12:42:53 +02:00
Yao Wei Tjong 姚伟忠
ed214bbeb3 Avoid the include dirs hack for finding the Urho3D.h header.
It is now a library user own's responsibility to include the Urho3D.h in their source code. Or to include it as part of their own precompiled header similar to what Urho3D project has done.
2015-01-20 18:15:29 +08:00
Lasse Öörni
bcf451bfe2 Prevent additive scale modification making particle scale negative. Closes #624. 2015-01-20 11:23:59 +02:00
Lasse Öörni
40f2229954 Specify extern also in .cpp file to fix error on MinGW. Normalize order of extern and dllexport/import. 2015-01-20 11:04:54 +02:00
aster2013
c20ac4bac4 Include Urho3D.h in Str.h for URHO3D_API. 2015-01-20 12:19:30 +08:00
aster2013
e473fe6660 Change "const String&" to "const String" in pkg files. 2015-01-20 11:41:01 +08:00
Lasse Öörni
5c4dcf8035 Add export specifier to objects in GraphicsDefs and make them const. Fixes #621. 2015-01-19 21:00:59 +02:00
Mike3D
7014e466c5 Typo 2015-01-18 15:39:56 +01:00
Yao Wei Tjong 姚伟忠
f9158a045e Install binaries to the "bin" subdir relative to install prefix.
Fix the Android installing and packaging steps which previously failed to install all the sample libs.
Close #616.
2015-01-18 22:29:57 +08:00
Yao Wei Tjong 姚伟忠
05dd995b85 Refactor all the codes and scripts to use the renamed 'bin' subdir. 2015-01-18 21:40:54 +08:00
Yao Wei Tjong 姚伟忠
2906365c97 Simplify the resource prefix path engine parameter handling.
Also ensure that relative prefix path is being resolved relative to the program dir regardless of where the prefix path parameter value is coming from.
2015-01-18 15:38:35 +08:00
Yao Wei Tjong 姚伟忠
1b2dcac1d2 Add new URHO3D_MACOSX_BUNDLE build option to build bundled apps on OSX. 2015-01-17 18:34:22 +08:00
urho3d-travis-ci
116069dcd5 Travis CI: API documentation update at 2015-01-16 19:56:03 UTC.
[ci package]
2015-01-16 19:56:03 +00:00
Lasse Öörni
4d8b3b8bae Added VectorBuffer read/write to AngelScript API. 2015-01-16 18:29:15 +02:00
Lasse Öörni
e4146ba173 Added Is Enabled attribute to various Urho2D components. Updated editor icons. Fixed AnimatedSprite2D not hiding its child sprites on SetEnabled(). Closes #609. 2015-01-16 17:59:31 +02:00
Lasse Öörni
4a0e293cd0 If resource prefix path is specified via engine startup map, add trailing slash similarly as when reading it from the environment. Closes #612. 2015-01-16 17:17:39 +02:00
urho3d-travis-ci
686a6277c9 Travis CI: API documentation update at 2015-01-16 14:45:01 UTC.
[ci package]
2015-01-16 14:45:01 +00:00
Lasse Öörni
609c45f31f Added GetResourceDirs() to ResourceCache Lua API. Closes #611. 2015-01-16 16:30:41 +02:00
Yao Wei Tjong 姚伟忠
d8c2d801d9 Update the comment on the build rule. [ci skip]
Related to commit 8682ba781a
2015-01-16 13:26:33 +08:00
Yao Wei Tjong 姚伟忠
8682ba781a Install header files for Lua/LuaJIT and tolua++ 3rd party libraries.
Fixes #610.
2015-01-16 13:20:44 +08:00
aster2013
2e861de366 Fix bug. [ci skip] 2015-01-16 12:34:09 +08:00
Mike3D
322d7bc1d9 Fix TileMapObject2D::GetProperty() AngelScript binding 2015-01-11 19:06:39 +01:00
Lasse Öörni
4d320ad198 Fixed the "lightvolumes" render path command not allowing custom shader defines. Added hardware depth utilizing deferred & prepass renderpaths as an example. These use less bandwidth and therefore perform faster, but the deferred path will cause far plane artifacts on OpenGL due to stencil buffer not being available when a readable depth format is used. 2015-01-11 13:47:04 +02:00
urho3d-travis-ci
021040c1bd Travis CI: API documentation update at 2015-01-10 21:11:52 UTC.
[ci package]
2015-01-10 21:11:52 +00:00
Lasse Öörni
7d393ddc75 Removed use of nullptr construct. 2015-01-10 22:59:42 +02:00
Lasse Öörni
52aa4bc780 Use SDL_PollEvent() instead of SDL_PumpEvents() / SDL_PeepEvent() for subjectively smoother mouse input under vsync (Windows.) 2015-01-10 22:02:57 +02:00
Lasse Öörni
6f3ef0c3f4 Added Lua API to access a renderpath's commands. 2015-01-10 21:21:27 +02:00
Lasse Öörni
0b3e6e2bbb Added "renderui" render path command to render the UI into an arbitrary rendertarget. This disables the default UI render to the backbuffer. Removed functions from UI Lua API that shouldn't be exposed to scripting (update, render.) 2015-01-10 21:10:18 +02:00
Lasse Öörni
d023b06b3d Get rid of overrideView_ member in Batch, as it is no longer used by Skybox, and directional light quads can be made to work without it. Cleanup Light code. 2015-01-10 20:44:26 +02:00