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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Is it possible to procedurally generate maps?

I guess this question is many in one, but all are related:

Is it possible to procedurally generate a map? I know the logic behind doing this in c++, and I'm sure with enough knowledge of blueprints this can be done in the editor.

The reason I ask is how would it work to use Lightmass with it? To my knowledge Lightmass is used to bake lighting into your scene while building your map in the unreal editor (please correct me if I'm wrong), how would it do this while in game, as in a player starts a game, the maps are generated, the player starts a 'new game+' for example and the maps are regenerated for replay-ability? How would the lighting work? Would it only use dynamic lights?

Would you even be able to use static lights in this case?

I know that is a lot of questions at once, but I just want to make sure that this is the right engine to use for this, before I invest a lot of time creating those procedures and then find out I don't have good functionality because of engine limitations. (I realize we have access to the source on git hub with a subscription, but I would like to avoid modifying the engine as much as possible, as strange as that sounds).

Thank you all for your time!

Product Version: Not Selected
more ▼

asked Jul 24 '14 at 03:26 AM in C++ Programming

avatar image

53 4 5 8

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

1 answer: sort voted first

Yes! Procedural generation is possible, and not too complicated. I wouldn't suggest doing it in blueprints though, as any more complex generator 10x faster C++ is always the better option.

I think there's a way to bake lighting through code, and if there isn't, it shouldn't bee too difficult to add in (just add another input for the baking), but that's going to mean you must dive into the source code. ...but mostly likely there is a command, and visual studio is often good at suggesting what you mean. Just throw in some words that would make sense to you.

Hope this helps, -DoctorPC

more ▼

answered Jul 24 '14 at 06:44 AM

avatar image

398 44 39 51

avatar image AM Jul 24 '14 at 11:58 AM

If you would be able to bake lighting in code, would I just generate a lightmass importance volume in the code around the generated map? I would think the load time (when the map is being generated through game play and it would have to dp the bake process at that time too) would be very long wouldn't it?

avatar image DoctorPC Jul 24 '14 at 12:40 PM

yep, load time would be very long indeed, which is why you may want to stick to dynamic lighting altogether. You loose some precicion, but gain more freedom to do things like destructable terrain :)

avatar image AM Jul 24 '14 at 01:23 PM

So all of my levels would have no static lighting? Everything would be left for dynamic light(s) correct?

avatar image DoctorPC Jul 24 '14 at 01:56 PM

well, atleast the generated levels, unless you add some odd cpde that contructs the level of textured pieces (=prebaked lighting)

avatar image AM Jul 24 '14 at 01:59 PM

ok, I think that's enough to get me started, thank you for taking the time to answer my questions!

(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