Commit Graph

3225 Commits (f37045af533f4a8adb3442b24e22f90069816ed0)

Author SHA1 Message Date
cutealien 0fdfc73cb1 Get rid of compile-warning in aes code.
Thx @Eduline - human development for the report (patch #307).


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5374 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-03-22 22:36:08 +00:00
cutealien 2882711b7f Add ITextSceneNode::setFont.
IBillboardTextSceneNode has now it's own type (was using same type as ITextSceneNode before). See Bug #197.
But serialization of both text-nodes still not working (needs font-serialization).

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5373 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-03-20 17:00:36 +00:00
cutealien 83be80032b Add access functions to IBillboardTextSceneNode (getText, getFont).
Fix IBillboardTextSceneNode::setTextColor which did only set an unused variable. It now maps to setColor instead.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5372 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-03-20 16:35:22 +00:00
cutealien 51115e14a1 Add access functions to ITextSceneNode (getText, getTextColor, getFont).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5371 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-03-20 12:58:01 +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 c942f356fe Try harder to move Window to custom WindowPosition set in SIrrlichtCreationParameters on X11.
Thx@ Hernan Ezequiel Di Giorgi for the patch (#304).


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5369 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-03-19 19:24:34 +00:00
cutealien 021485e272 Merge branch releases/1.8 revisions r5363:r5367 into trunk:
- Increase KEY_KEY_CODES_COUNT to fix problem with laptop keyboards which return the keycode 0xff for the function key.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5368 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-03-16 22:42:01 +00:00
cutealien 7bacbb0873 Append a sort test to the array tests.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5364 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-02-21 21:16:34 +00:00
cutealien 7a9080481c Merge branch releases/1.8 revisions r5360:r5362 into trunk:
- Fix bug when calling activateJoysticks on windows several times


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5363 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-02-01 18:25:45 +00:00
cutealien fef1ec00e7 Merge branch releases/1.8 revisions r5347:r5360 into trunk.
- Fix bug in fast_atof when reading floating point numbers with more than 16 digits past the dot.

Also minor change in .obj loader to add (slightly inexact but still useful) line-numbers internally for debugging.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5361 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-01-27 00:37:53 +00:00
cutealien c2eba9c7df Fix bug in virtual filessystem which prevented createFileList from working. Thx @Cube for reporting a problem.
Froum-thread here: http://irrlicht.sourceforge.net/forum/viewtopic.php?f=1&t=51688
Note, this is not the bug reported there... just another bug which was shown by that test-code.
What was going wrong is that createFileList created a default-path named "/" instead of "" and when comparing paths later no file was in this path
because our archives don't start with a "/" for the root directory.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5359 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-01-22 23:17:51 +00:00
engineer_apple 0f110c0aa1 test.txt(removed)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5357 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-01-12 22:35:11 +00:00
engineer_apple 51a22ebb64 test
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5356 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-01-12 22:33:46 +00:00
fixeworks 86636f83eb Fixed matrix documentation with info about homgenous coordinates.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5355 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-12-10 10:17:16 +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 7ac8d22e27 Fix infinite recursion in CTriangleBBSelector caused by my selector rewrite in svn5350.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5353 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-12-07 13:37:32 +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 543e70dc34 CTriangleSelector can now be created for a single meshbuffer.
It can still update with a node transformation, but it won't update when the mesh changes (so only useful for static meshes, not for animated ones).

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5351 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-12-06 17:10:57 +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 d7c067cdef Include <sys/sysctl.h> only on OSX to allow compiling with musl (c-lib replacement).
Include <sys/types.h> also on Solaris as it's also present there.
This changes are from patch #317 from Felix Janda: https://sourceforge.net/p/irrlicht/patches/317/


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5349 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-11-06 19:01:52 +00:00
cutealien a1d75811f0 core::string::split now adds delimiter to token before delimiter when keepSeparators is true. That way we never end up with 2 tokens for an original string with a single character.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5348 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-10-31 15:37:24 +00:00
cutealien 5962caf6aa Merge branch releases/1.8 revisions r5326:r5346 into trunk.
- Fix crash in eventhandling when calling remove() on a contextmenu while it has focus.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5347 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-10-28 10:17:35 +00:00
cutealien 28d2756b27 Bugfix: SMesh::recalculateBoundingBox() does now ignore empty boundingboxes of meshbuffers instead of adding them.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5345 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-10-20 14:01:41 +00:00
nadro da90582a2b - Removed unnecessary setActiveTexture calls.
- Replaced glTexEnvf by glTexEnvi in places where we set integer values.
- Improved material reset behaviour.
- Above changes fixed issue with Reflection view mode in example no. 09 (started in rev4989). Thanks CuteAlien for report this issue.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5344 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-10-09 13:02:07 +00:00
cutealien 4e0ad489e5 Fix warning.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5343 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-10-01 14:25:56 +00:00
cutealien 85e14866a6 IIrrXMLReader::getAttributeValueAsInt and IIrrXMLReader::getAttributeValueAsFloat can now return a custom default-value when the attribute is not found.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5342 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-09-30 13:56:24 +00:00
cutealien 39c0393023 core::string::split now handles ignoreEmptyTokens=false correct (as documented)
Thanks @manni63 for bugreport: http://irrlicht.sourceforge.net/forum/viewtopic.php?f=7&t=51551&p=299375#p299375


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5341 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-09-27 19:46:09 +00:00
cutealien e064db1355 Bugfix: Previously when some material had a texture matrix and another didn't those materials were still considered identical. Which had prevented correct switching between materials with and without texture matrices.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5340 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-09-26 12:35:35 +00:00
cutealien da3c88d0e1 Fix some compile warnings which were caused by recent interface changes in file reader/writer.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5339 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-09-20 15:47:00 +00:00
cutealien 1d95a1605c Include locale.h insteads of clocale.
Backport form ogl-es branch. Turns out Android NDK doesn't have clocale.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5337 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-09-10 13:20:03 +00:00
cutealien 7d4d485e23 Update changes.txt
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5335 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-09-08 20:32:37 +00:00
cutealien 1a98841268 IWriteFile::write now returning size_t.
Interface is now like fwrite (from standard c-lib). 
Also sizeToWrite parameter changed from u32 to size_t.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5334 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-09-08 20:31:15 +00:00
cutealien 1756e4700d IReadFile::read now returning size_t (like fread in c-lib) instead of s32. Also sizeToRead parameter changed from u32 to size_t.
(corresponding change to IWriteFile::write is planned for next days)


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5333 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-09-07 22:01:04 +00:00
cutealien d3ac819504 Fix several bugs in multibyteToWString. This also fixes pasting.
Add clear function to strings.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5332 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-08-24 21:18:42 +00:00
cutealien d4204168c6 Ensure saveScene always uses dot's (and not commas) for floating point numbers.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5331 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-08-22 10:20:31 +00:00
cutealien 7ffdbb728a Fix accidental changing of locale in file-open dialog. Thanks @Mel for bug-report and test-case.
We have to temporarily change LC_CTPYE, but did change LC_ALL. That could in some situations (maybe when LC_CTYPE and LC_NUMERIC where not identical?) lead to LC_NUMERIC (and probably others) being changed afterwards.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5330 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-08-22 10:15:16 +00:00
cutealien bbfb73b97d Move keycodes on OSX out of the _IRR_COMPILE_WITH_JOYSTICK_EVENTS_ part as otherwise it won't compile when _IRR_COMPILE_WITH_JOYSTICK_EVENTS_ is not set.
Thanks @Wol101 for reporting.
Note... compiling not tested due to lack of test-system...


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5329 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-08-14 14:31:44 +00:00
cutealien 808240cf98 SceneCollisionManager now using const camera pointers.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5328 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-08-13 15:56:49 +00:00
cutealien bff50c751d Spelling fixes.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5327 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-08-13 12:50:06 +00:00
cutealien c8e0683827 Merge branch releases/1.8 revisions r5315:r5325 into trunk.
- documentation changes
- jpg loader can now load more jpg formats.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5326 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-07-19 20:30:59 +00:00
cutealien b92ecca89c Update docs.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5322 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-07-09 17:51:46 +00:00
nadro a101d17d06 - Fixed mipmaps rendering in Burning's driver.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5318 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-07-09 13:38:33 +00:00
cutealien 413316708c Merge branch releases/1.8 revisions r5311:r5314 into trunk
- Update libpng to 1.6.23 (from 1.6.21)


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5315 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-07-09 09:36:42 +00:00
cutealien 14a41bbc61 Update to libpng 1.6.23 (from 1.6.21).
Vendors and 1.8 branch updated.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5314 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-07-09 09:19:03 +00:00
cutealien 666feee11e Merge branch releases/1.8 revisions r5302:r5310 into trunk:
- Tests on Unix now have a short pause between switching drivers to avoid certain X11 errors.
 - Fix CEnumAttribute::getInt() which could crash  (thx @ luthyr for reporting)
 - No longer try to run tests for drivers not supported on a platform


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5311 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-07-08 20:41:42 +00:00
cutealien 1c6a9c68cb Minor type improvement (thx @ luthyr for reporting)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5306 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-06-19 18:28:23 +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
cutealien 960be376dd CTriangleSelector now supports 32-bit meshbuffers. Thanks @Wol101 for reporting and patch-proposal.
I used another patch which complicates the code somewhat, but old solution was too slow for my taste.
This should now speedup CTriangleSelector for animated meshes which call updateFromMesh regularly.
Also a fix: CTriangleSelector no longer resets it's boundingbox to 0,0,0 (that caused too large meshbuffers when a meshbuffer was not around 0), so basically also just a speedup.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5304 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-05-30 20:21:23 +00:00
cutealien 2c64159436 Merge branch releases/1.8 revisions 5286:5301 into trunk:
- Deprecate CMatrix4::transformBox
 - Fix CSceneCollisionManager::getPickedNodeBB which could sometimes miss collisions.
 - Get lights and renderTargetTexture tests working again on Windows 10


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5302 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-05-27 19:35:22 +00:00
cutealien 39f9b8fa49 Fix: Collada reader/writer now uses wrap_p for third texture wrap value instead of invalid wrap_r (thx @Yoran for bugreport).
Seems that Irrlicht uses u,v,w, OpenGL uses s,t,r and Collada uses s,t,p
Files written by older Irrlicht can still be read (aka reader still supports wrap_r)

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5297 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-05-17 10:23:27 +00:00