Tagged Questions
The shaders tag has no wiki summary.
1
vote
0answers
55 views
3D Studio Max Models and Shaders to XNA
I am looking for a way to import my 3D models, including materials and shaders to from 3D Studio Max to XNA.
For example, if I have a model, with diffuse, bump, reflection textures and values (in ...
0
votes
0answers
15 views
What can cause D3DXCreateEffectFromFile to CTD without error message?
One of my testers have reported that free game I am develeoping have crashed to desktop without any error message (I don't have personal contact with testers, but they have Dr. Watson installed). I've ...
5
votes
1answer
77 views
What is the point of this hard-coded vector when calculating luminance in glow/bloom effects?
I have looked at two different vertex shaders that calculate luminance and both use a "magic" vector that I'm not sure the meaning of the the actual values. For instance:
const mediump vec3 ...
2
votes
1answer
42 views
Shader issues when creating projection using CreateOrthographicOffCenter instead of CreateOrthographic
Pre. Having these matrix transformations:
var scale = Matrix.CreateScale(50f);
var eye = new Vector3(0, 0, 10.0f);
var view = Matrix.CreateLookAt(eye, Vector3.Zero, Vector3.Up);
var projection = ...
3
votes
1answer
112 views
What do the components of gl_TexCoord[0] mean?
What are the differences between gl_TexCoord[0].s, gl_TexCoord[0].t gl_TexCoord[0].p and gl_TexCoord[0].x, gl_TexCoord[0].y gl_TexCoord[0].z ?
I understand that gl_TexCoord[0].x, gl_TexCoord[0].y ...
0
votes
0answers
25 views
Matrix for positionning shadowmap on (in) screen (space)
I'm struggling with a PSSM implementation. I'm able to render the shadow maps but when I need to apply them, there is not enough slots free.
The terrain shader I'm using (for example) only has one ...
3
votes
1answer
108 views
Changing the color of some fragment of a texture using shaders
Declarative programming language QML allows to connect the elements, their properties with universal variables in shader programs description. For these purposes there is such elements as ...
3
votes
2answers
115 views
Fire range arc behind buildings
need some help with HLSL. Each charater in my game shows a fire range arc (which is a textured model) which show how far the guy can shoot, see
It looks ok, but I hate the fact that it shows even ...
6
votes
5answers
473 views
What rendering techniques would I use to draw a drop shadow effect for cards in a card game?
What type of shading algorithm might be used to create shadows like these?
the one I'm making is similar but it is all done with a 2D drawing API powered by OpenGL so there is no Z coordinate.
In ...
1
vote
0answers
59 views
How can I use the dualforward parameter in my unity shader to use lightmaps and normal maps together?
I'm using the free version of unity and I would like to combine lightmaps with specularity and normal maps. After doing a -bunch- of research, I've figured out that there doesn't seem to be any easy ...
0
votes
1answer
135 views
Some help understanding and modifying a 2D shader
I have a similar question as the one posed here, except that I don't wish to use a 1D Color Palette.
I simply wish to have it display 1 color of my choosing (red, for example). I plan to use this ...
0
votes
1answer
142 views
Toon shader with Texture. Can this be optimized?
I am quite new to OpenGL, I have managed after long trial and error to integrate Nehe's Cel-Shading rendering with my Model loaders, and have them drawn using the Toon shade and outline AND their ...
1
vote
0answers
135 views
XNA 4 Deferred Rendering deforms the model
I have a problem when rendering a model of my World - when rendered using BasicEffect, it looks just peachy. Problem is when I render it using deferred rendering. See for yourselves:
what it looks ...
1
vote
1answer
56 views
Setting the values of a struct array from JS to GLSL
I've been trying to make a structure that will contain all the lights of my WebGL app, and I'm having troubles setting up it's values from JS. The structure is as follows:
struct Light {
vec4 ...
4
votes
2answers
210 views
Is it possible to load shader files from a DLL?
I have a few HLSL files that I'd like to add into a DLL project so that I don't have to keep adding these same shader files into a new Content project every time I want to use them. Is this possible, ...