Good weekend everyone, I'm looking for some tutorial/script how to make 3D object outline with original image texture (eg. stick with wood texture). I would like to when the raycast hits the object (I'm able to detect with object is raycast hitted), the object will be outlined/glowed.
I tryed many tutorials on youtube, finding shaders script, etc, but I'm using URP Unity 2020 and some shaders is not working - only pink material, or works different. Emitter material is not good too, because there is no original texture. I'm stuck on this for few days. I'm a newbie in the Unity community.
Thank you very much for your help. :)
Outline shaders are difficult to make. I use this free asset I found in the Unity Asset store for all my games if you are looking for an easy fix.
https://assetstore.unity.com/packages/tools/particles-effects/quick-outline-115488
Related
I'm using unity 2018.4.14f1 personal (I don't use 2019 or 2020 because it lags my computer)
I'm using the Unity Standard Assets Player Prefab and Cinemachine Freelook for the camera. I have some water, and when my player walks into it, its fine. However, when the camera comes into the water, it stops rendering the water. Is there anyway I can fix it?
Update: I've somewhat got it working, however its hollow when your inside. Is there anyway to fix that?
Video : https://easyupload.io/2b0p3a
(I'm quite a noob so if you need any screenshots please ask.)
The problem here is that the water will only rendered when looking from the outside as the normalized are modeled so. The program renders outs objects that it thinks is not in view. You can load the model into a 3d program and then copy and invert the model to allow your camera to see the water, or I believe there are some shader option to stop this optimization. You can also look in this Reddit thread.
I have mesh and want to make water effect on it and see inside of water. I am new unity shader so I dont know how can I do in Unity shader ?
If you want to create your own shader but with minimal effort and a graphical user interface, you can look into Unity Shader Graph. There are plenty of tutorials available online.
If you want to write your own shader from scratch, it may be best to look for YouTube tutorials or Unity Documentation on writing shaders
In older games Ive made levels in, like unreal or half-life the skybox is a parallaxed texture that you assign to world geometry, for instance, the ceiling of your room, to give the illusion of the room being open to the sky.
There are some neat tricks or weird things you can achieve with this 'sky portal' method. For example you could have 'sky' in an underground room. or walk through a hole in the sky.
I'm wondering is it possible to make a mesh in unity3d render as part of the skybox like in these older engines.
You can do this yes. Usually you assign a "SkyBox" to your camera and change the "Clear Flags" for her "SkyBox". However, there are other ways to do.
Learn more here: http://docs.unity3d.com/Documentation/Components/class-Skybox.html
Hope this help !
I am working on game in unity in which i need some images to be placed on terrain as in the attached image yellow arrows and "P in blue circle" are rendered on surface in unity.
Any idea or method will be appreciated.
There's no built-in support for decals in Unity. You could just create separate gameObjects with transparent texture and place them above the terrain here, or use one of several packages for decals in Unity Asset Store, like this one. (I have only briefly tried it and can't say anything about it's quality).
I know it's an old topic - but for those who are still not satisfied:
I would recommend using Easy Decal.
It's a very powerful decal projector. It's easy to use and you can stick decals also on uneven surfaces like bumpy terrains.
You could try putting a plane with the texture aligned with the surface normal slightly above the surface. Or you could try an extension that does decals for you. This is what i found:
Decal System for Unity3D
As previously mentioned Easy decal is a good choice. It's easy to use, has extensive fuctionalities and you'll get a lot for your money. But if you need skinned decals there's no way around Decal System Pro by Edelweiss interactive. It's more expensive, but beside the skinned mesh support it also supports texture atlases which saves you draw calls.
What i'm trying to do is, with and augmented reality app with vuforia, i want to obscure the whole scene to give a "night effect"(The real camera texture has to be obscure too).I been trying this for a couple days now.
I searched for it and only found help in night vision effects, wich give me the idea on how to approach this problem.I'm been trying it with a shader linked to the camera.
How can i do a night effect(Just obscure the whole scene, it would be better if i could obscure only desired objects) with a shader?
Any other idea on how to do this would be great too.
An obvious approach would be to use a dark-colored and thick fog. And turn the lights down, of course. Beyond that, your query is a bit vague. But try the fog.