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 jpthek9 · Jan 17, 2015 at 01:46 AM · texturegridrtsbuildingsselectiongrid

Grid on Ship

I want a grid to cover my ship only and nothing else. Currently I'm using a plane for the textures (1x1 grid blocks tiled 40x40) but I can use a terrain, quad, or whatever is needed to make this work. Below is a visual description of what I need. Does anyone know a clean solution? Thanks many for the help. alt text

Comment
Add comment · Show 7
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 Superrodan · Jan 17, 2015 at 02:33 AM 0
Share

You asked this earlier and I wasn't sure it would work for what you needed because it seems you want to turn parts of the grid on and off based on where you can build or not. Is that still the case?

EDIT: The reason I ask is because if you just need a grid on a ship then this tutorial can $$anonymous$$ch you how to use projectors. The only issue is that the grid will be on the entire ship whenever you have the projector on. https://www.youtube.com/watch?v=44Nad3QwuoA

avatar image jpthek9 · Jan 17, 2015 at 02:35 AM 0
Share

I want to initialize the grid and not touch it again. You suggested using projectors but I'm still not sure how I can do this with a projector. $$anonymous$$y method of deter$$anonymous$$ing where to place objects is irrelevant. I just want to convert a position in local space to where I want the grid to be rendered.

avatar image Superrodan · Jan 17, 2015 at 03:50 AM 1
Share

Basically what you would want to do is import a blob shadow projector into the scene and give it your grid texture. Then tell the projector to ignore the default layer. Create a new layer from the dropdown menu in the upper right called "Spaceship" or something along those lines and apply that to your spaceship's gameobject (and if it asks, all of the spaceship's children too).

I mocked this up real quick. The box on the right is a normal object and the box on the left is my "spaceship" object. I can move the projector around to make the grid appear differently as well. alt text

grid.png (144.3 kB)
avatar image jpthek9 · Jan 17, 2015 at 04:02 AM 0
Share

O$$anonymous$$G THAN$$anonymous$$S! I'm going to try it and keep you in touch with how it goes.

avatar image jpthek9 · Jan 17, 2015 at 04:17 AM 0
Share

One problem I had with this is that the ship can have some variation in height. How could I project within the outline of the ship not factoring in the ship's curves? Is there a way I can project onto a plane shaped as the ship?

Do I have to instantiate a quad on every position a grid block is located?

Show more comments

1 Reply

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

Answer by jpthek9 · Jan 17, 2015 at 10:24 PM

Instantiate a quad on every position from a raycast.

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

26 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 avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Creating a 68x68 grid of trigger cubes 2 Answers

to attach a Blood gauge to enemies 2 Answers

How to render a quad without gameobject? 2 Answers

RTS Movement and grid questions 0 Answers

making a grid of buttons each with different textures 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