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

learn more… | top users | synonyms

1
vote
1answer
20 views

Unwanted highlight on far side of objects near the edges of the screen when using orthographic camera

I was creating a simple unity game with a sphere as a ball. The problem is that the ball face towards the camera origin renders material correctly but the one away from camera does not. The ball has ...
1
vote
1answer
110 views

Dynamiclly applied texture to gameobject using GUI button

In a scene Multiple different gameobject (almost 30 kinds of gameobject) with parent child relationship. At run time (by selecting on gui button) I want to change the texture of each clicked ...
0
votes
1answer
61 views

PNGs on a plane

I am trying to make a chain link fence using planes and a .png image as the texture, I am importing the whole environment from blender however this problem keeps on appearing, the plane gets the .png ...
0
votes
1answer
149 views

Java - LWJGL OBJ Loader with Materials not rendering

So I successfully loading my obj file but I obviously want to get materials on it. I added the vt(texture) to the OBJLoader and the Model.render but still rendering textureless. I have exported the ...
2
votes
1answer
1k views

Adding materials to a Line Renderer through code? (Unity)

I have a material that I am using to add a glowing effect to my line renderer. I can add this as a 2nd material to the line to give it a glowing effect. I want to be able to add/remove this material ...
1
vote
1answer
50 views

How to get color or value from material with shader?

I have a sphere with a shader with colors for specific heights and I want to get the value at the cursor(height) or color of the point the cursor is on when clicked. Is there a good way to get this ...
2
votes
1answer
1k views

How do I create a manual object with colors for each vertex?

How do I create a shaded manual object with colours for each vertex? Eg if ogreObj is the Ogre::ManualObject : ogreObj->begin("BaseWhiteNoLighting", Ogre::RenderOperation::OT_TRIANGLE_LIST); ...
0
votes
0answers
9 views

MeshRenderer.sharedMaterial does not change twice

Hi I was changing material from an object and using this code that's working well: MeshRenderer renderer = tile.GetComponent<MeshRenderer>(); renderer.sharedMaterial = ...
0
votes
0answers
47 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 ...
1
vote
1answer
53 views

Gameobjects disappearing when changing renderer.material.color

I'm generating an array of objects using this code: while(currentPosition.z < poolSize){ var ringObj = GameObject.Instantiate(ring) as GameObject; ...
0
votes
0answers
33 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 ...
-1
votes
1answer
53 views

Unity3D - Resources load to materials, how to?

I think is a simple question, but I don't know nothing about it: I have an created material in my materials folder, I just want to apply it to the GameObject by script. I am trying ...
0
votes
0answers
18 views

Automate Material assignment and imported texture size setting for Unity 5

I work in Unity 5. Is any way to automate Material assignment on several models at 1 click (not to drag and drop on every one) and set default imported texture size to 4k (2k is default usual). I ...
3
votes
1answer
466 views

Importing materials from blender to UE4

So my problem is that I have a nice green glass material in blender which I imported to UE4 (4.8.1) but in the editor the material was just a simple green colour. I have no idea what I should do to ...
6
votes
3answers
506 views

How to create a material with variable color

I'm new to Unity and trying to create a Carrom game. Since all the White and Black pieces, Queen basically have the same material and physical properties and texture except for their color, I'm trying ...
0
votes
0answers
91 views

Weird squares everywhere

So in unity I have some weird squares on surfaces of certain objects, which are buildings represented by planes: I don't know what causes it, I tried changing some settings in lighting and ...
0
votes
1answer
42 views

Trouble in 3DS MAX 2016 exported ogre.mesh file refering the correct .material

Actually we have some trouble in exporting ogre mesh + material files correctly from 3dsmax. We are using "Easy Ogre Exporter V 2.40" for the export to ogre format. And actually just testing its ...
0
votes
1answer
107 views

How to find a material through a raycast in Unity 5?

I have an empty object with a script on it and I want to be able to move the empty over other objects and then have it print out the name of the material for the triangle that it's hovering above. ...
2
votes
0answers
78 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 ...
4
votes
1answer
419 views

Can instantiated objects have different material/texture?

While I have some experience with simple 2D games, I am new to more process-demanding 3D games. One basic question that has been concerning me recently and for which I am having difficulties to find a ...
6
votes
2answers
124 views

Shading Languages vs Materials in 3D editors

There are many 3d packages which are able to construct materials. Autodesk Maya, 3ds max, Houdini, etc. There are languages which are able to construct materials as well, like GLSL and Cg. How does ...
4
votes
2answers
691 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 ...
1
vote
1answer
31 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 ...
0
votes
1answer
71 views

Unity2D Sprite gone / not visible when flipped using Vector3.x

I have create game object with code using UnityEngine; using System.Collections; public class CharacterBehaviour : MonoBehaviour { private bool facingRight = true; private float moveDirection = 0; ...
0
votes
2answers
2k views

Unity how to change material properties at runtime

I'm working on a unity game where I want to change the color of a material from within a script. The material applies to a line renderer. I currently have the following script: using UnityEngine; ...
2
votes
1answer
60 views

Make a plane to display material from both sides

I know there is a setting in Cry Engine, which allows you to be able to read materials of the plane from both sides, so I am wondering if there is such a setting in Unity5. Thanks in advance
0
votes
0answers
51 views

How should I organize multiple materials?

I'm making a tile-based game, in which many tiles will be of the same type, and so I want to avoid having the same texture for all of them. I'm thinking of having multiple textures for those widely ...
0
votes
0answers
27 views

Material spilling over to the other side of the object?

I have a material on an object which is having some strange behaviour. Here is the material settings I have along with the image file I have: and when I look very closely on the side of the object ...
1
vote
1answer
293 views

Unity5 imported models show no texture

I've got a problem with Unity materials. I'm a beginner- so I used Wings3d for creating 3d models. But there's a little Problem. Both objects on the picture below have the same material(a Standart ...
0
votes
1answer
117 views

Sprite disappears after adding a material to it

I have background which is FirsLayer, order in layer 0 and platform over it which is FirstLayer, order in layer 1. Once I add a material to the platform, the layer doesn't seem to change but it ...
0
votes
1answer
250 views

Unity 5 - Texture/Material rendering issue

I am working on a Minesweeper clone that started as a Unity 4.6 project and ended up as a Unity 5 project. I have cube objects that use Legacy Shaders/Diffuse. I am new to Unity 5, so I am not fully ...
0
votes
1answer
44 views

trouble getting the lighting and material set up right

I am having some trouble getting the lighting and material set up. Below I have setup lighting and material, however, when ever I turn on spectular reflection for material the sphere that I am ...
5
votes
2answers
1k views

(Unity) Is there a way to automatically create a material for each texture and assign the texture to it?

I have imported hundreds of textures in my Unity project, and I'd like to create a material for each of them. This would obviously take a lot of time, so how would I go about doing this automatically? ...
1
vote
0answers
144 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 ...
0
votes
1answer
47 views

Combine skin material to two elements without a visible seam

Software used: 3ds max 2015 and Photoshop CC 2014. I have two elements of the head, the "FaceHead" and "UpperHead". I used unwrap UVW for both elements and used Photoshop to add a skin color (eye ...
0
votes
1answer
663 views

Memory game - texture on cards

I'm new with Unity and I'm working on recreating memory game. I found this sample: http://xtasestudios.com/unity/samples (select "Memory"). I decided for C#. I've created my own card in Blender, ...
0
votes
1answer
207 views

Imported Blender modular mesh lighting/shadows issue - Unity

Hi I've very recently started using Unity and am creating a game level. I've created my environment in blender and am currently using a modular design as I'd like to include destructible environments. ...
1
vote
2answers
1k views

What are 'physically-based' lighting/rendering/materials?

What's the difference between physically based lighting, physically based rendering and physically based materials? How they are different from deferred and forward rendering? And physically based ...
2
votes
1answer
351 views

OBJ file, face materials and drawing them with OpenGL

I'm implementing a model class which loads OBJ and MTL files, and ran into an issue or question with face materials. Consider the following example: It's a cube with 5 sides Gray and 1 side Green. ...
1
vote
2answers
2k views

Depth write and depth test in Unity

Scenario: several objects (o1, o2,.., on) have to be rendered with the z test disable, but the z values must be written to the depth buffer. In another pass, some other objects (t1, t2,..., tm) need ...
0
votes
1answer
222 views

Render model with meshes with materials and/or textures

I'm making a model class that is using Assimp in the background. I want my models' meshes to be able to have a material and an optional texture on top of that. Right now I'm doing it like this: for ...
10
votes
1answer
1k views

Implementing a Graph-Based Material System?

I'm trying to wrap my head around how material systems like this, this are implemented. These powerful and user-friendly, graph-like systems seem to be relatively common as a method of allowing ...
0
votes
1answer
583 views

Why does changing texture change it for both objects? [duplicate]

I have two identical objects in my Unity scene. When I change the texture of one, the texture is changed on the other, almost as though the first one is a prefab. Why is this happening and how can I ...
3
votes
1answer
6k views

How do I change the material of an object with Script in Unity?

I was making a game with Unity and I want to change an object's material using JavaScript when the player collects 5 collectables that I made. The collectables get stored in an int variable called ...
0
votes
1answer
192 views

Terrain (mesh) textures in Unity - blurry?

I've created a 3D mesh in blender which will be used as a terrain in Unity. Additionaly, I created a 900x900 texture which I'd like to apply as material to the mesh. However, unlike with the normal ...
2
votes
1answer
2k views

Create sprite renderer using custom material

I have done following thing. Create Material Attach sprite with texture type as Texture Add sprite renderer component to game object Assign material to it that I create in last steps There is no ...
0
votes
1answer
821 views

UE4: Apply texture on landscape based on angle

I am creating a material for my landscape. I know that one could for example use the landscapes heightmap as a mask to apply textures at certain heights, but I want to apply textures at certain ...
1
vote
1answer
228 views

Missing colors in Collada export from Blender

I've noticed something strange in a Collada DAE export from Blender. I've assigned Diffuse BDSF colors to 4 faces of a cube as shown here: http://www.4shared.com/photo/_hM04zywba/blendcube.html It ...
0
votes
1answer
597 views

Could you explain this calculation of tiling and offset?

I don't understand why we add +colNumber when we calculate the offset = Vector2 ((uIndex+colNumber) * size.x, which gives us x=3 for the index 13, which is the square located at the coordinates x:1, ...
5
votes
2answers
1k views

Detecting Light Intensity Around Characters

Later Edit Since there seemed to be a bit of confusion: I am asking this for purely didactic reasons, I'm not searching for the most efficient solution. Reformulated question: I'm working under ...