Hook Question
#28
(11-22-2013, 09:54 PM)xoft Wrote: 2. There's still not much saved - if half of the blocks are mossy and the other half cobble, there's still 32k potentially growable blocks to remember.

Nah, I mean do it the same way Minecraft optimizes the use of triangles in rendering the chunks, only make triangles for the blocks that can potentially be visible, this means the border between outside and inside of the terrain.
Just store the moss blocks that are actually capable of growing to other blocks around them.

Code:
▢ = cobble
▣ = mossy
▢▢▢▢▢▢▢
▢▢▣▣▣▢▢
▢▣▣▣▣▣▢
▢▣▣▣▣▣▢
▢▣▣▣▣▣▢
▢▢▢▢▢▢▢

Then you would only store these blocks because the blocks in the center cannot grow more.
Code:
▢ = ignored
▣ = stored
▢▢▢▢▢▢▢
▢▢▣▣▣▢▢
▢▣▢▢▢▣▢
▢▣▢▢▢▣▢
▢▣▣▣▣▣▢
▢▢▢▢▢▢▢

Now I don't know how many mossy cobblestone blocks actually exist in a chunk normally and the way it should grow. You could also limit the growth of mossy blocks to only blocks that are exposed to air. That should greatly limit the number of blocks you need to store.
Reply
Thanks given by:


Messages In This Thread
Hook Question - by bearbin - 12-29-2012, 04:04 AM
RE: Hook Question - by xoft - 12-29-2012, 06:14 AM
RE: Hook Question - by bearbin - 12-29-2012, 06:53 AM
RE: Hook Question - by NiLSPACE - 08-08-2013, 04:14 AM
RE: Hook Question - by xoft - 08-08-2013, 05:54 AM
RE: Hook Question - by bearbin - 08-08-2013, 05:56 AM
RE: Hook Question - by xoft - 08-08-2013, 06:24 AM
RE: Hook Question - by NiLSPACE - 08-08-2013, 05:57 AM
RE: Hook Question - by bearbin - 08-08-2013, 05:58 AM
RE: Hook Question - by NiLSPACE - 08-08-2013, 08:08 PM
RE: Hook Question - by xoft - 08-08-2013, 08:43 PM
RE: Hook Question - by NiLSPACE - 08-08-2013, 08:44 PM
RE: Hook Question - by NiLSPACE - 08-08-2013, 11:43 PM
RE: Hook Question - by xoft - 08-09-2013, 12:21 AM
RE: Hook Question - by NiLSPACE - 08-09-2013, 08:08 PM
RE: Hook Question - by xoft - 08-10-2013, 04:25 AM
RE: Hook Question - by xoft - 08-11-2013, 08:26 PM
RE: Hook Question - by NiLSPACE - 11-22-2013, 06:29 AM
RE: Hook Question - by xoft - 11-22-2013, 07:18 AM
RE: Hook Question - by FakeTruth - 11-22-2013, 08:14 AM
RE: Hook Question - by xoft - 11-22-2013, 03:51 PM
RE: Hook Question - by FakeTruth - 11-22-2013, 09:47 PM
RE: Hook Question - by NiLSPACE - 11-22-2013, 07:38 AM
RE: Hook Question - by xoft - 11-22-2013, 07:52 AM
RE: Hook Question - by xoft - 11-22-2013, 09:54 PM
RE: Hook Question - by FakeTruth - 11-23-2013, 06:51 AM
RE: Hook Question - by tigerw - 11-23-2013, 06:33 AM
RE: Hook Question - by NiLSPACE - 11-23-2013, 06:44 AM
RE: Hook Question - by tigerw - 11-23-2013, 07:12 AM
RE: Hook Question - by NiLSPACE - 11-23-2013, 07:17 AM
RE: Hook Question - by xoft - 11-23-2013, 07:19 AM
RE: Hook Question - by FakeTruth - 11-23-2013, 07:37 AM
RE: Hook Question - by tonibm19 - 12-31-2013, 05:11 AM
RE: Hook Question - by NiLSPACE - 12-31-2013, 05:20 AM
RE: Hook Question - by tonibm19 - 12-31-2013, 06:53 AM
RE: Hook Question - by xoft - 12-31-2013, 07:04 AM
RE: Hook Question - by NiLSPACE - 12-31-2013, 07:12 AM
RE: Hook Question - by NiLSPACE - 01-02-2014, 12:35 AM
RE: Hook Question - by tonibm19 - 02-03-2014, 03:28 AM
RE: Hook Question - by xoft - 02-03-2014, 05:16 AM
RE: Hook Question - by tonibm19 - 02-03-2014, 05:19 AM
RE: Hook Question - by xoft - 02-03-2014, 07:11 AM
RE: Hook Question - by NiLSPACE - 08-17-2014, 09:12 PM
RE: Hook Question - by ThuGie - 08-17-2014, 10:24 PM
RE: Hook Question - by xoft - 08-18-2014, 06:14 AM
RE: Hook Question - by NiLSPACE - 08-18-2014, 06:20 AM
RE: Hook Question - by xoft - 08-18-2014, 06:30 AM
RE: Hook Question - by NiLSPACE - 08-18-2014, 06:32 AM
RE: Hook Question - by NiLSPACE - 12-04-2014, 04:36 AM
RE: Hook Question - by xoft - 12-04-2014, 06:34 PM



Users browsing this thread: 13 Guest(s)