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
0
Question by Nelia-Xurina · Apr 24, 2013 at 03:23 PM · meshrealtimeroadsdynamics

"Draw" a mesh on a Terrain (Like SimCity 5 Street System)

Hello everybody.

So i try to make a simcity clon for myself and i'm stuck at the start smiles

I just don't get an idea how to build a street or somthing else with the mouse on a terrain.

My idea was that i create a mesh at left mouse button down event and draw in realtime the mesh on a terrain while the mouse button is pressed.

so is this possible? when yes, how? what is when i have 2 streets? how can i connect them ? it is to difficult?

Thanks for answers

Comment
Add comment
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

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by Itinerant · Apr 24, 2013 at 06:54 PM

It is possible, you can check out EasyRoads3D for an implementation of creating a mesh road, though note that this is done in the editor, rather than at runtime. As for how exactly, I'd suggest reading through their code and how they do it. It's not going to be super easy, though. If this is your first project in Unity, you may want to begin with something simpler.

Comment
Add comment · Show 2 · 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 Nelia-Xurina · Apr 24, 2013 at 10:36 PM 0
Share

I don't want to pay for this idea. And i don't think that the EasyRoad Projekt is a readable code.

avatar image DSebJ · Apr 24, 2013 at 11:40 PM 0
Share

This looks pretty cool. If I build a racing game I am certainly going to use this.

avatar image
0

Answer by DSebJ · Apr 24, 2013 at 11:39 PM

Use a grid system & start with a flat surface. Select which squares in the grid are going to be connected and then turn them in to a road.

I've not played Sim City for a long time, but the original one was simplified by not worrying about a height map for the actual city construction.

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

13 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

Related Questions

Filling the space between bezier curves with a texture, 1 Answer

Finding center and/or lanes of road mesh 0 Answers

detect if two objects in a list intersect in editor. 0 Answers

Realtime lighting with generated mesh causes light bleed at seams / edges (minecraft clone) 2 Answers

Change texture of individual triangle on a mesh? 3 Answers


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