OK, it works now.
I unfortunately don't know the meanings of some things. Maybe someone could tell me what are:
1) AL_VELOCITY
2) AL_ORIENTATION
3) AL_PITCH
4) AL_GAIN
Type: Posts; User: fighter92
OK, it works now.
I unfortunately don't know the meanings of some things. Maybe someone could tell me what are:
1) AL_VELOCITY
2) AL_ORIENTATION
3) AL_PITCH
4) AL_GAIN
I started with OpenAL, but I have already run into a problem.
The problem is about loading WAV files. All the tutorials I have read tell me to use a function called alutLoadWAVFile, but it seems...
I also found some info about XACT and it's a part of DirectX. Maybe you could say some advantages/disadvantages.
Hello!
Currently I'm planning to start programming the audio part of my game.
I'm a little bit confused. I googled and found out that DirectSound is practically gone for Vista. That means there's...
Hello!
I know I can swap textures on a mesh, but it should be impossible to use several textures on one mesh simultaneously, right?
If it's impossible, how can I do such things as changing...
I had a similar problem when I programmed my collision detection algorithm. For example if I tried to detect collision with two rectangles I tried if the corners of one rect were inside the other...
I found out the problem and fixed it. It seems I've been lazy and written if(charname=="blabla"). It works perfectly in debug, but not in release.
There seems to be no uninitialized variables in places connected to view. Although I didn't know that difference, I usually give them a value anyway, if it's important.
Are there more important...
Hello!
I have a weird problem. My DirectX game works like it should only with debug configurations. With Release it does not. The same code works differently somehow.
When I try the release...
Problems solved, thanks!
Thanks, problem solved!
I have another problem however that fits into the same category, so I won't make a new topic for it.
When I hold a key down for some time and then press another key, it...
Hello!
I'm programming a game. I use the keyboard input of my arrow keys to move the character in my game. It works, but there's a small defect.
When pressing a button and not releasing it, the...
Never mind the previous post, that wasn't the problem.
The problem was, that I had to unset the texture, so the 2D elements used the colors of the previously set textures. Colors turned darker,...
It seems I know the problem now.
D3DPRESENT_PARAMETERS :: EnableAutoDepthStencil
When it is set to TRUE as in 3D it does weird things. I use 3D and 2D rhw simultaneously so I somehow need to...
OK, I forgot about alpha, because I don't use it. These colors are for rhw vertices. Nevertheless it seems to make no difference. It seems that ffffff and ffffffff give exactly the same result and...
There are two possibilities
1) I'm an idiot.
2) My memory fails me.
Problem is solved.
LPDIRECT3DTEXTURE9 Texture[1];
I narrowed the variable changing part more down.
D3DXCreateTextureFromFile(DirX_Device, render_info[2].tex_name, &Texture[2]);
I'm absolutely sure the variable that changes isn't one of...
There's no need to name the variable as it isn't used in that code anyway. I have already debugged and I have no idea why it changes there. It seems to have no logical connection. I have never had...
Hello!
I have come to a weird problem. My data seems to corrupt somehow with a little piece of code that is not at all connected to the thing that corrupts.
...
Value Expected Actual
ffffff white this
ffff00 this this
00ffff this this
ff00ff this this
It's no point to give more colors. It seems that all colors are darker and...
Hello!
I use vertex-colors in my 2D elements of my program.
I thought I understood the what the color is, but it seems I don't. I thought the color consists of RGB values: RRGGBB. So that 0000ff is...
Thanks, it's working now.
I really don't need to rotate or scale, but I need to use some detail at multiple places on the screen, so I still need to be able to move them.
I'm not sure if I understood correctly what you meant by re-translate into world's position. The problem is these 2D details don't actually have a world position as they are menus, their details etc....
Hello!
I use both 3D and 2D in my DirectX program. I use the rhw method for 2D. My question is probably surprising: How can I draw 2D in a given location on the screen? In 3D I use matrix...