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 himatako · Apr 08, 2011 at 05:18 AM · imagemapflashdisplacementdistort

Displacement Map in Unity3D like in Flash?

Is it possible to do something like this in Unity3D?

http://www.andysaia.com/radicalpropositions/?p=120

I've looked into the documentation and found image effect, but that requires pro and it seems like it apply to the whole screen. I want it to apply to one image only, and I don't have pro version :/

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 DaveA · Apr 08, 2011 at 05:38 AM

Unity (and many others) calls them UV's. Yeah you can do that. You'd dig into the Mesh and get/modify/set the uv coordinates.

Comment
Add comment · Show 3 · 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 himatako · Apr 13, 2011 at 04:18 PM 0
Share

Do you have an example of how to do this? Do I need to write my own shader or something?

avatar image DaveA · Apr 13, 2011 at 07:27 PM 0
Share

No shader, see this page: http://unity3d.com/support/documentation/ScriptReference/$$anonymous$$esh-uv.html

You should read up on UV mapping (google it) to get a sense of what it's about. For a quick-and-dirty effect, you could set each x and y component of each uv datum to a random number between 0 and 1. This will likey be very messed up. Second try, make them a random offset from what they currently are, going a little positive or negative.

avatar image DaveA · Apr 13, 2011 at 07:28 PM 0
Share

If you start with a built-in Unity plane, which is a 10x10 grid, it should work ok. Each uv will be like 0, .11, .22, .33 etc up to 1.0 (note, not actually, but close). So if you were to offset each one by +/- .02 or so, it would probably look pretty much like what you see. You may want to not affect the uv's on the borders.

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

No one has followed this question yet.

Related Questions

How to use a displacement map to create a ripple effect on a texture? 0 Answers

How to automatically build a map? 2 Answers

How can i make terrains from 2d map images 0 Answers

How to insert a 2D image in the 2D mode that I can zoom in and out of? (Very very new to Unity) 0 Answers

Image suddenly flash on screen when triggered? 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