hybrid
0c0ee8be53
Add debug data switch for shadow scene nodes. With EDS_SKELETON and EDS_MESH_WIRE_OVERLAY one can draw the whole shadow volume (or just the wireframe of it) instead of just the shadow. Currently only implemented in the hw drivers.
...
Also fixed a somewhat slow way of not writing to color planes from alphablend(1,0) to proper colormask settings in d3d driver.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3964 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-24 00:44:45 +00:00
hybrid
c7ea807729
Change API of IVideoDriver drawStencilShadowVolume method to take an array of vectors instead of just the pointer and the number of vertices. We have this information anyway, so make us of it.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3957 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-22 11:28:39 +00:00
hybrid
b2f1c1ffd7
Fix attribute value for maximal lights. Add video driver feature flag for texture matrix support.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3818 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-07 20:12:26 +00:00
hybrid
d542ddaa7a
Return 0 screenshot where targets are unsupported. D3D now supports automatic conversion to all basic color formats.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3753 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-25 22:28:15 +00:00
hybrid
3df56aee3b
Remove references to CImage.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3748 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-25 09:37:26 +00:00
hybrid
738b571e40
Change screenshot function to allow reading from other render targets as well. This is not yet fully implemented, just an API preparation for further features. Most drivers don't support the extra targets anyway. But it will be also possible to ask for different color formats, which should be possible on all drivers. Passing ECF_UNKNOWN will choose an optimal color format without the need of pixel value adaptions.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3744 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-24 07:15:26 +00:00
hybrid
b1ddb0475d
Fix render size update after render target change. Only happened with some render targets.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3737 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-20 21:29:13 +00:00
hybrid
c889104aaf
Add output about available video memory to d3d9 driver.
...
Allow changing zbuffer enable and write in 2d override material.
Introduce NO_CLIP hints to d3d9 and opengl driver for 2d mode. Since we clip all 2d operations manually, it should be safe to tell the driver to disable clipping here. Might help on slower machines and is generally suggested by the hw vendors. We might introduce a mesh flag for this as well in the future, in order to disable clipping for larger geometry as well.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3736 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-20 16:36:39 +00:00
hybrid
3e1e9eea34
Remove 2d render settings cache completely, as it didn't seem to speed up things, but only introduced complexity and failures. Speed up text rendering under dx again, just as before in OpenGL by skipping too many render state resets. Unified all three setRenderStates2DMode methods.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3734 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-20 14:25:30 +00:00
lukeph
65120d77b8
-Fixed bugs in new 'blend operation' code, the 'if' checks on EBO_NONE could never return true, so everything was set to blend
...
-Fixed performance bug in CTerrainSceneNode, noticed that preRenderLODCalculations() is ran every render, instead of just when LOD data is recalculated.
This increases the frame-rate on 'Terrain Rendering Example 12' from 410fps to 1300fps on my machine.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3728 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-19 17:19:23 +00:00
hybrid
68f10e784d
Check if low-level texture for RTT was created, otherwise return nullptr to signal failure in RTT creation. Thanks to stefbuet for pointing out this problem.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3693 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-01 23:02:57 +00:00
hybrid
f36090db01
Finally change d3d drivers over to the compact parameter passing version
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3683 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-28 15:49:16 +00:00
hybrid
430894045b
Add new extensions (although unsupported) also to d3d8 driver, with nearest match to min/max blend.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3681 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-28 11:47:16 +00:00
hybrid
9499db5637
Add support for blend operation field.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3652 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-21 13:08:48 +00:00
hybrid
c895c0e150
Add implementations for polygon offset in hw drivers.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3651 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-21 11:54:14 +00:00
hybrid
5e4d495dcc
Bump copyright dates to 2011.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3556 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-01-14 13:24:40 +00:00
hybrid
195c746018
Add driver attribute element for AntiAliasing level. This allows to check whether the driver has AA enabled, and which level.
...
Fix AA setup for OpenGL under windows, where the extension was missing and no error came up due to unsupported feature request. Now, the driver recognizes the missing support and properly sets AA to 0.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3491 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-07 17:58:11 +00:00
hybrid
fc8bf66fbc
Fix driver attribute setting in all other drivers.
...
Fix wrong destruction calls, due to missing drop ion the attribute. Was a cyclic dependency on the video driver.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3413 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-09-14 09:22:33 +00:00
hybrid
d6eb580f95
Add a generic attribute interface for querying video driver attributes which are not necessarily of type bool. This interface allows to check certain supported features, such as the number of user clip planes, supported lights and textures, MRTs, and other things. The interface might change in the future, but it's fully functional already. The supported attributes are listed in the API docs of the function.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3408 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-09-12 11:19:42 +00:00
hybrid
7e236b0192
Merged from trunk, revisions 3366-3387. A few bug fixes all over the place.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3388 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-09-05 19:33:06 +00:00
hybrid
68d91c65d0
Fix render state update for UseMipMaps flag in d3d drivers. Thanks to kvakvs for the bug ticket and fix.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3374 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-08-29 14:47:52 +00:00
hybrid
e8fa33e154
Merged from 1.7 branch, revisions 3300-3357. Huge number of bug fixes, mostly in GUI and serialization.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3358 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-07-17 22:45:45 +00:00
cutealien
9add67593e
Add parameter DisplayAdapter to allow selecting the card when more than one card is in the system. Only D3D support so far and not yet tested (test-system will arrive in a few days).
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3311 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-06-14 13:47:50 +00:00
cutealien
7e12ac9b95
Fix mipmap flag interpretation in d3d8 and d3d9 devices (enabling in materials accidentally disabled them).
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3274 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-04-16 10:06:08 +00:00
hybrid
d5deb716ef
Add a new material flag which can disable mipmap usage completely via a boolean switch.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3273 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-04-05 16:03:17 +00:00
hybrid
96310b964d
Merged revisions 3172:3197 from 1.7 branch. Some more bug fixes and doc updates from the 1.7 beta phase.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3198 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-02-02 20:53:57 +00:00
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
6cc3ffc5be
Add 2d override material for other hw drivers.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3032 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-12-09 00:04:41 +00:00
hybrid
fa2c5d0cd4
Change void* parameter in beginScene to SExposedVideoData&, which will allow to configure more features. Due to the constructor for SExposedVideoData this is mostly transparent, just add this type around the currently used pointer.
...
Please also note that the OpenGL context handling is not yet working, so no real enhancement so far.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3013 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-12-06 22:17:52 +00:00
hybrid
9b6bbb0477
Unify gpu programming service calls.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2920 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-11-24 08:31:10 +00:00
hybrid
76c4b0f813
Add access to miplevels in addTexture, texture->lock, and texture->regenerateMipMapLevels.
...
This allows to create custom mipmap textures manually, or provide them from certain image formats that come with precalculated mipmaps.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2912 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-11-21 23:24:31 +00:00
hybrid
ca751c411d
Fix types for new helper method.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2873 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-11-16 17:27:37 +00:00
hybrid
e5488e1777
Support separate U and V texture wrap modes.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2872 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-11-16 15:58:54 +00:00
hybrid
17bc727e31
Add mirror texture wrap modes.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2870 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-11-16 14:59:58 +00:00
hybrid
e5368f57f6
Fix warnings
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2790 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-11-03 22:28:43 +00:00
hybrid
752384e1ca
Add transparency support for the 2d vertex list render method for directx drivers.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2764 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-10-28 12:56:46 +00:00
hybrid
e36af0b5d1
Some more unicode fixes for Windows systems.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2749 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-10-24 00:28:30 +00:00
hybrid
9178ca932a
Add new videodriver method getMaxTextureSize(). Patch submitted by LoneBoco.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2742 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-10-23 15:44:31 +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
hybrid
4ab18181fd
Disable anti-aliasing for the GUI. Fixed lod bias and quality multi-sampling under OpenGL.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2619 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-08-16 20:43:07 +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
12fbb7fb25
Change point attenuation in D3D to work as the OpenGL version.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2535 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-07-30 16:58:07 +00:00
hybrid
ca5258cd0b
Forgot to replace some variables.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2481 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-07-15 21:43:11 +00:00
hybrid
e6b44d8605
Added EXP2 fog distribution.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2480 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-07-15 21:39: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
monstrobishi
cc4ff80fa3
- Floating point render target support.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2399 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-05-24 09:35:39 +00:00
hybrid
99a92fc35e
Add new Material flag ColorMaterial which defines how to interpret the vertex color when lighting is enabled. It's possible to use the color for diffuse, ambient, specular, or emissive modulation. Also combined diffuse and ambient is possible. This change finally unifies the behavior of non-textured meshes in OpenGL and D3D to a large extent.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2350 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-04-23 16:21:34 +00:00
hybrid
64bbdf4331
Now D3D8 also uses screen coords in 2d mode.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2337 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-04-20 21:43:17 +00:00
hybrid
b21a1c8f55
Use more material setting stuff in 2d setup.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2279 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-03-14 22:26:24 +00:00