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 CornDog · Mar 25, 2015 at 03:31 PM · materialshaders

How would I make a shader that gives this appearance?

alt text

I would like to be able to place objects with a material that gives the appearance of these neurons. I believe I'll have to apply some bloom and other effects to get it to look like this image.

As to my current thinking, I'm thinking the shader would need to be something that gives a white appearance with a blue outline. But my shader-foo is weak.

I'm not asking for someone to write it for me, Just some direction to go in on how to get this appearance. I'm thinking I might even purchase Shader Forge for this but thats a tool not a solution.

neurons1.jpg (80.4 kB)
Comment
Add comment · Show 8
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 tanoshimi · Mar 25, 2015 at 04:40 PM 0
Share

If that is the output you want, what exactly does the underlying scene look like? What objects are being rendered? Are they sprites, 3d models?

What I mean is that you could get an output exactly like that image using the simplest of unlit shaders on a quad with that texture applied, but I'm guessing that's not what you meant...

avatar image CornDog · Mar 25, 2015 at 04:47 PM 0
Share

Thanks tanoshimi for responding. Yes you are right, I should supply more information. We are attempting to create a 3D representation of a neural network in real-time. So each neuron needs to be a 3D object in the scene. Connections between neurons will be 3D objects as well. At this point though I think the only part I need some pointers on is how to get a bunch of 3D models to look like that.

avatar image tanoshimi · Mar 25, 2015 at 04:56 PM 0
Share

So, assu$$anonymous$$g that your 3d meshes model all the wiggly lines/lightning shape already (i.e the only thing you want to know is the colour blending), that looks just like additive blending of partially transparent blue objects: i.e. a shader with blendmode set to Blend SrcAlpha One.

avatar image CornDog · Mar 25, 2015 at 05:11 PM 0
Share

Would I be setting _SrcBlend or_DstBlend to SrcAlphaOne? Ultimately it seems like I need more education on the topic. Is there a relevant source I con go to?

avatar image tanoshimi · Mar 25, 2015 at 05:25 PM 0
Share

Src is Alpha, Dst is One. So you take everything that's already been written to the framebuffer, and add on the fragment currently being rendered based on its alpha - that's what causes the bloom effects, because once several objects are stacked on top of each other their RGB will sum to > 255.

You might want to read http://en.wikibooks.org/wiki/Cg_Program$$anonymous$$g/Unity/Order-Independent_Transparency (or, in fact, the whole of that wikibook)

Show more comments

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

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

Related Questions

Gl.Lines appearing over objects 0 Answers

How can I edit Material Textures without creating a new Shader?,How to edit Material Texture 1 Answer

It is possible to clone and modify one of the existing shaders 0 Answers

Any idea on how to do a FallOff Shader...? 0 Answers

Shader: get back scene pixel color? 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