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 TVishahan · Oct 04, 2014 at 04:54 AM · shadervoxel

How to achieve the shader used in MagicaVoxel?

Well, I plan to use voxels for my game so I decided to use MagicaVoxel to handle the modelling, but one thing caught my attention and that was the shader, it managed to make plain colours look great, so I've decided that I want to use that style of shading, but have had no luck finding it T_T, and I cant create it as I don't know how to write shaders. ![![alt text][1]][1]

basically it is a fade in where ever a normal is detected, whether up or down.

Edit: I'm specifically looking for a link to a tutorial or something like that (not asking for anyone to do it for me), I have also noticed a similar shader used in Monument Valley, so I do know it is possible

screenshot 2014-10-04 06.24.16.png (145.6 kB)
Comment
Add comment · Show 6
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 Benproductions1 · Oct 04, 2014 at 05:40 AM 0
Share

Please don't bump posts that are less than a couple days old. Also are you asking us to write you a shader, because we don't do that.

avatar image TVishahan · Oct 04, 2014 at 05:55 AM 0
Share

I'm looking for tutorials, I fully understand that ain't nobody got time for that. I'm kinda at my wits end here, so I'm trying to at least get a link to a tutorial or something like that :(

avatar image tanoshimi · Oct 04, 2014 at 06:26 AM 0
Share

I don't see anything special about the shader.. it just looks like lighting with soft shadows. Are you using Pro?

avatar image TVishahan · Oct 04, 2014 at 06:31 AM 0
Share

I'm using pro trial, but notice that each right angle has a shadow to it, using soft shadows would result in it looking less delicate. alt text

screenshot 2014-10-04 08.33.04.png (27.7 kB)
avatar image TVishahan · Oct 06, 2014 at 06:56 PM 0
Share

bump**

Show more comments

2 Replies

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

Answer by unimechanic · Oct 07, 2014 at 02:19 PM

I think that shadowing effect is Ambient Occlusion:

http://en.wikipedia.org/wiki/Ambient_occlusion

You can emulate it by setting the vertex colors of the mesh:

http://docs.unity3d.com/ScriptReference/Mesh-colors.html http://docs.unity3d.com/ScriptReference/Mesh-colors32.html

And use a vertex lit shader:

http://wiki.unity3d.com/index.php/VertexColor

Comment
Add comment · Show 1 · 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 AlanGreyjoy · Jan 29, 2015 at 11:14 PM 0
Share

Was this a success? I have the same question

avatar image
1

Answer by HumanSquid · Feb 28, 2015 at 08:25 AM

There's some more information about Ambient Occlusion here that some might find interesting:

https://www.youtube.com/watch?v=eeKQAXg-Qo8

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

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to visualize a volumetric sphere using color gradients? 0 Answers

Importing an obj from magica voxel into unity looks so shiny and glossy... 0 Answers

URP 2D lights with Mesh Renderer?,URP 2D Light for Mesh Renderer? 0 Answers

[Solved] Vertex Color/Alpha Transparency Rendering as Opaque 1 Answer

Implementing multi-texture shading with the marching cube algorithm (voxels) 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