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 bpears · Apr 15, 2013 at 05:57 AM · shaderperformancetransparentproadvanced

Transparent Shader performance, intermediate-advanced question?

So, I was thinking. For buildings, could you just use regular straight colors for brick, and apply (tiled to liking) a transparent diffuse, and normal map to shade and pop out detail, so that, for all buildings you really only need a few textures total?

Not sure if this would be worthwhile performance-wise or possible, as I havent toyed around with it yet... too busy right now :(

Anyway, if this works, it would be a cool trick.

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 Fattie · Apr 15, 2013 at 06:22 AM 1
Share

is it possible that you just mean:

use one, perhaps large, texture for the bump -- and use that repeatedly -- and then use various textures for the brick paint?

so your point is (B) "ins$$anonymous$$d of having ten textures and ten bumps, just have ten textures and one bump" ..?

or are you further saying (C) "ins$$anonymous$$d of having ten textures and ten bumps, just have ten textures and one VERY SI$$anonymous$$PLE (eg tiny plain color) bump" ..?

if so, I think B is pretty common, yeah. with C, I$$anonymous$$O it would look kind of cheap I think (but sometimes that's great)

avatar image bpears · Apr 15, 2013 at 06:32 AM 0
Share

$$anonymous$$inda, I'm not sure if were thinking the same or not, but at least close. What I mean is, use the regular plain system colors(not texture of any kind) for the color of the brick, then add a small transparent texture that just has noise and brick shape shade, to darken around it, and seamlessly tile that, and THEN(lol), add a small normal map(created from that transparent texture), that pops out the bricks and the noise in the brick( or rather pops in). So all textures would be small, but tiling, and so you could scale these bricks and maybe use different variety transparent and normal map just to change things up. Whew! That was a lot.

avatar image Fattie · Apr 15, 2013 at 06:41 AM 1
Share

Really, I am not a shader writer, but all that you describe sounds "totally normal, and exactly what everyone does all the time" ! :)

I think it's a case of you have cleverly "invented" a usual process -- so you should feel good about being so smart :)

note that what yous ay about colorising it is just what almost any shader does where there's a variable you can change the color (most of the standard shaders from Unity have this, just click in the inspector, all your'e doing is changing a "color" variable in the guts of the shader)

avatar image bpears · Apr 15, 2013 at 07:12 AM 0
Share

Ah! yes. So I can just have the transparent and normal, and set the color through the transparent. I haven't messed much with texturing in unity itself in a while. Been modeling so much in maya lately, ugh!...

but, would be nice if there was a place to find cool trickery tips like this! I am patting myself on the shoulder lol.

avatar image Fattie · Apr 15, 2013 at 07:15 AM 0
Share

I suggest search here on on Google for "shaders" "color" "transparent" etc.

0 Replies

· Add your reply
  • Sort: 

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

12 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

Related Questions

which is the most efficient additive transparent shader? 1 Answer

Transparency issue on iOS 1 Answer

Why does it say set ZWrite to off when semi-transparent shading in the docos 2 Answers

Help me for the Green To Transparent (video) 1 Answer

transparent shader 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