Stack Exchange Network

Stack Exchange network consists of 174 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

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
1answer
23 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 ...
0
votes
0answers
15 views

Unity material array instead of color array

I am trying to have multiple materials on a mesh but on specific locations of it ( not overlapped ). Currently, I generate Color[] and use it to create a texture, it works rather well but it is ...
0
votes
0answers
19 views

Unity apply materials to parts of a mesh

How can I apply materials to a part of a mesh in Unity ? As an example I would like to place grass on the first half of a plane and rocks on the second. And if possible, how can I manage transitions ...
0
votes
0answers
20 views

How to QUICKLY make material from images in Unity?

Ok for these years Ive made materials from exported texture images by 1. importing the images 2. make a material 3. Manually drag each image into its slot in the material There must be a faster ...
1
vote
0answers
77 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
53 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 ...
0
votes
0answers
19 views

LineRenderer Sprite/Default Material Problem?

Hi guys, I am working on adding a smooth material to line renderer but there is a problem with it. If I use sprite default for material my line become jagged. but I want a bit smoothy line. So I made ...
0
votes
0answers
101 views

Flickering pixels in texture when moving VR camera

I want to be able to create scenes from a photograph, for this I use Shader forge, Unity and tiling is applied to the photo. I am working on an Android application with Google VR in Unity and I have ...
1
vote
0answers
47 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
0answers
17 views

Sprite more bright than texture

I have imported new texture to UE, and have created new sprite. In the sprite I set as material next one: Also I set as Texture-parameter my texture. But my sprite render more bright than its texture....
0
votes
1answer
54 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
0answers
35 views

Unity C# - Apply a Shader to LineRenderer based on local coordinates of the LineRenderer

first of all: I'm a Unity Beginner, so i'm very sorry, if i'm asking a stupid or simple question. That being said here is my problem: I'm using Unity's LineRenderer to simulate waveform lines and ...
0
votes
0answers
32 views

Meshes pasted into UE4 project have no color - only grey default material

I downloaded an asset pack to start making my own landscape. I copied & pasted the assets files from the .rar archive to my UE4 project folder, and now when I launch Unreal Engine and try to ...
0
votes
1answer
75 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
66 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
23 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
20 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
0answers
29 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
268 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
37 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 ...
3
votes
1answer
212 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 rendere working fine but unfortunately its display is not according to my ...
1
vote
1answer
44 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
116 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
99 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 ...
0
votes
1answer
246 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
99 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
283 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
300 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
80 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
0answers
54 views

Unity material applied shown as solid color

I imported my *.fbx file from blender into unity. I also created a material as shown in the image, but when I apply it to the object it is just shown as dark-grayish color. It's not showing the actual ...
0
votes
1answer
215 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
33 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
64 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
2answers
1k 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
202 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
71 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
55 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
69 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
66 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
348 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
60 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
99 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
68 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
59 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
54 views

Blender layer weight material to Unity

How to set in Unity this Blender material with layer weight node?
0
votes
1answer
411 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 ...
1
vote
1answer
178 views

How to procedurally generate materials with text in Unity

I'm designing a virtual library that dynamically loads sections of a database and need to display text on the books. As such, I need a runtime interface to somehow load book titles and author and put ...
1
vote
3answers
474 views

How to make a static Material reference?

I have a class Edge which may change to multiple colors - materials in this case. I need to switch a Material on ...