Commit Graph

276 Commits (d432f415a2c20b8125bf63518460d12659a545e8)

Author SHA1 Message Date
cutealien 27879dd9a7 - User can now set characters used for decimal point in fast_atof for localisation.
- Update changes.txt

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4224 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-06-29 17:04:18 +00:00
cutealien d4ee640740 Use another solution to ensure first animation frame is at start. Solution yesterday had the trouble that it was no longer possible to use setCurrentFrame before otherwise. Tests b3dAnimation and md2Animation working again.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4217 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-06-27 13:54:33 +00:00
cutealien 26b2b68a13 - COpenGLTexture::getOpenGLFormatAndParametersFromColorFormat now returning values for ECF_R5G6B5 which can be used in glTexImage2D. Fixes test renderTargetTexture. I've also added a few more error-checks in debug.
- Remove assert in opengl driver (already logs and asserts prevent tests from running through).
- NOTE: 2 new tests failing: b3dAnimation and md2Animation. Maybe due to animation fix from yesterday.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4216 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-06-27 10:54:12 +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
cutealien a5d5488c48 Remove test isPointInsideWithSinglePrecision as triangle3d::isPointInside now rather includes more border points than risking to miss some anyway.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4187 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-06-12 21:32:42 +00:00
cutealien 60d67565c4 Enable screenshot test.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4186 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-06-12 21:01:16 +00:00
cutealien 1e4a0a77fd Fix screenshots under Linux/OpenGL for formats ECF_R5G6B5 (failed before) and ECF_R8G8B8 (red and blue where switched). Note that R5G6B5 still has strange results when writing to file. But that's due to a bug in color-conversion, which is fixed already in 1.7 and will be merged to trunk soon.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4185 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-06-12 20:59:47 +00:00
cutealien 94968c4a8c Fix tests triangle3d:
- triangle3d::isPointInsideFast now using some epsilon to catch all points on the borders.
- triangle3d::getIntersectionOfPlaneWithLine calculates now with higher precision for more exact results.
- triangle3d::isOnSameSide (used by isPointInside) calculates now with higher precision and uses some epsilon to make it work with larger integers and less floating point troubles. Slightly slower now.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4183 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-06-11 15:24:38 +00:00
cutealien 2ea755420c Fix time for animated model in anti-aliasing test (we should kick out animations from such tests completely!). Results still not as in reference image, but model is anti-aliased. Lines not anti-aliased at value 2 (starts around 10 here). I suspect that's too much driver dependent. Increased requiredMatch to 99.4 as animation might have been reason for low test-value - decrease again if it still fails on other system and is really OK.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4182 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-06-05 19:13:24 +00:00
cutealien e33c2c5a9a - equalsByUlp rewritten slightly to compile with our gcc release settings without warnings.
- fast_atof tests now running on 64-bit (should've been last 64-bit specific trouble in tests).


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4180 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-06-05 15:27:28 +00:00
cutealien 833ad991dd - Add function equalsByUlp to test for spacing between floating point numbers.
- Allow difference of 1 ULP in fast_atof tests (as that is still correct). Note that this only fixes part of the fast_atof test, the whole tests still fails on 64-bit because test_strtol still fails (that looks more like a real bug).


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4179 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-06-05 11:46:37 +00:00
cutealien 3aa4260646 Prevent memoryleak in stabilizeScreenBackground.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4173 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-06-03 21:41:20 +00:00
cutealien 4acc86e82a Test matrixOps needs a slightly larger epsilon on 64-bit.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4172 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-06-03 18:59:24 +00:00
cutealien 54017deae9 Have to use fuzzy comparison instead of binary comparision in test writeImageToFile as it's using renderresult which can differ slightly in some pixels.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4171 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-06-02 20:25:29 +00:00
cutealien 7ae5d0817c Test ioScene needed time set to the number of the beast to work (I'm not joking man!). Works now independent of computer speed (but should probably use an updated irr file sooner or later - is this from irrEdit as the format looks outdated?).
Remove unused variables in billboards test and testUtils.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4170 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-05-29 21:35:31 +00:00
hybrid 01c9bd4c83 Fix 8bit grey image TGAs, which were not working due to missing palette. Also switched to RGB8 format, as otherwise a loss in precision would occur. Thanks to Klunk for the error report and a test image.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4160 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-04-29 23:16:29 +00:00
Nadro 9548b470d0 - fixed issues with a D3D driver and Aero effects.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4159 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-04-28 18:23:23 +00:00
hybrid f598f78667 Trying an updated reference image, draw2d image positioning changed slightly.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4154 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-04-25 22:51:01 +00:00
hybrid d313db45b0 Even more updated reference images with now white backgrounds of the GUI elements.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4153 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-04-25 22:46:11 +00:00
hybrid a76dc8faf9 Update reference images for viewPort test, also due to GUI skin changes
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4152 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-04-25 22:34:27 +00:00
hybrid cf9e122396 Break textureRenderStates test again by adding the test case for the dangling pointer (white texture OpenGL) problem. Fix will follow later, patch exists on the tracker already.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4150 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-04-25 13:58:30 +00:00
cutealien 156eadf7bf Only do single precision tests on 32-bit Windows (try 2)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4146 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-04-25 09:18:54 +00:00
cutealien cc2cdf4db0 Only do single precision tests on 32-bit Windows
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4145 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-04-25 09:10:56 +00:00
hybrid 86d9bb8df8 Fix reference images for texture matrix test, getting up to the GUI changes form the past.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4144 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-04-25 08:40:39 +00:00
hybrid 0cc1b698da Fix software renderer inconsistency with rest of drivers in case of invalid destination rect for draw2DImage. Now no driver will render an image in these cases.
Added a test case to check behavior of all drivers for this situation.
Fixed comparison of similar test case to support fuzzy comparison and relaxed threshold.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4143 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-04-24 16:53:46 +00:00
hybrid 1f474578bf Add output to MSVC debug logger
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4139 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-04-23 23:55:52 +00:00
hybrid 008a470fd0 Fix pixel alignment and draw2DLine inconsistent offset problems. New test added to make sure that drawPixel and draw2DLine use the same alignment.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4138 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-04-23 17:19:12 +00:00
cutealien ef6296a57b CFileSystem::removeFileArchive now checking for normalized path + corresponding test now evaluated.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4136 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-04-16 16:44:13 +00:00
cutealien 128f5a14e9 Replace asserts in tests with new macro assert_log.
This is done to allow all tests running through even when one has a problem. Otherwise people just comment-out the asserts. The macro will log file, line and assert-test to the tests.log.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4126 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-04-03 21:27:22 +00:00
hybrid 65e3d8b4e0 Wrong driver type used
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4110 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-03-19 23:15:03 +00:00
cutealien 86e5345306 - XML-reader now preserves all whitespace. So even newlines are now returned as EXN_TEXT nodes. Old behavior was dropping those, but it handled unix-style newlines badly and should rather have preserved all whitespace or none. Preserving no whitespace could be useful feature for the future.
- XML documentation updated where documentation and implementation had been different.
- c::b Linux now compiling engine with -fno-exceptions like the Makefile. Should probably use no-rtti as well, but haven't figured out how to do that without getting warnings for every c-file.
- tests now compiling with -fno-exceptions and defines _IRR_STATIC_LIB_ plus _DEBUG
- new function xmlCompareFiles in testUtils to replace binaryCompareFiles for tests with xml-files as binaries always broke with different wchar_t sizes.
- test ioScene now working on Linux-32


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4092 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-02-20 19:43:51 +00:00
cutealien 78201934a2 Updated scene.irr files for the ioScene test. I couldn't figure out why the original .irr files where ever used - even going back to the first version when they were created (r3532) those files never worked. But going through the differing values by hand all attributes with different values from the old test-irr's did write the correct value to xml (aka as it was in memory in the scenenodes) so I use now the resulting .irr file as we currently get it. More changes (Linux) for this test coming later, but ioScene test passes now on Windows.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4089 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-02-20 17:18:44 +00:00
cutealien 9c8790136c More fixed to make line2d work with integers this time in intersectWith and getClosestPoint.
I've renamed test line2dIntersect to testLine2d and added new tests there (lazy).
Similar fixes for integers should be done in line3d, but can't do that now, so has to wait.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4076 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-02-13 15:16:46 +00:00
cutealien d6cca9e7bc Fix CTriangleBBSelector.h which had been broken when CTriangleSelector::getTriangle behaviour had been improved (it's overloaded getTriangle no longer got called). Tests collisionResponseAnimator and sceneCollisionManager do now pass again.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4075 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-02-12 22:19:28 +00:00
cutealien 4c5827936b Fix leaks in several tests. Current test results (WinXP/VS10): 53 passing, 10 failing, 3 don't run through (collisionResponseAnimator, sceneCollisionManager, screenshot).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4074 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-02-12 11:47:11 +00:00
cutealien 9184ea4c47 Merged revisions 4057-4071 from 1.7 branch.
- GUIEditor attributes have now scrollbar to be editable
- Remove warning when compiling line2d::intersectWith with other types than f32.
- CodeBlocks tests project file now compiling also on Linux.
- Slightly more lenient comparison in test textureRenderStates


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4072 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-02-11 13:07:07 +00:00
cutealien d9f49f04f8 Adding missing test-file to VS project file.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4069 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-02-10 11:39:21 +00:00
hybrid 40480a7822 Merged revisions 4001-4056 from 1.7 branch. Keycode updates, fix compilation errors, vector normalize error case fixed, joystick safety fixes, editbox updates, meshviewer modal window fix, isPointInsideFast changes.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4057 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-02-01 23:29:32 +00:00
hybrid 314d53a31a Fix billboard error which used the wrong width for top and bottom width of trapezoid billboards. The reason is the use of cross-product, which flips the vertical axis used in calculations. Properly documented in the code now, API now works as expected. Bug and fix provided by pc0de.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4030 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-01-06 14:26:04 +00:00
hybrid 03b27ab5b9 remove using statements
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4011 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-12-04 00:45:38 +00:00
hybrid ad82f725be Add billboard test, which shows also why the non-uniform billboards fail at a certain point.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4003 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-12-03 16:49:43 +00:00
cutealien 6f1db5fc41 - Add vector2d and dimension2d attributes (both already had incomplete parts of implementations for some reason)
- Add tests for vector2d and dimension2d attributes
- Test currently failing on Win32-VS: collisionResponseAnimator, sceneCollisionManager, screenshot

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3996 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-11-29 22:56:28 +00:00
hybrid 31664bce48 Add triangleSelector improvements suggested by rogerborg. Plain triangle selector also needed an additional inverse matrix application, but now works as the octree case. Test cases also added.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3973 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-28 16:27:32 +00:00
hybrid 5ea792721f Fix proper place of drop.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3972 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-25 15:33:43 +00:00
hybrid f6662bffdd git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3915 dfc29bdd-3216-0410-991c-e03cc46cb475 2011-09-10 10:16:23 +00:00
hybrid 5c67d339b4 Fix LZMA uncompression. Added test case to ensure proper decoding.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3914 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-09-09 23:38:59 +00:00
hybrid afa978f2a5 Merge from 1.7 branch, revisions 3877-3908. Fix for getSphericalCoordinateAngles, some warnign fixes, md2 normal fix, several GUI fixes, isPointInside fix, zip endianess fix.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3909 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-09-08 21:50:10 +00:00
hybrid 5ba7ae5afd Fix rotationFromTo as suggested by AgentD, using the from vector instead of the current values from the quaternion. After all, this quaternion has nothing to do with from or to so far, so the values contained there are rather arbitrary. Moreover, I'm normalizing the quaternion before returning it, as it is a rotation quaternion, which should be a unit quat. Test cases are also extended. For now only in trunk, may be backported after further testing.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3905 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-08-30 14:13:45 +00:00
hybrid 8cb3aebfd0 Fix warnings, layout, and return value.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3871 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-07-01 22:57:55 +00:00
hybrid 438baffc3e Fix some warnings from recent gcc versions.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3852 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-16 12:06:27 +00:00