Commit Graph

57 Commits (master)

Author SHA1 Message Date
cutealien c0e17f7329 Minor updates &f fixes to examples and their documentation.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5499 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-07-11 12:59:14 +00:00
cutealien d6d1831589 Prevent jumping with CSceneNodeAnimatorCollisionResponse while in air.
(can still jump up walls, which is likely around the same position as this fix, but a little more tricky)


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5370 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-03-19 23:57:07 +00:00
cutealien 9d4b0b9063 Improve comments.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5354 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-12-07 13:40:47 +00:00
cutealien 1073bff853 Fix CMetaTriangleSelector and allow creating octrees for single meshbuffers.
CMetaTriangleSelector had been (even more) broken after last check-in,sorry. Now fixed again.
Making octrees triangle selector return meshbuffer information would be possible, but not without some cost or larger rewrite. So instead I've added another workaround - it's now possible to create octress for single meshbuffers. If that makes sense for speed is something users have to check per scene (slower than using a single octree obviously), but at least it's now possible in case someone needs it.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5352 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-12-07 13:30:02 +00:00
cutealien a20f01131a ITriangleSelector now can also return meshbuffer collision information.
This allows to access materials of colliding triangles.
It's an optional setting (as it can be a little bit slower).
There are new collision functions for users which need that feature.

This also fixes several bugs with MetaTriangleSelectors. Those did sometimes return the wrong nodes in the past (when used with box or line collisions).
Also MetaTriangleSelectors should no longer crash when it has no selectors.

Also box and line collisions will now return all triangles when the colliding node has no inversible matrix  (before it returned the wrong results when for example a node had one axis scaled to 0).

So far only CTriangleSelector uses the new interface to return meshbuffer information. Octree will follow.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5350 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-12-06 16:17:48 +00:00
cutealien fb49a86eb6 Several fixes for SceneNodeAnimatorCollisionResponse, based on http://irrlicht.sourceforge.net/forum/viewtopic.php?f=7&t=33098&p=290746
Thanks to all people who reported and to JLouisB and kinkreet for the patches:
- Gravity is now fps independent
- Values of gravity now like documented (wasn't 1 unit = 1m before, had been 1m = current frames per second, so maybe 100 units = 1m). 
  Note that jump-values for fps-camera must also change when adapting gravity!
  Several examples got adapted for new ranges
- Pausing timer now pauses animator. Also doesn't reset values anymore with pauses.
- Clones no longer have 1000 times the gravity of original animator.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5305 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-06-04 19:54:19 +00:00
nadro 49b00b631a - Removed unnecessary path from OSX example projects.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5271 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-03-07 11:13:26 +00:00
nadro bc9fe27e30 - Unified makefiles for examples.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5219 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-12-15 20:26:58 +00:00
nadro 8863d11e65 - Fixed compilation issues on OSX.
- Added new XCode projects for engine and all examples (ARC enabled, proper bundles etc.).
- Added external context manager with support for NSOGL.(this feature was available in ogl-es branch before).
- Removed *.nib dependencies from OSX project (menu is created programmatically).
- Added missing _IRR_OVERRIDE_ for some methods.
- Renamed MacOSX to OSX directories.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5202 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-12-05 12:07:45 +00:00
nadro 07a7d9ee2e - Added clear buffer flags.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5151 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-10-15 18:20:06 +00:00
nadro eef7353833 - Added projects for Visual Studio 2014. Due to a problems with Windows7.1 SDK on Windows 10 those projects are recommended for users of this OS.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5148 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-10-01 22:59:08 +00:00
cutealien c7c5f166fe Rolled back to r5145. We're still disucssing better solutions
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5147 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-09-28 09:17:47 +00:00
nadro f6ac9e1906 - Updated Visual Studio 12.0 build platform.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5146 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-09-27 18:16:10 +00:00
nadro 02b49eea1b - Added exampleHelper and updated all examples. This is a base patch for upcoming patches related to iOS and OSX.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5143 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-09-24 22:44:32 +00:00
cutealien b3ba72ab74 Merge branch releases/1.8 revisions 5129:5140 into trunk:
- Set the platform SDK for VS2010 and VS 2012 throughout to Windows7.1SDK
- Fix the fix for compiling on GCC5


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5141 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-09-20 11:19:26 +00:00
cutealien c3e94cf597 Change all VS 12 project files to use Windows SDK7.1 for compatibility between different VS versions.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5140 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-09-19 14:39:52 +00:00
nadro ae476a0dc3 - Updated changes.txt.
- Removed project files for Dev-C++ and Visual Studio 2008 and older.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5022 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-01-11 20:20:12 +00:00
nadro 1300c4df95 - Added Visual Studio 2013 project files.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5021 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-01-11 20:11:21 +00:00
cutealien bd0b92996e Merge branch releases/1.8 revisions 4685 to 4721 into trunk:
- C::B project files work again on newer Linux-distributions which have cleaned up their dev-lib dependencies.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4722 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-03-13 23:07:59 +00:00
hybrid ae25bdf202 Merged from 1.8 branch, revisions 4345-4378. All release fixes since the branch to 1.8, and some fixes after that. Now commencing development on this branch, and only bug fixes on the others.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4379 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-11-20 18:31:33 +00:00
hybrid ecc6ea3884 First try for MSVC2012 project files. conversion seems to have worked, though some warnings for 64bit targets were shown.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4298 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-22 23:14:16 +00:00
cutealien 9254ed9b27 Add 64 bit targets for examples and tests for VS2010.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4213 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-06-26 17:53:38 +00:00
bitplane 3acdca69c4 Add Linux to "all" target in CodeBlocks examples projects so they actually compile first time.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3595 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-02-18 04:20:49 +00:00
bitplane e5158f69a8 Replaced addZipFileArchive with addFileArchive
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3589 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-02-04 23:26:22 +00:00
hybrid 1fcf0461fe Add the other msvc 2010 project and solution files. Fix all configurations to work as expected.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3381 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-08-31 16:51:14 +00:00
hybrid 59b24ed7dc Rearrange animated meshes to fit better into the scene.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3341 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-07-08 22:15:38 +00:00
engineer_apple 816d5655fc - added Halflife 1 Model Loader
- added Halflife 1 Texture Loader
- slightly changed usage of getMesh ( doesn't effect existing implementation)

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3335 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-07-07 16:16:03 +00:00
cutealien 5b5fe394b7 Add support for changing cursors.
We use multicolor hardware cursors, but so far only Linux and Windows 32 are supported.
For Linux application must now link additionally with Xcursor unless they disable _IRR_LINUX_XCURSOR_.
Example 24 is added to show how to use those cursors and also as a general test for mouse-behavior.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3302 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-06-04 16:35:01 +00:00
hybrid 96310b964d Merged revisions 3172:3197 from 1.7 branch. Some more bug fixes and doc updates from the 1.7 beta phase.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3198 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-02-02 20:53:57 +00:00
cutealien 28a04fbd42 Renamed OctTree to Octree
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3062 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-12-20 22:10:53 +00:00
hybrid d28a6bb481 Fix triangle render for selection.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2901 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-11-20 14:54:43 +00:00
hybrid 3ef1b18308 Fix eol-style for all code files to CRLF for simpler file handling.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2525 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-07-30 07:58:33 +00:00
hybrid 7e5822ec2c Fix eol-style for all code files to native.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2521 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-07-29 11:45:59 +00:00
bitplane 727d098020 removed --wall from codeblocks projects, gui editor now compiles again in codeblocks and is renamed as it is both windows and linux
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2491 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-07-21 16:11:50 +00:00
bitplane ed3a5a5b15 code::blocks projects now compile to Linux and win32-gcc dirs again, by default the examples in Linux link with the static lib as generated by the makefile.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2489 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-07-21 14:21:21 +00:00
hybrid c8bdc67d27 Fixed lighting of the models.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2314 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-03-30 16:47:43 +00:00
bitplane 74b74142f2 Renamed dev-cpp example projects to match the others, added static library targets to code::blocks project and moved the build locations back to Win32-gcc and Linux dirs
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2276 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-03-13 09:53:02 +00:00
hybrid 12e3d08ebc Add Linux targets for c::b tutorial projects.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2260 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-03-09 09:23:45 +00:00
Rogerborg be994b9f22 Set a more useful initial camera position in example 07.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2178 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-02-01 19:34:22 +00:00
Rogerborg 5478f80545 https://sourceforge.net/tracker2/?func=detail&aid=1797487&group_id=74339&atid=540678
- Triangle selectors created from animated mesh scene nodes will update themselves as required to stay in sync with the node.
 - ISceneCollisionManager::getSceneNodeAndCollisionPointFromRay() allows selection by BB and triangle on a heirarchy of scene nodes.
Example 07 updated to show the usage of ISceneCollisionManager::getSceneNodeAndCollisionPointFromRay(), used on animated meshes.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2177 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-02-01 18:56:05 +00:00
Rogerborg bd192519d6 http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?t=32019
Derive COctTreeSceneNode from IMeshSceneNode instead ISceneNode, and have it return the IMesh that was used to create its octtree.  Tested with a slightly modified example 07.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2173 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-31 15:58:43 +00:00
Rogerborg 81671c23b2 https://sourceforge.net/tracker2/index.php?func=detail&aid=2498791&group_id=74339&atid=540678
Revert my previous ITriangleSelector patch and implement garritg's great idea about retrieving an ISceneNode by index.  Add an out parameter to ISceneCollisionManager::getCollisionPoint() to return the hit scene node.  This is an API breaking change; the test and example apps have been updated.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2125 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-22 15:50:06 +00:00
Rogerborg dcebfbbf0d http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?p=183704
Change from dimension2d<s32> to dimension2d<u32> where practical.  IImage and ITexture now have unsigned dimensions, as does screen size.  This has had a significant knock-on through the code base, but it is more technically correct - the BEST KIND of correct.

GUI elements and draw2DImage methods still have and take signed dimensions, but we can look into this in future. Regression tested with the test suite and the example apps.  Note that createDevice() now takes dimension2d<u32>!

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2092 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-19 13:48:22 +00:00
Rogerborg bac02b5bb0 https://sourceforge.net/tracker2/?func=detail&aid=2473520&group_id=74339&atid=540676
Change ray/bounding box selection so that the nearest node is determined by the actual collision point with the bounding box (or the distance to the box centre if the ray starts inside the box).  Since this is a functional change from the old behaviour, I'm only committing to the trunk.  This will be slightly slower than the old method, but should return the correct node; I consider accuracy to take priority over efficiency for collision.

tests/sceneCollisionManager.cpp has been updated, as has examples/07.Collision/main.cpp.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2047 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-06 15:12:15 +00:00
hybrid 9bc11201d5 Merged from 1.5 branch to trunk, all changes from 1933 to 1953. Camera and animation fixes, project file updates, etc.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1954 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-12-15 14:18:11 +00:00
hybrid ad43762777 Merged from 1.5 branch to trunk, all changes from 1913 to 1932. Mostly example and test fixes. Some bug fixes, camera interface changes.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1933 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-12-08 17:06:34 +00:00
Rogerborg a83051f62e Bug https://sourceforge.net/tracker/index.php?func=detail&aid=1769820&group_id=74339&atid=540676
Significant internal change to the way that FPS camera jump speed and collision response animator gravity interact.  The behaviour is now much more realistic, but it will require you to adjust your jump speed and gravity.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1811 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-22 23:41:11 +00:00
Rogerborg 5a6eb22f25 Removing all .dsw and .dsp files; Microsoft Visual "C++" 6 is no longer a supported build environment.
http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?p=176288#176288

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1724 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-12 12:44:15 +00:00
hybrid 386a18b566 Merged revisions 1652:1682 from the 1.4 branch: Code layout changes in the examples and SMaterial checks for self-assignment.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1683 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-04 14:47:51 +00:00
hybrid 8db1da30c2 Merge revisions 1572:1596 from 1.4 branch: Some late bugfixes of the 1.4.2 release. Tutorial generation mechanism.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1598 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-09-29 20:46:43 +00:00