Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How to generate a procedural /voxel world

I have a question concerning the genration procedural voxel world. I currently have generated a world with the noise of a simplex in 2D ( axis x ; y ) and I used statics mesh instanced for my cubes, which measures 25 cm, the problems is that I can not generate more than 650 k cube before bug... exceeded 650k I bug more and more, that is what I could used as a component to generated a lot more cube without bug ? I tried the procedural meshes but I bug 50 times more x) thank you for your help !

Kind Regards Upeaval.

Product Version: UE 4.11
more ▼

asked Apr 28 '16 at 10:12 AM in Blueprint Scripting

avatar image

8 2 3 7

(comments are locked)
10|2000 characters needed characters left

3 answers: sort voted first

I think you want to make game like minecraft? But even game like minecraft, cubes are just spawn when IT NEED TO BE SEEN It means you can store the voxel data in memmory,but just spawn cubes at the voxel location which can be seen by player,such as these:

  1. The cubes is on surface

  2. The cubes is close to player

After player change his location,or player destroy some cubes, new cubes should be spawn at the new surface

more ▼

answered Apr 28 '16 at 11:23 AM

avatar image

94 4 4 8

avatar image Upeaval Apr 28 '16 at 12:04 PM

you mean that even the cubes that are behind the player must be disappear ?

avatar image Upeaval Apr 28 '16 at 12:06 PM

i make a chunk and i use a set max draw distance in my blueprint but the distance is not enough large, it is for ca that I'm looking for something other than the instanced static mesh, but if you want me to said that even the block to the rear of the camera should disappear, I'll try that

avatar image GodOfPen Apr 29 '16 at 01:23 AM

Yes, I think you have to manage your cubes to make more cubes not instanced. There must be many cubes in 650k cubes that not need to instance at one frame. But spawn/destroy one instance of instanced mesh is slow depends on the number of meshes.So I think you should try UProceduralMeshComponent to directly create cubes with vertex.

avatar image Upeaval Apr 29 '16 at 10:24 AM

I can do it from the blueprint but I bug from 625 cube x)

(comments are locked)
10|2000 characters needed characters left

I know I'm working on that now

alt text

alt text

I want to make a game like minecraft but with cubes up to 8 times smaller^^ it is a problem haha

776 875 cube 1.jpg (288.2 kB)
776 875 cube.jpg (158.4 kB)
more ▼

answered Apr 28 '16 at 11:56 AM

avatar image

8 2 3 7

avatar image GodOfPen Apr 28 '16 at 12:48 PM

if you want to make your world more smoothly, you should using marching cube algorithm instead of using more cubes

avatar image Upeaval Apr 28 '16 at 01:22 PM

O no i don't want to smooth my world i like the cube :p

avatar image Upeaval Apr 28 '16 at 01:27 PM

and in d'ont work to C++, but in blueprint ;)

(comments are locked)
10|2000 characters needed characters left

I would work on something that would save block data to memory, and (un) load blocks depending on position relative to the player. Or (un) load them depending on if they can be seen. But if you do the former, then I would recommend setting a mist or fog around the player and also unload blocks outside of a certain radius.

more ▼

answered Apr 29 '16 at 02:34 AM

avatar image

IO Labs
33 1 3

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question