Search:

Type: Posts; User: Coder

Page 1 of 6 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,053

    Could be a texture format incompatability?...

    Could be a texture format incompatability?
    Switch to the debug runtime, and watch the debug output.
  2. Replies
    2
    Views
    2,223

    For a start, you can copy all the code of a GL...

    For a start, you can copy all the code of a GL tutorial, and use DrawPrimitiveUP for rendering.
    It's easy to do that.

    If you still can't do it, I can send you my old md2 loading and rendering code
  3. Replies
    8
    Views
    1,137

    Is that a sky texture or what? Anyway, you're...

    Is that a sky texture or what?

    Anyway, you're generating the texture. So, a good way to know whether the problem's in generating the texture or applying/rendering_stuff_with_it_on_top is to dump...
  4. Replies
    4
    Views
    967

    It depends. Generally, surfaces aren't...

    It depends.

    Generally, surfaces aren't strictly stored with the given width and height. Often, the dimensions are "pitch" and height. Pitch is often greater than width.
    That is, the video card...
  5. Replies
    14
    Views
    2,679

    1. Enable alpha testing 2. Run your sample/app...

    1. Enable alpha testing

    2. Run your sample/app using the REFerence rasterizer (D3DDEVTYPE_REF). If the problem persists, then you're definitely doing something wrong.

    If it doesn't, then either...
  6. Replies
    14
    Views
    2,679

    If the color you want to be transparent is black,...

    If the color you want to be transparent is black, make sure you supply 0xff000000 as the color key, not 0x00000000.
    The latter disables color-keying.

    Generally, color key should be 0xffrrggbb
  7. Replies
    10
    Views
    1,614

    Yes. Actually, newton's law states that the force...

    Yes. Actually, newton's law states that the force is equal to the rate of change of the momentum ( mass * velocity ).

    For macro-particles, the mass is considered a constant and thus the force...
  8. Replies
    6
    Views
    2,313

    If the function succeeds, the return value...

    If the function succeeds, the return value specifies the status of the given virtual key. If the high-order bit is 1, the key is down; otherwise, it is up. If the low-order bit is 1, the key is...
  9. Thread: Dx, Sdl, Open-gl

    by Coder
    Replies
    26
    Views
    3,478

    Poll: DX, GL

    Check this http://www.xmission.com/~legalize/d3d-vs-opengl.html for a straightforward comparison between the features provided by the OpenGL 1.2 core ( no extensions ) and Direct3D7/8. It's a text...
  10. Replies
    31
    Views
    3,379

    If you decide to choose between DirectX Graphics...

    If you decide to choose between DirectX Graphics and OpenGL, make sure you read this document here : http://www.xmission.com/~legalize/d3d-vs-opengl.html which is a straightforward comparison between...
  11. Replies
    1
    Views
    1,766

    You don't need to read/get/download something...

    You don't need to read/get/download something specifically written for DirectX. BSP is a general algorithm for organizing your geometry. It provides you with an efficient method for culling...
  12. Replies
    11
    Views
    1,263

    About the C & Asm VS C++ thing

    I'd just like to add that the following games are made in C++ :
    Battlezone, Unreal, DNF ( based on Unreal engine, as far as I recall ), Soldier of fortune ( they converted the Quake2 C source to C++...
  13. Replies
    4
    Views
    1,044

    Chaser, I've noticed that you're posting about...

    Chaser, I've noticed that you're posting about non game-related issues lately. These posts should go to the C/C++ board.

    Thanks
  14. Replies
    3
    Views
    4,611

    Assuming you're using something like ID3DXSprite,...

    Assuming you're using something like ID3DXSprite, this is what happens : You define a primitive ( a rectangle, consisting of 2 triangles ) and then texture your bitmap on it.

    To draw a circle, you...
  15. Replies
    4
    Views
    1,311

    Well, this is more of a C++ problem, not a game...

    Well, this is more of a C++ problem, not a game programming problem. Anyway :

    I can think of a couple of ways to do this ( I have no idea if they'll work! ):

    The 1st method
    When defining the...
  16. Replies
    5
    Views
    1,071

    Once you load your model, its vertices sit...

    Once you load your model, its vertices sit happily in your RAM, and I believe there'd be no difference.

    The speed loss would be caused by loading your vertices, but I doubt it'd be noticable with...
  17. Thread: Key colour

    by Coder
    Replies
    4
    Views
    1,035

    I forgot something

    Don't forget to set the texture stage states. Assuming you're using one texture at the stage 0 :

    SetTextuerStageState( 0,D3DTSS_ALPHAOP,D3DTOP_SELECTARG1 )
    SetTextureStageState(...
  18. Thread: Key colour

    by Coder
    Replies
    4
    Views
    1,035

    That's possibly happenning because D3DX's texture...

    That's possibly happenning because D3DX's texture loading function goes through your texture replacing your colorkey with transparent black == 0x00000000

    When you're rendering the texture without...
  19. Thread: Why Directx ?

    by Coder
    Replies
    3
    Views
    1,591

    IMO, GL isn't easier than D3D. The API itself is...

    IMO, GL isn't easier than D3D. The API itself is easy in both cases, what makes things difficult is the 3D game programming ( making 3D stuff with the API, cause this involves 3D game/graphics...
  20. Replies
    2
    Views
    1,702

    Try the retail version. Maybe the debug version...

    Try the retail version. Maybe the debug version of DX8.1 does more debugging work than 8.
  21. Replies
    5
    Views
    3,012

    Generally, when you have a problem with NeHe's...

    Generally, when you have a problem with NeHe's code, you'd better post at NeHe's forum at www.gamedev.net

    It's more likely that you'll receive a response there.
  22. I wasn't talking about bugs in your code. It's...

    I wasn't talking about bugs in your code. It's just that when you allocate a pool of memory ( like your 4MB ) you'll be reserving this memory and preventing windows from giving it to other process....
  23. Replies
    1
    Views
    6,894

    www.gametutorials.com have a tutorial on loading...

    www.gametutorials.com have a tutorial on loading 3DS files, and they use OGL
  24. This will never work. Windows is a multi-tasking...

    This will never work. Windows is a multi-tasking operating system, both through the use of multi-threading & multi-processing. Taking a large portion of the memory as a single buffer by your program,...
  25. No one can change the standard memory manager of...

    No one can change the standard memory manager of the operating system. The OS mem manager works completely invisible to you.

    All you can change is the C Run-Time memory manager, which is very...
Results 1 to 25 of 128
Page 1 of 6 1 2 3 4