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 make Procedural Terrain

I have worked one week on trying to figure out how to make a world like Minecraft or Cube World (without trees and sought sings).

But I couldn’t figure out how to do it. May be someone know a good tutoral, website or a open source project which I can look at and learn from it. If you can help me in an other way I would be really happy to.

I would really appreciate any help. Thanks a lot Tobias

Product Version: UE 4.13
more ▼

asked Nov 03 '16 at 04:52 PM in C++ Programming

avatar image

120 13 15 23

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

First of all, get your focus into following keywords - Voxels (like pixels, but in volume - exact cubes from Minecraft you are talking about), octree and k-d tree (containers for large amounts of points which accelerates speed of access for custom locations). Also, because Minecraft were very successful project, it spawned a lot of similar projects, many of them in open source - you might want read this page with example open source GitHub pages.

As far as I understand, Minecraft doesn't really creates some revealing ideas, it works with chunks of blocks (if I remember correctly 8x8x256 blocks). You can guess that if we have 256 types of blocks, we can really fit this big chunk in relatively small space. If we use some compressing methods, we can fit whole map on small space.

More challenging is figuring out how to draw some Minecraft level with polygons - if you want to start from pure C++ OpenGL, or, like originally Notch, from Java (I don't know which java-graphic environment he did use). The most obvious, lazy method would be to just call all cubes with custom textures in some distance. From this we could try to optimize methods, for example trying to not draw cubes which are actually not visible. And so on, and so on.

Some examples are on tutorial here.

And, of course, I wouldn't be myself if I wouldn't include one of my favourite videos from UE4: here.

more ▼

answered Nov 04 '16 at 01:00 AM

avatar image

176 17 20 26

avatar image 143258 Nov 04 '16 at 09:23 AM

Tanks a lot I think this will help me : )

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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