Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [materials]

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

0
votes
0answers
28 views

Textures go black when changing Quality Settings at runtime

Whenever I change my Quality Settings at runtime in editor mode or in build, all of my textures turn black. I use the following line to change the quality settings : ...
0
votes
0answers
22 views

Drawing a helix effect in Unreal

i want to draw/graph an equation(like sinusoidal signal or any parametric equation) in UE4. I don't know if that is possible. I looked for it but found almost nothing. here is what i found most ...
1
vote
0answers
22 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 ...
0
votes
1answer
66 views

Unity HDRP Testing - Scene View Issues / Lighting / Shaders / Shadows

Yo Guys. Makings this dope, GlassChess Game, Wanted to try out the new HDPR in unity 2018, add the package and volia, its working. (done all settings) So I used custom glass shader before trying out ...
1
vote
0answers
43 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 ...
1
vote
0answers
18 views

What are AO / NM / D / SG texture name equivalents in Unity

I'm not a modeler and i don't know how to match each texture with the requested ones by the material. In one side i got unity: And in the other, this model textures: The only references that i ...
0
votes
0answers
22 views

Unity 2019 Extremely Reflective Foliage

I've been working on a project involving a lot of foliage and I needed translucency so I upgraded to the latest unity beta to get access to the new features and the HDRP (which is still available on ...
0
votes
0answers
49 views

Unity: how to mimic the lighting of a mesh as seen in the editor view

I have a camera which shows a "bird's eye view" of a procedurally generated mesh like so: Currently in the editor view (right), the terrain looks exactly as I would like it to. However, in game (left)...
0
votes
1answer
65 views

how to set multiple materials using array in the submesh of an object

I'm trying to insert multiple materials into the object's submesh using the array, but I'm not getting public GameObject[] obj; ...
0
votes
0answers
20 views

Easily get several materials from different objects onto 1 UV map/material?

Im trying to improve performance, and I found an asset called https://forum.unity.com/threads/one-batch-combine-hundreds-of-materials-into-one-draw-call.555643/ that claims to do what I need - which ...
0
votes
1answer
26 views

Creating materials in modeling program vs in Unity: when to do either?

This is something I should know the answer to by now, so I'm asking to clear up the gaps in my knowledge: As I (re)learn about shaders, specifically in relation to Unity, I see all sorts of ways to ...
2
votes
1answer
178 views

Recreating Common “Glowing Pillar” Effect in UE4

I've noticed a common "glowing pillar beacon" effect in a few games lately (Overwatch, Fortnite, etc). The effect provides a translucent glowing beam pointing upwards that tapers off towards the top ...
0
votes
1answer
125 views

How to download material files (including shaders) from external source on runtime?

My game has a lot of different materials, shaders and textures. When a bunch of players are dropped into the same game, I want those assets to be loaded from an external source instead of being built ...
1
vote
0answers
105 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 ...
0
votes
2answers
49 views

Sprite brighter than texture

I have imported a new texture into UE, and have created a new sprite. I have setup the material of the sprite as follows: I have also set my texture as texture-parameter. But my sprite renders ...
0
votes
1answer
96 views

Draw a sphere with a custom material from script

How can I spawn or draw a sphere with a custom material with a script? So far I've tried using Gizmos.DrawSphere, but I can't find a way to control the material used to draw it. I would like to draw ...
0
votes
1answer
156 views

Unity run-time creating material has performance impact?

Just found creating a material in a script for the first time would have performance impact. (Using Unity 5.6.5f) A very simple script for testing is to create a game object with MeshRenderer in ...
1
vote
1answer
95 views

Unity: How do I only show parts of objects that overlap [2D]

I'm working on a 2D Unity project where the player can only see objects in their field of view. I have successfully created a mesh that overlaps anything that would be in the player's field of view, ...
0
votes
0answers
26 views

Unreal Expose Terrain Layers via a blueprint

I have the below play area and I have 4 terrain materials defined in a material and attached to the terrain. What I want to achieve is a way to use a blueprint to expose the pathway layer through the ...
1
vote
0answers
22 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 ?
2
votes
1answer
74 views

Blender to Unreal Material workflow…?

I'm new to game development and the Unreal Engine and I have a general question. I model my objects in Blender and import them into Unreal Engine. My question is, is it better to create and apply ...
0
votes
1answer
533 views

How to do “realistic” plastic material?

How can i do "realistic" plastic material in Unity 3d , using standard shader or other shader ? Can you suggest me options ? Thanks
0
votes
1answer
95 views

Emit particles from only some parts of a mesh

I have a 3D mesh with 3 sub meshes in it, for 3 different materials. I would like particles to spawn from the mesh, but only from location where one of the material is assigned. How can I make this ...
4
votes
1answer
281 views

Show Unity Line Renderer as 3d cable or wire

I am dynamically making a line renderer which is pull by the character to show that a character is pulling a wire. The line renderer working fine but unfortunately its display is not according to my ...
1
vote
1answer
71 views

Renderer.material assignment not working [closed]

I have a fairly simple question: I am trying to change an object's material via code with the line rend.material = NewMat; where ...
1
vote
1answer
315 views

How to target specific material with Unity VideoPlayer?

I've modeled the following tv-monitor: This monitor has two materials. The "frame" that makes up the monitor, called MonitorFrameMaterial and the black screen ...
1
vote
1answer
143 views

Create lamp shade material

How would one go about creating a lamp shade material that lets light through from a light inside the object. I have read that turning of shadow casting for that object should work, however I have ...
1
vote
1answer
385 views

How can I properly add material textures to my model?

This is the first time I'm doing game development and I decided to pick Godot engine. I downloaded some object on the internet for my initiation learning. There are four files: throp_srub.obj ...
1
vote
1answer
146 views

How to make a prefab of a blood effect using provided shader/materials in 2D?

I want to create a blood splat effect as shown in this link: https://gfycat.com/CharmingThickFlies The developer was nice enough to leave the source explain how to apply this. But I cant seem to ...
3
votes
1answer
446 views

How can I make Iridescence material In unity?

One of the characters of the Dota2 that Is called Nyx Assassin has an interesting material effect If you look at the body and feet you can see this effect.It looks like poily/polluted water.I like to ...
0
votes
1answer
375 views

Creating paralax background in Unity3D

I am trying to create some parallax background in Unity in 2D mode by tweaking offset of the background material and using tiling. I used this tutorial https://www.youtube.com/watch?v=nGw_UBJQPDY as a ...
0
votes
1answer
99 views

Spine and 2D Unity Weird Light Issue

While using spine in unity 2D with a spot light, the light from the spot light will shine on the character if he's facing right but only when the light is in front (in the Z direction) of the ...
0
votes
1answer
370 views

How to stop and start sprite sheet flipbook materials in a widget blueprint?

I have a flipbook material I created from a sprite sheet to add some fireworks to a game I'm working on. I have the material set up and it is showing the animation of the firework like it should. ...
0
votes
1answer
34 views

Is multiple material on same mesh cause low perf?

I'm making something like "Low poly" style game. For that, I'm using multiple materials for each mesh without uv mapping and texturing. Luckily, only weapon does this, others not. Also it's first ...
0
votes
0answers
85 views

Unity - Materials gray from distance (without fog)

I am trying to generate some terrain, but the materials are greyed out when zooming out. That would look something like this: So, what you are seeing here is the landscape I am generating, which is ...
0
votes
3answers
2k views

Can't change materials of model from FBX

I was used 5.x before, and that version when I loaded FBX, Unity generated each material automatically, so I can change them like assigning textures or change shader. And now I switched to 2017.3, ...
2
votes
0answers
56 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 ...
1
vote
0answers
279 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 ...
1
vote
0answers
76 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 ...
0
votes
1answer
62 views

Having 3D material properties depend on shader

Disclaimer: I apologise if this is somehow a duplicate question or is unclear. I am in the process of writing a 3D scene renderer/editor in C++ using the OpenGL specification. It is actually going ...
0
votes
1answer
37 views

Rendering into every material preview windown. How is this possible?

So starting up unity today has presented me with a extremly wierd bug. The animated material that is rendered by the NVidia HairWorks Integrationg seems to be rendering into every material preview ...
0
votes
1answer
98 views

How to texture a floor so that edges have slightly different texture than the rest of the floor

When trying to create somewhat realistic environments, I often find that the edges where floor/wall/ceiling meet will have slightly different texture compared to the rest of the floor/wall/ceiling. ...
0
votes
1answer
77 views

Using 10 materials for one Model? [duplicate]

I made more than 10 robots. all of them had not less than 4 materials, and some had 12 materials. I can't go back and fix this. How this will effect on the game performance later ?
4
votes
2answers
435 views

Using different shaders based on desktop or mobile?

Most of my assets use the Unity standard shader. It looks and runs fine on Desktop, but on mobile the performance isn't good. I assume the solution is to switch to one of the mobile friendly vertex-...
1
vote
0answers
88 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 ...
1
vote
0answers
112 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 ...
1
vote
1answer
70 views

Why does my line disappear against a white image?

A GIF is worth a 10002 words: Why does the rainbow-colored line disappear when it is displayed against the white image? A few more details: The line is a Vectrosity line that is rendered using Unity'...
0
votes
1answer
84 views

Why does my shader's Texture become unselected when I run my game?

I'd like to add a custom material to a line that I'm drawing in Unity (using Vectrosity). I'm using Unity's built-in "Unlit/Texture" shader. When I drag a texture from my Resources directory into ...
0
votes
1answer
56 views

Blender layer weight material to Unity

How to set in Unity this Blender material with layer weight node?
0
votes
1answer
616 views

Emission on part of the mesh

I would like to port this mesh in Unity but in a way that smaller face, which is selected, has emission material and rest of the mesh has albedo material. I know how to apply material in Blender on ...