Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by DRProductions · Jan 20, 2014 at 02:11 AM · randomspawnspaceprocedural-generationgenerating

Procedural Generation

I have no clue where to start with procedural generation, to be specific I am making a simple space exploration game in which random planets/asteroids spawn. Does anyone have experience with procedural generation and could offer some tips/pointers as to what to do? Maybe point me towards some tutorials.

Thank You for any help you can give.

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image HappyMoo · Jan 20, 2014 at 02:16 AM 1
Share

What's the exact problem? Generating procedural meshes or generating procedural "maps" meaning universes, planet systems and planets?

avatar image DRProductions · Jan 20, 2014 at 05:54 AM 0
Share

There is no specific issue I was just asking around for some tips and pointers on how to do it.

2 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by xt-xylophone · Jan 20, 2014 at 02:22 AM

To get started on procedural generation start by making something that has only a few properties. My first one was random weapons. I defined a weapon as something that has:

  • Damage

  • Fire Rate

  • Bullet Spread

  • Bullet Speed

  • Clip Size

  • Reload Time

Then another script sat somewhere which randomly assigned these values between set ranges I wanted. Such as

 weapon.damage = Random.Range(10f, 50f);

I then extended it to different weapon types which had their own set of random ranges as well as a level modifier so that a gun can have a level which can affect how good it can get. Also finally replacing the set random in a range with one that gets a random number from a normal distribution.

So what Im getting at is make something that generates itself then just keep adding to it. Keep making it more complex but leave the generation as its own separate thing to how the entity itself works.

For instance a planet. Some properties could be:

  1. Size

  2. Gravity

  3. Weather

  4. Distance from its Star

Make a planet script which takes care of itself if it is given these 4 things. Another script which handles generating them. Then finally maybe a Solar System script which would hold all those generated planets as well as being procedurally generated itself, like number of planets etc.

Start small and keep adding.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image DRProductions · Jan 20, 2014 at 02:32 AM 0
Share

Thanks that is great advice!

avatar image
1

Answer by HappyMoo · Jan 20, 2014 at 02:33 AM

http://www.gamasutra.com/view/authors/322755/Sean_O'Neil.php

http://www.infiniverse-game.com/?p=articles.php

http://www.gamasutra.com/view/feature/131784/algorithms_for_an_infinite_universe.php?print=1

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

20 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Random generating 1 Answer

Quaternion.identity problem at random spawn 1 Answer

Spawn at random? 1 Answer

How to set up a No Mans Sky type of infinite flight ? 1 Answer

how do i make an object spawn randomly in an area? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges