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 Karsnen_2 · May 01, 2013 at 08:02 PM · c#mobilecoroutine

What is way to flash the screen WITHOUT using a Texture?

I was looking to flash the screen when a player takes a hit and I would like to flash only without using a Texture.

PRIMARY REASON : If I use the texture then I have to reduce the alpha value on that texture which would then result in fillrate. As my target is mobile, I quietly want to do it without using a texture.

Your help is much appreicated.

Comment
Add comment · Show 4
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 KiraSensei · May 01, 2013 at 08:13 PM 0
Share

I don't understand why you don't want to use a texture. What is the problem if the alpha is at 0 ?

avatar image Karsnen_2 · May 01, 2013 at 11:09 PM 0
Share

Well yeah. With more transparency it increases the fillrate which might clog on mobile devices.

avatar image Fattie · May 02, 2013 at 05:29 AM 1
Share

use a texture. there is no performance problem.

it's how every "flash" you've ever seen on every video game you've ever player on every iPhone and iPad, is done. it's no big deal.

avatar image Karsnen_2 · May 02, 2013 at 04:41 PM 0
Share

Roger that fattie. I am very calculative, damm it. :)

2 Replies

· Add your reply
  • Sort: 
avatar image
3

Answer by Loius · May 01, 2013 at 11:42 PM

Ramp the ambient lighting up from {normal} to pure white back to {normal} using RenderSettings.ambientLight

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 Fattie · May 02, 2013 at 05:29 AM 0
Share

slick .. but you probably agree he should just use a damn texture :)

avatar image Loius · May 02, 2013 at 07:28 AM 0
Share

well, i've been on the receiving end of terribly (i don't know how) implemented fades. usually they're in Flash, though. i have no idea but there's totally some way to mess it up x)

avatar image
2

Answer by Fornoreason1000 · May 01, 2013 at 08:11 PM

you can probably use an image effect to do this... since other than that any pixel you place on the screen is essentially a texture. but for Free users Textures is probably the only thing you can do.

http://docs.unity3d.com/Documentation/Components/script-GrayscaleEffect.html

this might be a start as far as image effects go

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 Karsnen_2 · May 01, 2013 at 11:10 PM 0
Share

FOrnoreason : Would recommend grayscale image effect for mobile? Android and iOS?

avatar image Fornoreason1000 · May 02, 2013 at 05:13 AM 1
Share

not sure about IOS, but it didn't impact the galaxy i tested ages ago. Alternatively You can create a new directional light in the scene and give it a massive intensity boost and set the color to pure white and activate it to make the flash that way. this is more suited for Lightning effect though since you can still see parts of the scene such as the skybox.

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

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

Related Questions

Multiple Cars not working 1 Answer

Player lives script help 1 Answer

Trigger GUI with a key when colliding (C#)? 1 Answer

NullReferenceException problem 2 Answers

Conversion of a static class to struct? 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