Holograms in Unity Shader Graph

preview_player
Показать описание
Give any scene a sci-fi look by making some of your objects holographic! In this video, we'll explore a technique that makes any object look like a futuristic 3D projection.
--------------
--------------
------------

#unity #hologram #shaders
Рекомендации по теме
Комментарии
Автор

Update Guide if you are lost. Using Unity 2021.3.16f1 URP, but this should apply to everyone from 2020 onwards:

//SETTING UP
1. Shadergraph needs to be installed from Package Manager
2. Creating the Shadergraph: Create > Shader Graph (note: Not Shader - if you don't see Shadergraph, go back to Step 1) > URP > Lit Shader Graph. I suppose you can your Built-in too, but results not guaranteed

//CHANGES TO NOTE
0:57: PBR Material block does not exist anymore, and instead it is now split into Vertex and Fragment blocks. Nodes like 'Alpha', 'Alpha Threshold Clip', 'Emission' may be missing from your set up. If they are, just right-click on the Fragment block to add them
1:26: Changing Alpha Clip and Surface to Transparent can't be done by left clicking on the block anymore. Instead, you have to change them in the Graph Inspector modal. Can't find the Graph Inspector modal? Look at the next section

//PROBLEM: CANNOT SEE GRAPH INSPECTOR MODAL
In your Shadergraph panel, overlayed in a modal right next to your nodes working area, you should see 'Graph Inspector'. If you don't see it, that's because it's not toggled on. On the top right of the Shader graph panel, you should see 3 buttons - Blackboard, Graph Inspector, Main Preview. Hit Graph Inspector obviously.

//PROBLEM: CANNOT SEE PROPERTY VALUES MODAL
- If you do not see that left modal in the video to add properties, go back to the three buttons on the top right of the Shader graph panel and hit 'Blackboard'. Then that modal should pop up
- Alternatively, just create a float node, relink it to your Shadergraph, then right-click on that node and convert to property

//PROBLEM: TEXTURE IS COMING OUT SOLID BUT YOU DID EVERYTHING RIGHT
- Make sure you clicked on 'Save Asset' on the top right of the ShaderGraph Editor
- Make sure you go into Scene and check the properties in the material/object. I noticed once I went in to play with their values, they override future saves in the Shadergraph, so then I had to go tweak them in the Scene
- Make sure the final combine node (3:28) is ADD and not Multiply
- Try tweaking your tiling. The formula is: 2048/(image dimension) = tiling. For instance, Daniel used a 64x64 image, so 2048/64 = 32, which is the tiling he used. I used a 512x512 image, so 2048/512 = 4 was the tiling I used. You can verify if tiling is the problem by removing tiling node from the setup to see if the effect works
- When you import in your image, the default setting (as opposed to Sprite 2D etc) is sufficient

//PROBLEM: CAN'T SEE THAT SWEET GLOW
- Make sure you are using URP. The built in/Core renderers do not really have this feature
- Make sure Bloom is toggled on in your post processing + Your camera has Post-processing checked. Don't know what post processing Bloom is? Go find other youtube videos to learn this and leave Daniel alone so that he can do God's work in teaching us how to make awesome shaders

//PROBLEM: IT'S ALL PINK!
- This pink material happens when you import materials from non-URP projects (which means they have non-URP settings like Built-in) to URP projects. It's easy to fix, so Google 'Unity fix pink material' and stop bothering Daniel
- A quick tip is just to switch the shader of the material into your Shadergraph.

//BONUS: Try switching 'Render face' in Graph Inspector to 'Both'

Hope this helps!

satoshihatake
Автор

I absolutely love how this effect looks! Thank you!

shmeee
Автор

Can you do an updated version of this? PBR shader graph is removed from unity now and apparently replaced with a lit shader graph

jamesalphonse
Автор

Just to remember, he had 150 subs before dani^^

davegamedevelopment
Автор

I'm a simple man i see great content, I insta-sub.
Keep it up!

koyomojo
Автор

Loved it, made my own variation to use an albedo map with it, instant sub!

silvaright
Автор

Your tutorials are good ! Keep going you’re doing great

benjaminvermot
Автор

I am a BIG fan of you work and channel!

cgimadesimple
Автор

This would be great, if unity didnt remove the PBR shader, tried following along changing the lit shader stuff around, cant get my tiling working.

rotwheeler
Автор

In the newer version, the Albedo option is missing. What should I do?

Purgious
Автор

I love how this teaches me so fast to create the effect :-)

LanceMyair
Автор

This is my first day using the shader node features, just came from your basic node guide. The passing of this video seems extremely fast or I am just slow at understanding this. I'm defiantly gonna check this video out again in a couple of weeks from now so I can gain more experience in order to understand this 😅

ahmedbajalan
Автор

Do u need bloom post processing effect for this to properly work? Great tutorial btw.

HaniSharif
Автор

Amazing tutorial, i followed it throuhg on HDRP but due to some reasons my textures are not being loaded in the shader any idea what could be the issue?

wasifalmeem
Автор

I cannot add a vector1, has it been renamed or something? Edit: They are just floats

gavinoman
Автор

I'm trying to use this on a 2D image sprite, but still want to keep the colors of the sprite underneath. Is there a way to keep the effect, but make it a transparent overlay on top of my image?

christianlamm
Автор

hello, it's normal if I can't find pbr graph

ThePolarsB
Автор

This was great! Thanks for the tutorial! :D

GamesBySaul
Автор

Everythings works perfectly but for some reason the top face of the mesh blinks rapidly sort of like changing colors. Any idea why? If its a cube or a cylinder, the flat face on top flickers.

ramkillnani
Автор

The sheder i by able create or break the visuals of the game if the use correctly the make amezing effects but if use with wrong the make wierd visual effects

watercat