Kawahee

Members
  • Content count

    38
  • Joined

  • Last visited

Community Reputation

127 Neutral

About Kawahee

  • Rank
    Member
  1. A jumpy object

    the trigonometric functions do output rough numbers when their input values aren't between +2pi and -2pi, so if it goes a fair way out and u use sin/cos/tan/sinf/cosf/tanf etc you can get bad performance and dodgy outputs.
  2. how to play ogg files

    go to google, and search for ogg vorbis. The entire thing is open source.
  3. Recently, my game artist asked me if I could use normal mapping in our game. I had a look around the net and found out that a few games have used it [ Tribes, FarCry ], and I was wondering how to implement it in Direct3D9. Am I correct in saying that it needs to be set through IDirect3DDevice9::SetSamplerState? A small working sample of that would be much appreciated. - Kawahee
  4. hey all I'm just wondering HTF u profile code under .NET. I've got tricks of the 3d game programming gurus, and all it says is "NET has similar profiling capabilities too", tho i can't find them. I'm pretty sure my version of .NET has them hidden somewhere, because it's not standard or educational. thanks
  5. Hi everybody. I'm just wondering about state registers, what they are, what they do and how to use them. I realise they probably are a large subject, so i'm hoping u guys could give me a link or two to a few good articles on the subject. thnx [Edited by - Kawahee on August 16, 2004 1:56:57 AM]
  6. [C] sizeof syntax error

    ah... is it just me, or are you using "ints" before you actually get it out of the initialization. -- int *ints = realloc(ints, num_ints * sizeof int); -- when you calll realloc, ints doesn't exist, so that's like doing: int iNumber = iNumber;
  7. ID3DXSprite drawing wrong

    ><" damn i forgot about that... thanks a lot
  8. Hi everybody! I've got a kind of weird problem. Whever i draw my image to my window, whose client are is 631 * 432, and I set direct3d up in windowed mode with a backbuffer of 631 * 432, and i load in my image, which is 631 * 432, then when i ID3DXSprite::Draw it to the screen, it comes out wrong. It's stretched and isn't the 1:1 ration i expected it to be. Any ideas?
  9. does it look ok in the direct3d mesh viewer? if it does, coding problem. to disable culling do d3ddevice->SetRenderState(D3DRS_CULLMODE, D3DCULL_NONE);
  10. I was wondering how i could get a mesh to render into screen space. I presume i would have to configure the world transformation matrix in some way. any help would be much appreciated. ps: the mesh i'm trying to render is a spinning symbol my friend made for me.
  11. Hello everybody. I've been making a game for a while now, and my artist wants me to make a tool that captures video from fullscreen applications [like games]. We already have a solution to capture video from our game, but we want the tool to be able to capture video from other applications, preferably fullscreen games. Can DirectShow do it? Any help would be much appreciated. -- Todd
  12. Problem ID3DXMesh

    Final Problem --------------------------------------------------------- When I go to release the mesh, it goes: Unhandled exception at 0x77f75554 in engine.exe: User breakpoint. which ends up being: HeapFree(_crtheap, 0, pBlock); I don't know what to do. Any ideas? If I don't release the mesh the D3D debug systems seem to do it for me without error, but I know when I switch to release libs it won't.
  13. Problem ID3DXMesh

    Don't worry, I solved the problem. Yes, using 0-3 did work, but the first time I tried it it didn't work. Anyway, a big thankyou to everybody who helped me, it was much appreciated. - Kawahee
  14. Problem ID3DXMesh

    ok... i have no culling on CUSTOMVERTEX gcVertices[] = { { -1.0f, 0.0f, 1.0f, 0.0f, 0.0f, }, // |- { -1.0f, 0.0f, -1.0f, 0.0f, 1.0f, }, // |_ { 1.0f, 0.0f, -1.0f, 1.0f, 1.0f, }, // _| { 1.0f, 0.0f, 1.0f, 1.0f, 0.0f, }, // -| //{ 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, }, }; // then later on void* pVertices; gpMesh->LockVertexBuffer(0, &pVertices); memcpy(pVertices, gcVertices, sizeof(gcVertices)); gpMesh->UnlockVertexBuffer(); I'll check back on using 0-3. I tried it before, but I'll try it again. I'll edit this post once I get VC++ working again.
  15. Problem ID3DXMesh

    i already tried that...renders nothing