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
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
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
(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
- 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
- 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
- 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
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
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
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
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
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
- 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
- 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
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
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
(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
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
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
- 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
- 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
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
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
- 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
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