Commit Graph

97 Commits (934b4cfd2264d32887143d0a82762b5f1717c41b)

Author SHA1 Message Date
hybrid 0ca3ba3744 Merged revisions 3089-3138 from 1.7 branch. Full merge, all changes from 1.7 beta phase up to now are included.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3139 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-01-08 11:46:38 +00:00
hybrid a8229b3f10 Merged from 1.6 branch, revisions 2936:3075. Several bugfixes for GUI, containers, file system.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3076 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-12-28 10:56:30 +00:00
cutealien fdfc470b38 Improving array::insert speed by kicking out lots of memory construction calls, but hopefull still leaving all the important ones in places. Does double the speed but is still twice as slow as std::insert unfortunately.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3064 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-12-21 20:17:18 +00:00
cutealien a0b9cea740 Fix recently introduced bug that caused irrlicht to sort the array on each search (instead of just when unsorted).
Also test 33 writeImageToFile currently fails when compiled with optimizations, but probably the test needs to lower requiredMatch.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3063 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-12-21 13:24:53 +00:00
cutealien 6eb1fa1e6e Add swap functions to irrMath and to the core classes.
Deprecate map::isEmpty() and replace it with map::empty() to make it similar to other base classes.
Rename array-test and add tests for list and map.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3060 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-12-20 16:55:15 +00:00
cutealien f0752acdc7 A proposal for fixing the problem with the textures being re-loaded with folder-file-archives.
See bug id 2912581:  http://sourceforge.net/tracker/?func=detail&aid=2912581&group_id=74339&atid=540676
More details described on bug-page.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3043 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-12-12 09:25:55 +00:00
hybrid 3553813721 Fix some tests, add new test for loading textures from FileFolders.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3041 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-12-12 01:01:32 +00:00
cutealien e7afb972b8 Add xml-serialization to the serializeAttributes test. Add comment to readAttributeFromXML that userPointers are intentionally set to 0.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3033 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-12-09 01:32:44 +00:00
cutealien 8bebbdbbc2 - Fixed serialization of stringw-arrays again and learned another lesson of "be very careful when changing const's".
- Added test for serialization
- Added operator != for quaternion.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3026 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-12-08 04:39:25 +00:00
cutealien 7e91fcb00f Simplyfy SNamedPath
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3020 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-12-07 22:45:39 +00:00
cutealien 59721e0d34 SNamePath cleaned up, minor bugfixes, documentation update.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3009 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-12-06 20:42:45 +00:00
cutealien 58764ce8b9 - Keep filenames additionally to internally used names for meshes, fonts, textures and sprites to fix problems with uppercase-filenames on Linux.
- Adapt MeshCache interface to make the difference between names and filenames more clear. Old functions behave the same, but are deprecated.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3004 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-12-06 04:52:15 +00:00
hybrid e699ab8889 Add test for mesh cache.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2988 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-12-05 11:42:18 +00:00
hybrid 6ffcba6836 Fix test compilation. Add check for decryption support being enabled. Add meaningful message if trying to load an encrypted file without decryption support.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2987 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-12-05 11:08:05 +00:00
hybrid 04be1cd5f3 Fix aes loader, seems like no tables won't work. Added test to ensure proper decryption.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2982 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-12-04 18:42:07 +00:00
cutealien 0e21f80e5a - CStringWArrayAttribute can use const-ref instead of full copy
- Put E_ATTRIBUTE_TYPE in own header EAttributes.h
- Put IAttribute in own header IAttribute.h


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2969 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-12-02 16:02:41 +00:00
cutealien 622bd16ba1 SceneNodeAnimatorFollowSpline can now loop and pingpong.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2966 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-12-01 18:26:52 +00:00
hybrid be53718e91 Fix flattenFilename method.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2952 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-11-30 17:34:54 +00:00
cutealien f2e91f0e7c Fix self assignments for irrArray (which worked already in 1.6, not sure if it was fixed there
already or broken after 1.6).


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2950 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-11-30 15:08:16 +00:00
cutealien 09b4f29944 Bugfix: irrArray should no longer crash when using other allocators. Corresponding test added. This was
caused because operator= and copy-constructor where not called because the the second template parameters 
was not used in those function declarations and so only functions for the default parameter had been 
created. 


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2949 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-11-30 14:51:59 +00:00
cutealien 9e1eb1e6ca Revert r2939 (allocation strategy scheme for arrays). Which means old (slow?) speed for now. Reason is that
assignment would otherwise depend on allocation strategy which isn't a good idea. Also some problems due to 
default template parameters which got ignored in copy-constructor and operator= which caused those functions 
not to be called. 


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2946 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-11-30 14:11:27 +00:00
hybrid 883db0f081 Make sure our path names use '/' instead of '\\'
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2913 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-11-21 23:50:51 +00:00
hybrid 755a2c4a1d Change image usage.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2904 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-11-20 16:54:01 +00:00
hybrid 9cda111b6a Add duplicated archive mounting test, fix some precision problems.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2881 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-11-17 12:41:45 +00:00
hybrid 944b00d082 Add some more tests docs, and revert some value changes which need different treatment.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2851 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-11-12 19:49:36 +00:00
hybrid 9af18d89bc Fix tests.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2850 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-11-12 17:57:30 +00:00
hybrid d905e24317 Make sure that matrix multiplication and rotation concatenation are the same.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2841 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-11-11 00:34:14 +00:00
hybrid 9223972c94 Fix DirectX issues in tests, start with vector3d comparison tests.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2840 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-11-10 23:51:30 +00:00
hybrid 2d3032c566 Some new tests.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2838 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-11-10 18:27:01 +00:00
hybrid 007094898f Slightly reordered the test cases based on resource usage.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2824 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-11-10 09:14:12 +00:00
hybrid 6e1bab9989 Add some more archive testing.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2821 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-11-09 17:06:39 +00:00
hybrid bcf09b2ee4 Filesystem cwd patch for virtual file systems, by IPv6.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2806 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-11-04 16:06:19 +00:00
hybrid 107fb67d31 Added test case by vitek, currently commented out as it does not go through.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2805 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-11-04 15:29:01 +00:00
hybrid ecd1072080 Add rtt test case from stefbuet.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2798 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-11-04 11:58:55 +00:00
hybrid 68a7f4b11a Add rogerborg's irrString assignment allocation patch and a testcase.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2787 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-11-03 16:45:39 +00:00
hybrid f2145fd200 Added bbox testing for skinned meshes.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2769 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-10-28 15:56:14 +00:00
hybrid 275874afb1 Merged from 1.6 branch, revisions 2684:2747. Windows serialization fix. Memleak in STL and LWO loader fixed. CursorControl under Windows fixed. CE compilation fixed. Example 21 for Linux fixed. IFileSystem and IFileList additions. Toolbar::addButton fixed. Device::run fixed. Anti-Aliasing on debug rendering disabled. Documenation updated.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2748 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-10-23 18:06:57 +00:00
hybrid b410b526b7 PAK archive reader patch and test, submitted by Carmen Wick.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2741 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-10-23 12:38:30 +00:00
hybrid 0114348e5d Add dx9 screenshot
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2732 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-10-20 16:18:29 +00:00
hybrid 259332ce8f Add test for correct rendering of bsp example with all drivers.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2731 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-10-20 15:57:15 +00:00
hybrid 64ad07a38e Merged from 1.6 branch, revisions 2665:2683. External creation of CSkinnedMesh. Texture matrix bug fixed. obj loader fixed. Divide by zero checks. Some API methods renamed. Strict aliasing fixes. Collada loader fixed.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2684 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-09-09 14:30:44 +00:00
hybrid 157cd67caf Merged revisions 2622:2663 from branch 1.6. SMaterial bug, MS3D patch, LWO fix. Better Shift recognition under 2in32. D3D depth buffer MSAA problems fixed. string<c16> changed to io::path. Fix 2dimagebatch, add better mtl file finder. Fix some OpenGL extension checks. Fixed x86-64 warnings. Export symbols in gcc4. Scolling in GUITab fixed. Fixed PixelBlend16 and SW driver. FPS cam stuttering fixed. OSX project additions. New scene parameter to ignore obj's mtl files.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2664 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-08-24 09:12:27 +00:00
cutealien 09cd4c3869 bugfix: CMountPointReader::openFile no longer returns file for empty filenames. Corresponding test added.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2421 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-06-15 15:49:16 +00:00
cutealien 2dc5c7d7d5 - Reversed change in vector3d::normalize. The check for 0 vector isn't there for optimization, but to prevent NAN values.
Works now again as documented and a corresponding test has been added.
  Does fix bug 2770709 (https://sourceforge.net/tracker/?func=detail&aid=2770709&group_id=74339&atid=540676)
- Animations can now be paused by setting the fps to 0.
- Avoid fp-precision problem in getPickedNodeBB (see also 
http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?t=33838&highlight=). 
  This change might also fix the problem with picking nodes found by aanderse 
(http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?t=32890&highlight=)



git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2419 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-06-11 22:56:51 +00:00
cutealien 2391338b57 - Fix bug in CSceneNodeAnimatorCollisionResponse::setWorld as found by Quillraven.
- Fix simliar bugs where object have been dropped accidentally in set functions in many places


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2417 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-06-10 20:13:37 +00:00
cutealien f598ea9265 New test for zipreader (works).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2414 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-06-09 00:53:05 +00:00
hybrid 1a924aa159 Adapt test suite to recent changes.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2395 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-05-16 18:11:11 +00:00
engineer_apple bebda484e1 Changes in 1.6 TA
- implemented isALoadableFileFormat ( File *file ) for the Archive Loader


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2209 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-02-11 14:04:12 +00:00
Rogerborg 7b5c07e9ce Add missing test files, update IGeometryCreator.h. Re-enable makeColorKeyTexture test - apologies if this is still borked on some platforms: please feel free to disable it again.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2208 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-02-10 22:21:04 +00:00
engineer_apple 2340f9b849 Changes in 1.6 TA
- PixelBlend16 and PixelBlend16_simd are working for the new rules.
	- bugfix. CLightSceneNode didn't correctly update it's attributes
	
		Lighting Linear Attenuation.	= 1.f / radius
		
		The Example loadirr files set the lightscene radius to 1000.f but
		stays on the previous default attentuation with the older radius 100 -> 1.f / 100
		so the examples looks golden-brown.
		
		Now the radius is correctly!! set to the attenuation of 1.f/1000.f because the
		file doesn't have special attenuation. and now it looks more yellow.
		can anybody show me a correct screenshot for this file;-)? Niko?
		
		Or is this behavior the default lighting?. then it would be
		a fixed constant linear attenuation of 0.01f;-). Please clearify
		For now i didn't fixed it
		
		
		I encountered this behavior because i ( burning video ) used the original radius
		for calculations and so i've found that radius != 1.f / linearAttenuation but
		in the LightSceneNode this formula was used.. confused;-)
		

	- vector template and equals tests
		as working with the test suits i cleaned the template behavior (mixed types are
		used in the templates) and added all missing special math function with their coressponding type
		I also set the equal test for s32 to behave like the f32 routine.

		The function equals always implements a weak test.		
		that means a tolerance MUST always be used if you use the equal function. default is 1.
		you can set it to zero a==b-> equals ( a, b, 0 ) but do it explicit like you have to
		for floating compare. This is important when irrlicht is going to use special hardware
		math acceleration on a per function base, like sse2, or the other way round fixpoint.
	
	- VideoDriver drawPixel
		The HW renderes are using the alpha components for blending.
		The Software Renderes and image loaders are using CImage::setPixel copy. 
		so setPixel is engaged to either blends or copy the pixel
		default: false
	- Burningvideo
		added RenderMaterial EMT_SPHERE_MAP
			pushed burningsvideo to 0.43
		added RenderMaterial EMT_REFLECTION_2_LAYER
			pushed burningsvideo to 0.44
		set	EMT_TRANSPARENT_ALPHA_CHANNEL_REF
			to use AlphaRef 0.5 like Direct3D
			
		One Note: in OpenGL there is know difference between sphere_map and reflection layer
		both using GL_TEXTURE_GEN_MODE GL_SPHERE_MAP, whereas in d3d one time using camera_normal
		on sphere and reflection on refletcion_layer.
		
		The visual difference is that on sphere map the "image is not moving" when you rotate the 
		viewer. For Buring i took the opengl visual. always moving
				

	- rename quake3 SEntity to IEntity to be confom with IShader
		even IShader and IEntity are none pure virtual interfaces
		like most irrlicht objects


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2207 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-02-10 15:08:23 +00:00