Tagged Questions
3
votes
0answers
99 views
Combining Effects
To be able to work efficiently with effects, isn't there a "good" way to combine multiple effects so that one effect handles stuff like "Multi texturing" and another controls the value like Ambient ...
8
votes
1answer
267 views
What is Ramp Shading or Lighting?
What is ramp shading or lighting and how does it work? Is it different than toon shading or is it the same concept? How is specularity calculated differently for ramp shading versus blinn-phong or ...
5
votes
1answer
269 views
Performance of pixel shaders vs. SpriteBatch: XNA
Precondition: I read this question/answer about using shaders, or spritebatch, to render and mark a sprite.
I need to do something like that. I also have a 2D lighting PoC which I need to write. The ...
5
votes
2answers
628 views
How can I acheive a smooth 2D lighting effect?
I'm making a tile based game in XNA.
So currently my lightning looks like this:
How can I get it to look like this?
Instead of each block having its own tint, it has a smooth overlay.
I'm assuming ...
0
votes
0answers
81 views
How to move a directional light according to the camera movement?
Given a light direction, how can I move it according to the camera movement, in a shader?
Think that an artist has setup a scene (e.g., in 3DSMax) with a mesh in center of that and a directional ...
1
vote
1answer
400 views
how to modify shadow mapping in “3D Graphics with XNA Game Studio 4.0”?
So I've been following the tutorials from the book Sean James's "3D Graphics with XNA Game Studio 4.0", and have been doing fine until i reached the shadow mapping part.
in this book it creates point ...
0
votes
1answer
168 views
Drawing at negative coordinates in XNA?
I am trying to make a 2D isometric RPG and I kind of hit a wall when it comes to lighting.
I was thinking of using shaders, if I manage to understand them.The problem I am anticipating is the presence ...
2
votes
2answers
428 views
Lighting problems with Terrain
I'm in the process of learning Open GL and am having issues with lighting on my Terrian, I don't know if the issue is related to how I calculate my normals or the shader itself (I am using the shader ...
4
votes
2answers
636 views
XNA 4.0 - Normal mapping shader - strange texture artifacts
I recently started using custom shader. Shader can do diffuse and specular lighting and normal mapping. But normal mapping is causing really ugly artifacts (some sort of pixeling noise) for textures ...
8
votes
2answers
509 views
Handle many lights in a scene (with shaders)
I'm curious about how to handle many lights in a scene. Given a very big map in a role playing game, with dungeons (with lights in there) etc. I know about deferred lighting, but that only answers how ...
0
votes
1answer
518 views
Help understand GLSL directional light on iOS (left handed coord system)
I now have changed from GLKBaseEffect to a own shader implementation. I have a shader management, which compiles and applies a shader to the right time and does some shader setup like lights. Please ...
2
votes
1answer
514 views
2D Point Light XNA , Why my point light radius is Oval?
I friend of mine , taught me how to make a simple 2d point light with shader, so i follow his steps and finally done it !
but something happend , the light shape is like an oval and not like a ...
16
votes
1answer
757 views
What is the math behind the light effect in krakatoa?
I'd like to know the math behind the light effect in krakatoa (click here for an example).
Light source is traveling with particles, but how is shading done? Is it something simple, like Phong ...
1
vote
1answer
705 views
How do you make a water shader?
I'm working on a minecraft-like world and recently saw this video with a water shader. I searched but couldn't find any good info on how to do something similar. Maybe I'm just googling the wrong ...
6
votes
2answers
607 views
Rendering collections of light sources
I have a small test environment where small point lights are scattered. Players should able to collect them.
The collectible lights are rendered using a simple billboard technique where two triangles ...
8
votes
4answers
579 views
I need help with 3d shading/lighting
How do you guys handle shading in a 3d game? I have a directional light source that shades one side of a tree made of cubes. The remaining 3 sides all get ambient shading only. So the 3d effect is ...

