Commit Graph

306 Commits (master)

Author SHA1 Message Date
cutealien 1b4444e044 Remove E_GPU_SHADING_LANGUAGE in IGPUProgrammingServices.
Thx @greenya for noticing this is no longer needed as it was only ever used for the CG shader language which we kicked out already.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5846 dfc29bdd-3216-0410-991c-e03cc46cb475
2019-08-15 20:43:50 +00:00
cutealien 0f3838b968 Minor cleanups (mostly comments) for examples 12 & 13.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5795 dfc29bdd-3216-0410-991c-e03cc46cb475
2019-03-26 21:52:24 +00:00
cutealien bc035b510f Tiny comment fixes and removing unused code in example 11.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5794 dfc29bdd-3216-0410-991c-e03cc46cb475
2019-03-26 20:45:09 +00:00
cutealien 95e4f04796 Example 09 can load russian filenames again on Linux.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5605 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-05-01 21:40:39 +00:00
cutealien fc1b290951 Fix a few places which called the driverType a deviceType (variable-names and documentation).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5584 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-11-22 17:09:56 +00:00
cutealien 16fd29f43f Unify CSceneManager::getMesh functions (put identical code in getUncachedMesh).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5542 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-08-30 15:21:51 +00:00
cutealien ac70924cec Fix crash on quitting MaterialViewer.
Problem was some gui-elements got deleted once more after device was closed already.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5537 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-08-25 16:42:57 +00:00
cutealien c0e17f7329 Minor updates &f fixes to examples and their documentation.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5499 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-07-11 12:59:14 +00:00
cutealien 0c8a5f8700 Update comments.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5497 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-07-04 16:13:16 +00:00
cutealien d476cbe3e9 Fix driverChoiceConsole when allDrivers is set to false.
Simply didn't work before. Is now the default - so examples should only show
available drivers.
Also update documentation in example 02 slightly.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5496 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-07-04 15:56:09 +00:00
cutealien 970ec0fa74 Fix spelling in comments.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5495 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-07-03 21:21:38 +00:00
cutealien 7d16b3e6e0 Update example 01 documentation.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5494 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-07-03 21:20:51 +00:00
cutealien 261317c515 One change too much in last check-in... settings dialog still should use burnings renderer.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5488 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-06-13 21:24:45 +00:00
cutealien 58bd7d4ff6 Rewrite demo to have all settings initialized in one place.
The stuff in main was just irritating before as the values there got completely ignored.
Also somewhat different defaults now.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5487 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-06-13 21:23:16 +00:00
cutealien e31f08e87a CSceneNodeAnimatorCameraFPS are back to old defaults (messing with defaults bad and confusing).
Instead I'll changed examples to show off new rotation features there.



git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5486 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-06-13 20:56:16 +00:00
cutealien 14d22dc58c Use one callback instance per added shader material in shader example.
It's no longer a good idea to use a single callback instance since we switched to using ShaderConstantID's.
Those id's are really indices to arrays - and each added material has it's own array. We basically
used indices to arrays of another object (which happened to be identical in this case). 
And this starts to go horribly wrong once the code of one shader is slightly modified...


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5485 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-06-13 16:29:18 +00:00
cutealien 11c7de9000 Log loading-time of meshes in Meshviewer example.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5467 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-06-01 23:15:38 +00:00
cutealien d6d1831589 Prevent jumping with CSceneNodeAnimatorCollisionResponse while in air.
(can still jump up walls, which is likely around the same position as this fix, but a little more tricky)


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5370 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-03-19 23:57:07 +00:00
cutealien 9d4b0b9063 Improve comments.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5354 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-12-07 13:40:47 +00:00
cutealien 1073bff853 Fix CMetaTriangleSelector and allow creating octrees for single meshbuffers.
CMetaTriangleSelector had been (even more) broken after last check-in,sorry. Now fixed again.
Making octrees triangle selector return meshbuffer information would be possible, but not without some cost or larger rewrite. So instead I've added another workaround - it's now possible to create octress for single meshbuffers. If that makes sense for speed is something users have to check per scene (slower than using a single octree obviously), but at least it's now possible in case someone needs it.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5352 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-12-07 13:30:02 +00:00
cutealien a20f01131a ITriangleSelector now can also return meshbuffer collision information.
This allows to access materials of colliding triangles.
It's an optional setting (as it can be a little bit slower).
There are new collision functions for users which need that feature.

This also fixes several bugs with MetaTriangleSelectors. Those did sometimes return the wrong nodes in the past (when used with box or line collisions).
Also MetaTriangleSelectors should no longer crash when it has no selectors.

Also box and line collisions will now return all triangles when the colliding node has no inversible matrix  (before it returned the wrong results when for example a node had one axis scaled to 0).

So far only CTriangleSelector uses the new interface to return meshbuffer information. Octree will follow.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5350 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-12-06 16:17:48 +00:00
cutealien bff50c751d Spelling fixes.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5327 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-08-13 12:50:06 +00:00
cutealien fb49a86eb6 Several fixes for SceneNodeAnimatorCollisionResponse, based on http://irrlicht.sourceforge.net/forum/viewtopic.php?f=7&t=33098&p=290746
Thanks to all people who reported and to JLouisB and kinkreet for the patches:
- Gravity is now fps independent
- Values of gravity now like documented (wasn't 1 unit = 1m before, had been 1m = current frames per second, so maybe 100 units = 1m). 
  Note that jump-values for fps-camera must also change when adapting gravity!
  Several examples got adapted for new ranges
- Pausing timer now pauses animator. Also doesn't reset values anymore with pauses.
- Clones no longer have 1000 times the gravity of original animator.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5305 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-06-04 19:54:19 +00:00
nadro 49b00b631a - Removed unnecessary path from OSX example projects.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5271 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-03-07 11:13:26 +00:00
nadro c0e1680f2e - Changed method name from:
bool IVideoDriver::setRenderTarget(IRenderTarget* target, ...);
 to:
 bool IVideoDriver::setRenderTargetEx(IRenderTarget* target, ...);
- Replaced some deprecated methods in tests.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5223 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-12-17 14:42:09 +00:00
nadro bc9fe27e30 - Unified makefiles for examples.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5219 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-12-15 20:26:58 +00:00
cutealien b539e46b5f File-dialog now converts the returned filename from multibyte to widechar when it has to.
Also added a function to access the original name as well as the converted name for directories.
Can't fix the interface completely unfortunately without breaking it :-/
Not yet fixed is the conversion to lower-characters - that will be one of the next tasks (had to clean up other stuff before I could approach that).
Also _IRR_WCHAR_FILESYSTEM currently not compiling, but been like that a few versions already.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5215 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-12-14 15:59:35 +00:00
cutealien 96e891f09c Flip around default parameters in beginScene and setRenderTarget in a way that causes less deprecated warnings, but still does the same in general. That avoids some troubles with function resolution when only first 2 parameters got set (otherwise needed explicit casts to u16).
Use new image->getData in example to avoid warnings.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5205 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-12-07 12:53:31 +00:00
nadro 8863d11e65 - Fixed compilation issues on OSX.
- Added new XCode projects for engine and all examples (ARC enabled, proper bundles etc.).
- Added external context manager with support for NSOGL.(this feature was available in ogl-es branch before).
- Removed *.nib dependencies from OSX project (menu is created programmatically).
- Added missing _IRR_OVERRIDE_ for some methods.
- Renamed MacOSX to OSX directories.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5202 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-12-05 12:07:45 +00:00
cutealien 70378984a3 Example 21 release builds now use cdecl like the rest instead of fastcall.
Thx @A.Reichl for reporting.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5186 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-11-16 18:28:18 +00:00
nadro 3fe418bc41 - Removed texture IDs parameter from IVideoDriver::setRenderTarget method. Performance gain was too low to keep this parameter available.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5152 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-10-16 08:47:55 +00:00
nadro 07a7d9ee2e - Added clear buffer flags.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5151 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-10-15 18:20:06 +00:00
nadro eef7353833 - Added projects for Visual Studio 2014. Due to a problems with Windows7.1 SDK on Windows 10 those projects are recommended for users of this OS.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5148 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-10-01 22:59:08 +00:00
cutealien c7c5f166fe Rolled back to r5145. We're still disucssing better solutions
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5147 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-09-28 09:17:47 +00:00
nadro f6ac9e1906 - Updated Visual Studio 12.0 build platform.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5146 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-09-27 18:16:10 +00:00
cutealien 4c8da4892e Make Win32Window example compatible with the UNICODE define.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5145 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-09-25 09:37:07 +00:00
cutealien d491626bf9 Fix compiling with USE_IRRKLANG enabled. Thx@ AReichl for reporting.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5144 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-09-25 09:21:36 +00:00
nadro 02b49eea1b - Added exampleHelper and updated all examples. This is a base patch for upcoming patches related to iOS and OSX.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5143 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-09-24 22:44:32 +00:00
cutealien b3ba72ab74 Merge branch releases/1.8 revisions 5129:5140 into trunk:
- Set the platform SDK for VS2010 and VS 2012 throughout to Windows7.1SDK
- Fix the fix for compiling on GCC5


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5141 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-09-20 11:19:26 +00:00
cutealien c3e94cf597 Change all VS 12 project files to use Windows SDK7.1 for compatibility between different VS versions.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5140 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-09-19 14:39:52 +00:00
cutealien e138121a1d CAnimatedMeshSceneNode::setMesh does now set the animation speed again to that of the mesh.
.x meshloader regards now AnimTicksPerSecond (thx @qian for a test-model and bugreport).
CAnimatedMeshSceneNode::setMesh had commented-out the setAnimationSpeed line in version r3526 which was about a joint-cache fix for skinned meshes. But there was no comment about why that line had to be removed or commented out, so my guess is that this was only a test (I hope). And it caused animation-speed values for the meshes to be ignored unless user specified it explicitly while animation range was still changed in setMesh.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5097 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-04-27 13:01:24 +00:00
cutealien e6c197fa87 Add b3d mesh-writer.
- Interface getMeshType moved from IAnimatedMesh up to IMesh.
- Static b3d mesh-writer written by Hendu, support for animated meshes added by JLouisB, testing and bugfixes by CuteAlien.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5095 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-04-23 18:11:52 +00:00
cutealien 491f571956 Comment some problems in current .irr loader and offer workarounds.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5082 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-04-08 22:09:41 +00:00
nadro 538751d85c - Added new IRenderTarget interface.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5068 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-03-23 19:00:17 +00:00
cutealien 8927bbe9cf Replace swprintf by swprintf_irr in 2 more places.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5062 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-03-02 21:06:01 +00:00
cutealien 83e1d1c80a Fix some minor problem in examples with irrklang on mingw reported by AReichl.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5060 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-03-02 13:58:33 +00:00
cutealien f4687fb2e9 Use #ifdef _MSC_VER instead of _IRR_WINDOWS_ when linking lib's with a pragma comment. Thx @AReichl for reporting.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5059 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-03-02 13:43:29 +00:00
cutealien ab330c1204 Replace the swprintf and snprintf defines by swprintf_irr and snprintf_irr to avoid conflicts with the standard libraries (and other libraries).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5055 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-03-01 22:00:17 +00:00
cutealien 9eccabce40 Support for Direct3D 8 removed.
Missing people with interest in maintaining it. Anyone who still needs DX8 can branch the previous svn version or use Irrlicht 1.8.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5053 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-03-01 20:52:35 +00:00
cutealien f780af6752 Deprecate example 17 for now as WinCE 6 support has been removed.
Keeping the source for now as it might be revived for Windows RT one day (let's hope for it ...).

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5048 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-03-01 16:57:25 +00:00