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 Helical · Jun 08, 2014 at 04:55 PM · shadergraphicsoutline

How to make an Outlined object in Unity3D?

Hello everyone, I want to make an outline of an object, because I want to make it intuitive that an object is clickable. I have no idea how to it though. I mean its not something I can just draw in Blender. Also I dont want to duplicate that Object twice and place them one behind the other, that seems like the wrong approach. I looked into Unity Shaders and how to program them all day long,Some solutions there use "cg" programming to multiply vertecies by their normals to scale!?!, oh the insanity, it doesn't really feel like it does it properly.

Can I somehow get the 2D array of pixels of the image that the object becomes? if I could just manually modify the array of pixels representing my Object just before it is rendered, I could write my own outline function.

Comment
Add comment · Show 2
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 Bunnybomb7670 · Jun 08, 2014 at 05:12 PM 1
Share

I think shaders are the way you should be doing it. This is a good starting point :

http://wiki.unity3d.com/index.php/Silhouette-Outlined_Diffuse

avatar image Jeff-Kesselman · Jun 08, 2014 at 07:02 PM 0
Share

This sounds like at least part of a http://rbwhitaker.wikidot.com/toon-shader

2 Replies

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

Answer by tanoshimi · Jun 08, 2014 at 06:48 PM

If you've got Unity Pro, you can use the Crease image effect.

Otherwise, expanding backfaces along normals may not be perfect, but it's a pretty good solution in many situations, and is almost certainly better performing than manually trying to access a 2D array of pixels. There's a good explanation of the process at http://unitygems.com/noobs-guide-shaders-6-toon-shader/

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 Helical · Sep 16, 2014 at 11:15 AM 0
Share

thanks, see I was looking for the wrong name all along. I would have never guessed to look for 'Crease' which is in google "a line or ridge produced on paper or cloth by folding, pressing, or crushing it."

Regardless, I dont have pro, because I dont have 1500$ to spare. actually I dont have any $ to spare.

avatar image drudiverse · Sep 16, 2014 at 11:29 AM 0
Share

look for outlined shader unity in the google web search engine; if you have time, type outline shader unity, to have twice the results!

avatar image
0

Answer by Cherno · Sep 16, 2014 at 11:45 AM

Instead of Outline Silhouette, I recommend this shader instead:

link

Comment
Add comment · 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

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

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

Related Questions

Invert background in shadergraph 0 Answers

Terrain material makes textures blurry 1 Answer

Effects of Graphics.Blit to rendertexture are temporary 2 Answers

Always included shaders (Graphics settings) 1 Answer

Dymanic Mesh Hiding 2 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