11-13-2014, 04:48 AM
Anyone who likes my big oak tree?
Some semi-random thoughts on terrain generation
|
11-13-2014, 04:48 AM
Anyone who likes my big oak tree?
Its right, but a little "blocky" (yes, in Minecraft) and its shape seems square.
11-13-2014, 05:28 AM
It's not that bad:
[spoiler] [/spoiler]
11-13-2014, 06:01 AM
I think it's weird. The central trunk should be higher, after all it's the dominant apex.
11-13-2014, 06:22 AM
Then how about this:
11-13-2014, 06:40 AM
The branches seem a little too long. I'll adjust it.
11-13-2014, 07:45 PM
I uploaded my first implementation to github.
11-13-2014, 09:41 PM
Interesting. Why the floating-point directions, can't you work with regular ints?
Because if I use ints I can't place a block on the same height:
Code: ---XX Code: ----X (If that makes sense) EDIT: Now compare my code to the vanilla tree: https://gist.github.com/grum/62cfdec0537...-java-L145
11-13-2014, 10:38 PM
Make the code lerp between startpoint and endpoint, then, you can have branches at any angle, and still keep int coords. Look up Bresenham algorithm if you need to.
|
« Next Oldest | Next Newest »
|