Comments (3)
Aha, okay. By default the decal looks for nearby meshes that are on objects flagged as "static" (the checkbox on top-right of the inspector when the mesh's object is selected.) If the meshes you're testing with aren't static then the decal will normally not try to project against them.
If you want a decal to project against non-static mesh objects you can untick "All static meshes" on the Decal Mesh and add whatever MeshFilter
s you wish to the "Target meshes" list.
Here is a decal projecting against the example mesh, with the mesh itself still being non-static:
Hopefully that helps.
from driven-decals.
Hello, thanks for the report.
It looks like the problem is that it doesn't recognise Unity's Terrain as being a mesh that it can project against. This issue is reproducible, the decal projection system completely doesn't work with Unity's Terrain.
I think it would be a lot of work to get this type of decal system to work in a satisfactory way with Unity's Terrain. Although we cannot directly access the meshes generated by Terrain, we could still build a decal mesh by looking up height data from the Terrain. The bigger problem is that the Terrain swaps between different resolution meshes as the camera moves. To avoid visually clipping through the terrain, the generated decal mesh would need to also swap between matching meshes under the exact same conditions.
That would be possible to do, but it feels to me like something that would better be done by a dedicated Terrain-based system, or a decal system that does the projection at render-time and so doesn't need to access mesh data at all.
from driven-decals.
It looks like the problem is that it doesn't recognise Unity's Terrain as being a mesh that it can project against.
That's a terrain-like mesh, not a Unity terrain: MeshB.zip
I have also tried regular meshes like sphere, plane and box, it doesn't work either.
from driven-decals.
Related Issues (19)
- "Auto-Repeat" projection only works if the inspector window is visible.
- Doesn't seem to work? HOT 1
- Changing the decal asset at runtime
- It doesn't support Skinned Mesh Renderers? HOT 1
- Crashes with il2cpp
- error when autoproject with some houdini objects around. HOT 1
- duplication / copy and pasting causes
- Flickr in virtual reality project. HOT 1
- 7.7.1 is surpport? HOT 1
- Decal asset preview is blue (2021.2.11f1) HOT 2
- A NormalMap settings popup appears after adding the package
- No 'git' executable was found HOT 3
- Runtime generation fails on "Batching Static" meshes HOT 2
- Decal Asset Inspector issue HOT 12
- sad NullReferenceException :( HOT 1
- Null purple material HOT 1
- Prefabs not working correctly HOT 4
- A way to store the "ghost" mesh created by the decal
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from driven-decals.