Commit Graph

1087 Commits (ed3a5a5b15dd496d4a8de376ebb027dba693f8d5)

Author SHA1 Message Date
bitplane fd088d68af Extended WinNT console device to include keyboard and mouse input and respond to windows close messages.
Added sigterm handler and some VT100 escape codes for Unix terminals. Added simple ASCII present() method just for fun, currently untested on most platforms

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2237 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-02-28 06:14:05 +00:00
bitplane 787dc2f5e6 changed text "software device" to "software driver", fixed editbox crash when no font is available
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2236 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-02-27 09:22:55 +00:00
bitplane b78345c729 Fix for compiling with image writers but without loaders
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2235 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-02-27 08:52:27 +00:00
bitplane 74e456a1cc Added generic console device. Only works with software drivers.
todo: user input from console. clean up when the task is killed. present() ASCII output would be nice! :-D

Added new files to projects

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2234 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-02-27 08:36:43 +00:00
hybrid 20657b83e3 Fix error message for missing DISPLAY variable.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2230 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-02-23 17:30:10 +00:00
hybrid 6ece9e0dfe Clarification of parameter unit.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2229 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-02-23 17:29:33 +00:00
hybrid 868d73e249 Performance optimization.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2228 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-02-23 17:27:07 +00:00
bitplane 8a0a55441d adapted OSX device code style to Irrlicht's rather than Cocoa's. Initial attempt at software driver support, isn't refreshing each frame yet
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2227 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-02-20 03:15:01 +00:00
hybrid d27e4a280c Make semicolon checks less strict, fixing some issues with not absolutely correct .x files (which are loaded by MView, though).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2224 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-02-18 21:25:13 +00:00
bitplane 3200932257 Removed mouse X buttons for Windows SDKs before Win2k, reported by zillion42
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2223 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-02-17 15:02:06 +00:00
bitplane bf91012549 Added workaround for SDL resetting glFrontFace(GL_CCW) after driver creation
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2219 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-02-16 19:20:47 +00:00
bitplane e7f7156ead Added mouse mask and middle mouse click events to OSX device
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2218 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-02-16 18:01:57 +00:00
bitplane a6c241ee89 Made enum for mouse button state mask
Win32: Added X buttons to mouse. 
SDL: Swapped middle and right buttons, added button state mask and fixed unresolved external. 
GUI: Fixed scroll input in combo box.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2217 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-02-16 17:28:17 +00:00
bitplane a7f93092ca Added mouse button states to drag/move events
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2216 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-02-16 13:42:35 +00:00
bitplane ba38526210 Had to rename some reserved words in (maybe objc++ but possibly macros to do with xcode?) IQ3Shader::id to ID, string::verify to validate.
Put casts back into OSX driver

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2215 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-02-15 23:10:21 +00:00
bitplane 39c665ebd8 fixed treeview when compiling without GUI
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2213 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-02-13 11:06:34 +00:00
engineer_apple 7ddbd4f886 - destination alpha saving for CImage
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2211 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-02-11 23:53:15 +00:00
engineer_apple 6ad288bf1a git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2210 dfc29bdd-3216-0410-991c-e03cc46cb475 2009-02-11 19:58:51 +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
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
Rogerborg ca0c0850c9 http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?t=32277
Expose CGeometryCreator (as IGeometryCreator) through ISceneManager.  Test app added.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2205 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-02-09 20:05:53 +00:00
hybrid 42b0b92cab Two more self-assignment fixes. setMesh still resets the values, though.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2201 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-02-06 11:56:37 +00:00
hybrid 6cf999bcaf Fix warnings/errors from latest updates.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2200 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-02-05 17:37:45 +00:00
engineer_apple c130d56b76 Changes in 1.6 TA
- fixed createMeshWith2TCoords
		normals were missing during copy. 
	- addded
		//! Creates a copy of the mesh, which will only consist of S3DVertex vertices.
		IMesh* CMeshManipulator::createMeshWith1TCoords(IMesh* mesh) const

	- added io::IFileSystem* CSceneManager::getFileSystem()
		for preparing to remove the (mostly) unnecessary double member variables
		in many loaders

	-	added virtual const c8* ISceneManager::getAnimatorTypeName(ESCENE_NODE_ANIMATOR_TYPE type);
		to the SceneManger Interface. just like getTypeName is public
	
	- added CSceneNodeAnimatorFlyCircle::radiusEllipsoid.
		if radiusEllipsoid == 0 the default circle animation is done
		else radiusEllipsoid forms the b-axe of the ellipsoid.
		
		-> gummiball bouncing
		
	- added ISceneManager::createFlyStraightAnimator variable bool ping-pong
		used in loop mode to device if start from beginning ( default ) or make ping-pong
		
		-> straight bouncing

	- changed IFileSystem::registerFileArchive
		remove the index of the hiarchy and added a new interface method
	
		//! move the hirarchy of the filesystem. moves sourceIndex relative up or down
		virtual bool moveFileArchive( u32 sourceIndex, s32 relative ) = 0;
	
	 	
	- bugfix and changes in
		SViewFrustum::SViewFrustum
		wrong size of Matrices copy. This bug must be ages old... (typo)
		detected during resizing the Matrices. removed obsolute Matrices
		renamed E_TRANSFORMATION_STATE_2 to E_TRANSFORMATION_STATE_FRUSTUM
		
		therefore also changed SViewFrustum::setTransformState to not tap
		in the pitfall again of wrong memory...
		and renamed it to getTransform, like in the driver
		and Matrices private
		
	- OpenGL:
		Specular 
	- moved
		//! EMT_ONETEXTURE_BLEND: has BlendFactor Alphablending
		inline bool textureBlendFunc_hasAlpha ( E_BLEND_FACTOR factor ) const
		from the material renderes ( 3x declared ) to SMaterial.h

	- updated managed light example to use standard driver selection
	- BurningsVideo
		- LightModel reworked.
			Point Light & Direction Light works for Diffuse Color as aspected
			Specular and Fog still have problems ( needs new pixel shader )
			pushed burningsvideo to 0.42 for this major step

		-	removed obsolete matrix transformations
			renamed E_TRANSFORMATION_STATE_2 to E_TRANSFORMATION_STATE_BURNING

			
	- cleaned line3d.h vector3d.h template behavior.
		many mixed f32/f64 implementations are here. i'm not sure if this should be
		the default behavior to use f64 for example for 1.0/x value, because they
		benefit from more precisions, but in my point of view the user is responsible
		of choosing a vector3d<f32> or vector3d<f64>.
	- added core::squareroot to irrmath.h
		-> for having candidates for faster math in the same file
	- added AllowZWriteOnTransparent from SceneManager to burningsvideo	
		Following SceneManger guideline
	-added hasAlpha() to ITexture
		This info can be used for e.q to downgrade a transparent alpha channel blit
		to add if the texture has no alpha channel.
	


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2199 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-02-05 15:33:55 +00:00
hybrid 2eb72c3234 Fix GLXVisual creation for glx 1.2 and older.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2197 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-02-05 09:35:45 +00:00
hybrid 3708c5d1bd Global override material. Set and enable Material flags which will override materials of each scene node in the enabled render passes.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2195 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-02-04 00:22:49 +00:00
hybrid 9ef5622505 Add warning if mesh has too many vertics with 16bit indices.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2194 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-02-03 23:53:08 +00:00
hybrid 18b7b4a55c Optimized texture matrix setting.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2193 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-02-03 23:51:03 +00:00
hybrid 5af050be2c Make renderpass enum combinable.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2191 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-02-03 23:29:48 +00:00
hybrid 5266da908a Changed from bbox extent to stored texture size for planar mapping ratio.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2190 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-02-02 22:10:42 +00:00
hybrid 543407812f Added another parameter for the new planar mapping operator
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2189 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-02-02 22:08:31 +00:00
hybrid b462a3e9d9 Move texture loading to the end, and skip empty meshbuffers.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2188 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-02-02 16:36:31 +00:00
hybrid 76691deb4b Fix array bounds for now.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2187 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-02-02 13:11:37 +00:00
hybrid 9baff2f017 Fix texture loading.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2186 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-02-02 10:52:05 +00:00
hybrid cf81e50f52 Fix signedness warning.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2184 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-02-02 09:47:09 +00:00
hybrid a6a9950c80 Fix vector reading and use simpler axis determination.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2183 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-02-02 00:22:14 +00:00
hybrid b32da4e963 Many new features, e.g. (partial) planar mapping support and discontinuous texture coords (loosely based on Auradrummers code). Best thing is still to export only real UV coords.
Still a problem with normals, although they are now generated with Irrlicht's meshmanipulator methods.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2182 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-02-01 23:46:26 +00:00
hybrid 57c16f70d8 Added new makePlanarMapping method with one major axis for the whole mesh buffer, and different resolutions in S and T.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2181 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-02-01 23:43:44 +00:00
hybrid 5745b3f422 Fix colormask deserialization default.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2179 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-02-01 21:52:47 +00:00
Rogerborg 5478f80545 https://sourceforge.net/tracker2/?func=detail&aid=1797487&group_id=74339&atid=540678
- Triangle selectors created from animated mesh scene nodes will update themselves as required to stay in sync with the node.
 - ISceneCollisionManager::getSceneNodeAndCollisionPointFromRay() allows selection by BB and triangle on a heirarchy of scene nodes.
Example 07 updated to show the usage of ISceneCollisionManager::getSceneNodeAndCollisionPointFromRay(), used on animated meshes.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2177 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-02-01 18:56:05 +00:00
Rogerborg 78f9dee79c http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?t=32182
Expose the IMeshBuffer of an IVolumeLightSceneNode.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2175 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-31 22:45:46 +00:00
Rogerborg 17784dd0f8 https://sourceforge.net/tracker2/?func=detail&aid=2552603&group_id=74339&atid=540678
Add IVideoDriver methods to enumerate the available image loaders and writers.  Unit test added.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2174 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-31 17:01:45 +00:00
Rogerborg bd192519d6 http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?t=32019
Derive COctTreeSceneNode from IMeshSceneNode instead ISceneNode, and have it return the IMesh that was used to create its octtree.  Tested with a slightly modified example 07.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2173 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-31 15:58:43 +00:00
hybrid 0e00187fdd Aded a meshbuffer version of makePlanarTextureMapping.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2171 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-30 17:40:09 +00:00
hybrid 7810313bd5 Added some more supported material properties.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2170 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-29 17:45:16 +00:00
hybrid 5f2e459f49 Replaced path method by FileSystem function. Replaced const ints by enum.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2169 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-29 17:02:44 +00:00
hybrid b6a67db12b Added transparency for LWO files.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2168 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-29 17:01:56 +00:00
hybrid 04f045c2ac Fix compilation without sw renderers, submitted by pc0de.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2167 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-29 16:18:51 +00:00
hybrid 3735b5308d SMaterial deserialization patch by pc0de
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2164 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-28 23:45:59 +00:00
hybrid 8ca2ea0fd5 Fix too small char buffer.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2161 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-28 23:23:30 +00:00
hybrid 63199557f1 Fix some warnings and a template problem with gcc 4.x
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2158 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-28 16:07:59 +00:00
engineer_apple cf7246f704 xbox update.
example 21.update. save/load game data on driver change

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2157 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-28 14:52:13 +00:00
hybrid 06a7811de8 pak reader extension fixed.
Copyright year pushed to 2009.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2154 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-28 09:11:42 +00:00
hybrid 04efb300bc Missed a depth func rename
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2153 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-28 00:35:56 +00:00
hybrid 91356d3c56 Fix D3D8 MIPMAP LOD Bias.
Fix b3d loader.
Remove empty destructor.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2152 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-28 00:33:58 +00:00
hybrid 2f315b4349 Fix some project issues.
Adapted some more methods to the new string API.
renamed FileSystem method.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2150 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-27 22:26:38 +00:00
hybrid 2f2f23c21a Fix some warnings under Linux.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2149 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-27 17:45:16 +00:00
engineer_apple cf2cfa5f14 Changes in version 1.6, TA
- FileSystem 2.0 SUPER MASTER MAJOR API CHANGE !!!

	The FileSystem is know build internally like for e.q the texture-, and the meshloaders.
	There exists a known list of ArchiveLoader, which know how to produce a Archive.
	The Loaders and the Archive can be attached/detached on runtime.
	
	The FileNames are now stored as core::string<c16>. where c16 is toggled between char/wchar
	with the #define flag _IRR_WCHAR_FILESYSTEM, to supported unicode backends (default:off)
	I replaced all (const c8* filename) to string references.

	Basically the FileSystem is divided into two regions. Native and Virtual.
		Native means using the backend OS.
		Virtual means only use currently attach IArchives.
	
	Browsing
		each FileSystem has it's own workdirectory and it's own methods to
			- create a FileTree
			- add/remove files & directory ( to be done )
				Hint: store a savegame in a zip archive...
				
		 basic browsing for all archives is implemented.
		 Example 21. Quake3Explorer shows this
		 
	 TODO:
		- a file filter should be implemented.
		- The IArchive should have a function to create a filetree
			for now CFileList is used.
				
	Class Hiarchy:
	
	IArchiveLoader: is able to produce a IFileArchive
		- ZipLoader
		- PakLoader
		- MountPointReader ( formaly known as CUnzipReader )

	IFileArchive: 
		-ZipArchive
		-PakArchive
		-MountPoint (known as FolderFile)
		
	IFileSystem
		- addArchiveLoader

	- changed implementation of isALoadableFileExtension in all loaders
		to have consistent behavior
	- added a parameter to IFileList * createFileList	
		setFileListSystem
		allows to query files in any of the game archives
		standard behavior listtype = SYSTEM ( default)
	
	- CLimitReadFile
		added multiple file random-access support.
		solved problems with mixed compressed & uncompressed files in a zip

	TODO:
		- Big Big Testing!!
		- Linux Version ( minor )
		- remove all double loader interfaces where only the filename differs
			(IReadFile/const char *filename). This blows up the the interface
		- many loaders use their own private filesearching
			we should rework this
		- there are a lot of helper function ( getAbsolutePath, getFileDir )
		  which should be adapted to the virtual filesystem
		
- IrrlichtDevice
	added:
		virtual bool setGammaRamp( f32 red, f32 green, f32 blue, f32 brightness, f32 contrast ) = 0;
		virtual bool getGammaRamp( f32 &red, f32 &green, f32 &blue ) = 0;

	and calculating methods to DeviceStub.
	implemented in Win32, TODO: other Devices
	
	-	irrlicht.h
		changed exported irrlicht.dll routines createDevice, createDeviceEx, IdentityMatrix
		to extern "C" name mangling.
		
		for easier dynamically loading the irrlicht library and different versions

 - ParticleSystem
		removed the private (old?,wrong?) interface from the ParticleEffectors
		to match the parent class irr::io::IAttributeExchangingObject::deserializeAttributes
		TODO:
			please test if the serialization works!
		
- Generic
	- vector3d<T>& normalize()
		#if 0
			f32 length = (f32)(X*X + Y*Y + Z*Z);
			if (core::equals(length, 0.f))
				return *this;
			length = core::reciprocal_squareroot ( (f32)length );
		#else
			const T length = core::reciprocal_squareroot ( (X*X + Y*Y + Z*Z) );
		#endif
	
		Weak checking on zero?!?! just to avoid a sqrt?. mhm, maybe not;-)
		added reciprocal_squareroot for f64
	
	- dimension2d
		added operator dimension2d<T>& operator=(const dimension2d<U>& other)
		to cast between different types
	- vector2d
			bugfix:
			vector2d<T>& operator+=(const dimension2d<T>& other) { X += other.Width; Y += other.Width; return *this;  }
			to
			vector2d<T>& operator+=(const dimension2d<T>& other) { X += other.Width; Y += other.Height; return *this;  }

	- C3DMeshLoader renamed chunks const u16 to a enum
		removing "variable declared but never used warning"
	- added a global const identity Material
		changed all references *((video::SMaterial*)0) to point to IdentityMaterial
		removed warning: "a NULL reference is not allowed"

	- modified IRRLICHT_MATH to not support reciprocal stuff
		but to use faster float-to-int conversion.
		gcc troubles may they are. i'm using intel-compiler..;-)
	- core::matrix4
			USE_MATRIX_TEST	

			i tried to optimize the identity-check ( in means of performance)
			i didn't succeed so well, so i made a define for the matrix isIdentity -check
			for now it's sometimes faster to always calculate versus identity-check
			but if there are a lot of scenenodes/ particles one can profit from the
			fast_inverse matrix, when no scaling is used. further approvement could
			be done on inverse for just tranlastion! ( many static scenenodes are not rotated,
			they are just placed somewhere in the world)
			one thing to take in account is that sizeof(matrix) is 64 byte and
			with the additional bool/u32 makes it 66 byte which is not really cache-friendly..

		- added	buildRotateFromTo
				Builds a matrix that rotates from one vector to another
				
	- irr::array. changed allocating routine in push_back

		okt, 2008. it's only allowed to alloc one element, if 
		default constructor has to be called.
		
		removes existing crashes. ( MD3 Mesh ) and possible others ones.
		
		A new list template should be made.
		one with constructor/destructor calls ( safe_array ) and
		one without. like the array since the beginning of irrlicht.
		currently the array/string is extremly slow..
		
		also a hint for the user has to be done, so that a struct T of
		array<T> must have a copy constructor of type T ( const T&other ).
		
		i needed hours to track that down...
		
		added a new method setAllocStrategy, 
		safe ( used + 1 ), double ( used * 2 + 1)
		
		better default strategies will be implemented
		
		- removed binary_search_const
			i added it quite a long time ago, but it doesnt make real sense
			a call to a sort method should happen always. i just wanted to safe
			a few cycles..
		- added binary_search_multi
			searches for a multi-set ( more than 1 entry in the sorted array)
			returns start and end-index

	- changed some identity matrix settings to use core::IdentityMatrix	
	-	added deletePathFromFilename to generic string functions in coreutil.h and
		removed from CZipReader and CPakReader
		
	- s32 deserializeAttributes used instead of virtual void deserializeAttributes in
		ParticleSystem ( wrong virtual was used)

- strings & Locale
	- started to add locale support
	- added verify to string
	- added some helper functions
	

- XBOX
	i have access to a XBOX development machine now. I started to compile
	for the XBOX. Question: Who did the previous implementation?. There
	is no XBOX-Device inhere. maybe it's forbidden because of using the offical
	Microsoft XDK. I will implement a native or sdl device based on opendk.
	irrlicht compiles without errors on the xbox but can't be used.
	
	TODO:
		- native XBOX Device
- Windows Mobile
		reworked a little. added the mobile example to the windows solution for 
		cross development.
		added maximal 128x128 texture size for windows mobile ( memory issues )
- Collision	Speed Up

	The Collision Speed Up greatly improves with many small static child-nodes
	
	- added COctTreeTriangleSelector::getTriangles for 3dline from user Piraaate
	- modified createOctTreeTriangleSelector and createTriangleSelector
		to allow node == 0, to be added to a meta selector
	- CSceneNodeAnimatorCollisionResponse has the same problem as CSceneNodeAnimatorFPS
		on first update:
		Problem. you start setting the map. (setWorld). First update cames 4000 ms later.
		The Animator applies the missing force... big problem...
		changed to react on first update like camera.
		
		-	add Variable FirstUpdate. if set to true ( on all changes )
			then position, lasttime, and falling are initialized

	-added #define OCTTREE_USE_HARDWARE in Octree.h
	
		if defined octtree uses internally a derived scene::MeshBuffer which has
		the possibility to use the Hardware Vertex Buffer for static vertices and
		dirty indices;-)
		
		if defined OCTTREE_USE_HARDWARE octree uses internally a derived scene::CMeshBuffer
		so it's not just a replacement inside the octree. It also in the OctTreeSceneNode.
		#if defined (OCTTREE_USE_HARDWARE)
			driver->drawMeshBuffer ( &LightMapMeshes[i] );
		#else
			driver->drawIndexedTriangleList( &LightMapMeshes[i].Vertices[0], LightMapMeshes[i].Vertices.size(),
				d[i].Indices, d[i].CurrentSize / 3);
		#endif
		#define OCTTREE_PARENTTEST is also used. It's skip testing on fully outside and takes everything on fully inside


	- virtual void ISceneNode::updateAbsolutePosition()
		-	changed 
			inline CMatrix4<T> CMatrix4<T>::operator*(const CMatrix4<T>& m2) const

			all two matrices have to be checked by isIdentity()
			to let the isIdentity work always

	-changed inline bool CMatrix4<T>::isIdentity() const

		on full identityCheck->
		to look first on Translation, because this is the most challenging element
		which will likely not to be identity..
			
	-	virtual core::matrix4 getRelativeTransformation() const

		Hiarchy on Identity-Check
			1) ->getRelativeTransform -> 9 floating point checks to be passed as Identity
			2) ->isIdentity () -> 16 floating point checks to be passed as Identity
			
	- inline void CMatrix4<T>::transformBoxEx(core::aabbox3d<f32>& box) const
		added isIdentity() check

		
- changed CSceneNodeAnimatorCollisionResponse		
	- added CSceneNodeAnimatorCollisionResponse::setGravity
		needed to set the differents Forces for the Animator. for eq. water..
	- added CSceneNodeAnimatorCollisionResponse::setAnimateTarget
	- added CSceneNodeAnimatorCollisionResponse::getAnimateTarget
	- changed CSceneNodeAnimatorCollisionResponse::animateNode to react on FirstUpdate
	- changad Gravity to
	- TODO: set Gravity to Physically frame independent values..
		current response uses an frame depdended acceleration vector.
		~9.81 m/s^2 was achieved at around 50 fps with a setting of -0.03
		may effect existing application..
	
- SceneNodes
	- CSkyDomeSceneNode
		moved radius ( default 1000 ) to constructor
		added Normals
		added DebugInfo
		added Material.ZBuffer, added SceneMaanager
			
	- CVolumeLightSceneNode:
		changed default blending OneTextureBlendgl_src_color gl_src_alpha to
			EMT_TRANSPARENT_ADD_COLOR ( gl_src_color gl_one )
		which gives the same effect on non-transparent-materials.
		Following the unspoken guide-line, lowest effect as default
	- added LensFlareSceneNode (from forum user gammaray, modified to work )
		showing in example special fx
	- changed SceneNode Skydome f64 to f32, 
	- AnimatedMesh
		-Debug Data: 
			mesh normals didn't rotate with the scenenode fixed ( matrix-multiplication order)
	- Camera SceneNode setPosition
		Camera now finally allow to change position and target and updates all
		effected animators..
		
		a call to OnAnimate ( ) lastime < time or OnAnimate ( 0 ) will reset the
		camera and fr. the collision animator to a new position
			
- Device:
		added the current mousebutton state to the Mouse Event
		so i need to get the current mouse state from the OS
		
		-a dded to CIrrDeviceWin32
		TODO:		
		- Linux and SDL Device
- GUI

	- CGUIFont:
		- added virtual void setInvisibleCharacters( const wchar_t *s ) = 0;
		
		define which characters should not be drawn ( send to driver) by the font.
		for example " " would not draw any space which is usually blank in most fonts
		and saves rendering of ususally full blank alpha-sprites.
		This saves a lot of rendering...
		
		default:
			setInvisibleCharacters ( L" " );
			
		- added MultiLine rendering
			should avoid to us CStaticText breaking text in future
	- CGUIListBox
		- changed Scrollbar LargeStepSize to ItemHeight
		  which easy enables to scroll line by line
		  
	- CGUIScrollBar
			bug: 
				Create a Window and inside a listbox with a scrollbar or
				a windowed irrlicht application
				
				Click & hold Scrollbar Slider. move outside it's region.
				Release Mouse. Go Back to Scrollbar.. it's moving always...
				
				it's generally missing the event PRESSED_MOVED, which
				leads to problem when an element is dragging, has a focus, or position loose
				and gets focus back again. ( think of a drunken mouse sliding left&right during tracking )

			so added the mouse Input Buttonstates on every mouse event
				IrrDeviceWin32:
				 added 	event.MouseInput.ButtonStates = wParam & ( MK_LBUTTON | MK_RBUTTON | MK_MBUTTON );
				 TODO:
					Linux & SDL

				so now i can do this
				case irr::EMIE_MOUSE_MOVED:				 
			 	if ( !event.MouseInput.isLeftPressed () )
				{
					Dragging = false;
				}

			- bug:
				Scrollbar notifyListBox notify when the scrollbar is clicked. 

			- changed timed event in draw to OnPostRender
				Why the hell is a gui element firing a timed event
				in a draw routine!!!!!. This should be corrected for all gui-elements.
			
		
	-	added GUI Image List from Reinhard Ostermeier, modified to work
		added GUI Tree View from Reinhard Ostermeier, modified to work	
		shown in the Quake3MapShader Example
		TODO: Spritebanks

		
	- FileOpenDialog
		changed the static text for the filename to an edit box.
	- changed the interface for addEditBox to match with addStaticText
	- changed the interface for addSpinBox to match with addEditBox
	- added MouseWheel to Spinbox
	- changed CGUITable CLICK_AREA from 3 to 12 to enable clicking on the visible marker
	- CGUISpritebank
		removed some crashes with empty Sprite banks		
	- IGUIScrollBar
		added SetMin before min was always 0
		changed ScrollWheel Direction on horizontal to move right on wheel up, left on wheel down
		
	- IComboBox
		-added ItemData
	- removed IsVisbile check in IGUIElement::draw


- Image Loaders
	- added TGA file type 2 ( grayscale uncompressed )
	- added TGA file type (1) 8 Bit indexed color uncompressed
	
	ColorConverter:
		- added convert_B8G8R8toA8R8G8B8
		- added convert_B8G8R8A8toA8R8G8B8
		
- Media Files
	- added missing shaders and textures to map-20kdm2.
		Taken from free implementation	
	- ball.wav. adjusted DC-Offset, amplified to -4dB, trim cross-zero
	- impact.wav clip-restoration, trim cross-zero
	- added gun.md2, gun.pcx to media-files
		copyright issues!. i don't know from where this file came from...		
		i hope this is not from original quake2..
	- added new irrlicht logo irrlicht3.png
		i've taken the new layout. i should ask niko to use it.
	- added Skydome picture to media files (skydome2.jpg) half/sphere

- OctTree
	-added
		#define OCTTREE_PARENTTEST ( default: disabled )
		used to leave-out children test if the parent passed a complete frustum.
		plus: leaves out children test
		minus: all edges have to be checked
	- added MesBuffer Hardware Hint Vertex to octtree
	
- CQuake3ShaderSceneNode:
	- removed function releaseMesh
		Shader doesn't copy the original mesh anymore ( saving memory )
		so therefore this (for others often misleading ) function was removed
	- changed constructor to take a (shared) destination meshbuffer for rendering
		reducing vertex-memory to a half
	- don't copy the original vertices anymore
	- added deformvertexes autosprite
	- added deformvertexes move
	- added support for RTCW and Raven BSPs ( qmap2 )
	- added polygonoffset (TODO: not perfect)
	- added added nomipmaps
	- added rgbgen const
	- added alphagen
	- added MesBuffer Hardware Hint Vertex/Index to Quake3: static geometry, dynamic indices
	- added Quake3Explorer examples
	- added wave noise
	- added tcmod transform
	- added whiteimage
	- added collision to Quake3Explorer
	- renamed SMD3QuaterionTag* to SMD3QuaternionTag* ( typo )	
	- updated quake3:blendfunc
	- added crouch to Quake3Explorer
		(modifying the ellipsiodRadius of the camera animator )
		added crouch to CSceneNodeAnimatorCameraFPS
		still problems with stand up and collision
	- Quake3MapLoader
		modified memory allocation for faster loading
	- Quake3LoadParam
		added Parameter to the Mesh-Loader	
	- added
		The still existing missing caulking of curved surfaces.
		using round in the coordinates doesn't solve the problem.
		but for the demo bsp mesh it solves the problem... (luck)
		so for now it's switchable.
		TJUNCTION_SOLVER_ROUND
		default:off
		
- BurningVideo
	- pushed BurningsVideo to 0.40
	- added blendfunc gl_one_minus_dst_alpha gl_one
	- added blendfunc gl_dst_color gl_zero
	- added blendfunc gl_dst_color src_alpha
	- modified AlphaChannel_Ref renderer to support alpha test lessequal
	- addded 32 Bit Index Buffer
	- added sourceRect/destRect check to 2D-Blitter ( slower, but resolves crash )
	- added setTextureCreationFlag video::ETCF_ALLOW_NON_POWER_2
		Burning checks this flag and when set, it bypasses the power2 size check, 
		which is necessary on 3D but can be avoided on 2D.
		used on fonts automatically.
	- added Support for Destination Alpha
	
- OpenGL	
	- Fixed a bug in COpenGLExtensenionHandler where a glint was downcasted to u8!!!!!!
		MaxTextureSize=static_cast<u32>(num);

	- TODO: COpenGLMaterialRenderer_ONETEXTURE_BLEND to work as expected

- Direct3D8
	- compile and links again
	- added 32 Bit Index Buffer
	- D3DSAMP_MIPMAPLODBIAS doesnt compile!. it is d3d9 i think.
	- compile for XBOX 
- Direc3D9
	- fixed crash on RTT Textures DepthBuffer freed twice.
		added deleteAllTextures to destuctor
- NullDriver
	- removeallTextures. added setMaterial ( SMaterial() ) to clean pointers for freed textures	


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2147 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-27 15:53:53 +00:00
hybrid d5eff56acd New ogl extension header.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2143 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-26 14:27:24 +00:00
hybrid 3cb40a76c6 Merged from 1.5 branch to trunk, all changes from 2121 to 2136. Message box bug fixed.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2137 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-26 09:12:38 +00:00
hybrid 3f17c5f046 New scene parameter to ignore b3d file mipmap flag. In case your b3d files load textures without mipmaps unintentionally you should set this flag to true.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2136 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-23 22:43:09 +00:00
hybrid c8eadba628 Add file debug for HLSL pixel shader for NewerCookie.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2134 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-23 21:23:57 +00:00
hybrid 0d8210fa44 Add Mipmap LOD Bias to texture layers.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2133 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-23 17:08:39 +00:00
hybrid 1864555d96 Added method to alter the minimum vertex count required for a HW buffer to be created.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2132 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-23 16:43:04 +00:00
hybrid d51b2f8349 ColorMask support. Allows for selective disabling of color planes upon rendering.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2130 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-23 00:35:46 +00:00
hybrid a8d090c43b Added an enum and support for other Depth comparison functions.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2129 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-22 22:39:40 +00:00
Rogerborg cf349f9953 More collision additions. ISceneCollisionManager::getCollisionResultPosition() now returns the node that was hit. ISceneNodeAnimatorCollisionResponse stores and exposes the node that was hit.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2127 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-22 18:24:33 +00:00
hybrid eee1d97306 Some more minor changes to glxvisual chooser, doesn't seem to fix the problems, though.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2126 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-22 16:32:21 +00:00
Rogerborg 81671c23b2 https://sourceforge.net/tracker2/index.php?func=detail&aid=2498791&group_id=74339&atid=540678
Revert my previous ITriangleSelector patch and implement garritg's great idea about retrieving an ISceneNode by index.  Add an out parameter to ISceneCollisionManager::getCollisionPoint() to return the hit scene node.  This is an API breaking change; the test and example apps have been updated.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2125 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-22 15:50:06 +00:00
Rogerborg 74658ced68 https://sourceforge.net/tracker2/index.php?func=detail&aid=2498791&group_id=74339&atid=540678
Extend ITriangleSelector::getTriangles() to allow for returning multiple groups of triangles from individual scene nodes.  By default, the 1.5 behaviour will be preserved, and all triangles from all nodes will be returned, even for IMetaTriangleSelectors.  Regression tests confirm this.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2124 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-22 14:14:39 +00:00
hybrid e771171695 Change the GLXVisual chooser to cope with special depth/stencil combinations.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2123 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-22 13:07:06 +00:00
Rogerborg 01fa608741 Do some core::dimension2di() conversions required when passing dimension2d<u32> sources as dimension2d<s32> parameters.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2122 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-22 13:00:52 +00:00
hybrid ca8f261819 Merged from 1.5 branch to trunk, all changes from 2088 to 2120. Mainly doc updates. Fix for non-skinned animated meshes with different current frames.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2121 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-22 12:40:06 +00:00
Rogerborg 2c203d8401 https://sourceforge.net/tracker2/index.php?func=detail&aid=2498791&group_id=74339&atid=540678
Expose the collision result position in ISceneNodeAnimatorCollisionResponse, to give more information to the user app.  Thanks again to garritg.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2120 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-22 10:12:46 +00:00
Rogerborg a417170595 Have the collision response animator callback return the collision point, not the new position for the instant node. Thanks again to garritg for spotting this. Test updated (to test the proper expected result!)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2119 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-22 09:56:23 +00:00
hybrid 9c34c59233 Support for anti-aliasing modes per Material.
Initial support for Alpha To Coverage. Doesn't properly work on my laptop, so needs some more fixing and tuning before it actually works.
Fixed AntiAliasing on Win32/OpenGL.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2118 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-22 00:50:55 +00:00
Rogerborg c9190dd640 http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?t=32029
Grey out combo boxes when they're disabled.  Not tested, as I feel like living dangerously.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2115 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-21 15:16:04 +00:00
Rogerborg 0e147df2e0 Change recently added ICollisionCallback / ISceneNodeAnimatorCollisionResponse methods to use const & parameters and return values. Regression tested.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2113 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-21 08:37:21 +00:00
hybrid a771f88caf Replace template function by direct position access
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2112 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-20 22:36:14 +00:00
Rogerborg d021013af2 https://sourceforge.net/tracker2/?func=detail&aid=2498791&group_id=74339&atid=540678
Add an ICollisionCallback to ISceneNodeAnimatorCollisionResponse to inform the application when collisions occur (and allow it to ignore them).  Thanks to garrit for this patch!  The existing collisionResponseAnimator unit test has been updated to exercise the new functionality.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2111 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-20 19:10:46 +00:00
Rogerborg e464ba11f4 http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?t=31995
Add an optional startPosition parameter to createFlyCircleAnimator() to allow specifying a start position on the circle. New unit test added.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2105 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-20 12:54:49 +00:00
hybrid 65f5034a09 Syntax problem fixed, found by Dorth.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2103 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-20 12:31:21 +00:00
hybrid 8ca89ee687 Added support for Stereo framebuffers and AUX buffers (which are currently only accessible via direct OpenGL calls or shaders).
Added a creation parameter for doublebuffering.
Cleaned up the framebuffer clean methods in OpenGL.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2102 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-20 09:00:08 +00:00
hybrid 9719d19c45 Fix typo spotted by Dorth.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2099 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-20 08:23:50 +00:00
hybrid 0622b4fb07 Constrain texture size by maximal allowed value.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2098 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-19 17:37:08 +00:00
hybrid 8f0047891c Avoid cursor changes under Linux if visibility doesn't change.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2095 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-19 14:15:05 +00:00
Rogerborg 601d907b86 Fix signing issues in CIrrDeviceLinux.cpp.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2094 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-19 14:09:13 +00:00
Rogerborg dcebfbbf0d http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?p=183704
Change from dimension2d<s32> to dimension2d<u32> where practical.  IImage and ITexture now have unsigned dimensions, as does screen size.  This has had a significant knock-on through the code base, but it is more technically correct - the BEST KIND of correct.

GUI elements and draw2DImage methods still have and take signed dimensions, but we can look into this in future. Regression tested with the test suite and the example apps.  Note that createDevice() now takes dimension2d<u32>!

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2092 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-19 13:48:22 +00:00
hybrid 7ed594d039 Changed parent handling in GUI loader.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2091 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-19 09:19:42 +00:00
hybrid 250478a9f1 Avoid the XVisual method when using OpenGL, because it selects improper visuals. Better signal a fail in order for the user to try other properties.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2089 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-18 22:52:55 +00:00
hybrid 0cb7f45018 Merged revisions 2072:2087 from 1.5 branch. Some missing inits fixed, OpenGL FBO fails better recognizeable, docs updated.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2088 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-18 22:39:03 +00:00
hybrid accdcfa76d Remove unnecessary member.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2087 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-18 22:34:39 +00:00
hybrid 0109e06cfd Add some more tries for window creation on OSX.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2086 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-18 20:54:27 +00:00
Rogerborg a139a9739d Update CMemoryReadFile -> CMemoryFile in the Makefile.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2083 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-16 16:48:06 +00:00
Rogerborg 9067211624 http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?p=183435#183435
Change IVideoDriver::writeImageToFile() to always use the IWriteFile filename rather than taking a separate extension.

Test updated.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2082 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-16 15:35:22 +00:00
Rogerborg a603abe03a http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?p=183427
Add IFileSystem::createMemoryWriteFile() to allow writing to memory.
Replace CMemoryReadFile with CMemoryFile that also implement IWriteFile.
Add an IVideoDriver::writeImageToFile() overload that takes an IWriteFile.
This allows writing (e.g.) screenshots to memory, rather than directly to file.

New unit test added to test the new functionality.  Tested on Windows with VS2005 and C::B. I'll do Linux ASAP.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2081 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-16 14:19:38 +00:00
hybrid 90eec5ade9 Fix hint name.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2080 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-16 08:50:25 +00:00
hybrid 55e01dd9d0 Add hint for auto mipmap generation in OpenGL.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2078 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-15 16:56:59 +00:00
hybrid 662e2dc24a Reduce size of OpenGL extension handler.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2075 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-14 18:03:44 +00:00
hybrid 7b1de5cff5 Fix .x texture paths.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2074 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-14 18:01:51 +00:00
hybrid 2f2e88d8f4 Fix reorder warning in .x loader.
Remove unused member from FPS cam.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2073 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-14 13:01:20 +00:00
hybrid 7472bcd83c Merged from 1.5 branch to trunk, all changes from 2042 to 2071. cursor setVisible fix, OSX FPS cam fix, ALPHA_CHANNEL_REF fix, new method draw2dRectOutline, setOverrideFont fixes, getCollisisonPoint distance bug fix.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2072 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-14 12:37:51 +00:00
hybrid 38677f7204 Replace private filename method by FileSystem member. Some more cleanup.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2068 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-12 23:14:46 +00:00
Rogerborg 94a1346a5c Adding an optional light manager that allows hardware lights to be turned on and off before each scene node is rendered. This can be used to produce "zoned" lighting.
If a light manager is not registered, the existing behaviour (activate the closest lights to the camera) will be retained unchanged.  New example project added to demonstrate the usage, and regression tests and existing samples run.  No regression test for the light manager yet, since I am more interested in not regressing the default behaviour.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2064 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-12 10:55:39 +00:00
hybrid de02b25a28 Set default material settings properly (like MView does)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2062 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-09 22:36:10 +00:00
hybrid cf404ad287 Add default material-face-indices for very compact .x files.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2061 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-09 22:30:10 +00:00
bitplane 4b01f2040f Added a method to invert the Y axis of the FPS camera animator. [1150796]
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2054 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-08 01:25:22 +00:00
hybrid 082040520e Fix FVF data loading of binary .x files
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2053 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-07 00:36:51 +00:00
Rogerborg 2563bf14d8 Small efficiency improvements in scene collision:
Have all public ISceneCollisionManager.h methods take 'const type &' rather than 'type' where appropriate.

Conversely, have CSceneManager::getPickedNodeBB() take a non-const 'core::line3df& ray', so that child nodes can truncate the master ray when they get a collision.

This is an API change, so goes to the trunk only.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2050 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-06 16:02:03 +00:00
Rogerborg d232810cf8 Last fix to https://sourceforge.net/tracker2/?func=detail&aid=2473520&group_id=74339&atid=540676
Last fix to CSceneCollisionManager::getPickedNodeBB(). ;)  Efficiency improvements to reduce the number of checks, since we can only hit one face of each box, and we needn't consider boxes that are further away than the closest hit.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2049 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-06 15:48:00 +00:00
Rogerborg 2b18db4c67 https://sourceforge.net/tracker2/?func=detail&aid=2473520&group_id=74339&atid=540676
Another fix to CSceneCollisionManager::getPickedNodeBB(). Ensure that the collision point with the plane of a box is actually on the box surface rather than outside it.  Retested with regression test and example 07.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2048 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-06 15:40:00 +00:00
Rogerborg bac02b5bb0 https://sourceforge.net/tracker2/?func=detail&aid=2473520&group_id=74339&atid=540676
Change ray/bounding box selection so that the nearest node is determined by the actual collision point with the bounding box (or the distance to the box centre if the ray starts inside the box).  Since this is a functional change from the old behaviour, I'm only committing to the trunk.  This will be slightly slower than the old method, but should return the correct node; I consider accuracy to take priority over efficiency for collision.

tests/sceneCollisionManager.cpp has been updated, as has examples/07.Collision/main.cpp.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2047 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-06 15:12:15 +00:00
hybrid 6fe8e2d89d Merged from 1.5 branch to trunk, all changes from 2018 to 2041. OSX keyboard fix, OpenGL version fix, some tests fixed. Example 9 text position fixed.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2042 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-05 15:34:22 +00:00
hybrid 41b87c400b Make variables more local.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2038 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-05 12:20:32 +00:00
hybrid 94ecc76364 Fixed typo in variable name.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2035 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-05 08:58:16 +00:00
hybrid e7ced16d04 Made the Anisotropic Filter degree configurable via the SMaterialLayer member which had been a bool formerly. Using the setFlag in SMaterial should still give MaxAnisotropy level as before.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2034 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-05 00:30:11 +00:00
hybrid a669b865f1 Added better support for AntiAliasing levels, based on the patch by Sylence.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2032 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-04 17:13:54 +00:00
hybrid b95c2fcbd1 Remove/privatize members
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2028 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-04 13:41:42 +00:00
hybrid 5c64512330 Change the swap effect to DISCARD for windowed applications in d3d drivers.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2025 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-03 12:44:09 +00:00
hybrid c3cfdcfa5e Merged revisions 2006:2016 from 1.5 branch, makeColorKeyTexture changes.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2017 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-01-02 13:02:05 +00:00
hybrid 7809c48144 Merged revisions 1972:2004 from 1.5 branch, except for some revisions which seemed to be merged already. MD2 loader updated, terrain node fixed, opengl texture handling fixed.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2005 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-12-30 11:13:22 +00:00
rogerborg 0ef1056eb8 https://sourceforge.net/tracker2/index.php?func=detail&aid=2472420&group_id=74339&atid=540676
Merge fix for CTerrainSceneNode::preRenderLODCalculations() to trunk; take the camera's up vector into account when determining whether terrain scene node visibility needs to be rechecked.  New test added; thanks to Travis for another great test case.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2003 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-12-29 19:40:48 +00:00
rogerborg 77d97b18bf Make position2d a typedef of vector2d. Very tentatively deprecate position2d. Add the position2d methods that operate on a dimension2d to vector2d. Add vector2d constructor and equality methods to dimension2d. Add a new test case that verifies that vector2d and position2d are interchangeable, and that vector2d and dimension2d can operate on and implicitly convert each other. Remove the now duplicate position2d methods from CAttributeImpl. Tested with unit/regression tests and building all the examples. This should be a transparent change for users.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2000 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-12-29 16:05:49 +00:00
rogerborg c7f82100bc https://sourceforge.net/tracker2/?func=detail&aid=2473520&group_id=74339&atid=540676
http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?p=181419

Partial fix for CSceneCollisionManager::getPickedNodeBB(), but we should push on and do a proper test for the actual intersection point with each hit cube.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1991 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-12-29 00:23:57 +00:00
hybrid d635ca9548 Some more missing files.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1989 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-12-28 23:29:48 +00:00
rogerborg 1caa8223ed Fixing some benign but annoying build warnings about unhandled values in switch statements and order of pre-constructor instantiation.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1988 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-12-28 23:19:55 +00:00
Rogerborg 04a344c75d Add an ISceneNodeAnimator::hasFinished() method. It can only return true for non-looping delete, fly straight and texture animators.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1980 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-12-19 23:21:26 +00:00
Rogerborg baa858b66c From IRC: CSceneCollisionManager::getPickedNodeBB() unconditionally checks collision against children, so visible children of invisible nodes can be hit. This seems nonsensical, so we now only check children of visible nodes.
Also clarified the comments on ISceneNode::setVisible() and isVisible(), and added a new method, isTrulyVisible() that recursively checks any Parent nodes as well.

Unit/regression tests updated, verifying that they tested (and failed) with the old behaviour and pass with the new.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1978 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-12-19 11:51:51 +00:00
hybrid 4e3f078ef6 Merged all revisions up to 1975 from 1.5 branch. Boiled down to changes.txt fix and terrain fix, all others were already commited.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1976 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-12-18 17:27:57 +00:00
Rogerborg b2ea2b3fee Fix Maya and FPS cameras so that they only animate if they are:
1) The active camera.
2) Receiving input.

This allows example 09.Meshviewer (with two cameras) to work as expected.  Replace the magic numbers in that example with enumerated values.

This patch also exposes ISceneNode::SceneManager through a public getSceneManager() API.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1974 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-12-18 15:25:30 +00:00
hybrid f093ed8d32 Fix meshbuffer creation for new groups.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1968 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-12-17 15:55:25 +00:00
hybrid 9f2d1075fe Added debug info in ms3d loader.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1967 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-12-17 15:54:08 +00:00
Rogerborg 7e336eea29 http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?p=180192
Have the FPS animator set the cursor to the window centre unconditionally to cope with the cursor escaping the window.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1966 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-12-17 13:01:46 +00:00
Rogerborg 0025933fb0 http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?t=31496
Forget about the cached mesh frame for animated mesh scene nodes when the mesh is changed.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1963 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-12-17 11:28:16 +00:00
Rogerborg e8cbe44b1f Merge SVN 1961 (C::B project fix) to trunk.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1962 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-12-16 17:40:05 +00:00
Rogerborg 340b984ced Add a hitPosition to ISceneCollisionManager::getCollisionResultPosition() as per
https://sourceforge.net/tracker2/?func=detail&aid=1339139&group_id=74339&atid=540679

This is a very small API breaking change to a method that's unlikely to be heavily used in user code. It is commented in the declaration, in changes.txt and a unit test has been added.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1958 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-12-16 16:16:35 +00:00
Rogerborg 1b628ef663 Expose the target scene nodes of collision response animators. Setting the target forces an update of its last position. This allows a setPosition() to take effect without being blocked by the collision geometry. Added comments to this effect, a unit test, and some unrelated !node checks in all the animators' animateNode() methods.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1957 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-12-16 15:07:01 +00:00
hybrid 9bc11201d5 Merged from 1.5 branch to trunk, all changes from 1933 to 1953. Camera and animation fixes, project file updates, etc.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1954 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-12-15 14:18:11 +00:00
hybrid 7e9e5f179f Removed some debug tests left over in previous revision
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1950 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-12-13 23:13:17 +00:00
hybrid 60814bf872 Added support for FVF data. Added support for 2nd UV coord set from either FVF data or DeclData.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1949 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-12-13 23:09:39 +00:00
hybrid 05ac2ef679 Separated specualr settings from other color settings. Made changes propagate even when shininess is 0, which introduced some renderstate bugs previously.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1948 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-12-13 23:06:32 +00:00
hybrid ad43762777 Merged from 1.5 branch to trunk, all changes from 1913 to 1932. Mostly example and test fixes. Some bug fixes, camera interface changes.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1933 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-12-08 17:06:34 +00:00
hybrid ace653f4fc Merged revisions 1885:1912 from 1.5 branch. More unit tests and bug fixes.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1913 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-12-03 22:26:53 +00:00
hybrid 7a1fac9dfb Merged revisiosn 1851:1883 from 1.5 branch. unit tests and severla bug fixes.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1884 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-29 22:35:56 +00:00
hybrid 19491a579f Merged from 1.5 branch revisions 1837:1850. Light property changes, shader problems fixed, OSX resize fixed, meshloader debug messages disabled.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1851 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-27 23:25:20 +00:00
hybrid 0b03402773 Merged from 1.5 branch to trunk, all changes from 1821 to 1835. Mostly warning fixes, GL ASM shaders repaired, d3d9 RTTs less memory consuming, skinned mesh bboxes updating.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1837 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-26 10:44:30 +00:00
hybrid f778a1eb7f further merged from 1.5 branch to trunk, all changes from 1815 to 1819.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1821 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-24 17:34:27 +00:00
hybrid ed72437ee4 Flip terrain heightmap and texture coords. Now the heightmap and texture are used unaltered - the terrain looks like the texture/heightmap when looked from high above.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1812 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-23 00:40:38 +00:00
Rogerborg a83051f62e Bug https://sourceforge.net/tracker/index.php?func=detail&aid=1769820&group_id=74339&atid=540676
Significant internal change to the way that FPS camera jump speed and collision response animator gravity interact.  The behaviour is now much more realistic, but it will require you to adjust your jump speed and gravity.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1811 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-22 23:41:11 +00:00
Rogerborg f7dfda9f1f Replace magic numbers with equivalent EKA_FOO values. Smoke tested.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1810 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-22 22:45:03 +00:00
hybrid ed9e453d7f Add debugdata normal rendering to terrain node.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1809 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-22 22:14:46 +00:00
hybrid 8d288d3213 Fixed init warning from gcc.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1808 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-22 22:14:12 +00:00
Rogerborg d639c5c6f8 Scale the sky box to the average of the near and far clip planes so that it doesn't get clipped. Test by adding (e.g.) camera->setNearValue(100.f); to example 12.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1807 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-22 21:54:09 +00:00
Rogerborg 990410fc5b Bug #2318880: in CCubeSceneNode::setSize(), add vertices from index 0 to prevent multiple calls of setSize() adding new vertices, but re-sizing the first 12.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1806 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-22 21:32:39 +00:00
Rogerborg 1c0fab0d96 Update the bounding boxes of animated skinned meshes. (Attempt to) remove duplication of the recalculation of frames of animated meshes in CAnimatedMeshSceneNode::OnAnimate() and CAnimatedMeshSceneNode::render().
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1805 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-21 23:19:52 +00:00
hybrid def976c109 Fixed some minor warnings
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1804 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-21 16:41:30 +00:00
hybrid bc536750d4 Fixed call to stringc.append
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1803 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-21 16:38:33 +00:00
hybrid 3bc084229e Properly initialize particle system in the init list.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1800 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-21 15:08:40 +00:00
hybrid ad62c01608 Fix device reset in combination with large RTTs. All DepthBuffers need to be released and recreated...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1799 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-21 14:36:57 +00:00
Rogerborg e96027cbec Have CBillboardTextSceneNode use the default GUI font if no font is specified. Also rename "shade_top"/"shade_down" to colorTop / colorBottom (and similarly for other "shade" parameters and members) in *BillboardSceneNode, *SceneManager and *TextSceneNode.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1798 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-21 13:24:59 +00:00
hybrid f2066bdeca Remove internal use of setParticleSize.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1797 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-21 13:04:59 +00:00
hybrid deb8b0dba4 another little optimization
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1794 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-21 00:02:58 +00:00
hybrid 236d6c33d9 Changed from f64 C-array to core::array, some minor optimizations.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1793 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-20 23:50:43 +00:00
hybrid b6f9e543e5 Make proper texture coords which are not clamped...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1789 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-20 23:07:53 +00:00
hybrid 4a89e8f7bf Removed extra letters.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1788 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-20 22:35:37 +00:00
hybrid 501ed34e43 Simplify filepath.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1787 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-20 22:34:25 +00:00
hybrid b562626271 Added tags target and avoid recreation of .d files on clean.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1786 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-20 22:33:36 +00:00
hybrid ced47d4e35 Removed BMP_Writer reference from softwaretexture2. Changed texture size check to use the new dimension2d function.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1783 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-20 09:50:55 +00:00
Rogerborg 4a4c48acb3 Fix the fix for FPS camera rotations; use a minimum length vector when the camera is at the origin.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1781 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-19 22:14:59 +00:00
Rogerborg 47820ecbe7 Scale the FPS camera look at vector based on the magnitude of the camera's position, to prevent the rotation being swamped by the position.
Tested with the problem data from:
http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?t=27958

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1780 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-19 21:20:30 +00:00
Rogerborg 747fba6b60 Update Irrlicht9.0.sln to fix untested changes from the static build target additions. Now tested with Visual C++ 2008 Express.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1779 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-19 20:50:44 +00:00
hybrid df3dce717d Fix mem leaks with RTTs under OpenGL due to wrong grabs.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1778 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-19 13:01:24 +00:00
teella 24bf94d6e8 OSX now uses mainstream libpng instead of libpng_osx
removing libpng_osx


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1775 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-18 16:22:46 +00:00
hybrid 063c00cd91 Some more PCX formats supported. Not all modes are fully working, but I doubt anyone really uses them...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1773 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-17 23:21:58 +00:00
Rogerborg 44846b6f11 OpenGL driver: trigger a setRenderStates2DMode() recalc when the screen size changes. This fixes the OpenGL 2D scaling issue. Excelsior!
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1772 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-17 22:14:09 +00:00
hybrid 08d27aad2e Fixed compilation without OpenGL.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1770 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-17 17:07:15 +00:00
Rogerborg 8ddbcc6790 Add static lib configurations for all VS builds. Add a comment to IrrCompileConfig.h to explain that _IRR_STATIC_LIB_ needs to be defined in both the Irrlicht and application builds.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1768 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-17 11:52:40 +00:00
hybrid 17c2a7c186 Fixed comments.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1766 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-17 08:26:15 +00:00
hybrid 47a3d3057f Removed some wrong comments
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1765 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-17 01:09:31 +00:00
hybrid 325a518327 reenabled transparency in collada files.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1764 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-17 00:56:07 +00:00
hybrid e1bc7122e9 Fixed some issues with the matrix element and disabled transpareny (for now) as it caused z-order problems.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1763 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-17 00:39:33 +00:00
hybrid b9f35ed02e Fixed several issues with the LMTS format. Simplified the general loading procedure.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1762 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-17 00:33:29 +00:00
hybrid 16640845db The filename changes make troubles with uppercase/lowercase differences even on Windows. Temporary fix for LMTS loader here.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1761 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-17 00:31:04 +00:00
hybrid 1761aa4b96 Remove unnecessary parameters
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1760 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-16 20:47:08 +00:00
Rogerborg ad497a0e85 Release() and recreate the depth-stencil surface when resetting the D3D9 driver. This surface is implicitly created with D3DPOOL_DEFAULT, so needs to be released or the reset fails.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1759 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-15 21:56:16 +00:00
teella 89a570adc4 scaling values for OSX joystick support
added scale effectors for particles to XCode project


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1757 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-15 02:12:14 +00:00
Rogerborg 604d2fd754 Replace possessive "it's" with the grammatically correct "its".
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1756 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-15 00:42:45 +00:00
hybrid 9f50c25b56 Changed from vector2df to dimension2df
Deprecated setParticleSize from ParticleSystemSceneNode, use setMaxStartSize/setMinStartSize from the emitter instead.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1753 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-14 22:59:01 +00:00
hybrid 94fce476a1 Some more header files
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1752 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-14 22:56:25 +00:00
Rogerborg 06ad4408b7 Reducing the optional camera binding to a boolean that binds both ways (rotation to target and vice versa). Thanks to Dorth for suggesting this, which sorts the FPS camera out properly.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1750 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-14 18:10:47 +00:00
hybrid 55a8f70713 Oops, null pointers fixed.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1749 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-14 15:32:32 +00:00
Rogerborg 86382da2a3 Add a publicly configurable binding between camera target and scene node rotation. By default, they are independent. FPS cameras have their scene node rotation follow their target, which restores the <=1.4.2 behaviour. This is Work In Progress, as the ordering of events isn't quite correct yet: there's a visible lag between FPS camera scene node childrens' relative position catching up with the camera rotation.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1748 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-14 15:10:39 +00:00
hybrid 598103c23f Some more Ogre material loading fixed, and a minor mem leak fixed.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1747 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-14 15:04:08 +00:00
hybrid a5d73cd0ac Fixed Ogre index interpretation (reported by Zhu) and fixed material loading.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1746 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-14 14:21:24 +00:00
hybrid 75ee82d7c9 Added particle scale affector, made by Sudi.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1745 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-14 13:17:57 +00:00
hybrid 2b1118e478 Particle scale patch from Dark Kilauea.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1743 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-14 12:25:10 +00:00
hybrid 99aedb34e1 Add convenience functions to change the HW buffer settings for a complete mesh instead of just one buffer.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1742 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-14 10:30:34 +00:00
hybrid 900123fde8 Removed multiple inheritance in CBillboardTextSceneNode.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1741 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-14 09:54:37 +00:00
hybrid 12516fe663 disable the not anymore working parts, FAST_MATH needs to be fixed at some point...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1740 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-14 00:08:56 +00:00
hybrid 2832de310e Fix MSVC confusion
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1739 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-11-14 00:07:52 +00:00