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 sirdavid23 · Feb 25, 2012 at 03:08 AM · texturematerialanimatingeyes

Texure animation - Blinking eyes

Hello community. I´ve seen there are some tutorials that show how to animate a texture "slide" like a waterfall or river current. I´m trying to get to a form of control over the timming of a texture, to make a character´s "blink". Basically I´d have a facial texture with eyes open, and then another one with eyes closed. Since I know there would be implications with drawcalls I´d like to know if there´s a way to accomplish this effect? Also blinking lights by texture would be a plus (say a police car siren, flashing from green to red, etc...) Thanks.

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 CanOfColliders · Feb 26, 2012 at 10:51 PM

Thats one mesh for the full face?

You could manipulate the uvs, shifting them between the eyes open and closed (if both are on the same texture image) or swapping the textures. But for just eyes blinking (suppose thats just a tiny part of a big texture?) i think its a bit of overkill for something like this. If you want to try it though, take a look at the mesh class http://unity3d.com/support/documentation/ScriptReference/Mesh.html mesh.uv especially.

Another way is to put the eyes closed texture part on a couple of faces, floating just before the open eye on the face. Then reposition them in an animation, 2 frames one where its supposed to be, to make it look like the eyes are closed, the other hiding it (like move it into the head, or wherever it can't accidentally show up). Then you can cycle between "open" and "closed".

You see that a lot on lowpoly models (f.e. world of warcraft models do that from what i remember).

Alternatively, without animation, position something at the eye (empty) you can refer to, to reposition the faces.

Or of course, if you have enough geometry in the face, actually moving the verts to do a blink.

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 sirdavid23 · Jun 19, 2012 at 04:12 PM

I know you can script the uv´s position to make a waterfall. I don´t know if the same principle applies here. I´ve seen textures where the mesh has the uv structure set like the head in place, and so the "default" eye sockets, but then there´s a sequence on a side on the uv texture that makes for the blinking eyes animation. I am wondering how do they make the character blink with such uvs?

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

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Would a color based game run better than a texture based game? 2 Answers

Attaching scripts to meshes with multiple materials 2 Answers

Quality loss on texture 1 Answer

How do I get a material to tile dynamically? 1 Answer

Using Rpg maker XP Tiles (2D Tile System) 2 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