aboutsummaryrefslogtreecommitdiff
path: root/src/content_mapblock.cpp
Commit message (Collapse)AuthorAge
* Allow nodes to specify which sides to connect to.Auke Kok2016-03-12
| | | | | | | | | | | | | | | | NDT_CONNECTED attempts to connect to any side of nodes that it can connect to, which is troublesome for FACEDIR type nodes that generally may only have one usable face, and can be rotated. We introduce a node parameter `connect_sides` that is valid for any node type. If specified, it lists faces of the node (in "top", "bottom", "front", "left", "back", "right", form, as array) that connecting nodeboxes can connect to. "front" corresponds to the south facing side of a node with facedir = 0. If the node is rotatable using *simple* FACEDIR, then the attached face is properly rotated before checking. This allows e.g. a chest to be attached to only from the rear side.
* Nodebox: Allow nodeboxes to "connect"Auke Kok2016-03-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We introduce a new nodebox type "connected", and allow these nodes to have optional nodeboxes that connect it to other connecting nodeboxes. This is all done at scenedraw time in the client. The client will inspect the surrounding nodes and if they are to be connected to, it will draw the appropriate connecting nodeboxes to make those connections. In the node_box definition, we have to specify separate nodeboxes for each valid connection. This allows us to make nodes that connect only horizontally (the common case) by providing optional nodeboxes for +x, -x, +z, -z directions. Or this allows us to make wires that can connect up and down, by providing nodeboxes that connect it up and down (+y, -y) as well. The optional nodeboxes can be arrays. They are named "connect_top, "connect_bottom", "connect_front", "connect_left", "connect_back" and "connect_right". Here, "front" means the south facing side of the node that has facedir = 0. Additionally, a "fixed" nodebox list present will always be drawn, so one can make a central post, for instance. This "fixed" nodebox can be omitted, or it can be an array of nodeboxes. Collision boxes are also updated in exactly the same fashion, which allows you to walk over the upper extremities of the individual node boxes, or stand really close to them. You can also walk up node noxes that are small in height, all as expected, and unlike the NDT_FENCELIKE nodes. I've posted a screenshot demonstrating the flexibility at http://i.imgur.com/zaJq8jo.png In the screenshot, all connecting nodes are of this new subtype. Transparent textures render incorrectly, Which I don't think is related to this text, as other nodeboxes also have issues with this. A protocol bump is performed in order to be able to send older clients a nodeblock that is usable for them. In order to avoid abuse of users we send older clients a "full-size" node, so that it's impossible for them to try and walk through a fence or wall that's created in this fashion. This was tested with a pre-bump client connected against a server running the new protocol. These nodes connect to other nodes, and you can select which ones those are by specifying node names (or group names) in the connects_to string array: connects_to = { "group:fence", "default:wood" } By default, nodes do not connect to anything, allowing you to create nodes that always have to be paired in order to connect. lua_api.txt is updated to reflect the extension to the node_box API. Example lua code needed to generate these nodes can be found here: https://gist.github.com/sofar/b381c8c192c8e53e6062
* Remove new_style_waterRealBadAngel2016-02-26
|
* Cleanup selection mesh code, add shaders for halo and selection boxesRealBadAngel2016-02-08
|
* Add new ContentParamType2 "CPT2_DEGROTATE"est312015-10-04
| | | | | | | | | This might break some mods, but it is important for all uses of the param2 to be documented. This doesn't need a serialisation version or network protocol version change, as old clients will still work on new servers, and it is bearable to have new clients getting non rotated plants on old servers.
* Firelike drawtype: Improve codeparamat2015-09-14
| | | | | | Remove unusable fine rotation by param2 Remove unused and redundant code Fix code style issues
* Change i++ to ++iDavid Jones2015-08-25
|
* Move globals from main.cpp to more sane locationsCraig Robbins2015-04-01
| | | | | | | | | | | | Move debug streams to log.cpp|h Move GUI-related globals to clientlauncher Move g_settings and g_settings_path to settings.cpp|h Move g_menuclouds to clouds.cpp|h Move g_profiler to profiler.cpp|h
* Move texture_min_size even further down the pipe. Now, textures are ↵Aaron Suen2015-03-31
| | | | JIT-upscaled using an image transformation, right at the time they're added to a mesh or particle; images used in 2D elements are left unscaled. This should fix any remaining issues with HUD elements.
* Connect rails with connect_to_raillike and shorten the codesSmallJoker2015-03-21
|
* For usages of assert() that are meant to persist in Release builds (when ↵Craig Robbins2015-03-07
| | | | NDEBUG is defined), replace those usages with persistent alternatives
* Improve group-based connection between raillike nodesBlockMen2015-03-05
|
* Replace std::list to std::vector into tile.cpp (m_texture_trash) and move ↵Loic Blot2015-03-05
| | | | tile.hpp to src/client/
* Fix some rendering glitchesBlockMen2015-03-05
| | | | | - Fixes particle draworder - Fixes nodehighlighting
* Fix NDT_GLASSLIKE normalsKahrl2015-01-31
| | | | Remove inventorycube() workaround for default:glass in minimal game
* Fix visual_scale for plantlike nodes (again)Vanessa Ezekowitz2014-12-19
| | | | | | fixes #1989 move the plant to the bottom of its node properly, without affecting its scale. See isue #1989
* Fix visual_scale for NDT_PLANTLIKE being set too smallCraig Robbins2014-12-18
|
* Fix raillike bug (currently manifests itself on Android), and minor ↵Kodexky2014-11-20
| | | | | | improvement to readability. NB: Minor edits to patch made by Zeno- (int to short and minor formatting)
* Fix wallmounted mesh rotationsShadowNinja2014-11-19
|
* Add option to enable mesh caching, add wallmounted for meshes.RealBadAngel2014-10-29
|
* Fix broken plantlike drawtype.RealBadAngel2014-10-22
|
* Recalculate normals for cached meshes.RealBadAngel2014-10-21
| | | | | | Check if mesh is here before adding to meshcollector. Fix deleting the meshes.
* Various uninitialised variable fixesCraig Robbins2014-10-19
| | | | | | sky.cpp: m_bgcolor.getAlpha() was being used before initialised mesh related: m_highlight_mesh_color was being used uninitialised
* Add meshnode drawtype.RealBadAngel2014-10-18
|
* Add optional framed glasslike drawtypeBlockMen2014-10-02
|
* Add firelike drawtypeTriBlade92014-09-21
|
* Split settings into seperate source and header filesShadowNinja2014-09-21
| | | | This also cleans up settings a bit
* Bugfix: don't highlight air nodes.RealBadAngel2014-09-18
|
* Node highlighting.RealBadAngel2014-09-17
|
* Pass light sources in blue channel of vertex color instead of decoded light ↵RealBadAngel2014-08-21
| | | | | | for all special drawtypes. Plus some style fixes and optimizations.
* Dont display interior of glasslike_framed node when its not defined.RealBadAngel2014-07-24
| | | | Fixes https://github.com/minetest/minetest/issues/1514
* Allow full circle rotation with 2degs step for plantlike drawtype.RealBadAngel2014-07-24
|
* Add rotation for plantlike drawtype.RealBadAngel2014-07-22
|
* Bugfix in makeCuboid - apply rotations to all faces when 1 tile is given.RealBadAngel2014-07-20
|
* Fix texture glitches for plants with visual scale > 1.0 (jungle grass).RealBadAngel2014-07-17
|
* Fix texture hack in fences.RealBadAngel2014-07-17
|
* Fix flipped textures for drawtype "glasslike"sapier2014-07-16
|
* Glasslike_framed drawtype rework.RealBadAngel2014-06-29
|
* Pass pointer to nodedef directly to avoid recalculation in quite often ↵sapier2014-04-06
| | | | called function
* Fix liquid_rangePilzAdam2013-11-02
| | | | | | * Prevent graphical glitches on old servers * Fix flowing of liquids with viscosity != 1 and range != 8 * Fix range = 0, no flowing nodes will appear
* Add support for parameter 'visual_scale' for drawtypes 'signlike' and ↵Sokomine2013-10-14
| | | | 'torchlike' like used for drawtype 'plantlike'
* Diagonal liquid animationKahrl2013-08-17
|
* Add liquid_range to nodedefPilzAdam2013-07-20
|
* Remove texture atlas / AtlasPointer, rename getTextureRaw to getTextureKahrl2013-07-02
|
* Make raillike nodes connect to any other raillike nodes if both are in the ↵Jeija2013-05-22
| | | | group connect_to_raillike
* Add new drawtype GLASSLIKE_FRAMEDRealBadAngel2013-04-24
|
* 6d facedirRealBadAngel2013-03-23
|
* Fix new_style_waterPilzAdam2013-03-17
|
* Liquid fine tuningproller2013-03-14
|
* Migrate to STL containers/algorithms.Ilya Zhuravlev2013-03-11
|