Questions tagged [materials]
A definition of physical and/or visual characteristics of a surface, often for use with rendering software or a game engine.
253 questions
0
votes
0
answers
47
views
USD File missing Materails in Unity
I have imported NVDIA USD File assets in Unity and for this use the Importer by Unity (com.unity.importer.usd). It successfully showed the USD file in the scene as object but the problem is material ...
0
votes
0
answers
61
views
Same prefab appears very different inside another parent
I am on Unity 6.
I have 2 prefabs: the buildings shown in this picture.
Each of these prefabs includes another prefab, which is the "hexagonal tile".
It's the same "hexagonal tile"...
1
vote
0
answers
73
views
How do I light textures to get a smooth object?
I've been working on learning how to create painted textures. I was able to create a castle model and hand panted the texture on to it. The castle looks great, but only when it is specifically set to &...
1
vote
0
answers
69
views
Can I apply a single material over every submesh?
I have a shader for outlining an object, how do I apply the material with this shader to all submeshes, not just the last one?
0
votes
1
answer
125
views
Post process effect with sphere mask is offset until the window is resized
I am having a weird issue with the position of my sphere mask. Here is what it looks like currently:
The white disc should be directly under the player character, not shifted off to the side.
...
0
votes
0
answers
96
views
How to Have Tiles of Different Materials on Single Tilemap
I'm developing a tile-based game where some of the tiles have unique materials (generally to avoid repetitive patterns by sampling a large or procedural texture using world space coordinates). However,...
2
votes
1
answer
119
views
Second URP Lit material shows pink on FBX model exported from Unreal 5
I'm trying to get materials working on a model imported into Unity 6, from Unreal Engine 5, but for some reason one of them isn't showing. I have played around with a few of the settings with no ...
0
votes
0
answers
42
views
Is it possible to create a prefab/variant with a different gameobject hierarchy?
I have a model which has many different parts as children gameobjects. If I select the model in the project view I can change all of the materials (incl children) in the materials tab in the inspector,...
0
votes
0
answers
45
views
How can I make the material edges smoother on a PBR terrain?
I'm using HillHeightMap to generate a heightmap. I found a way to generate an alphamap based on a heightmap.
This is how I create the material
...
0
votes
1
answer
194
views
How Can I programatically identify a Material in Unity?
I have some gameobjects that in some conditions have an additional material added to them programatically at runtime.
I then later want to be able to remove that specific material. How can I identify ...
0
votes
1
answer
275
views
Trees sway in unison in Unreal Engine 5 with Megascans European Black Alder Pack
I’m experiencing a strange issue in my Unreal Engine project. The trees in my scene have started to animate unexpectedly, almost as if they are performing a synchronized "dance" or wave ...
0
votes
1
answer
89
views
Use AnimationClip to turn a material pitch black and then back to its original color
I have an object that has 2 materials, both using the URP/Lit shader. One of them is emissive and its color changes at runtime.
I would like to create an effect where the two materials become pitch ...
0
votes
0
answers
291
views
How to import / recreate complex material from Blender in Godot?
I ran into an issue when trying to import a complex shader material from Blender to Godot.
Inside Blender 4.0:
Inside Godot 4.3:
I exported it as glTF 2.0, but all the materials result just white.
...
0
votes
2
answers
258
views
What is the correct blender to unity texture/material export work flow?
I have modeled and textured a building in Blender by following a tutorial from BlenderGuru.
Can any one please help me with exporting those textures into unity. I have used 4 textures in my building ...
0
votes
0
answers
113
views
DnSpy material editing/adding
I am trying to change a material of a game object in dnSpy, however I am not sure where the materials would be. I have looked in assembly-csharp.dll.
Also, if or when I can find the materials, is it ...
0
votes
0
answers
39
views
How can I sync the volume of an audiosource with how a material change alpha?
I am making a flickering light prefab, and have already made a shader and a material that make it turn on and off erratically.
I also want the light to emit a buzzing sound when it's turned on, but I ...
0
votes
1
answer
301
views
How to prevent Sprite3D from clipping into nearby objects?
Gotot 4.2
Sprite3D is very useful for representing 2D objects within the gameworld. However, when billboarded (Y-billboard), 3D Sprites are prone to clipping into the floor/walls/other 3D models they ...
0
votes
0
answers
208
views
How to add a toon / cel shader to a URP 3D project?
I'm new to Unity and I've been frustrated for the last 5 days. I'm trying to apply a toon / cel shader to my object which I've imported from Blender. It already has a default material called ...
1
vote
1
answer
214
views
White noise on my material after import to UE5 from Blender
Please have a look at the 2 screenshots attached. The first one is from Blender. The second one is UE 5.3.
My first question is why my model in Unreal looks brighter than in Blender?
Do you see kind ...
2
votes
2
answers
696
views
How do materials and shaders work in graphics programming?
I stumbled upon a few videos about shaders and materials from The Cherno and my understanding is that materials are this sort of input that a shader takes to calculate an output instead of hard coding ...
1
vote
1
answer
206
views
Is there a PBR-like material system for audio?
With visual/rendering materials, a very popular system for this is PBR. Materials made using PBR may define properties like albedo color, normal maps, emission, roughness, metallic, specular, etc. ...
0
votes
0
answers
134
views
Export Blender models and (procedural) material to Browser?
Given that Verge3d cannot support Volume input, or volumetric shader property in the material output node. Using WebGl 2, and possibly 3.js, is it possible for me to export my blender models and their ...
1
vote
1
answer
1k
views
Generating a texture and applying it to an object at runtime
In Unity, I want to generate a texture and apply it to a material. The following method generates a 16x16 Texture2D and applies it. However, my object with the material shows only a gray "default&...
0
votes
1
answer
68
views
Unity shader is changing the selectable area to the original texture it used
I know a little about shaders, but not much. I cobbled one together to to light my sprites, and it's working great if not for one thing:
I originally tested the shader with a chair texture.
I made a ...
0
votes
1
answer
178
views
How to retain links between assets when merging two projects into one?
We have a common Model library where different models/textures are stored. We use this library for our new project. Here is the scenario:
Two individuals started separate projects and are now merging ...
0
votes
0
answers
61
views
Baking material used on a model to texture
In my project I have to optimize our assets. I want to create texture atlas. How can I bake objects' materials to a texture, so then I can make all assets in this scene use one material with this ...
0
votes
1
answer
1k
views
Texture base color not showing for Unreal Engine auto material?
So on the right there's the item that needs to be in the auto material (the base color for snow) but it isn't showing up in the material instance. The node is in the proper group (also shown)
Any ...
0
votes
0
answers
55
views
Display a user webcam over multiplayer session on a wall in the middle of a level?
With the media framework, it’s now quite easy to use webcam or phone camera footage directly in the game.
Is there also a way to share this footage in a multiplayer game? So player A can see the ...
0
votes
0
answers
413
views
Edge Shader in UE5 with Triplanar Mapping
I am designing a LEGO brick shader in UE5 and wanted to add a scratch normal map to it. But I only want that scratch normal map to apply to where there is an edge to a mesh. The material uses ...
2
votes
0
answers
112
views
Materials become greyscale when building Windows executable from Linux machine
I have a whole build pipeline on a digitalocean Linux machine that does my builds for my game. I recently upgraded the entire project from some 2020 build to Unity 2021.3.8f1.
The problem is, now, the ...
0
votes
0
answers
1k
views
Translucent material with outlines (in UE4).... How do I do this?
I have been trying to create a material like this in Unreal Engine 4.27 but I can't seem to find any resources on how to do this. The goal is to use this material on any 3D model to give it ...
0
votes
1
answer
686
views
Change Mesh face colors / materials at runtime
I'm trying to change the color/material of the faces on my object at runtime. My object has a default SpatialMappingWireframe to begin with:
And I'm trying to assign new colors on start like so:
<...
0
votes
0
answers
174
views
Programatically change the materials of an avatar, and only one avatar
Im using an asset I bought some time ago, and using some models from it. This is the model:
My question is, how could I dynamically change things like the hair, the uniform, etc? The asset comes with ...
1
vote
1
answer
3k
views
How to calculate screen space UV coordinates from a specific camera
In Unreal Engine 4.27 I am currently trying to create a material (shader) that maps a texture onto a quad using the screen space coordinates from a specific camera. If I am using the current active ...
0
votes
2
answers
2k
views
How can I make the hue of a material change over time?
I'm working on a small psychedelic-style game that needs to be done in Unity, with which I have no prior experience.
I'd like to achieve an effect where the material of my objects can change colors ...
1
vote
0
answers
209
views
Unreal Engine Can't Rotate Material
I am a Blender artist and Unity Developer. I'm very familiar with materials and texture maps in Blender and I'm only moderately familiar with texture maps in Unity. My workflow is to do all of my ...
0
votes
1
answer
754
views
Unity HDRP Emissions - When setting over 1 nit, blue becomes progressively more purple
I've been trying to use a HDRP Lit Shader material to create an intense lighting effect in a dark environment.
I'm using a texture as an emission mask which is simply a 16x16 black png split into ...
0
votes
0
answers
104
views
Suddenly getting pink rendered texture on model
Hey All I have been using this model in this project for a bit and everything was fine then suddenly this issue popped up and I am not sure what could be the cause. I am using a flatkit shader but ...
0
votes
0
answers
593
views
Implementing material (mtl) files into objects (obj) in LWJGL/OpenGL
I have an object loader that takes in textures, but when I try making some textures, they never turn out exactly how I want.
I found out that a lot of them take a colour I want in one place and put it ...
0
votes
0
answers
1k
views
How does the Unity Editor use shader stencils in the UI?
It seems clear that Unity UI has some use for shader stencils, based on the fact that UI shaders tend to have something like this:
...
0
votes
1
answer
497
views
Generating UVs for an annular sector/ wedge-shaped procedural mesh
I am using code to generate a mesh to show the firing arcs for a tabletop-style game I am working on. But when applying a material to it, I only get a solid color.
Here you can see the custom mesh ...
1
vote
0
answers
196
views
Using FBX Exporter messes up materials of VRM?
I am trying to export a VRM into an FBX to edit in Blender.
To do this, I have installed UniVRM to import the VRM, and FBXExporter to export it as an FBX.
This almost works great. However, I have an ...
0
votes
0
answers
184
views
Animation is not playing after i animated material, also animator gets disabled when i play animation clip
Here have a look at this screen recording (https://youtu.be/PvAt_t0NdQk). What am I doing wrong?
I have selected prefab and working on it directly. I animated the material of the object I want it to ...
0
votes
1
answer
333
views
Give an opaque color to inner base of otherwise transparent cube?
This is my first time using a material in Unreal Engine. I am trying to create a transparent cube except for the inner face of the base, which I would like to be opaque white, like in this drawing:
I ...
1
vote
0
answers
697
views
Rendering between two DrawMeshInstanced() calls in Unity
I am working on a 2D shmup that requires rendering thousands of animated bullets and animated medals on screen at the same time.
I use a standard pooling method to activate and deactivate these ...
1
vote
0
answers
155
views
How to create a modular environment that doesn't repeat itself?
I am creating a modular environment for a game so I have walls repeating quite often. What I want to achieve is to have the same walls with a different look, even though they are the same mesh sharing ...
0
votes
1
answer
622
views
Unreal Engine - Materials Import as Gray
I imported the .fbx files from here: https://www.cgtrader.com/3d-models/industrial/other/big-warehouse-pack
into an Unreal Engine 4.27 project. All the meshes load in properly, but the materials are ...
1
vote
0
answers
490
views
How to create a seamlessly wrapping procedural brick material with a shader?
How do you create a shader that seamlessly wraps a brick pattern around the whole object, so that there are no "Stitches" at any edges/corners?
Take this screenshot for example:
On the left ...
0
votes
1
answer
333
views
How to access a Material Editor node from a script?
Is it possible to access a node from the Material Editor from a C++ script?
I'd like to be able to change the value of 'Mulitply' from a script.
1
vote
0
answers
59
views
I have a problem with updating a RenderTexture being used in combination with a shader
I just can't seem to figure out why I can't save the image I've drawn onto an orthographic RenderTexture.
Here's how my scene works: https://i.sstatic.net/6XkRo.gif
Basically, it's a painting effect ...