Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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 dhargan · Dec 16, 2012 at 07:54 AM · textureimporttilemapuvuv mapping

Texturing troble on imported, tile based map.

I'm trying to develop a rogue-like game in unity. Because of this, I need a tile-based map.

Thanks to this tutorial, I've created a 9x9 square tiled map easily.
http://classes.design.ucla.edu/Winter11/157B/wp-content/uploads/2011/01/BoardGameTutorialPart31.pdf

For "too long, didn't read" guys, I basically did those steps;

  1. I draw a 2D 9x9 square tile based map with Adobe Illustrator and saved it as Illustrator 8 file.

  2. I imported that AI file to Autodesk Maya and used Mesh->Seperate tool on it. After that, I unparented all of the tiles and ta-da I've created a 3D tile based map.

  3. I exported .FBX file to my unity projects Assets folder

  4. I draged .FBX file from my Project folder and dropped to my scene. Done.

Now, my problem is, I want to apply a texture on a single tile. Nevertheless, whenever I try to apply a texture to any tile, it behaves like I'm only taking 1 / 81 of the texture (remember, it's a 9x9 map) and applied only that part of the texture to the related tile.

I'm uploading a screenshot for a better understanding.

screenshot


I've googled my problem and according to my findings, it's happening because I didn't do any UV Mapping. Well, the thing is I have no idea how to do it (this is going to be my first game and I'm a super-duper newbie to 3D modeling). Only examples on the web are about general UV Mapping (how to map a cube or some generic shapes)I have no idea about how to do UV mapping to a tile based map with Maya.

Actually, even I don't know it's an UV mapping problem or not. I'm so stucked. Please help me.

Thanks in advance!

8cfa9712bb8ce13.png (173.6 kB)
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

1 Reply

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

Answer by clunk47 · Dec 16, 2012 at 07:19 PM

Try setting Wrap Mode to Clamp, and adjusting Tile and Offset properties of the material for each tile to get it sized and centered.

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 dhargan · Dec 17, 2012 at 01:31 AM 1
Share

you sir, are my hero. setting x= 9 and y= 9 works.

thank you very much!!!

avatar image clunk47 · Dec 17, 2012 at 01:41 AM 2
Share

Happy I could help! I've voted up your question for it being a good question, which will give you some karma points :)

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

11 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

Related Questions

Assigning UV Map to model at runtime 0 Answers

UV Mapping for 2D Meshes with 3 Vertices Only 1 Answer

good program for uv texturing 2 Answers

Export UV Map from Cinema 4d to Unity3D 2 Answers

UV tiling to fill face? 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