How can i make an automatic world generator?
I know this question has been asked a lot but im still not completely sure on how to do it. Iv been reading and i know i have to make chunks and Instantiate the chunks. But do i have to hand build all...
View ArticleTerrain Chunk loading
![alt text][1] ---------- I am working on a project that create mesh chunks of terrain generated with procedural noise, and i tried a couple of ways which lead to, chunks loading in the distance before...
View ArticleVoxel engine physics
Hello all, I'm new to unity and currently building a voxel engine. I now have a chunk that has a mesh. My question is: Is it efficient to turn on built in physics stuff of unity on on the chunk mesh...
View ArticleSpheric World Generation c#
Hello, I'm trying to make an algorithm to generate a Spherical World at random (a different one each time). I have a plan but I have no idea how to put it into a script :(. [1]So the plan is I start...
View ArticleRandom Heightmap decals
I want to add a bit of detail to chunk heightmaps on a terrain I'm working on, but I don't have a clue how I can distribute a decal texture to random positions on my heigtmap. I use a perlin noise...
View ArticleHow to destroy one of two identical triggers?
In my game I'm making a chunk generation script with trigger boxes acting as 10x10 chunks. My primary issue is that due to my setup, when I go back through an area I've already been through, then it...
View ArticleAccess a multidimensional array inside an array
Hey all, I am working on a voxel engine and I have an array of chunks, which is actually just a 4dimensional array of blocks. The first index in the array is a chunk index and the rest are the x, y and...
View Article"Object reference not set to instance of object" when using...
Not entirely sure what I've done wrong here. I'm following a tutorial on how to generate voxel landscapes and I've been modifying it here and there so that I can alter settings on the fly whilst...
View ArticleGenerating in chunks
I have this voxel terrain code written in c#, I was wondering if it would be possible to generate them in chunks to decrease the amount of lag. Here is the code : using UnityEngine; using...
View ArticleNeed to check for presence of a prefab instance at a particular location.
I'm trying to have a top-down 2D map load in chunks, sort of similar to Minecraft. I want to always have the chunk the player is in loaded, along with all eight adjacent chunks. So, once it's...
View ArticleCorrecting normals along chunk edges
I have chunked terrain that I pre-process within Blender (via python scripts), leaving only the tasks that absolutely must happen at runtime to Unity. I start off with a cube consisting of 16x16x6...
View ArticleLoading scene chunks when they need to be displayed
Hi, I want to build a side-scrolling (jump and run) game that has an infinite level. Therefore I have to split the level up into smaller chunks. My problem is to find out when a new chunk has to be...
View ArticleWTH does this error mean ? and what exactly is 'false' ?
Ok, so I made a new game/project to try and sort out another issue I was having (thought would be easier with the bare minimum components to resolve it. Anyway.. did that, created a terrain, centred it...
View Articlehow to create chunks in voxel terrain generation
Hello everyone, i am trying to make a multiplayer adventure game and want to have procedural terrain generation. The script I created for this is capable to create a single chunk, the broblem comes...
View ArticleLevel Chunk for infinte 2D runner
Currently I have an infinite runner that uses object pooling to spawn floors with no gaps, obstacles and platforms that are in the air and can be jumped onto. The floor is spawning at a constant rate....
View ArticleGame optimisation using SetActive partially ineffective.
I am building a cave exploration game (Which is supposed to be infinite on all 3 axis.) that uses a modified version of perlin-noise. I thought I had the optimisation sussed as it runs like butter for...
View ArticleHow to create chunks
In regards in marching cubes. I get that chunks are sections of the voxel array but do I create chunks and make the mesh of each chunk and make it seamless do I still put all the voxels into the array...
View ArticleUnity 5 - Convert sprites into singular sprite.
Hi all, First of all I would like to mention that this code will be run in an editor script so that when a button is pressed in the editor a group of sprites will be converted into one larger...
View Articlecube based enging
hey everyone this is my first time to post a question on the unity3d ask forum :D anyway i've been working on a cubical based engine and the chunks seems to take long to load when they are more than...
View ArticleChange Mat/Texture of Procedural Chunk Combind Meshes
Many procedural mesh systems use game objects or dont combine meshes when using chunks. My system uses Chunk loads and combines the smaller meshes into one bigger one. There are also no game objects....
View Article