Commit Graph

  • 473ab1ea58 Unify checks if materials should use transparent render pass with new IVideoDriver::needsTransparentRenderPass function. Fix bug that AnimatedMeshSceneNode ignored ReadOnlyMaterials flag when checking materials for transparent render passes. Make IVideoDriver::getMaterialRenderer const. Fix bugs in COctreeSceneNode, CMeshSceneNode and CAnimatedMeshSceneNode where check for transparency in OnRegisterSceneNode() and in render() where no longer identical (those got added after Irrlicht 1.8). cutealien 2020-01-03 11:13:57 +00:00
  • 2928a632a4 Material.ZWriteEnable is now of type E_ZWRITE instead of bool and ZWriteFineControl get removed (or merged into ZWriteEnable). This breaks compiling. To have old values replace false with EZW_OFF and true with EWZ_AUTO. cutealien 2020-01-02 15:34:52 +00:00
  • fc37b383ed Fixing comments for E_ZWRITE_FINE_CONTROL. (and considering replacing it and breaking binary serialization of SMaterial - having 2 flags for zwrite is simply too confusing). cutealien 2019-12-31 18:21:45 +00:00
  • c661373121 EMT_REFLECTION_2_LAYER and EMT_TRANSPARENT_REFLECTION_2_LAYER on OpenGL now same as D3D9 version. Before OpenGL used GL_SPHERE_MAP instead of GL_REFLECTION_MAP in COpenGLMaterialRenderer. Not sure why, but documentation mentioned GL not being implemented, so maybe it was forgotten? Or maybe I'm missing something as this was a big too easy to fix :-) Anyway - I tested it and with that change they seem to look now identical to the D3D9 version, so I think it's fine. Obviously means whoever used the material before on OpenGL has now a changed material. cutealien 2019-12-17 14:05:34 +00:00
  • 28725e137a Update irrString test due to split changes in r6007 We keep separators now in their own tokens. cutealien 2019-12-16 16:51:30 +00:00
  • 3280b3319e Add floor32, ceil32, round32 compatibility functions for burnings renderer. To avoid changing burnings now those functions have no IRRLICHT_FAST_MATH anymore, there's a new header irrMathFastCompat.h which has ..._fast functions doing the old behavior. With the troubles they have documented. I changed burnings to use those functions throughout. Or as much as possible... Burnings probably also uses classes like SColor which also have functions using those, but I don't plan to adapt them. Maybe IRRLICHT_FAST_MATH should be a flag exlusive to burnings in the future, I don't think it makes much sense otherwise anymore (it often expects 32-bit asm). cutealien 2019-12-16 16:15:04 +00:00
  • 3acf725ae3 Work on IRRLICHT_FAST_MATH troubles. Document round_ and round32 troubles. - Add warnings to round_, round32 about different (and sometimes worse) behavior than the standard library, especially at high numbers. For example with input 8388609 standard library corrrectly returns 8388609, but we get 8388610. But as we still don't use C99/c++11 in Irrlicht 1.9 I have no easy way to fix this. - reciprocal_squareroot with IRRLICHT_FAST_MATH is less exact than it claims to be. Just commenting it. - document slightly different behavior of reciprocal with IRRLICHT_FAST_MATH around 0. - Kick out IRRLICHT_FAST_MATH for floor32, ceil32, round32. Their results are simply wrong, especially for uneven numbers. Like floor32(1) will be 0. or ceil32(-1) will also be 0. round32 wasn't as bad, but also down-rounding 0.5 and less exact. I know Burnings still wants those functions, so next commmit will add them again, but with new names and only an internal header. cutealien 2019-12-16 15:48:35 +00:00
  • 79800125ae No longer try to use __asm on _WIN64 in VisualStudio. 64-bit asm isn't supported on VS (and I suppose we used 32-bit asm anyway). cutealien 2019-12-16 13:57:31 +00:00
  • 5c8f0484da Remove clearFPUException which did nothing. That function just returned true for years not doing anything. As far as I can see from the web it's about some rare cases in DOS compatibility mode with 32-bit apps. But not sure why it was called exactly in this place in the past. So no comments, no idea what it's about and not actually doing anything and probably not needed on any platform anyone still uses ... lets just kick it out. (it did break compiling IRRLICHT_FAST_MATH on x64 which is why I noticed it) cutealien 2019-12-16 13:49:38 +00:00
  • 070d49e63c Update release checklist to avoid getting 2 copies of docs in doc-folder again. Thanks to whoever reported that to me once (sorry, I forgot who found that, just had this still on my todo). cutealien 2019-12-13 15:45:31 +00:00
  • 44fd5d37ea Change string::split once more - Delimiters now end up in their own token when keepSeparators is true. - When ignoreEmptyTokens is false we now add a token at the end when the last character is a delimiter. While this means some changes, the ignoreEmptyTokens=false didn't work correct in 1.8 anyway, so another change shouldn't break much. Thanks @manni63 for bringing this up in forum: http://irrlicht.sourceforge.net/forum/viewtopic.php?f=7&t=51584&p=299634#p299634 cutealien 2019-12-13 15:30:07 +00:00
  • 421000e00d Avoid warning on gcc/linux. cutealien 2019-12-13 11:28:45 +00:00
  • 6c5ae22d49 Get rid of gcc warnings. cutealien 2019-12-12 18:04:40 +00:00
  • 0b92a66c50 Replace list of hwnd -> IrrlichtDevice mapper with an array. Single inserts/removes per device creating/destruction, but searchs on every event. Arrays are better for that than lists. Also document a bit. cutealien 2019-12-12 17:31:22 +00:00
  • 6ad09a3a25 Remove unused function getEnvMapperFromHWnd I suspect we could also get rid of the EnvMap list, not sure what that is about. cutealien 2019-12-12 17:16:51 +00:00
  • 7061c42008 Avoid warning on gcc cutealien 2019-12-12 17:04:46 +00:00
  • 2f84ab0cdc Avoid some gcc warnings. cutealien 2019-12-12 16:52:46 +00:00
  • 8310a3fbad Avoid warning and make local variable lower-case. cutealien 2019-12-12 16:32:41 +00:00