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
hybrid
7b52ef6f49
Fix some warnings.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3669 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-27 21:13:16 +00:00
hybrid
ed26bc8b78
Add test case for polygon offset (depth bias)
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3655 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-21 17:24:35 +00:00
hybrid
9260fbdbea
Add tests for strtol10 and modify threshold for other test.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3635 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-13 22:27:34 +00:00
hybrid
cd700608ca
Add test case for getRotations which tests consecutive x rotations.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3563 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-01-17 10:29:09 +00:00
hybrid
5e4d495dcc
Bump copyright dates to 2011.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3556 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-01-14 13:24:40 +00:00
hybrid
4d7a3a3ac8
Log what failed in the last render
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3549 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-01-08 16:48:46 +00:00
hybrid
d21c24b15e
Fix directory recognition in ZIP reader. Added tests for findFile with and without directories.
...
Fix warning message in CAnimatedMeshSceneNode
Change C-cast to reinterpret in CIrrDeviceLinux
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3548 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-01-07 23:55:58 +00:00
hybrid
1ab25bd37b
Fix reading zip files with incomplete local file headers. These require proper support for the central directory, which is now implemented. Thanks to hiker for supplying such a file.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3544 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-01-07 16:33:15 +00:00
hybrid
dc29ec07e8
Fix skinnedMesh test for current dwarf mesh
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3543 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-01-07 11:38:48 +00:00
hybrid
394aedad69
Fix scene files to reflect relative texture names, and disabled the according test until the texture deserialization is actually fixed.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3542 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-01-07 11:13:59 +00:00
hybrid
fdcdf60e0b
Add a test for proper file loading from archives, despite two files in the archive have the same name.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3536 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-01-05 18:09:58 +00:00
hybrid
f1cc2dca01
Fix writeScene change in order to write the given node and its descendants, not only the list of children to the scene file.
...
Add support for loading a scene file as childs of a given node. This will ignore the scene attributes and load all nodes of the scene, storing them as children of a given parent node. The rest will stay as before, including the default behavior to load scene attributes and all nodes directly into the scene manager.
Test cases added for both methods loadScene and saveScene. In order to find a node in the example scene from tutorial 15 I have added a name and ID to one of the scene elements.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3532 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-01-03 17:54:10 +00:00
hybrid
16cf9f58b9
Add a method to get a relative filename, based on an given base directory.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3529 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-01-03 00:16:35 +00:00
hybrid
9f6d50804a
Fix setMesh for skinned meshes, as reported by wing64. The joints cache was not updated, and hence the node reported and returned wrong joints.
...
Added support for resetting the transition time to 0.
Fixed some method names (correct camel case, create replaced by add, upper case fixed) in skinnedMesh.cpp
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3526 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-30 14:49:19 +00:00
hybrid
149d9ec814
Fix OpenGL texture matrix setup, found by pc0de. Sorry for the inconvenience, was probably very late when I changed that code.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3523 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-28 19:12:50 +00:00
hybrid
92892c4fd5
Fix result variable aggregation
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3521 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-28 17:11:14 +00:00
hybrid
a204bb3543
Real fix for the MRT problem. Last time only parts of the problem were fixed. Now, all RTT states should be fixed again. Also, test results are commited and work for both drivers.
...
Also changed the FBODepthTexture implementation in that it will not create another FBO, but only the depth/stencil texture or renderbuffer.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3519 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-23 13:49:37 +00:00
hybrid
5acaa94c20
Fix MRT disabling under OpenGL. Thanks to wing64 for noting this error.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3518 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-23 12:00:49 +00:00
hybrid
f70257d23b
Fixed the reference images, which have changed due to the text position changes in the 1.7 branch. We are using long texts, hence an empty line had been added in the beginning. This was wrong and fixed in the 1.7 branch already. Now our test had to be fixed as well.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3516 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-21 16:28:37 +00:00
hybrid
d9c9de5158
Add a new texture lock mode for write-only access. The lock method has changed for this. Support is only implemented under OpenGL so far.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3510 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-14 23:32:54 +00:00
hybrid
54ff5773af
Relax some test criteria
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3509 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-14 23:29:14 +00:00
hybrid
c4b6a33726
Disabled the opengl test for reflection transparent material.
...
Fixed the reflection transparent material under OpenGL to use vertex alpha.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3507 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-12 23:04:13 +00:00
hybrid
91426a212c
New test for filtering 2d renders through 2dmaterial.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3506 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-12 21:41:16 +00:00
hybrid
f6c17ba8b5
Relax some comparisons, due to low driver settings.
...
Fix rtt test, which failed on systems without fbo support.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3502 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-12 00:06:13 +00:00
hybrid
4eeafca144
Enable test for projection matrix. I have removed the projection matrix tweak from OpenGL driver, as it does not seem to have any effect. At least no good one.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3501 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-11 17:11:30 +00:00
hybrid
6b18375616
Fix bug which showed up when RTT and text were used in the same scene. I have removed the old RTT checks in 2d methods, and placed a global fix for the texture matrix into the 2d mode setting.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3500 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-11 16:52:12 +00:00
hybrid
5fdbe503b5
Last updates for proper window closing after a test has run.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3499 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-11 16:19:34 +00:00
hybrid
cfd8e9412d
Add a test which tries to reproduce a bug mentioned by REDDemon. Works correctly here, though.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3498 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-11 10:33:11 +00:00
hybrid
8cf6ce43d6
Make viewPort test a little less tight
...
Add more driver tests to let mrt test go through on systems which don't support MRT
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3493 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-08 00:35:47 +00:00
hybrid
8c6c657ef4
Fix more device->drop calls to properly remove the window as well under windows.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3492 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-07 18:16:42 +00:00
hybrid
195c746018
Add driver attribute element for AntiAliasing level. This allows to check whether the driver has AA enabled, and which level.
...
Fix AA setup for OpenGL under windows, where the extension was missing and no error came up due to unsupported feature request. Now, the driver recognizes the missing support and properly sets AA to 0.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3491 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-07 17:58:11 +00:00
hybrid
884ede4efd
Fix transformation matrices for OpenGL rendering after setRenderTarget.
...
Fix draw2DImage into RTT in BurningsVideo
Let ViewPorts unchanged if illegal viewport was given.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3490 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-07 16:21:43 +00:00
hybrid
014272f2c1
Fix the text scene node placing in viewports. The problem was, that the calculation took the absolute viewport dimension into account, while rendering into the viewport requires the screenwidth to be taken. Hence, the text was usually misplaced. The collision method can still be used for this mixed mode calculation (get screen coordinate during viewport rendering, use it for full screen rendering), but requires an additional parameter.
...
Software drivers don't support 2d rendering into viewports, so they still fail to properly position text (or other 2d things) into a viewport.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3489 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-07 15:22:58 +00:00
hybrid
eff82803d3
The checkbox color seems to have changed. Please check if this was intended!
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3488 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-06 15:23:49 +00:00
cutealien
8b71ff58b4
The following functions will now use a "ISceneNode *" instead of a "const ISceneNode *":
...
ITriangleSelector::getSceneNodeForTriangle, ISceneNodeAnimatorCollisionResponse::getCollisionNode, ISceneCollisionManager::getCollisionPoint and ISceneCollisionManager::getCollisionResultPosition.
As collision functions often are followed by changing node positions users where so far forced to using const_casts (found by Greenya).
(This will lead once more to many post about correct getCollisionResultPosition usage, but can't be helped - those consts were too restricitive, sorry)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3442 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-11-21 00:23:09 +00:00
hybrid
3a66a00b68
Add a test case for mrt usage. Based on code by wing64.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3414 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-09-14 09:26:03 +00:00
hybrid
bb44b62433
Add some closeDevice calls to reduce the open windows after tests have run.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3411 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-09-14 07:24:33 +00:00
hybrid
69bc11c8f5
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3409 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-09-13 11:24:14 +00:00
hybrid
d6eb580f95
Add a generic attribute interface for querying video driver attributes which are not necessarily of type bool. This interface allows to check certain supported features, such as the number of user clip planes, supported lights and textures, MRTs, and other things. The interface might change in the future, but it's fully functional already. The supported attributes are listed in the API docs of the function.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3408 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-09-12 11:19:42 +00:00
hybrid
56010f2fd0
Add gui image for 2dmaterial test. Enable anti-aliasing in aa test.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3406 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-09-12 11:05:32 +00:00
hybrid
c11c87f20c
Fix getRotationDegrees in matrix class as noted by drewbacca
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3400 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-09-07 17:03:54 +00:00
hybrid
e08e256fdc
Fix docs for collision manager API, wrong return value was given.
...
Change default blend mode in OpenGL to SRC_ALPHA,ONE_MINUS_SRC_ALPHA
Use less precision in 2dmaterial test.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3399 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-09-07 15:03:27 +00:00
hybrid
6f27d721ef
Rename test file and adapt project files.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3398 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-09-07 12:02:49 +00:00
hybrid
da27ae4f3f
Fix vertex alpha blending, as found by darktib
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3396 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-09-07 10:41:31 +00:00
hybrid
8aa6c92bb5
Added a RealTimeDate structure, which can be queried for time and date in human readable form.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3395 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-09-07 08:22:52 +00:00