Questions tagged [materials]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
35 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 ...
user avatar
0 votes
0 answers
6 views

Unpack prefab the way materials will be editable in Unity [duplicate]

I importing models from Blender to Unity just moving .blend file to assets. I want edit materials in imported models, mostly, just set smoothness to 0.5, because, this value being exported from ...
user avatar
0 votes
0 answers
33 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 ...
user avatar
  • 137
0 votes
0 answers
82 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 ...
user avatar
  • 1
0 votes
0 answers
112 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: ...
user avatar
  • 161
0 votes
0 answers
24 views

How can I activate one of the objects in the GO array and deactivate the previous one?

I am creating a car color change mode. In the prefab, I auto-created several Primary game objects, which are added according to the material responsible for a specific color. The prefab of the car is ...
user avatar
0 votes
1 answer
98 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 ...
user avatar
0 votes
0 answers
12 views

Access the Sequencer's current frame number in Material Editor

Is it possible to access the current frame that the sequencer is on? I want to use it instead of the "Time" node in the Material Editor. I need to create a foliage wind effect that loops at ...
user avatar
1 vote
0 answers
30 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 ...
user avatar
  • 45
0 votes
0 answers
27 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 ...
user avatar
0 votes
1 answer
36 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 ...
user avatar
1 vote
0 answers
177 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 ...
user avatar
  • 1,307
1 vote
0 answers
67 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 ...
user avatar
0 votes
1 answer
49 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 ...
user avatar
1 vote
0 answers
111 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 ...
user avatar
0 votes
1 answer
33 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.
user avatar
0 votes
0 answers
20 views

Is there a way to find out what meshes are supposed to be combined in Assimp?

I'm working on my assimp loader. I know that it has a separate mesh per material. Before I used to simply combine all of them upon import. Now, I want to figure out which meshes are from multi-...
user avatar
1 vote
0 answers
14 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.imgur.com/jAWO2V8.gif Basically, it's a painting effect ...
user avatar
-1 votes
1 answer
76 views

Implementing wet and dirty materials [closed]

How you would implement wet and dirty materials or material overlays that you can clean like in PowerWash Simulator.
user avatar
  • 103
0 votes
0 answers
194 views

Bizarre Viewport bug in Maya 2018

I can't Google for this sort of thing because it's a very difficult error to describe, so asking it here is my last resort. I have to use Autodesk Maya 2019 for the game I am working on, along with ...
user avatar
0 votes
1 answer
182 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 ...
user avatar
  • 103
0 votes
0 answers
88 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 ...
user avatar
0 votes
1 answer
53 views

Edge bleeding with opacity map

I want to layer a grass texture with opacity over a dirt texture to form an edge. Both on the same model. But I'm getting edge bleeding from the opacity. I made both textures within Substance Designer ...
user avatar
  • 103
0 votes
0 answers
35 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 ...
user avatar
0 votes
1 answer
494 views

How to change multiple materials attached to one GameObject

I am working on a script that changes the material of a selected object when hovered over. The object(s) in question have multiple materials attached. The problem is that only the first material is ...
user avatar
0 votes
1 answer
23 views

Material overridden when importing package between 2 pc

So I work with my colleague A and he has (for example) a basic scene A exports the scene as package to give me. and on my pc with new project I imported the package everything is fine and I make ...
user avatar
0 votes
1 answer
83 views

Putting a material on a fractured model

I have a square model that has been fractured using blender's cell fracture. I also have a material that I want to apply onto the broken pieces. The only problem is that the material needs to be ...
user avatar
1 vote
1 answer
23 views

Maya 3d Model. 2+ Materials on a face? Snooker Table felt with lines overlay

I've made a snooker table in Maya for use in a game in Unity. The felt texture on the table is a tiled texture, I used Blinn, and 'place2dTexture' node to do the tiling. It all looked great. Except I ...
user avatar
0 votes
1 answer
83 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 ...
user avatar
  • 111
0 votes
1 answer
103 views

Problem importing Blender materials into Unity via FBX

I've created a simply low poly house in Blender (2.92) that I have imported into Unity as an FBX. Materials (simple colours) are all set up in Blender. Initially this was all working fine. Colours all ...
user avatar
  • 101
0 votes
0 answers
731 views

Unity HDRP transparent material back-face rendering/front face culling

I try to render an object with 2 different transparent materials. One should only render the back faces (higher opacity/more color) and one only the front faces (lower opacity/less color). The purpose ...
user avatar
0 votes
2 answers
450 views

SpriteRenderer color not responding to script!

I have written a simple c# class that is supposed to change the color of the Player Renderer. But, there seems to be a problem! whenever I call the function OnCallFun() ... the color stays put and ...
user avatar
0 votes
1 answer
65 views

Why does my PBR material appear grey in game?

I am playing around with PBR materials and I cant get them to work correctly. When I create a material using PBR the model appears gray in game. Any ideas on why I’m not getting the same result? ...
user avatar
2 votes
0 answers
266 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-...
user avatar
0 votes
1 answer
99 views

Unity - plain material colour darker than expected

I want to add to scene object without textures, only plain material, here is my import flow: I create object in Sketch and export to SVG: Then I import SVG to blender (Material do not use nodes, has ...
user avatar
1 vote
1 answer
57 views

Why does my material look blotchy on this mesh?

This is a generative mesh - wireframe looks like this Here's the material But the shaded object looks like a tie dye tshirt I've no idea what settings are causing it to look like this. These are ...
user avatar
  • 190
2 votes
5 answers
7k views

Why are all materials pink in my Unity URP project?

Version: Unity 2020.2.0f1 I started my project with Universal Render Pipeline template but I don't know why all materials are pink. I even tried to upgrading but nothing happened. This error was ...
user avatar
0 votes
0 answers
608 views

What exactly are smart material packs on Quixel Mixer?

Not sure if this is a good spot to ask this, but I'm using this for Unreal, so I figure it probably is? If not, please comment instead of downvoting. When prompted to select the packs I wanted on the ...
user avatar
  • 490
0 votes
0 answers
37 views

How to convert this shader from Worldspace into Localspace?

Based on this question (LINK) ...
user avatar
2 votes
1 answer
830 views

How do I add materials to a glTF model in Godot Engine?

I'm using glTF Embedded files because I was told they are the best files to use with Godot, so I got a pack of a bunch of really lovely trees and other things to use in my game. But when I import it, ...
user avatar
  • 19
1 vote
1 answer
907 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 ...
user avatar
  • 11
0 votes
0 answers
449 views

Load Material from file path or parse .mat file to Material - Unity

Is it possible to load a material from a file path? Or, otherwise parse a .mat file saved on disk to a Material usable at runtime? I had naively thought it would be possible to assign the bytes from a ...
user avatar
  • 174
1 vote
1 answer
125 views

Programmatically extract textures from an arbitrary material

How do you programmatically extract the textures and other properties of an arbitrary Unity material? Ideally runtime - I'm trying to upload the data to the server for remote access.
user avatar
  • 174
0 votes
0 answers
71 views

Unity: Texture glitches on Build

I'm getting the most horrible glitches on multiple materials and objects. In the Unity Editor everything is fine. When building individual scenes alone it is fine. But when I build all the scenes ...
user avatar
  • 619
0 votes
0 answers
162 views

Rendering Mode transparent is not applying in webgl build

I am using this method to convert opaque rendering mode to transparent. ...
user avatar
0 votes
1 answer
37 views

How to make one material on object with many parts inside?

I have a weapon witch have many parts, it also have many materials. Do I really need to make it like that? It's like about 8 mats! :(
user avatar
0 votes
1 answer
46 views

Object turns white

Any idea why this character turns white in Game window with Play button on and off? The character is fine when the animations are not present but the file with the animations shows the character as ...
user avatar
  • 151
-1 votes
1 answer
12 views

How do i change the material of a object separate from the script [closed]

I just need to know how to change the material of an object from another's script so that I don't have to make a script in the other object and change the material from their.
user avatar
  • 1
0 votes
1 answer
2k views

Applying texture maps from Blender to Unity material properties

When I bring my Blender file into Unity, I will attach the texture maps from my Blender material (left) to the Unity material (right) as follows: diffuse/color map --> albedo normal --> ...
user avatar
  • 135
1 vote
1 answer
271 views

Draw calls in Unity 3d [closed]

I have only 20 materials in my game (19 are made with textures atlas). But the Setpass call is 72. I don't understand why. I want to know how to decrease the number of SetPass call. This is a brief ...
user avatar
  • 43

1
2 3 4 5