aboutsummaryrefslogtreecommitdiff
path: root/src/client/mapblock_mesh.cpp
AgeCommit message (Collapse)Author
2023-02-22Fix a -Wreorder warningDS
2023-02-18Remove dead code behind Irrlicht version checkssfan5
2023-02-08Generalize mesh chunking, and make it configurable. (#13179)lhofhansl
* Generalize mesh chunking. Set 3x3x3 chunks. * Make mesh chunk size configurable... Default to 1 (off). * Extract all mesh grid maths into a dedicated class --------- Co-authored-by: x2048 <codeforsmile@gmail.com>
2023-01-318x block meshes (#13133)x2048
Reduce the number of drawcalls by generating a mesh per 8 blocks (2x2x2). Only blocks with even coordinates (lowest bit set to 0) will get a mesh. Note: This also removes the old 'loops' algorithm for building the draw list, because it produces visual artifacts and cannot be made compatible with the approach of having a mesh for every 8th block without hurting performance. Co-authored-by: Jude Melton-Houghton <jwmhjwmh@gmail.com> Co-authored-by: Lars <larsh@apache.org> Co-authored-by: sfan5 <sfan5@live.de>
2023-01-06Occlusion culling algorithm based on recursive descend (#13104)x2048
Co-authored-by: DS <vorunbekannt75@web.de>
2022-10-30Always add increment when getting node interior lightx2048
2022-10-09Optimize lighting calculation (#12797)Jude Melton-Houghton
2022-09-26Fix liquid drawtype faces sometimes not rendering (#12807)Wuzzy
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
2022-09-18Client map: do frustum culling via planes (#12710)DS
2022-07-30Fix some warnings (#12615)rubenwardy
2022-06-07Mapblock Mesh BspTree: Increase the depth of block-level splitsx2048
... before going node-level triangle search. Fixes transparent grass on transparent land
2022-05-26Improve code in mapblock_mesh.cpp a bitsfan5
2022-05-22Fixes needed to use irrArray backed by std::vector (#12263)paradust7
2022-05-08Consolidate some data structures in MapBlockMeshsfan5
2022-04-28Remove HW_buffer_counter after IrrlichtMt fix to remove HWBufferMap (#12232)paradust7
Keep code and use version check instead, for backwards compatibility
2022-04-02Add depth sorting for node faces (#11696)x2048
Use BSP tree to order transparent triangles https://en.wikipedia.org/wiki/Binary_space_partitioning
2022-01-31Revert "Disable dynamic shadows for the 5.5.0 release" (#12032)rubenwardy
2022-01-29Disable dynamic shadows for the 5.5.0 releaseSmallJoker
The dynamic shadows are yet not in the desired state to justify the inclusion into version 5.5.0. A stable release is long overdue, hence this allows fixes to continue in 5.6.0-dev to finally release an acceptable version of the dynamic shadows feature. Reverting this commit is highly recommended to proceed in development.
2021-08-19Fix scaled world-aligned textures being aligned inconsistently for ↵Wuzzy
non-normal drawtypes
2021-06-06Shadow mapping render pass (#11244)Liso
Co-authored-by: x2048 <codeforsmile@gmail.com>
2021-05-03refacto: RenderingEngine::get_scene_manager() is now not callable from singletonLoic Blot
This permits to make evidence that we have some bad object passing on various code parts. I fixed majority of them to reduce the scope of passed objects Unfortunately, for some edge cases i should have to expose ISceneManager from client, this should be fixed in the future when our POO will be cleaner client side (we have a mix of rendering and processing in majority of the client objects, it works but it's not clean)
2021-02-19Fix world-aligned node rendering at bottom (#10742)Wuzzy
2021-01-22Remove dead code (#10845)rubenwardy
2020-12-24Fix some minor code issues all over the placesfan5
2020-12-05Implement mapblock camera offset correctly (#10702)hecks
Implement mapblock camera offset correctly - reduce client jitter Co-authored-by: hecktest <>
2020-10-17Remove all bump mapping and parallax occlusion related code.Lars
2020-10-06-Wmem-access only called when GCC > 7 (#10453)Zughy
2020-10-05Remove unused functions reported by cppcheck (#10463)SmallJoker
Run unused functions reported by cppcheck This change removes a few (but not all) unused functions. Some unused helper functions were not removed due to their complexity and potential of future use.
2020-10-04Minimap as HUD element with API controlPierre-Yves Rollo
Features: * Define Minimap available modes (surface/radar, scale) from Lua, using player:set_minimap_modes() * New HUD elements for displaying minimap with custom size and placing * New minimap mode for displaying a texture instead of the map
2020-08-01Fix GCC class-memaccess warnings (#10239)Paul Ouellette
2020-05-25Silence GCC warning in mapblock_meshSmallJoker
Fixes following warning: warning: ‘waving’ may be used uninitialized in this function [-Wmaybe-uninitialized]
2020-04-25mapblock_mesh: Optimize a few things (#9713)sfan5
2019-11-19Waves generated with Perlin-type noise #8994Lars Hofhansl
2019-08-13Better F6 profiler (#8750)SmallJoker
Update the profiler names to make more sense of what they actually represent Move the profiler code from header to its source file Use monospace font to align lines Format the statistics line to align better with surrounding values Refresh the profiler each 3 seconds (roughly)
2019-03-19Fix texture rotation for wallmounted nodeboxessfan5
fixes #8358
2018-11-28Move client-specific files to 'src/client' (#7902)Quentin Bazin
Update Android.mk Remove 'src/client' from include_directories