Commit Graph

34 Commits (978c768ade4548ec9ffe414a94b1b12aa97848d9)

Author SHA1 Message Date
hybrid 9a14224c6f Trying to put the texture activation back into setMaterial. This had been changed in early versions of Irrlicht for render state problems. I hope we got them all fixed and can this way make external materials possible again. (problems are all OpenGL only)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2900 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-11-20 14:20:07 +00:00
hybrid 45b3d37ec5 Minor render state changes for proper state exit.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2887 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-11-19 14:03:05 +00:00
cutealien d3eff725be - Material type EMT_TRANSPARENT_ALPHA_CHANNEL_REF no longer ignores light in OpenGL.
- Material type EMT_LIGHTMAP_ADD does now use GL_ADD in OpenGL which makes it look identical do the D3D version.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2740 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-10-23 04:02:05 +00:00
hybrid 8b0a0f4d8b Add a general 2d render method. This method accepts vertex and index lists, and needs textures being set via setMaterial before the call to this method. This method is not implemented in the sw drivers.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2586 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-08-10 21:58:14 +00:00
hybrid 0943b7a723 Added vertex *and* texture alpha to ONE_TEXTURE_BLEND material. Can be enabled/disabled via the pack function which handles all modes of this material. Default is texture alpha, as before.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2496 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-07-24 21:57:25 +00:00
monstrobishi 7d00cc91d1 - Renamed texture setting function (setTexture) in most video drivers to setActiveTexture and made sure it has the same signature. This avoids confusion with similarly named methods in other classes (Such as SMaterial) and the consolidated method signature will hopefully help future plans for better abstracting texture usage across all drivers.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2438 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-07-02 06:43:24 +00:00
hybrid 71a154ef5e Fix for spheremap rendering, texcoords are flipped in OpenGL.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2393 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-05-16 17:45:19 +00:00
hybrid 1e607f4105 Merged from 1.5 branch, revisions 2319:2324. Fixed transparency issue with onetextureblend material and debug symbol under linux.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2325 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-04-06 15:27:55 +00:00
bitplane 2a5a21fce4 Reset all line endings to Windows-style CRLF
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2268 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-03-10 20:46:58 +00:00
bitplane 69e7d0bd59 Now compiles with SDL device in OSX, still crashes at runtime though
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2247 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-03-01 07:39:52 +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 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 529b6f0f3c Merged revisions 1543:1559 from 1.4 branch. Mainly zbuffer issues and the TextureMatrix allocator patch.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1560 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-09-12 15:19:19 +00:00
hybrid a7d24e4b8a Fixed an issue with alpha values in 2d opengl mode.
Changed the interpretation of MaterialTypeParam==0 in transparent materials. Before, it was interpreted as 0.5, now it's used as 0 (perfectly smooth transparency). This is slower than the old value, but you can achieve the same effect by specifying 0.5 as MaterialTypeParam.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1512 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-08-25 20:25:22 +00:00
hybrid 2489bda2e8 Merged 1499:1506 from 1.4 branch: Doc updates, getEmitter added.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1507 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-08-20 08:24:52 +00:00
hybrid 878c280ccb Some driver cleanup. Fixed the issues with external window usage under OpenGL and Linux. Added error checking for VBO usage.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1443 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-08-03 12:28:21 +00:00
hybrid cdffc4a5d6 Merge from branch 1.4, revisions 1344:1352, which are the doc updates from the 1.4.1 release.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1353 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-05-22 11:51:37 +00:00
hybrid 0eb29afe81 Major changes to OpenGL render states. Should reduce the number of state changes and reduce some render state confusion. Also changed back the order of 2d texture setting and render state changes.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1260 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-02-25 23:19:46 +00:00
hybrid 678f84e96c Changed some internals of the Volume light and gave it an interface.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1171 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-01-10 00:30:11 +00:00
hybrid 07670acf7e Merged 1134:1151 from branch 1.4
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1152 dfc29bdd-3216-0410-991c-e03cc46cb475
2008-01-04 11:10:37 +00:00
hybrid 99fd5bcc7c Merged 1.4 branch, revisions 1106:1132.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1133 dfc29bdd-3216-0410-991c-e03cc46cb475
2007-12-23 17:04:40 +00:00
hybrid 7e0bcfcf50 Properly reset renderstate. Remove extra no-op.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1083 dfc29bdd-3216-0410-991c-e03cc46cb475
2007-12-03 10:08:36 +00:00
hybrid fbdbc934a4 Some code doc updates by Dorth.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1040 dfc29bdd-3216-0410-991c-e03cc46cb475
2007-11-06 23:29:59 +00:00
hybrid 68cd81b194 Split texture layer properties from SMaterial. Changed all texture access etc. in source code and examples. There is also a method to access textures now, which would allow to grab and drop them...
Also disabled dx8 by default.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@992 dfc29bdd-3216-0410-991c-e03cc46cb475
2007-09-20 15:33:36 +00:00
hybrid 445b40fd3b Made both materials const in OnSetMaterial.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@975 dfc29bdd-3216-0410-991c-e03cc46cb475
2007-09-18 12:11:10 +00:00
hybrid f74f7586e2 Some more constification, but still not done. Now we have also SEvent in OnEvent as const ref, so most user apps will need some kind of upgrade for the new library version.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@964 dfc29bdd-3216-0410-991c-e03cc46cb475
2007-09-16 23:41:55 +00:00
hybrid 9d137cc70e Changed some OpenGL material renderer states. Removed the automatic mipmap generation after texture unlock for OpenGL to get the same as for d3d drivers.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@855 dfc29bdd-3216-0410-991c-e03cc46cb475
2007-08-21 17:19:17 +00:00
hybrid f46caaa21e Fix OpenGL detailmap lighting bug noticed by paooolino
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@843 dfc29bdd-3216-0410-991c-e03cc46cb475
2007-08-17 10:02:41 +00:00
hybrid ebb6f460b4 Use c++ casts instead of plain C ones.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@818 dfc29bdd-3216-0410-991c-e03cc46cb475
2007-08-02 09:50:59 +00:00
hybrid 838ea26474 Changed OpenGL default Renderstate to ALPHA_TEST being disabled. Some indentation changes in other files.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@786 dfc29bdd-3216-0410-991c-e03cc46cb475
2007-07-13 23:33:17 +00:00
hybrid 63b756e8db Added some more compile time checks for OpenGL support.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@785 dfc29bdd-3216-0410-991c-e03cc46cb475
2007-07-13 18:28:58 +00:00
hybrid 2dc1051124 Added a name parameter to render target textures just as for usual textures.
Exposed findTexture in IVideoDriver to check if a texture was already loaded.
Reordered some more OpenGL render state settings in the materials.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@783 dfc29bdd-3216-0410-991c-e03cc46cb475
2007-07-13 13:53:34 +00:00
hybrid ae34762eee Inlined the OpenGL access methods, also renamed some of them to make the names more durable in case the official methods are promoted.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@691 dfc29bdd-3216-0410-991c-e03cc46cb475
2007-06-05 17:56:10 +00:00
bitplane c00ce1d372 Moved everything to /trunk
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@643 dfc29bdd-3216-0410-991c-e03cc46cb475
2007-05-20 18:03:49 +00:00