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 /
This question was closed Oct 22, 2013 at 09:30 PM by meat5000 for the following reason:

The question is answered, right answer was accepted

avatar image
1
Question by jack 1 · May 28, 2010 at 01:44 PM · backgroundskybox

Scene Background

How does one go about adding a background, for example I built a starship and wish to put it in front of a large picture of stars.

Comment
Add comment · Show 1
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 Ricardo · May 28, 2010 at 09:17 PM 1
Share

I've edited the question to remove the AI section, as that has been amply answered on Jack's separate question: http://answers.unity3d.com/questions/11140/creature-behavior

2 Replies

  • Sort: 
avatar image
1
Best Answer

Answer by spinaljack · May 28, 2010 at 01:56 PM

You should post one question at a time to make referencing easier.

For back grounds you can either use a plane with a texture or better use a sky box. You can see an example sky box in the standard assets.

AI is a huge topic and cannot be covered in a single post, try narrowing down which area of AI you're asking about e.g. pathfinding, behavior, decision making etc.

At the most basic level you can simply give the animals a random target to walk towards and then give them a new target when they reach it.

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 jack 1 · May 28, 2010 at 03:54 PM 0
Share

I have now, if you would like to answer it.

avatar image
11

Answer by Puka · Jan 27, 2011 at 07:48 AM

You should create 2 cameras. Name the first one "Main camera", name the second one "Background camera".

  1. Create a GUI texture (Gameobject->create other->GUITextture), drag your picture from Project to Texture in Inspector panel. Create a new layer (example: star) and assign it to that GUI texture.
  2. Choose Background camera in Hierarchy. In Inspector panel, set Clear flags to Solid color, Culling Mask -> Nothing and then Culling Mask -> Star (layer)
  3. Change depth to -1.
  4. Choose Main camera.
  5. Set Clear flags to Depth only.
  6. Culling Mask -> Uncheck "star" layer.
  7. Change Depth to 1.

Remember to remove Audio listener from the background camera

Comment
Add comment · Show 4 · 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 M_Plot · Jul 05, 2013 at 02:13 PM 0
Share

Wonderful! thank you very much! :)

avatar image wijesijp · Jul 22, 2013 at 05:31 AM 0
Share

Thanks for the explanation

avatar image Ev · Oct 22, 2013 at 09:27 PM 0
Share

@Puka Please give short info why each step is done.

avatar image Foteini · Mar 18, 2014 at 10:34 PM 0
Share

This is great, thank you. I agree that it would be very beneficial to know why each step is done! If someone could explain, that would be awesome. :)

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

How do I use a 2D image as a background in a 3D game? 0 Answers

Transparent shader in background queue 2 Answers

hey a quick question 2 Answers

.avi or .png as background or skybox 1 Answer

Why does the bottom half of the image show a shadow like the horizon when the background type is None and there is no object? 0 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