Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 DavidDebnar · Aug 30, 2011 at 09:02 AM · texturemateriallerpanimateanimated-texture

Animating from texture to texture

Hey guys! I had hard time figuring out the title... I think a vid will be easier to understand than my text. Basically what I want to do is change textures (and some other things) when a key is pressed. Changing texture is a cake but what I want is harder.

Quantum Conundrum Demo Vid

I kinda don't know which way to go, so I would really appreciate help :).

  • David

Comment
Add comment · Show 5
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 Waz · Aug 30, 2011 at 09:59 AM 0
Share

Ugh, okay that was painful to watch. The reviewer seemed as bored out of her $$anonymous$$d as I was watching. About a $$anonymous$$ute in.

avatar image DavidDebnar · Aug 30, 2011 at 10:07 AM 0
Share

So? I mean, did you get what kind of thing I want? If you want to suggest new title, just write it.. But I really don't know which way to go, and the reviewer is the creator itself.

avatar image Waz · Aug 30, 2011 at 10:14 AM 0
Share

Yes, I was writing my answer. Next time you post a video, including a timestamp would help.

avatar image Waz · Aug 30, 2011 at 10:18 AM 1
Share

Checked the byline, yes, she's the Creative Director. Seemed even more bored. That's the trouble with puzzle games - pretty boring after you've play tested the exact same scene 50 times.

avatar image DavidDebnar · Aug 30, 2011 at 11:46 AM 0
Share

Lol, yeah.. There is a timestamp, I added it just after post, but you were faster :D.

1 Reply

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

Answer by Waz · Aug 30, 2011 at 10:13 AM

Looked like an textured threshold wipe to me. One way to do that, you need to use a shader (just during the transition) that takes 3 textures: A, B, and a greyscale texture with a smooth ramp from black to white, plus a threshold control choosing whether to use the sample from A or B (if ramp is less than threshold, use A, else use B). Animate the threshold from 0 to 1, then switch the material back to a simple shader just using texture B.

The shader itself is pretty trivial to write if you just base it on one of the existing shaders, which will depend on your actual case. You might, for example, only change between two base (RGBA) images, or you might also need to swap normal maps, or whatever.

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 DavidDebnar · Aug 30, 2011 at 11:52 AM 0
Share

Gotcha.. Hmm.. Yeah so when the "C" is black show A, when white show B, and then I can animate C however I want..But what about global? Because I have a scene with many objects that are moving, and I want the whole scene to animate seamlessly... Like imagine a line co$$anonymous$$g from one side of scene to another leaving everything swapped... $$anonymous$$aybe painting on collision? I will think about it.. I'll write later when I figure something out.

avatar image DavidDebnar · Aug 31, 2011 at 08:25 AM 0
Share

Thanks for help :), but I figured it out bit differently...I don't have to make a big transition at all. What I do is I change a static var color, that is used by every object. And what the color does is it fills up every white space on scene, like specular stuff, or white textures and it looks quite better, I will post a link so you guys can see :)

avatar image Malygon · Nov 29, 2012 at 09:09 AM 0
Share

This textured threshold wipe sound exactly like something I need... however I'm a complete noob when it comes to shaders and have no idea how to achieve something like that. If you read this can you somehow help me with this problem?

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Why can't I animate texture offset? 1 Answer

Material.Lerp for transparent spec material with two different textures 2 Answers

Double Layer Material 0 Answers

Texture Discoloration Issue When Importing Into Unity 1 Answer

Adding a Material to Particle System 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