Commit Graph

3352 Commits (db89bbc2cec7d3d2926367acf73158dea961a43e)

Author SHA1 Message Date
cutealien 343924adb7 Add IVideoDriver::addTextureCubemap function to create an empty cubemaps.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5662 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-11-22 14:40:34 +00:00
cutealien 05a05b75d1 Enable seamless filtering for cubemaps on OpenGL by default and add a new driver feature flag to disable it.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5661 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-11-20 15:47:13 +00:00
cutealien 7873503041 Fix test "renderTargetTexture"
Was using wrong parameter order when setting the rendertarget.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5660 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-11-19 21:50:24 +00:00
cutealien 665324b6a8 Switch COpenGLCoreTexture::lock to using glGetTexImage instead of glReadPixels.
Also got rid of extra temporary image. Main reason it didn't work before was likely because the image had not been set as active.
tests failing: 51,53,54 (some related to this, but none of those worked before, so no change there).
Note: Still keeping old code around a little longer as it's currently nice to have for comparison. If new stuff causes any preoblems, we could even make it optional somehow (some driver flag or so).

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5659 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-11-19 15:24:48 +00:00
cutealien c5e36eb111 Minor change to COpenGLExtensionHandler::dump (internal use only).
And comment about WGL_CONTEXT_FLAGS_ARB (but debug not enabled).

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5658 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-11-12 16:45:25 +00:00
cutealien a2e744faa5 Add current values as default values in serialization of several GUI elements.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5657 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-11-10 14:09:49 +00:00
cutealien fb7e234561 Add a default parameter to some IAttributes::getAttributeAsEnumeration functions.
Use existing values as default values now in serialization of CGUIEditBox.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5656 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-11-10 13:55:12 +00:00
cutealien 0ec5f98831 Fix default value for ScaleImage in CGUIImage::deserializeAttributes.
Thanks @chronologicaldot for the report: http://irrlicht.sourceforge.net/forum/viewtopic.php?f=7&t=52405


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5655 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-11-10 13:33:55 +00:00
cutealien 57949584ed Add support for creating cubemap rendertargettextures on OpenGL.
Still having some troubles:
- Lock() returns very strange results
- The usual texture-flipping for rendertargets in opengl is causing here even more troubles than usual. Still working out how to render cubemaps into RTT's the same way as when just passing "normal" textures to a cubemap. Just putting them upside down isn't enough. 

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5654 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-11-09 19:16:50 +00:00
cutealien bc525f5dcc Fix ITexture::lock for D3D9Texture with RTT cubemaps.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5653 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-11-09 13:59:13 +00:00
cutealien 3b7216ed7c Bugfix: BillboardSceneNode must set meshbufferbuffer to dirty now.
(wasn't needed in the past when it wasn't using a real meshbuffer as new updates were send each frame anyway).


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5651 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-10-29 21:35:36 +00:00
cutealien 243c124d85 Try restoring a lost device for 4 instead of 3 seconds. Better error messages for failed CreateTexture calls.
(time of restoring device is try&error really, with 3 seconds it seemed to work sometimes, but still failed in some cases, so just increasing it slightly to see if helps).

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5649 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-10-19 13:39:20 +00:00
cutealien 8518f3bd2c Revert r5645 (adding default value).
Reason: No c++11 code in Irrlicht 1.9 and also - this value already is default in core::string, so no need to set it.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5648 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-10-04 10:03:11 +00:00
dbocksteger c8ec2d3e05 Added Default-value for ISceneNode->Name so the code won't crash if someone tries to compare it with empty...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5645 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-10-04 05:57:43 +00:00
cutealien 8f7f59d193 Simplify code in CGUITabControl (thx @chronologicaldot for patch-proposal).
Forum: http://irrlicht.sourceforge.net/forum/viewtopic.php?f=7&t=52344&p=304167#p304167


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5644 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-09-20 21:16:46 +00:00
cutealien 8868d47688 Fix serialization bug introduced in svn r5631.
That fix there was only missing some understanding of a strange side-effect.
Comment added so we don't run into it again (and solved slightgly different than before).


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5643 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-09-20 20:56:35 +00:00
cutealien 4edf23c775 Add serialization for ToolTip to IGUIElement. Thanks @chronologicaldot for fix.
Forum: http://irrlicht.sourceforge.net/forum/viewtopic.php?f=2&t=52374


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5642 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-09-12 09:47:38 +00:00
cutealien 01de5276ae Fix bug introduced in r5627 which generated certain rtt's on d3d9 now twice - which broke resetting the d3d9 device.
That check got accidentally deleted while adding support for cubemap rtt's.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5641 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-09-04 16:52:08 +00:00
cutealien 10a3f02aa6 Try recovering lost device in D3D9 for 3 seconds when device reset fails after resizing Window.
The device becomes useless if we don't recover it, so it's worth giving it a few more shots at that point as it might take a while until it can be recovered. The 3 seconds are just a number which seems to make some sense, could be it would be worth waiting even longer?

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5640 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-09-04 14:20:34 +00:00
cutealien b44b6891a6 Add typedefs like value_type and size_type to array, list and map like std containers have.
Thanks @SLC for idea (http://irrlicht.sourceforge.net/forum/viewtopic.php?f=1&t=52363)


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5639 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-08-23 09:52:13 +00:00
dbocksteger 27915916df readme.txt: fixed typo
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5635 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-08-14 07:19:47 +00:00
cutealien 0c57deec15 Simplify code (getAttributeAsBool didn't have default-paramters in the past).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5633 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-07-24 20:13:16 +00:00
cutealien 09767f2541 Merge branch releases/1.8 revisions 5529-5631 into trunk:
- Add comment to Makefile about MinGW compilation
- Fix serialization of OverrideTextColorEnabled flag in CGUITab

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5632 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-07-24 20:11:37 +00:00
cutealien 438fb2a0ac Remove unused enum E_LOST_RESOURCE
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5630 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-07-19 20:25:34 +00:00
cutealien f6202b9e7b Update Windows version info slightly (at least tell it's Windows 8 or above).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5629 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-07-19 20:22:40 +00:00
cutealien 2b4ec38555 Fix compile error on gcc. Thanks @AReichl for reporting.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5628 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-07-13 10:14:48 +00:00
cutealien b795ba324b Add support for cubemap rendertarget textures on D3D9.
(OpenGL still needs to be done).
Example will follow.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5627 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-07-12 19:19:11 +00:00
cutealien f41aad6c6d No longer try to restore RTT's with a lost device.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5626 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-07-04 17:56:38 +00:00
cutealien f873cd7916 Do no longer release DepthStencilSurface always in D3D9 device and then still work with it.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5625 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-07-04 17:50:34 +00:00
cutealien 7942f3dae6 Set ETCF_ALLOW_MEMORY_COPY to "on" by default.
This means opengl textures keep again a copy in main-memory as they did in Irrlicht 1.8.
The reason this is changed back is because otherwise ITexture::lock() for alpha-textures is broken by default.
This is a (long time reported) bug, but it has gone unfixed for over a year and caused too many problems.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5624 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-07-01 12:21:17 +00:00
cutealien 32c532ee36 Log parameters when CreateTexture call in CD3D9Texture::generateRenderTarget fails.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5623 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-06-29 10:34:58 +00:00
cutealien 7442e24ded Simplify code (no need to keep scroll-bar width in extra variable here).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5621 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-06-17 19:46:40 +00:00
cutealien 2246895ae1 CGUIComboBox uses now EGDS_SCROLLBAR_SIZE instead of EGDS_WINDOW_BUTTON_WIDTH for the width of the listbox button to allow changing that without changing window topbar height.
It also changes now directly when the value is changed in the skin.
Thanks @LunaRebirth for reporting. 
Forum-link: http://irrlicht.sourceforge.net/forum/viewtopic.php?f=1&t=52297&p=303682#p303682


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5620 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-06-17 19:31:14 +00:00
cutealien 9d315a9354 CGUIListbox, CGUITreeView and CGUITable now resize scrollbars when EGDS_SCROLLBAR_SIZE in the skin changes without having to re-create the elements.
This also fixes the problem that drawing looked wrong when this value got changed after the elements were created.
Thanks @LunaRebirth for reporting. (Forum: http://irrlicht.sourceforge.net/forum/viewtopic.php?f=1&t=52297&p=303682#p303682)

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5619 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-06-16 22:27:08 +00:00
cutealien 8f3b9e6c6a No longer let scrollbar-buttons get larger than half the size of the scrollbar element.
Fixes problem that buttons could overlap.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5618 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-06-16 21:53:58 +00:00
cutealien e3282308c1 Spelling fix.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5616 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-06-01 10:20:15 +00:00
cutealien a916b5de6a spelling
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5615 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-05-24 22:37:27 +00:00
cutealien 609a6474f0 Prevent crash in CD3D9RenderTarget::generateSurfaces when a CD3D9Texture has no IDirect3DTexture9.
Increase log-warning level from information to error when CD3D9Texture::generateRenderTarget fails to generate a IDirect3DTexture9.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5614 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-05-24 10:53:43 +00:00
cutealien a7a90ff191 Add IVideoDriver::swapMaterialRenderers to allow swapping the renderer used to render a certain material.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5613 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-05-17 15:04:43 +00:00
cutealien 63ec10d099 Adding documentation about the way tangents/binormals are passed to shader.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5612 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-05-16 21:23:05 +00:00
cutealien 144123beab IMeshManipulator functions createMeshWith1TCoords, createMeshWith2TCoords and createMeshWithTangents no longer weld vertices while converting meshes. Use IMeshManipulator::createMeshWelded if you need that welding.
Main reason is that this wasn't exactly the expected or documented behavior.
While this welding was faster than calling createMeshWelded, we can still optimize createMeshWelded.
And it slowed down mesh-conversion in all cases where welding was not needed (for example some loaders already do that). 
It also increased memory consumption because the welding did allocate more memory for vertices than meshes needed (it allocated 1 vertex per index).


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5611 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-05-16 21:12:54 +00:00
cutealien a8b9071f96 Add ITerrainSceneNode::setFixedBorderLOD to handle connecting terrain nodes without gaps. Thanks @diho for the bugreport, testcase and a patch proposal.
Forum: http://irrlicht.sourceforge.net/forum/viewtopic.php?f=9&t=51220


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5610 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-05-14 21:03:11 +00:00
cutealien 1d99bd8ff2 PLY loader now works with files which use "st" instead of "uv" for texture coordinates. Thanks @JLouisB for patch.
This fixes loading from files generated by Blender or Assimp. 
Forum: http://irrlicht.sourceforge.net/forum/viewtopic.php?f=9&t=52261


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5609 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-05-12 15:31:01 +00:00
cutealien fb39389bb8 STL writer does now also write binary files when EMWF_WRITE_BINARY flag is used. Based on patch from JLouisB. (Forum: http://irrlicht.sourceforge.net/forum/viewtopic.php?f=9&t=52261)
(EMWF_WRITE_COMPRESSED also still works for downward compatibility)

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5608 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-05-12 15:24:33 +00:00
cutealien 2757651d10 Improved PLY exporter. Thanks for Patch from JLouisB.
Forum discussion: http://irrlicht.sourceforge.net/forum/viewtopic.php?f=9&t=52261
- Support for UV and vertex colors.
- Support for binary PLY files export with the EMWF_WRITE_BINARY flag
- Fix for the meshes with 32 bits index


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5607 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-05-12 14:36:10 +00:00
cutealien c422dcbe4d Document IVideoDriver::makeNormalMapTexture some more.
Mainly to make it obvious that (at least for now) only the red-channel is used for 32-bit textures.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5606 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-05-09 20:50:45 +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 69787af02d Add B3DExporter script for Blender from SuperTuxKart.
It is copied from here: https://sourceforge.net/p/supertuxkart/code/17112/tree/media/trunk/blender_25/B3DExport.py
Reason is that STK uses now different scripts and this one was getting hard to find for users (that was the last version before they removed it).
It's GPL licensed, but not combined with rest of library, so no problem for us.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5604 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-03-18 15:11:26 +00:00
cutealien f02f226712 Fix wrong colors on big endian platforms with burnings renders. Thx @kas1e for reporting and @curaga for the patch (#318).
Note: this patch just removes some old #ifdef __BIG_ENDIAN__ code, so it's slightly suspicious. But it does fix the
wrong color problems on big-endian platforms. 
See http://irrlicht.sourceforge.net/forum/viewtopic.php?f=7&t=52177 for the discusssion.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5602 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-02-18 16:03:52 +00:00
cutealien 30c123214e Improve documentation about ECF_A8R8G8B8.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5601 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-02-06 20:12:30 +00:00