The effects tag has no wiki summary.
24
votes
3answers
1k views
How can I make water appear darker with depth, like in Minecraft?
In Minecraft when you look at water the deeper you view the darker it gets. Does anyone know how to code something like that?
Minecraft with effect
similar game without effect
14
votes
1answer
2k views
The practical cost of swapping effects
I use XNA for my projects and on those forums I sometimes see references to the fact that swapping an effect for a mesh has a relatively high cost, which surprises me as I thought to swap an effect ...
12
votes
3answers
2k views
outline object effect
How can I achieve an outline effect similar to the ones found in League of Legends or Diablo III?
Is it done using a shader? How?
I would prefer answers that are not tied up to any particular ...
11
votes
2answers
7k views
GLSL Shader Effects: How to do motion blur, etc?
I am not sure how right it is to ask this question, but still here it goes.
I have a full 2D environment, with sprites going around as landscape, characters, etc
And to make it more state-of-art ...
11
votes
1answer
455 views
XNA Adding Craters (via GPU) with a “Burn” Effect
I am currently working on a 2D "Worms" clone in XNA, and one of the features is "deformable" terrain (e.g. when a rocket hits the terrain, there is an explosion and a chunk of the terrain disappears). ...
7
votes
1answer
243 views
Overview/showcase of shader techniques/uses for games
I am looking for resources that can provide me with a better understanding of what kind of things shaders are used for in games, what they can do, and maybe even more importantly, what they cannot. I ...
6
votes
3answers
272 views
How can I modify how my scene is drawn to make it look like it's taking place at different times of day?
My game has a day-time association with the scene, that the morning light will be different from the afternoon and the night. But I don't know how to make this difference.
Here is an example in ...
6
votes
2answers
960 views
Electricity effect using XNA and Shaders
I'm looking for a shader or sample that does an electricity or lines-of-force effect between two points that can be used with XNA 3.1.
6
votes
1answer
1k views
XNA Aquatic Distortion Effect
I'm currently developing a 2D, top-down Windows Phone 7 game involving the surface of a pond. I'm trying to make the surface feel like actual water (as opposed to just a blue background with sprites ...
5
votes
1answer
166 views
Swaying Camera when Walking
You can see the effect in many games. The camera sways or wiggles a bit while walking to make the movement feel more realistic.
I have implemented a camera in my game. (Who'd have thunk it?) So is ...
5
votes
3answers
613 views
Scene transitions
It's my first time working with actual scenes/states, aka DrawableGameComponents, which work separate from one another. I'm now wondering what's the best way to make transitions between them, and how ...
4
votes
2answers
1k views
How do I align the matrix used in SpriteBatch and the matrix used in BasicEffect?
I'm writing a Windows tool that uses XNA and allows the user to place textures on the screen.
I'm using a 'camera' for the SpriteBatch used to draw the textures, e.g:
Matrix matrixForSpriteBatch = ...
4
votes
1answer
211 views
How to program a cutting tool for 3D model in game
I'm looking for a resource to figure out how to program a function to cut a 3d model in game.
Example: Enemy/NPC is sliced into 2 pieces with a sword. His body is not hollow, you can see bloody ...
3
votes
2answers
2k views
How do games make fire and smoke effects?
I was wondering around, searching internet about particle system and fire effects but I haven't found any good answers. On some games I have realized that some sort of movie is being shown as the ...
3
votes
1answer
590 views
Motion blur is blurring static stuff
I made a motion blur using OpenGL immediate mode, basically it involves saving screen to texture, then rendering blended texture back (let's skip the details) with something like this:
...
3
votes
1answer
280 views
Setting effects variables in XNA
I am currently reading a book named "3D Graphics with XNA Game Studio 4.0" by Sean James and have some questions to ask :
If i create a effect parameter named lets say SpecularPower and have in my ...
3
votes
0answers
54 views
Multipass shaders and switching between passes
As mentioned here Effects should be avoided in DX11. If I understand correctly, that includes techniques and passes defined in *.FX files. So when doing a multipass shader (like the always-mentioned ...
3
votes
0answers
241 views
How to reproduce the 3ds Max Gradient Ramp effect?
The material definition of a mesh is composed of these three components: Self-Illumunation, Refletcion and Refraction. Each of these components has a Gradient Ramp as a map and the mapping mode is set ...
2
votes
1answer
227 views
Applying effects to an existing program that uses BasicEffect
Using the finished product from the tutorial here.
Is it possible to apply the grayscale effect from here:
Making entire scene fade to grayscale
Or would you basically have to rewrite everything?
...
2
votes
3answers
513 views
Flickering water effect
I have downloaded completely different samples with water effects (in XNA) and I've noticed that they all exhibit a common problem: when the camera direction (only the direction, not the position) ...
2
votes
1answer
2k views
Custom effects on Model in XNA
If I have a Model that is drawn with a different effect occasionally, what is the typical approach to this?
Models have effects stored in each of their meshes, and you seem to be forced to use those.
...
2
votes
1answer
215 views
Animated light effects in games
I have been wondering now for quite some time, how certain animated texture effects are done, specifically involving light effects.
Some good examples of what I mean are the green bridges in ...
2
votes
1answer
67 views
How to apply effects that occur (or change) over time to characters in a game?
So assume that I have a system that applies Effects to Characters like so:
public class Character {
private Collection<Effect> _effects;
public void AddEffect (Effect e) {
...
2
votes
0answers
48 views
organizing library content
I have an XNA library that uses several custom effects. These effects need to be accessed by:
a content pipeline project (models are built with the effect)
projects that use my game library (they ...
1
vote
1answer
432 views
achieve transparent object
How can i achieve transparency and shadowing for a model in XNA ? Do you have a good tutorial ?
For the shadow i can manage the effect but how can i implement the transparency also ? Do i have to ...
1
vote
1answer
199 views
Can OpenGL ES help in this game?
I am learning OpenGL ES and I have setup the environment. I believe the best way to learn things is to grab a dummy project and start working on it. So what I plan to do is...
Now I want this ...
1
vote
0answers
86 views
Direct3d Techniques and Windows 8
Under Windows 8, what is the alternative to this code:
technique11 Light0Tex
{
pass P0
{
...
technique11 Light1Tex
{
pass P0
{
...
And:
Light1Tech = ...
1
vote
0answers
172 views
DX9 Deferred Rendering, GBuffer displays as clear color only
I'm trying to implement Catalin Zima's Deferred Renderer in a very lightweight c++ DirectX 9 app (only renders a skydome and a model), at this moment I'm trying to render the gbuffer, but I'm having a ...
1
vote
0answers
1k views
How to implement fisheye effect with a GLSL fragment shader
I would like to render my scene with a wide FOV and then apply a fisheye distortion via fragment shader. How would this shader best be implemented?
Update
I try to reproduce a fisheye effect similar ...
0
votes
1answer
156 views
How to create a fog effect in XNA with PixelShaderFunction?
I developped a small XNA games in 3D.
I would like to add a "fog of war" on my models instantiated with an effect in my (.fx) file.
The problem is, I do not know how to change the function
...
0
votes
1answer
99 views
Application to record sound effects for games
I'm having kids record sounds using their PCs (a few have Macs as well) for use in the games they create. The built-in windows 7 sound recorder is surprisingly poor, didn't older versions of windows ...
0
votes
0answers
292 views
Sprite Animation Effect in isometric game
I am planning to make game like Final fantasy tactics. Right now, I have been thinking about how should I make my sprite animates. From what I found out so far (reading from ffhacktics.com), it seems ...
-1
votes
1answer
1k views
smoke effect for a rocket in OpenGL es 1.0 android
hello i am new to game development , i have a read this thread which make a smoke effect for a rocket in OpenGL es but i have problem with understanding it can anyone suggest me some articles about it ...
-2
votes
1answer
123 views
how to add fog to a model instantiated in Xna? [closed]
I work on a small XNA games.
I generate a large map type voxel. a floor of 1000 cubic long by 1000 cubes wide.
This is why I use the method "MODEL instancing" with hardware instancing to generate a ...