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
1answer
34 views

Material looks different on programatically generated mesh compared to resized default cube mesh

I've written some code that generates a mesh from some 2D nodes, generating both triangles and vertices. It seems to have worked pretty well, since I get a solid mesh without any weird rendering ...
0
votes
1answer
39 views

Objects Imported from Blender to Unreal have really zoomed Materials

I've been learning how to use Blender for UE4. I just started figuring out how to define which sides should have materials on them. In particular, I wanted this building to have different materials ...
0
votes
1answer
23 views

How do I get current emission intensity of a material in code?

I'm unable to find how can I get current intensity level of emission in Unity. Is there some kind of method that can return its value? I need it to complete my algorithm's formula: ...
0
votes
0answers
31 views

Unity: GPU Instancing with different textures?

I'm making use of Unity's GPU Instancing in my 2D game and it really reduces draw calls significantly when using the same Material and same sprite (texture) on all ...
0
votes
1answer
10 views

How do I safely change properties on my skybox?

Usually in Unity, when your scripts make changes to something at runtime, those changes are not persisted back to design-time. This is generally considered a good thing. But for whatever bizarre ...
0
votes
1answer
12 views

what are texcoord tags in mesh.xml file in Ogrexml format?

I exported a 3d model from blender 2.79 and using ogrexml import/export plugin. but the texture will crash and UV map not working in that format. I made the model by four parts head-body-hands-shoes ...
0
votes
1answer
10 views

Apply Secondary Normal Map to Standard Shader by Script

I have a material with an existing normal map. I added a secondary normal map to represent damage via script. I assign to the appropriate texture property ...
0
votes
1answer
16 views

Unity3d texture size different than original png image [duplicate]

While selecting a png image as a texture for a material in Unity, it shows different size (bigger) than the actual file size, why is this so? how can I reduce its effective size to make it perform ...
1
vote
1answer
41 views

Efficiently rendering lots of the same mesh in Unity3D, but with different colors?

I'm working on a tile based game, where grass is spreading from tile to tile, so soon lots of grass appear on the board. Instancing is on, so the FPS is kind of good, even with 300k triangles (1 ...
0
votes
0answers
10 views

Blender 2.82: After saving baked texture, Blender thinks the file I saved is the “render result” still in memory, frequent issue

Even back during 2.79, when I wanted to bake a texture, I would have this problem. After a texture gets baked, I am notified that the image texture has been "saved internally" and now I must save it. ...
0
votes
1answer
14 views

Unity shader to pick 1 of 2 base colors for individual instances (picture)

I am building this scene in 3D using Unity 2019.3.13's Universal Render Pipeline. I have a block prefab that I want to instance, but I want to choose which are yellow and which are blue (you can see ...
1
vote
0answers
20 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 ...
0
votes
0answers
12 views

Do Unity bunch up similar materials automatically?

Imagine I have materialA and materialB. materialB is a direct copy of ...
0
votes
0answers
16 views

rust/kiss3d: How do I colour a mesh in Kiss3d? (code example request)

This is a question about the sebcrozet/kiss3d graphics engine for the Rust programming language. I have managed to create a mesh using group.add_mesh(). Now I want ...
0
votes
0answers
10 views

Automatic assignment of materials when importing FBX from Blender to Unreal

I have a model in Blender and have assigned placeholder materials to its faces. I can export it from Blender to FBX and import that to Unreal Editor fine. After I import the mesh I can assign Unreal ...
0
votes
0answers
14 views

How to stop custom normals from breaking on deform in UE4?

Can anyone clarify how companies like CyberConnect2 and Arc System Works keep their normal edited meshes looking so clean even with skeletal and morph target deforms in UE4? I get clean normals for ...
0
votes
0answers
18 views

How would I replicate a gradient opacity barrier?

I would like to implement a visual barrier to gracefully hand-wave away areas the player doesn't need to see, such as the interior of a building while a door is momentarily opened. I am trying to ...
0
votes
1answer
13 views

How Can I Separate a Mesh Into Two Separate Objects Without Corrupting UV Data?

I'm working in Blender and Unity. I downloaded my character from DeviantArt here, used Blender along with this addon to import the character's .mmd file to Blender, and saved her as a .blend file in ...
0
votes
0answers
25 views

How to center minimap texture view ue4

Hi I am trying to create a minimap for my game and I am almost there the only problem is that i want to center the view of my minimap because right now currently it's following my player like this ...
2
votes
0answers
88 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 ...
0
votes
0answers
11 views

Import SRP package to URP?

I updated from LWRP to URP and some asset material does not work "pinky". They told me to import SRP package to URP. I did not understand this ? How to do this step ?
0
votes
1answer
23 views

Unity Material Override Video is too dark

I have made a TV in Blender, UV Wrapped a material and applied a video on it in Unity. But the picture is too dark, and I would like to make it brighter. How could I solve this problem? The left ...
0
votes
0answers
23 views

What is the right way to access raw data from an Unreal material's output?

I am using an Unreal material not so much as a material but essentially as a compute shader for performance reasons (using the Custom nodes in a material blueprint), where I perform a bunch of per-...
0
votes
0answers
16 views

Setting and using a dynamic variable inside an Unreal material

I have an Unreal material that contains a custom node (with HLSL code) - where a condition involves comparison with a matrix of values that was computed in the previous time step. How can I create ...
0
votes
0answers
34 views

How can I sample from a normal distribution in HLSL?

I need to 'distort' individual pixels inside a compute shader node of an Unreal material. Specifically, the pseudocode for this per-pixel operation looks as follows. ...
0
votes
1answer
27 views

Clamp UVs checkbox disappeared?

I've run into the following problem. I'm following some tutorials for shading to the exact letter. It all works except my meshes have really bad shadowing in/on them. I see the difference with the ...
0
votes
1answer
336 views

How do I properly use Unreal's Lens Distortion plugin?

I am trying to use UE's LensDistortion plugin (seems like it's bundled with the engine but only put to use in the Compositing sample project), and following the same workflow as the sample. ...
1
vote
0answers
104 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 ...
0
votes
2answers
70 views

What game objects can have a “material”?

In Unity, I created an empty GameObject called "Person". I created some child objects to it, such as "head" (a sphere), "body" (a capsule), "leg" (a box), etc. Then, I wanted to change the person's ...
0
votes
0answers
24 views

Can I “subtract” the current image from a previous one inside a UE material?

In Unreal Engine, I am trying to create an effect that essentially involves the following operation: If I have an image at time instant t, I want to compute the per-pixel difference between that image ...
0
votes
0answers
13 views

Unity Animated Materials Won't Preview

I'm looking for help 'cause I just got into this issue with Unity 2019.2.8f1 and I don't know how (if possible) to fix it. I probably should mention that I upgraded this project from Unity 2019.1.0f2 ...
0
votes
1answer
30 views

Simulate Unlit Shader using Physically Base Material Shader

Is there a way to have a physically based material shader look like an unlit shader? Note: this question is not unity specific. I am trying to understand in general if it is possible to maybe(?) set ...
1
vote
0answers
245 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 ...
0
votes
0answers
105 views

Unity 3D - Materials are Stretching and Tiling doesn't Help

I am a programming student working with Unity 3D, version 2018.4.6f1 for this class. I wanted to add some materials to my wall, however, this results in a rather ugly result, because my walls are of ...
0
votes
0answers
25 views

Blender-Unity (+ Lightmaps): Can I (should I?) have multiple UV maps for a single mesh?

I am making a game that I worry is not running optimally due to lots of high-res textures. The irony is that most scene assets use the same materials but I have to (do I?) unwrap the entire mesh on a ...
-1
votes
1answer
57 views

What goes into a realistic wood material?

Aside from getting a wood texture to use for albedo, what goes into a realistic wood material? For example, in Unity, there are settings such as Metallic and Smoothness, and different shader types ...
0
votes
0answers
16 views

Material becomes undefined when I create a prefab in Unity

I have a parent GameObject and nested models in it. When I create a prefab, I lose contact with the material in some parts of the model. Why is this happening? And how to avoid this? Object Hierarchy:...
1
vote
0answers
37 views

How to make a Material that looks like a sun

I am trying to understand material and shaders in Unity. I would like to make a material to attach to a sphere, and make it emit light like a sun. For the moment I do not care if it's not looking ...
0
votes
1answer
25 views

How to access random material in a renderer besides first without cloning any materials except accessed one?

Clones only first material: renderer.material Clones all materials in the same renderer: renderer.materials[0]
3
votes
2answers
706 views

How to Convert Sprite into Texture

I Have image with a sprite and i want to change this image sprite to Texture so that I can assign it to the material And i don't want to keep multiple copies for each image as a sprite and texture. ...
0
votes
1answer
94 views

Draw textured circle / 2D shape in SceneKit

I have the following code to create a circle Path and a SCNShape from this path. orbit_gradient.png is a horizontal 1px high image that represents a gradient. ...
0
votes
1answer
274 views

Why does changing Texture of Particle System using Material Property Block changes texture, but Particle System is still emitting old texture?

I try the code in Start, checking in Editor shows new texture, but Particle System still emits old texture. The script works for SpriteRenderer, but not ParticleSystem. I tried to Play/Stop emission - ...
-1
votes
1answer
58 views

Material in particle system is not showing in dark area

I am working on a muzzle flash with particle system where when the user fires the gun the material in the particle system will appear. The problem is that is shows really well in light but when the ...
0
votes
0answers
85 views

Asset with blinking lights/buttons for Unity?

I'm working on a number of assets that will have blinking lights on them. I'm trying to determine how best to set these up for use in Unity. For example, if I have a control panel with light-up ...
0
votes
2answers
287 views

How to make a texture appear the same way in a cube?

My problem seems so simple, that before asking the question here I did a search on google and this site: https://forums.unrealengine.com/development-discussion/content-creation/33665-applying-and-...
1
vote
1answer
34 views

How to set keys for emission on/off for a prefab?

I am making a prototype for a Mario game and am having difficulty completing a canned animation for a prefab. There is an item box asset that has 3 materials and an "ItemGet" animation. One of these ...
0
votes
1answer
75 views

how to make UI material ignore scene lighting, have same brightness as albedo?

I have a material on a quad surface object that is parented to a canvas for a pause menu. The material is animated (materials on UI elements such as canvases cannot be animated because of [reasons], ...
0
votes
2answers
124 views

How to reference a GameObject from the Scene Hierarchy in C#?

I am a novice in Unity. I have a Game Object named 'courtsuit'; you can see it in my Scene Hierarchy panel here: I added that object instance to my scene by dragging an OBJ file from my Project ...
2
votes
1answer
2k views

How can I update my materials to work with LWRP?

I'm using Unity 2019.1.6f1. When I open a new scene with the LWRP template project, I see errors from all materials in the scene. For example, the Jigsaw appears in my scene but in console window I ...
0
votes
1answer
43 views

How can I change a materials properties in my Unity c# code?

Hello everyone I want to change my materials tiling offset in code, but the only way I found to access it other than drag-dropping to a public field in inspector is to check by name. But I then ...