Rephrase the value midpoint high/low stuff
This commit is contained in:
parent
32c1446a9d
commit
9ce4e41c95
55
README.md
55
README.md
@ -181,40 +181,53 @@ Playing around with parameters isn’t very useful if you don’t
|
||||
get a visual result. That’s where the node generation comes
|
||||
into play. Here you specify parameters for generating nodes
|
||||
from the noise.
|
||||
All noise values are either high or low and are divided
|
||||
by the **midpoint**: Values equal to or higher than the
|
||||
midpoint are high, otherwise low.
|
||||
|
||||
In 2D mode, the mapgen will a flat XZ plane with nodes,
|
||||
one node for every value.
|
||||
one node for every value. Both low and high values
|
||||
are used.
|
||||
|
||||
In 3D mode, the mapgen will place nodes at every position
|
||||
with a value of greater than or equal to 0. Negative values
|
||||
with a value of greater than or equal to the midpoint.
|
||||
Only high values will create visible nodes, low values
|
||||
will be air.
|
||||
(Negative nodes are not placed because then the whole area
|
||||
would be full of nodes and you would barely see anything! :D)
|
||||
|
||||
Generated nodes will be color-coded, which stands for the value:
|
||||
|
||||
* White to yellow to orange: High values
|
||||
* Light blue to blue (with a small dot): Low values
|
||||
|
||||
Now, here are the parameters you can use:
|
||||
There are two parameters:
|
||||
|
||||
* Low color at: You are supposed to enter a noise value here.
|
||||
This is the value at which the color gradient of the
|
||||
lower values begin.
|
||||
* High color at: Same as above, but this is the upper
|
||||
limit and the end of the color gradient.
|
||||
* Mid color at: The noise value which will be colored
|
||||
as the 'zero/mid point' between the low and the high values
|
||||
* Low color at: The lowest noise value at which the
|
||||
color gradient for low noise values begins.
|
||||
* High color at: The highest noise value at which the
|
||||
color gradient for high noise values ends.
|
||||
|
||||
For example, with the default parameters -1, 0 and 1,
|
||||
all values below 0 will use the 'low values' color gradient
|
||||
and all values above 0 will use the 'high values' color gradient.
|
||||
The low color gradient begins at the “Low color at”
|
||||
setting and ends right before the the midpoint.
|
||||
The high color gradient begins at the midpoint
|
||||
and ends at the ”High color at” setting.
|
||||
|
||||
For example, if 0 is the midpoint, and the “low/high color”
|
||||
settings are -1 and 1, respectively, all values below 0 (the
|
||||
midpoint) will use the 'low values' color gradient and all
|
||||
values above 0 will use the 'high values' color gradient.
|
||||
All values at -1 and below will have the "extreme low"
|
||||
color and all values at 1 or above will have the "extreme high"
|
||||
color.
|
||||
You don’t *really* need the color coding to be setup right as
|
||||
you can always use the Perlin Value Getter. But it can be
|
||||
very helpful to get a feel.
|
||||
color (dark blue) and all values at 1 or above will have the
|
||||
"extreme high" (orange) color.
|
||||
Note that the colors only serve as a visual aid and
|
||||
given the limited palette, is only an estimation
|
||||
of the noise values. You can always use the Perlin Value
|
||||
Getter for the exact values.
|
||||
If you have problems seeing color differences, feel free
|
||||
to edit these files in the `textures` directory of this
|
||||
mod with an image editor:
|
||||
|
||||
* `perlin_explorer_palette.png`: Low value colors
|
||||
* `perlin_explorer_palette_neg.png`: High values colors
|
||||
|
||||
* X, Y, Z: Coordinates of the bottom left front corner if you
|
||||
want to generate an area manually with “Apply and create”
|
||||
@ -232,7 +245,7 @@ no other meaning:
|
||||
* Grid Nodes: Solid see-through nodes (like glass)
|
||||
* Minibox Nodes: See-thorough nodes, but smaller. You can also
|
||||
walk and climb up on down in these
|
||||
* Stone: Places stone for positive values, air otherwise.
|
||||
* Stone: Places stone for high values, air otherwise.
|
||||
This uses the stone node from the game (if it supports it).
|
||||
|
||||
Solid Nodes are recommend to use normally.
|
||||
|
22
init.lua
22
init.lua
@ -271,7 +271,7 @@ if COLORIZE_NODES then
|
||||
end
|
||||
|
||||
minetest.register_node("perlin_explorer:node", {
|
||||
description = S("Solid Perlin Test Node"),
|
||||
description = S("Perlin Test Node (High Value)"),
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
paramtype2 = paramtype2,
|
||||
@ -282,7 +282,7 @@ minetest.register_node("perlin_explorer:node", {
|
||||
drop = "perlin_explorer:node",
|
||||
})
|
||||
minetest.register_node("perlin_explorer:node_negative", {
|
||||
description = S("Solid Negative Perlin Test Node"),
|
||||
description = S("Perlin Test Node (Low Value)"),
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
paramtype2 = paramtype2,
|
||||
@ -294,7 +294,7 @@ minetest.register_node("perlin_explorer:node_negative", {
|
||||
})
|
||||
|
||||
minetest.register_node("perlin_explorer:grid", {
|
||||
description = S("Grid Perlin Test Node"),
|
||||
description = S("Grid Perlin Test Node (High Value)"),
|
||||
paramtype = "light",
|
||||
drawtype = "allfaces",
|
||||
use_texture_alpha = "clip",
|
||||
@ -306,7 +306,7 @@ minetest.register_node("perlin_explorer:grid", {
|
||||
drop = "perlin_explorer:grid",
|
||||
})
|
||||
minetest.register_node("perlin_explorer:grid_negative", {
|
||||
description = S("Grid Negative Perlin Test Node"),
|
||||
description = S("Grid Perlin Test Node (Low Value)"),
|
||||
paramtype = "light",
|
||||
drawtype = "allfaces",
|
||||
sunlight_propagates = true,
|
||||
@ -319,7 +319,7 @@ minetest.register_node("perlin_explorer:grid_negative", {
|
||||
})
|
||||
|
||||
minetest.register_node("perlin_explorer:mini", {
|
||||
description = S("Minibox Perlin Test Node"),
|
||||
description = S("Minibox Perlin Test Node (High Value)"),
|
||||
paramtype = "light",
|
||||
drawtype = "nodebox",
|
||||
climbable = true,
|
||||
@ -337,7 +337,7 @@ minetest.register_node("perlin_explorer:mini", {
|
||||
drop = "perlin_explorer:mini",
|
||||
})
|
||||
minetest.register_node("perlin_explorer:mini_negative", {
|
||||
description = S("Minibox Negative Perlin Test Node"),
|
||||
description = S("Minibox Perlin Test Node (Low Value)"),
|
||||
paramtype = "light",
|
||||
drawtype = "nodebox",
|
||||
climbable = true,
|
||||
@ -1199,18 +1199,18 @@ local show_noise_formspec = function(player, noiseparams, profile_id)
|
||||
box[0,0;9.5,2.9;]]..FORMSPEC_BOX_COLOR..[[]
|
||||
box[0,0;9.5,0.4;]]..FORMSPEC_HEADER_COLOR..[[]
|
||||
label[0.15,0.2;]]..F(S("Node generation"))..[[]
|
||||
field[0.25,0.75;1.5,0.75;value_min;]]..F(S("Low color at"))..[[;]]..value_min..[[]
|
||||
field[2.25,0.75;1.5,0.75;value_mid;]]..F(S("Mid color at"))..[[;]]..value_mid..[[]
|
||||
field[0.25,0.75;1.5,0.75;value_mid;]]..F(S("Midpoint"))..[[;]]..value_mid..[[]
|
||||
field[2.25,0.75;1.5,0.75;value_min;]]..F(S("Low color at"))..[[;]]..value_min..[[]
|
||||
field[4.25,0.75;1.5,0.75;value_max;]]..F(S("High color at"))..[[;]]..value_max..[[]
|
||||
button[6.25,0.75;0.75,0.75;autocolor;]]..F(S("Auto"))..[[]
|
||||
dropdown[7.55,0.75;1.75,0.75;nodetype;]]..nodetypes_list_str..[[;]]..nodetype_index..[[;true]
|
||||
]]..xyzsize..[[
|
||||
tooltip[value_min;]]..F(S("The lowest noise value to be represented by the node color gradient."))..[[]
|
||||
tooltip[value_mid;]]..F(S("The noise value which is represented as the midpoint of the node color gradient."))..[[]
|
||||
tooltip[value_mid;]]..F(S("Noise values equal to or higher than the midpoint are treated as “high”, otherwise as “low” values. Used for node colorization. In 3D mode, low values will become air."))..[[]
|
||||
tooltip[value_min;]]..F(S("The lowest noise value to be represented by the node color gradient. Not used in 3D mode."))..[[]
|
||||
tooltip[value_max;]]..F(S("The highest noise value to be represented by the node color gradient."))..[[]
|
||||
tooltip[autocolor;]]..F(S("Set the low, mid and high color values automatically according to the theoretical noise value boundaries."))..[[]
|
||||
field_close_on_enter[value_min;false]
|
||||
field_close_on_enter[value_mid;false]
|
||||
field_close_on_enter[value_min;false]
|
||||
field_close_on_enter[value_max;false]
|
||||
container_end[]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user