Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 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
0
Question by Chaosgod_Esper · Oct 31, 2012 at 10:21 AM · texturematerialuvtileoffset

Using Rpg maker XP Tiles (2D Tile System)

Hi there :)

I'm developing a greater RmXP Game. But i want to convert it completely to Unity (cause of a better performance and features).

My Question now: the rpg maker uses such Graphics as tilesets: >>Rpg Maker XP Tileset - Forest Town

Important to know: each tile has a fixed size of 32x32 pixels. Each tileset has a fixesd width of 8 tiles, but can be "endless" long!

What i'm asking for is a way, to get one specific tilecrom a tileset, and use it as texture on a quad. Is that possible? If yes, how?

i tried it by creating a plane tile (2 polygons), and set the UV in Cinema 4D to cover just one tile of a tileset. In Unity i need to move the uv to change tiles at runtime - like habing hundrets of 32x32 textures on one image file. How is that working?

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
0

Answer by Jessespike · Oct 31, 2012 at 11:15 AM

You're basically going to need a material for each tile, and the texture will be the same tileset/texture. The materials have Tiling offsets/scale for UV that you can adjust. It is possible to create a map with quads and a single atlas/"tileset", but without the programming experience, it would be really tough. Probably be better to consider an already existing Tile-base system like Unitile or something. I found this on the asset store, I never tried it, but it shows that there are options available.

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

Answer by Chaosgod_Esper · Oct 31, 2012 at 12:51 PM

i can't use unitile, cause i need to use the rmxp tilesets as they are (i write a map exporter->importer to use rmxp maps in unity).

the problem with mainTextureOffset is the factor system (instead of a pixelbase one)

my largest tileset is 2886 tiles high. means the Y factor for one tile can be 0.0003465. It would be possible but now take a tileset with 1500 as height.. the factor will end with a period of 3... so it is impossible to use pixel perfect tiles - there will always be a pixel of neghtbour tiles visible.. and that's my actual problem..

i could use 'double float' .. but at the end there always be tiles that are not fitting perfectly.. aren't they?

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

10 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

Related Questions

change uv of a plane so it takes a portion of texture 1 Answer

Assigning UV Map to model at runtime 0 Answers

How can I create a UV move tool? 1 Answer

Getting rid of Scrolling Uv Jitters 0 Answers

Identical material with different textures 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