1796 Commits

Author SHA1 Message Date
hybrid
1fda9980df Add vertex optimization algorithm submitted by curaga
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4048 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-01-20 18:08:14 +00:00
hybrid
b34352deac rename texureBlend functions to textureBlend
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4047 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-01-20 17:54:33 +00:00
bitplane
7db87025c3 Fix for bug 3401933 - vertex color interpolation with shadow volumes in the scene
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4041 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-01-14 16:15:26 +00:00
bitplane
c6833d9a56 Fixed bug in button sprites reported by RdR
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4040 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-01-12 20:44:44 +00:00
bitplane
d6fe1e6007 Fixed button state sprite animations for pressed, focused and hovered.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4039 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-01-12 17:35:50 +00:00
bitplane
ade2a3938c Added IGUIEnvironment::getHovered, returns the last hovered element.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4038 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-01-12 17:24:23 +00:00
bitplane
fe73006f45 Removed unused sprite bank from spin box
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4037 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-01-12 17:21:59 +00:00
bitplane
7f017fa3ef Another warning fix submitted by curaga (3472442)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4036 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-01-11 16:12:30 +00:00
bitplane
f4fdeb55a9 Fixed a couple of warnings, including one reported by curaga (3472442)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4035 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-01-11 16:09:49 +00:00
bitplane
86498e7371 Added serialization for terrain smooth factor, patch by RdR
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4034 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-01-11 15:36:15 +00:00
bitplane
99e84fdaba Implemented more button states for sprite banks, patch submitted by RdR
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4033 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-01-11 13:15:25 +00:00
hybrid
314d53a31a Fix billboard error which used the wrong width for top and bottom width of trapezoid billboards. The reason is the use of cross-product, which flips the vertical axis used in calculations. Properly documented in the code now, API now works as expected. Bug and fix provided by pc0de.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4030 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-01-06 14:26:04 +00:00
hybrid
5cd23141b2 Oops, misread the switch. Alpha representation always requires 32bit, so reverted to original code with just another empty default statement.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4029 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-01-06 14:23:33 +00:00
hybrid
9ce25254f7 Silence missing default case warnings in release mode. Patch supplied by init512
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4028 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-01-04 14:01:36 +00:00
hybrid
c575836343 Add new normal render method to all places where this is already supported. Thereby replacing some of the old and time consuming normal renders, as pointed out by pc0de
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4026 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-01-04 01:04:35 +00:00
hybrid
f1ec3dad93 Add method which draws the normals of a mesh buffer. Mainly for debug purposes.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4025 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-01-04 00:29:21 +00:00
hybrid
ef473d9335 Fix warning about conversion. We might have to do it vice versa, though, comparing the float values and passing a converted number down to getMesh.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4024 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-01-04 00:27:56 +00:00
hybrid
bd60a5dcda SMaterial serialization patch by pc0de
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4023 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-01-02 15:35:56 +00:00
cutealien
d8a7af194d Fix bug in getAttributeAsVector2d found by greenya.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4021 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-12-21 19:22:41 +00:00
hybrid
7d6d371bae Add a FPS setting for animated meshes. This allows to store an overall animation speed for a mesh, which enables reading this information from the formats that support it and set the animation speed in scene nodes accordingly.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4009 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-12-04 00:10:15 +00:00
hybrid
6fbb111507 Change normals back to previous values.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4008 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-12-04 00:04:25 +00:00
hybrid
ca6ec7f85b Minor code optimization, indentation fixes.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4007 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-12-04 00:01:36 +00:00
hybrid
b5c7c9695c Change interpolation mesh to pointer usage and dynamic memory allocation. Necessary due to reference counting.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4006 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-12-03 23:51:53 +00:00
hybrid
6d9a31a037 Add functions and constructor parameter to set the distance of the maya camera from the currently used target.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4002 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-12-03 16:26:59 +00:00
hybrid
47d5711ece Merged from trunk revisions 3998-4000. Changes for triangle selector.
Also added a fix for proper update of animated meshes, as suggested by Reiko. This was missing from the recent update of improved selector usage and should now re-enable the proper handling of animated poses in selectors.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4001 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-12-02 17:25:49 +00:00
hybrid
39ca2f61a4 Merged from branch 1.7, revisions 3944-3997. Only minor code changes, Makefile fix.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3998 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-12-01 00:26:22 +00:00
cutealien
6f1db5fc41 - Add vector2d and dimension2d attributes (both already had incomplete parts of implementations for some reason)
- Add tests for vector2d and dimension2d attributes
- Test currently failing on Win32-VS: collisionResponseAnimator, sceneCollisionManager, screenshot

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3996 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-11-29 22:56:28 +00:00
hybrid
ca0a9cca3e Change new billboard API to use more common names and a better usable interface. Fixed documentation. Proposal for fix made by greenya.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3995 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-11-15 13:34:48 +00:00
cutealien
a8fd29c8b9 Fix uninitialized variable in q3-loader (found by Hendu).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3992 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-11-09 19:39:08 +00:00
cutealien
bf5890e814 - Add support for bsp brush entities. Written by Hendu.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3991 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-11-09 19:28:12 +00:00
hybrid
99cfad9dd1 Normals recalculation fix by Squarefox
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3990 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-11-06 21:35:34 +00:00
hybrid
83444c6bf2 More keys support by Auria
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3989 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-11-06 11:08:16 +00:00
hybrid
a4d78dcbe9 Fix strict aliasing problem.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3988 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-11-02 23:29:31 +00:00
hybrid
d4e32d2a3b Triangle selector improvements suggested by rogerborg a long time ago. Now fixed and properly working.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3984 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-11-01 21:10:01 +00:00
hybrid
c2e1206eb8 Small part of the billboard patch from rogerborg
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3983 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-11-01 21:08:18 +00:00
hybrid
e18cd0790c Another improvement from the selector patch
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3982 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-11-01 21:04:53 +00:00
hybrid
e0a56a717a Constification of some values.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3974 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-11-01 08:26:20 +00:00
hybrid
688ec5b873 Fix Meshbuffer interface of md3 files. At least for some situations these should return the proper buffers now, and hence allow for stencil shadows and other things. We might need an animation update check, though, to handle multiple meshes.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3968 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-24 10:44:01 +00:00
hybrid
594ed8174b Add cleanup in case of error.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3967 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-24 09:54:17 +00:00
hybrid
7f644d033d Window size fix by Auria. For now we simply check for any error during window creation and bail out safely. This avoids uncontrolled crashes of the app and may be handled by the app logic somehow.
Reordered some of the device attributes and ensured initialization of all values.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3966 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-24 09:51:10 +00:00
hybrid
9d3c630202 Fix indentation
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3965 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-24 09:28:22 +00:00
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
72e5d28703 Enable file open dialog to restore initial path after close and add another parameter for optional start directory.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3962 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-23 23:56:38 +00:00
hybrid
c54ab64e64 Fix for OSX mouse events in fullscreen by auria
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3960 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-23 00:22:24 +00:00
hybrid
ba4172de61 OSX input patch by Auria
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3959 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-23 00:07:39 +00:00
hybrid
eed14a0ee4 Add new methods for adding and removing file archives based on ifilearchive pointers. The existing methods are also enhanced by an optional return value of the newly added archive. Addition suggested and coded by Nalin.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3958 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-22 23:45:52 +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
8bd1f77c03 Unify two shadow volume methods. Add support for adjacency also for zpass, which makes this method much faster. Proper light scaling and capping still needs to be worked on.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3956 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-22 10:54:12 +00:00
hybrid
c9867126ea Unify method interfaces for volume generation. Remove some checks which could make the shadow volume generate wrong results.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3955 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-22 10:32:39 +00:00
hybrid
2b1f45266c Fix ZFail method and simplify adjacency check
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3954 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-22 09:48:32 +00:00