03-12-2013, 01:06 AM
but whats the difference between math.floor and math.modf. as far as i know math.modf takes only the numbers before the comma and math.floor just rounds it downwards.
Random Chitchat 2012-2016
|
03-12-2013, 01:06 AM
but whats the difference between math.floor and math.modf. as far as i know math.modf takes only the numbers before the comma and math.floor just rounds it downwards.
There's difference for negative numbers - modf rounds towards zero, while floor rounds towards negative infinity (which is what you need for chunk coords)
For example, block coords {-8, 10, -8} are in chunk [-1, -1], but mod would've calculated chunk [0, 0]. Gentlemen, we are in for a sweet addition Unfortunately in this screenshot the lighting is still wrong, I suppose the client needs to be told to use a different lighting engine for different dimensions. This is what Nether terrain would look if you took it to overworld: I have to say I'm amazed at how epic the nether generator is. Now it needs just a few tweaks at the floor and ceiling, some embellishments by soulsand / gravel, a fire here and there, with a few lava springs, and hey, we have the Nether
03-12-2013, 02:06 AM
Oh I actually thought modf was a modulo, but apparently it's not. I was slightly confused by why anyone would round numbers by using a modulo
03-12-2013, 02:07 AM
I have no idea either, didn't read the docs. I just expected that he was using it because it was kinda working
03-12-2013, 02:15 AM
i thought i had a pretty good changelog but then i saw the nether generator
03-12-2013, 02:37 AM
(03-12-2013, 01:56 AM)xoft Wrote: Gentlemen, we are in for a sweet addition Looks great
03-12-2013, 03:08 AM
Same place (more or less), better lighting
03-12-2013, 03:25 AM
I do have my in-game brightness turned all the way up, 'cause I can't see much otherwise, so maybe that's the reason. It's normal Nether lighting, the server cannot do much about it - it only tells the client whether the world is Nether or Overworld, and the client does all the lighting.
The code is in the SVN, activate it by setting CompositionGen to Nether. Note that the generator still observes HeightGen settings, so you can actually have a Nether with irregular "roof". But then it's possible there'll be opportunity to dig out, as the roof is not contiguous. Also, in world.ini set world dimension to -1 for Nether, 0 for Overworld and 1 for End (affects client lighting only).
03-12-2013, 03:47 AM
Ah yeah that explains a lot!
Btw i since i havent been posting much. I have to say i love the updates that you guys are doing! Storing drops etc in the save! minecarts! nether! possible new mobs ai! Can't wait for all is fully working haha. |
« Next Oldest | Next Newest »
|