Commit Graph

265 Commits (366c0e48b527cacfd37b95437ef20d81b6c4cd78)

Author SHA1 Message Date
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
hybrid 7b5fa07671 Merged revisions 3729-3829 from 1.7 branch. Fixed serialization of camera nodes, fix array::erase, fix mem leaks in example 22, fix interpolation in SColorf, fix crash in collada loader.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3830 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-09 06:45:29 +00:00
hybrid f22fe54680 Add another test for pixel exact 2d rendering
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3826 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-08 17:06:44 +00:00
hybrid 0c18bf9e8a Add output to test macros
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3825 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-08 17:05:49 +00:00
hybrid 87aae4f760 Relax screenshot test for loaded scene. Due to the animator start the scene looks different each time.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3823 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-08 11:58:44 +00:00
hybrid 606168737c Debugged the quat test. Was just a float inaccuracy. Fixed now by using a less picky test.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3821 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-07 22:11:08 +00:00
hybrid 3f47f80798 Added two macros to call tests for all drivers, or for all hw drivers, with just one call.
Added tests to check whether the driver supports the necessary features, and stop early if it does not make sense.
Fixed line endings for testXML.cpp

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3819 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-07 21:09:32 +00:00
hybrid 0c7e433063 Fix mipmap overwriting after manually changing automatically generated mipmaps due to changing the base texture and triggering an auto update of the mipmaps. The auto update cannot be re-enabled afterwards for now, though.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3766 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-28 23:50:38 +00:00
hybrid 1e321bc0ff Add test case to ensure that terrain nodes fit nicely together - when correctly placed.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3764 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-27 17:02:48 +00:00
hybrid 8202d6dc92 Add also a lock and write test for level 0, in order to check mipmap updates problems reported on the forum. Works all as expected.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3762 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-26 21:01:14 +00:00
hybrid c6a42a3b2d Add correct screenshots for mipmap render test, forgot to add this in last commit
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3761 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-26 20:53:09 +00:00
hybrid 9ce8dd8631 Fix issues with mipmap locking under OpenGL. For some reason, the texture was wrongly flipped, though correctly rendered. Test cases added and fixed for OpenGL driver, all others were correctly working.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3760 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-26 20:52:02 +00:00