Commit Graph

347 Commits (master)

Author SHA1 Message Date
cutealien 2b685cfd24 Link to X11 on c::b project file for tests (got changed recently in other project files).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4811 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-04-29 15:13:31 +00:00
hybrid 7e28379c42 Add new test file to project files
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4695 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-02-18 23:19:46 +00:00
cutealien 1e828d9a08 Add tests for mergeFilename.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4681 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-02-13 00:17:50 +00:00
hybrid 2892e70174 Add some error checking in test.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4665 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-01-13 20:05:16 +00:00
hybrid c4d80bece3 Indentation
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4664 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-01-13 20:03:49 +00:00
hybrid 6c7ac760d4 Fix some indentation and white spacing before parantheses
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4493 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-04-04 16:31:34 +00:00
hybrid a01095adfe Add getRadius method for aabbox3d, as suggested by hendu
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4474 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-03-07 16:57:55 +00:00
cutealien 15bd95977a Add _IRR_COMPILE_WITH_XML_ define to allow compiling Irrlicht without xml (patch written by curaga)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4423 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-01-02 23:13:21 +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 0a2330890a Bump copyright to 2012
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4320 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-09-30 23:38:54 +00:00
cutealien a87bb3a063 - Fix a bunch of off-by one errors in irr::core::string in functions equals_substring_ignore_case, findFirst, findFirstChar, findNext, findLast, findLastChar, replace, remove and removeChars. This prevents some potential memory access errors, find functions no longer try to find the \0, replace no longer replaces the \0 and remove no longer tries to remove it (which did remove the last character instead).
- Fix a few new warnings in gcc.



git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4308 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-09-06 19:49:45 +00:00
hybrid 4e1426e465 Remove event handling in device constructor. Seems it was not really the cause for the problems, only the missing size update of the d3d9 driver. To avoid complications, only the least change was left in.
Also improved the userclipplane test to really show errors in case of the original problem.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4303 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-23 23:45:53 +00:00
hybrid 4b6531eb17 Anonymous namespace for test code to avoid name clashes
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4301 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-23 11:22:50 +00:00
hybrid 9f81024521 Test was using wrong size of screen
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4300 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-23 11:22:16 +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 a83a87594a Replacing matrix4::setRotationRadiansLH and setRotationRadiansRH by setRotationRadians. Old functions had left handed and right handed just the wrong way round and contained an additional bug that did lead to wrong rotations (mixing up y,z). A single function for this is enough (people can just flip the axis) and this way people who already used the old functions (which only got added in trunk) don't just get new behavior but some compile error. Thanks to Randajad for finding the error with the wrong results, giving a testcase and insisting that there's really a bug when I didn't see it on first try :-)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4295 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-20 11:22:05 +00:00
hybrid d9f9a2ca50 Add list of test casses with numbers for easier access to single tests. We can also add some descriptions there.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4293 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-17 17:07:08 +00:00
hybrid 79ba8079f6 Add two new test cases for user clip planes and drawVertexPrimitive
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4292 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-17 17:05:01 +00:00
hybrid 8d628796f9 Added default parameter to getMatrix
Change matrix pointer access to direct array operator access.
Add some test cases for quaternion methods.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4280 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-15 11:32:27 +00:00
cutealien 14a4a07e66 Add documentation and some compile-tests for matrix.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4231 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-07-07 10:31:09 +00:00
cutealien 238f3b7bd8 Fix string::replace which failed replacing substrings at the end when the replacement was longer (thx @ zerochen for reporting). Corresonding tests added.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4230 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-07-07 09:14:59 +00:00
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
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
hybrid be4fae0335 Fix comments
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3754 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-25 22:29:53 +00:00
hybrid cae05e6a69 Fix segfaults in case the image is not created. Add test which simply checks which formats are supported for screenshots.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3752 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-25 16:39:47 +00:00
hybrid 5a7032e420 Add test vector from forum.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3742 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-22 20:40:30 +00:00
hybrid d43cb8b531 Another inaccuracy we need to handle
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3738 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-20 21:59:13 +00:00
hybrid f80a8cd066 Fix png loader warning, also reordered transform calls such that only one test requires a late place after the read_update call. Added a test case which tests paletted png file loading and rendering.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3725 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-17 17:48:06 +00:00
hybrid 426d9c82ba Test case fixed with latest changes for relative texture names.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3714 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-09 12:53:53 +00:00
hybrid c28f47bb3b Added scaling draw2dimage method to burnings video. This fix is based on code submission from Auria.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3701 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-05 14:25:34 +00:00
hybrid de109a1f6a Re-enable tests with burnings video. Fix some whitespaces.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3700 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-05 00:02:57 +00:00
hybrid 2f8b537d25 Remove redundant code from quaternion class
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3699 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-04 15:09:43 +00:00
hybrid 138dd5020d Remove WIP disabling of test cases.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3697 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-03 07:12:45 +00:00
hybrid 81e59495bf Fix some problems with gimbal lock in quaternion to Euler method. Not yet completely going through the test, I guess it's a euler order problem.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3694 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-02 16:24:44 +00:00
hybrid 73d2385d9c Add RTT format check, after an idea from Stefbuet
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3692 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-01 22:59:37 +00:00
hybrid 4d1cd9ee13 Added a test case for 2d filtering, provided by Auria from STK team. Fixed a bug in the OpenGL render settings.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3691 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-01 21:54:59 +00:00
hybrid 2fb61c695a Add a test case for correctly aligned pixel rendering. Not yet working for Direct3d
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3690 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-01 17:30:28 +00:00
hybrid da9ec64a9a Relax test threshold
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3686 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-28 22:18:54 +00:00
hybrid a00b6408b5 Fix warnings about deprecated methods. Fix bug with unsupported driver causing a test error.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3684 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-28 16:10:20 +00:00
hybrid 4de19ba5b3 Fix typos in output.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3671 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-27 21:16:14 +00:00
hybrid 82beebebf4 Revert Makefile changes.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3670 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-27 21:14:55 +00:00