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
1
Question by Goody! · Jun 13, 2010 at 10:05 PM · textureiphonetransparency

Why are the scrolling textures on a linrenderer bright green?

Updated and bounty added. See recent comments and updated answer below.

I am using a line renderer with a transparent texture on it. The texture has a uv scroll to move it constantly left to right thustly:

var offset = Time.time * scrollSpeed;
renderer.material.mainTextureOffset = Vector2 (-offset%1,1);

I'm using the iphone/transparent/vertex color shader which works fine on everything else but on this sucker.

The textures are psd's, created over a transparent background in pshop.

Please help, this is driving me knuts!

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 Digitalos · Jun 14, 2010 at 04:28 AM 0
Share

I've not used iPhone before, but I think this needs more information anyhow. What is the tint color of the material used, what is your scene lighting color, perhaps some screenshots of your setup.

avatar image Goody! · Nov 09, 2010 at 07:15 PM 0
Share

There is no lighting in the scene. Am now using unity3 iPhone basic. Am using set color through script. Have tried with all shaders I can find and the only ones that work are ones that take light. Have submitted a bug but don't expect much from unity as they haven't ever responded. I don't want to add lights to save the overhead cost. The texture is gray with transparency. Have tried with other textures as well but get same result. In inspector view the icon showing what it should look like is correct.

avatar image Goody! · Nov 09, 2010 at 07:38 PM 0
Share

And the transparency setting works, just not the color.

avatar image Matthew A · Nov 11, 2010 at 07:56 PM 0
Share

How are you setting the color in your script? Also, screenshots would help.

1 Reply

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

Answer by Goody! · Jul 08, 2010 at 09:22 PM

Turns out that switching the shader used from: iphone/transparen/vertex color, to: transparent/vertex lit took care of it. Don't know why though.

*Opened the question back up. If I use a shader that doesn't need lights the texture will always be yellow or green. I don't want to incur the cost of unneeded lights. Anyone got an answer for this long overdue question?

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 Goody! · Jul 29, 2010 at 10:46 PM 3
Share

Whoever downvoted me without providing an explanation eats boogers.

avatar image Wolfram · Nov 12, 2010 at 10:22 AM 0
Share

If you use the "Emissive Color" ins$$anonymous$$d of the Diffuse and Specular Colors in any of the Vertex Lit shaders, you essentially have a material that does not need a light source and will be uniformly "lit" from all sides. (Note, 128/128/128 is white, so divide your color values by two. Also, the transparency is still set via the Diffuse Color, but set the RGB values of that color to black.

avatar image Goody! · Nov 14, 2010 at 11:32 PM 0
Share

Yeah, that works as a workaround. Thanks! A simple thing I didn't think of. :)

Can you post your comment as an answer so I can award you the bounty please.

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

Render part of object with alpha of other object 1 Answer

Quick GUI Texture Question 0 Answers

Transparency problems with a mesh 2 Answers

HUGE Texture problems on iPhone when using animated UVs 2 Answers

Large memory footprint increase when assigning a GUITexture from a WWW Object on iPad 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