The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
115 views

Voxel engine/vertexes: how to add more and more different textures during game runtime and change some of the blocks' faces?

It's difficult to ask this, but I'll try. The thing is: I asked before somethings about creating ramps and blocks with vertexes. [I'm using C#/XNA.] Explanation: now I got a chunk that has blocks ...
-1
votes
1answer
180 views

How to add nice effects to my menu in Unity

I have a simple menu but I would like to spice it up with some of what I thought would be simple effects. I have 4 buttons that are just rectangle with some GUIText centered on the button and when the ...
2
votes
1answer
125 views

How can I compile a Direct3D 9 effect from a file?

I started working with shaders recently in DirectX9. I noticed that there is a D3DXCompileShaderFromFile function for IDirect3DVertexShader9 and pixel shader. Which compiles the shader and gives you ...
0
votes
1answer
86 views

Do I need to create an HLSL in XNA to display textures without content pipeline

I currently have a jpeg texture stored as a Color array in XNA as RGBA. I also have the vertices of a cube in OBJ format mapped to VertexPositionColor vertex buffer using the VertexBuffer and Indices ...
13
votes
2answers
886 views

How can I generate a lightning bolt effect?

Is there an algorithm to generate a lightning bolt? I would like an algorithm that generates a list of segment or point objects specifying where the bolt will land. The method would need a start ...
0
votes
1answer
261 views

Why i can not load a simple pixel shader effect (. fx) file in xna?

I just want to load a simple *.fx file into my project to make a (pixel shader) effect. But whenever I try to compile my project, I get the following error in visual studio Error List: Errors ...
2
votes
1answer
78 views

Is it possible to retrieve shader function names associated with a technique pass using the DirectX Effect API?

For example, given the pass pass p0 { SetVertexShader(CompileShader(vs_4_0, VSFunction())) SetPixelShader(CompileShader(ps_4_0, PSFunction())) } Ss it possible to retrieve the names ...
2
votes
1answer
264 views

Xna Particle Explosion like Geometry Wars

I am making a game, in similar graphics display as Geometry Wars. In Geometry Wars (noticeable in the title, as well as when you blow up an enemy), there are these colorful explosions that emit, then ...
1
vote
1answer
196 views

How to grab textures from a texture atlas to be applied to 3d objects

Fairly basic question, but I'm having trouble on finding information on this sort of thing for beginners. I'm just trying to make cubes with different textures on the sides as a starting point. I have ...
5
votes
1answer
467 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 ...
0
votes
1answer
598 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 ...
-2
votes
1answer
288 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 ...
6
votes
1answer
357 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 ...
2
votes
1answer
146 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 = ...
2
votes
1answer
87 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) { ...
1
vote
0answers
284 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 ...
3
votes
1answer
170 views

How should I organize content that is shared across several projects?

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) and Projects that use my game library ...
18
votes
3answers
10k 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 ...
4
votes
0answers
498 views

How to reproduce the 3ds Max Gradient Ramp effect? [on hold]

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 ...
0
votes
1answer
113 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 ...
5
votes
3answers
1k 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 ...
2
votes
1answer
273 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
0answers
2k views

How to implement fisheye effect with a GLSL fragment shader [duplicate]

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 ...
4
votes
1answer
318 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 ...
2
votes
1answer
302 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
562 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) ...
6
votes
3answers
336 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 ...
7
votes
2answers
2k 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 = ...
24
votes
3answers
2k 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
1
vote
1answer
219 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 ...
3
votes
2answers
3k 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 ...
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 ...
8
votes
1answer
301 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 ...
11
votes
1answer
502 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). ...
2
votes
1answer
3k 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. ...
1
vote
1answer
474 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 ...
6
votes
2answers
1k 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.
13
votes
2answers
12k 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 ...
15
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 ...
3
votes
1answer
329 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
1answer
670 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: ...