Published Feb 26th, 2016, 2/26/16 9:07 pm
- 3,334 views, 15 today
- 133 downloads, 1 today
1
DOWNLOAD
mediafire ( 14.1MB )
THEORY
a lot of 3d shapes can be described as an implicit equation, i'm saying the graph of a function with 3 parameters (x,y,z) creates a 3d surface,( see Wikipedia Graphs),
for example the equation to form a x-y plane is "z", so any position below will be less than zero, and any position above, greater than zero, in the between, at exactly z=0, the result is 0, there is the surface, at the 'zero'
(this site has some functions of primitive types, and also a interative visualization)
MINECRAFT
to implement the solving of equation, first i need to use scoreboards to pass in the x,y,z values
so i've created 3 dummy scores: pos_x,pos_y,pos_z
and i've created a system that summons 256 armor stands, each with their correspondent scoreboard of their positions
( starting at zero and going to 7 in each direction)
after realising that is too small room to plot anything, i've made a teleporter system to move all armor stands in all directions,
so they can go to 64 "domains"
a lot of command blocks does the actual calculation, so it's basically a
to set tempa score the value of pos_x
and so on, all four operations (+,-,*,/) with four temp scoreboards can calculate almost any function that don't need a square root or any other complicated function (sin(x), cos(x), tang(x), PI, any floating point etc...)
note: although Floating-Point is not supported, one can use Fixed-Point math, to integers using integers to do fractional calculations, without any complicated system
Note 2: Any English spelling error is because I'm from Brazil and I am not an expert in English
video
mediafire ( 14.1MB )
THEORY
a lot of 3d shapes can be described as an implicit equation, i'm saying the graph of a function with 3 parameters (x,y,z) creates a 3d surface,( see Wikipedia Graphs),
for example the equation to form a x-y plane is "z", so any position below will be less than zero, and any position above, greater than zero, in the between, at exactly z=0, the result is 0, there is the surface, at the 'zero'
(this site has some functions of primitive types, and also a interative visualization)
MINECRAFT
to implement the solving of equation, first i need to use scoreboards to pass in the x,y,z values
so i've created 3 dummy scores: pos_x,pos_y,pos_z
and i've created a system that summons 256 armor stands, each with their correspondent scoreboard of their positions
( starting at zero and going to 7 in each direction)
after realising that is too small room to plot anything, i've made a teleporter system to move all armor stands in all directions,
so they can go to 64 "domains"
a lot of command blocks does the actual calculation, so it's basically a
/execute @e[name=V] ~ ~ ~ /scoreboard players operation @e[name=V,r=0] tempa = @e[name=V,r=0] pos_x
to set tempa score the value of pos_x
and so on, all four operations (+,-,*,/) with four temp scoreboards can calculate almost any function that don't need a square root or any other complicated function (sin(x), cos(x), tang(x), PI, any floating point etc...)
note: although Floating-Point is not supported, one can use Fixed-Point math, to integers using integers to do fractional calculations, without any complicated system
Note 2: Any English spelling error is because I'm from Brazil and I am not an expert in English
video
Progress | 90% complete |
Tags |
tools/tracking
3619045
2
32x32x32-perfect-objects-sphere-torus-octahedron-generated-on-the-fly-with-command-blocks
Create an account or sign in to comment.