Questions tagged [materials]

A definition of physical and/or visual characteristics of a surface, often for use with rendering software or a game engine.

74 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6 votes
2 answers
8k views

Unity - Water Cube (to 2D game)

I wonder if you can create a cube of water within the unity! I'm starting to use the Unity, and took a sought as to whether there was already something like this ... but have not found any tutorial ...
Igor's user avatar
  • 219
5 votes
0 answers
425 views

Sprite outline based on light position in UE4

I have simple sprite (for example black box) and I like to add to it outline (red line on example image) but based on light direction. I know UE4 use deffered renderer, so I cant access to lights, but ...
Martin's user avatar
  • 151
2 votes
0 answers
90 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 ...
Thoumis Tiechy's user avatar
2 votes
0 answers
575 views

Unity - Emission Material on Top of UI

I've already uploaded this question in the Unity forums but only got a response but not an answer or solution. Here's a link to the original post: https://forum.unity.com/threads/emission-material-on-...
Dark Kool's user avatar
2 votes
0 answers
703 views

Unity normal maps look wrong (URP, iOS)

We're building an AR-enabled app with Vuforia and Unity 2019.3, using the Universal Render Pipeline. Trouble is, on iOS our models that have normal maps in their materials look totally bad, as you ...
frankhermes's user avatar
2 votes
0 answers
972 views

Creating Saving and Loading Materials in Runtime

I'm trying to create a material during runtime like this: In my Assets I have a Render Texture and one Material I created an Script where I attach the Render Texture to Material I save in my project ...
RoyalCoder's user avatar
2 votes
0 answers
654 views

How to detect collisions with a material in Unity 5?

I've got a simple car game with 3 different surfaces: grass, tar and sand. I have a basic skid smoke system, but I want the color of the skid smoke to change depending on the surface, for example on ...
mr-matt's user avatar
  • 2,759
2 votes
3 answers
2k views

Emissive material not casting light on itself in Unreal

I have a static mesh that has an emissive material applied to part of the mesh. The emissive material successfully cast light to surrounding objects. However, the face of the mesh with the emissive ...
eclmist's user avatar
  • 1,153
1 vote
0 answers
124 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 ...
ChristianOConnor's user avatar
1 vote
0 answers
104 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 ...
yunum's user avatar
  • 69
1 vote
0 answers
579 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 ...
DyingIsFun's user avatar
  • 1,307
1 vote
0 answers
115 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 ...
Raffaele Lungarella's user avatar
1 vote
0 answers
315 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 ...
SePröbläm's user avatar
1 vote
0 answers
34 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.stack.imgur.com/6XkRo.gif Basically, it's a painting ...
xxhoisinxx's user avatar
1 vote
0 answers
301 views

How do we export blender material with shaders and blender texture to unity?

I've blender model, it has noise texture and glossy shaders, when I import it to unity, they are not the same. I tried both cycle and Eevee render and was looking for different ways to export the fbx ...
Kharak's user avatar
  • 113
1 vote
0 answers
116 views

After a postprocess effect, can I output a list of all non-zero pixel locations without having to save the entire image?

I am trying to simulate what's known as an 'event camera' in Unreal. Unlike conventional cameras that output full frames, event cameras return the locations of pixels where activity is detected - see ...
HighVoltage's user avatar
1 vote
0 answers
1k views

UE4 - UProceduralMeshComponent - texturing issues

I am having a lot of trouble texturing a procedural mesh in UE4. I am using perlin noise from Accidental Noise Library with PolyVox to generate randomized marching cube terrain. Accidental Noise ...
Skettenring's user avatar
1 vote
0 answers
279 views

Material slot is reversed in unity when importing .blend file?

I'm importing .blend file into unity. The file contains 9 separate objects. Now all objects have the same 2 materials assigned. When importing in unity one object's material slot is reversed. But in ...
coder_86's user avatar
  • 175
1 vote
0 answers
114 views

Whats the least expensive way to play video in unity?

Alright, Ive asked this various ways but my situation is I have several (over 100) objects that have screens that need to play animated videos on them. There does not need to be sound, but this is for ...
blue's user avatar
  • 131
1 vote
0 answers
564 views

How can I blend meshes together where they intersect?

In a lot of my scenes I have things like this: and this: All the places I've circled are places where a prefab overlaps with another one or with the terrain. Is there any way to make those lines ...
Ryan's user avatar
  • 153
1 vote
0 answers
37 views

Emissive material from white texture

I have texture with black and white shapes. I would like that white parts are emissive and black parts are transparent/glass. How to make such material ?
eon's user avatar
  • 133
1 vote
0 answers
69 views

Game objects all blue underneath

I have an empty scene with a single object in it, a cube. The cube renders initially as pink, when it has no material attached. When I attach a material though. Any material. Odd things happen. I ...
mikemike's user avatar
  • 189
1 vote
0 answers
84 views

Blue, Red and pink Materia

Hi guys i just started using unity recently but today after working on some animation blending, most (not all) prefabs changed to look like this: What's the cause, and how can i fix it? i tried ...
Ghostff's user avatar
  • 111
1 vote
0 answers
135 views

Load all materials with loadallassetbundles before objects?

I have a lot of objects as assetbundles and they're growing. I didn't want to have the user to download the materials for every asset because they all share their materials. so I put all the materials ...
Henjin's user avatar
  • 415
1 vote
0 answers
189 views

Problems exporting meshes to Unity 5

After creating a tree (Scots Pine) in SpeedTree Cinema v7.1.1 I exported it as a .FBX ascii file to Unity 5 and I encountered a problem; the leaf material, while viewing it in Unity 5, can only be ...
user18723's user avatar
1 vote
0 answers
3k views

maximum ps_4_0 sampler register index (16) exceeded at line (on d3d11)

I have a custom shader that uses 15 sampler2d. In Unity 5.5 the shader was working perfectly however since updating to Unity 5.6 I am getting the following error: ...
FrontEnd's user avatar
  • 1,697
1 vote
0 answers
977 views

Why does my Point light turn off if Player walks in any direction in Unity 2D?

My 2D Sprite has a material, Sprite diffuse attached to it. Now when I set up a light, it works but if I play the Game and walk, the light turns off immediately and the Player turns black. The ...
NewmakerCompany's user avatar
1 vote
0 answers
307 views

LineRenderer doesn't apply material in 2D Unity5

I'm making something that draw lines with mouse on top of everything (in 2D), but the color of the line is always purple even though I assign a material to the line renderer. I could change the color ...
Happy Face's user avatar
1 vote
1 answer
1k views

How can I incorporate subsurface scattering into a custom shader graph?

I'm working on some 3D grass in Unity with HDRP (the grass is not a 2D asset on a plane, it's a mesh). I did a shader to make it move following a tutorial, it works great. I would like to add ...
Arthur's user avatar
  • 11
1 vote
1 answer
58 views

Blender UV unwrapping causes texture to repeat in UDK material

I've made pillow kinda thing, unwrapped it in Blender and then I imported my mesh to UDK, applied a material: The material splits, but I don't want that to happen, I want to cover the mesh with only ...
Doğukan Özdemir's user avatar
0 votes
0 answers
31 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 ...
cak3_lover's user avatar
0 votes
0 answers
19 views

Correct Orientation from Blender to Unreal Engine 5 in a spline

Let me preface this by saying I'm an absolute beginner and I have no idea what I'm doing. Following lot's of different tutorials, I want to create a road spline in unreal engine. Therefor I created a ...
infinitezero's user avatar
0 votes
0 answers
38 views

Unreal Engine: How to edit the M_Athena_Terrain_IceBiome.M_Athena_Terrain_IceBiome material?

I'm using the snow landscape as described here: https://www.reddit.com/r/FortniteCreative/comments/12100h0/terrain_materials_uefn/ This is the full path to the material: /Script/Engine.Material'/Game/...
No Name's user avatar
  • 101
0 votes
0 answers
74 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 ...
Francis Mike Nathan's user avatar
0 votes
1 answer
77 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 ...
Muhammad Faizan Khan's user avatar
0 votes
0 answers
34 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 ...
Dekash's user avatar
  • 1
0 votes
1 answer
648 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 ...
Tyler Dumond's user avatar
0 votes
0 answers
41 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 ...
Apothem Da Munster's user avatar
0 votes
0 answers
211 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 ...
BlenderMaster15's user avatar
0 votes
0 answers
689 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 ...
FrankieS's user avatar
0 votes
0 answers
147 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 ...
Fustigador's user avatar
0 votes
0 answers
68 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 ...
Doug Ray's user avatar
  • 143
0 votes
0 answers
431 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 ...
Zwei's user avatar
  • 1
0 votes
0 answers
984 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: ...
Geo's user avatar
  • 161
0 votes
1 answer
412 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 ...
Thom Foxx's user avatar
0 votes
0 answers
150 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 ...
Danish Arain's user avatar
0 votes
1 answer
810 views

Unity baked light messes up a set of objects

On a few objects I use a technique where instead of using geometry, I place planes with a Cutout Material on top of each other, creating a 3D illusion with minimal cost. The thing is, it looks great ...
505Legion's user avatar
  • 103
0 votes
0 answers
352 views

How can I recreate a material from blender in Unreal engine

I'm new to unreal and I am having trouble finding a way to reproduce the materials for a mesh in blender in unreal. It's a simple material but I can't find a way to reproduce the color ramp ...
Adriano Rivadeneyra's user avatar
0 votes
0 answers
40 views

What is the best approach to using videos to animate a weapons' display screen in Unity?

My job is to create, model and animate sci-fi weapons', and create Unity assets out of them so they are ready to use. This particular weapon has two side displays. I've animated some text in After ...
Jeremy McCloud's user avatar
0 votes
1 answer
254 views

Materials aren't loading correctly from SketchUp into Unity

I imported a SketchUp COLLADA (.dae) file from 2017 SketchUp Make, and imported it into Unity. I then clicked "Use External Materials" and the colors began to load. But I noticed quickly ...
Ginger's user avatar
  • 111