The tag has no wiki summary.

learn more… | top users | synonyms

14
votes
3answers
1k views

Difference between Material and Shader

In a game a material does only influence the visual appearance of the object. The visual appearance is effected by shaders. So regarding to terminology is there a difference between materials and ...
6
votes
2answers
394 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 ...
4
votes
1answer
520 views

Material System

I'm designing Material/Shader System (target API DX10+ and may be OpenGL3+, now only DX10). I know, there was a lot of topics about this, but i can't find what i need. I don't want to do some kind of ...
3
votes
1answer
382 views

Rendering different materials in a voxel terrain

Each voxel datapoint in my terrain model is made up of two properties: density and material type. Each is stored as an unsigned integer value (but the density is interpreted as a decimal value ...
3
votes
1answer
392 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); ...
2
votes
1answer
96 views

How do I apply a texture over a material in OpenGL ES?

How can I apply a texture over a material? I've set up an object with the following material: GLKBaseEffect *effect; effect.colorMaterialEnabled = false; effect.material.ambientColor = ...
2
votes
2answers
94 views

Materials and Mesh association

I'm trying to implement a Material system in a small engine for training and I've got questions about materials. Currently I've got that: Material: A Material with array of Technique Technique: ...
2
votes
1answer
170 views

Material, Pass, Technique and shaders

I'm trying to make a clean and advanced Material class for the rendering of my game, here is my architecture: class Material { void sendToShader() { program->sendUniform( ...
2
votes
1answer
95 views

Is there a material format for OpenCTM files?

I consider using OpenCTM files for my game. Since the format only claims to store raw mesh data, my question is if there is a associated file format for material data and paths to texture maps. For ...
2
votes
1answer
473 views

Distortion of color space in UDK (material editor)

Question Using UDK's material editor, I wish to use a texture as a two-dimensional array of values for mathematical computations (basically, the color components of each pixel in the texture alter ...
1
vote
1answer
862 views

How do you rotate a material 90 degrees in UDK?

So, I have started checking out UDK since yesterday, and most of it is clear and understandable. I'm trying to create a curved road. The idea was to use a brush (Curved Staircase) and set the steps ...
1
vote
1answer
225 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 ...
1
vote
0answers
71 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
103 views

Set alpha cutoff value Unity3d

I am continuing my previous question( link ). Now its working as per this demo. and the coding written to set cutoff is here : function Update () { renderer.material.SetFloat("_Cutoff", ...
0
votes
1answer
177 views

Ogre: Light not reflecting correctly

In my Ogre 3d scene I have an empty box, and within that there are three small cubes. The camera is also within the box, facing the three small cubes. The user can move and rotate the camera with the ...
0
votes
0answers
31 views

How do I apply a specular/reflective map in Rhinoceros?

I'm designing a 3D model using Rhinoceros 5, and after having created the UVMap with UVLayout, I've imported the .obj file back into Rhinoceros to apply materials to it. I've successfully added ...
0
votes
0answers
59 views

Dynamic load and unload material

For targeting multiple display resolution, I focus on using MultiPlatform Toolkit usage. In which I found following statement in tutorial section for dynamically handling materials. "Just remember ...
0
votes
0answers
155 views

Importing materials along with terrain from Bryce

I've created bunch of terrain in Bryce, and I've managed to import the most basic part of it without any fuss. However, anything more complex (mountains, etc) cannot be imported without the material ...