Author Topic: A freespace upgrade project request  (Read 6001 times)

0 Members and 1 Guest are viewing this topic.

Offline phreak

  • Gun Phreak
  • 211
  • -1
A freespace upgrade project request
quick search of msdn

Code: [Select]

typedef struct _DDPIXELFORMAT {
  DWORD  dwSize;
  DWORD  dwFlags;
  DWORD  dwFourCC;
union {
  DWORD  dwRGBBitCount;
  DWORD  dwYUVBitCount;
[b]  DWORD  dwZBufferBitDepth;[/b]
  DWORD  dwAlphaBitDepth;
  DWORD  dwLuminanceBitCount;
  DWORD  dwBumpBitCount;
  DWORD  dwPrivateFormatBitCount;
} ;
union {
  DWORD  dwRBitMask;
  DWORD  dwYBitMask;
  DWORD  dwStencilBitDepth;
  DWORD  dwLuminanceBitMask;
  DWORD  dwBumpDuBitMask;
  DWORD  dwOperations;
} ;
union {
  DWORD  dwGBitMask;
  DWORD  dwUBitMask;
  DWORD  dwZBitMask;
  DWORD  dwBumpDvBitMask;
  struct {
    WORD wFlipMSTypes;
    WORD wBltMSTypes;
  } MultiSampleCaps;
} ;
union {
  DWORD  dwBBitMask;
  DWORD  dwVBitMask;
  DWORD  dwStencilBitMask;
  DWORD  dwBumpLuminanceBitMask;
} ;
union {
  DWORD  dwRGBAlphaBitMask;
  DWORD  dwYUVAlphaBitMask;
  DWORD  dwLuminanceAlphaBitMask;
  DWORD  dwRGBZBitMask;
  DWORD  dwYUVZBitMask;
} ;
} DDPIXELFORMAT, FAR* LPDDPIXELFORMAT;


im no dx coder, but it looks rather convincing
Offically approved by Ebola Virus Man :wtf:
phreakscp - gtalk
phreak317#7583 - discord

 

Offline Nico

  • Venom
    Parlez-vous Model Magician?
  • 212
A freespace upgrade project request
Quote
Originally posted by Fry_Day
The problem is not with a single model, but rather when you have several models one behind another...


the transparent green hide"s only the polys from the same subobject ( say you have a turret behind a grider, the turret will show dfine, so will a fighter flying behind it ).
SCREW CANON!

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
A freespace upgrade project request
like was said in OpenGL most zbuffer problems origionate from faulty calls to gluPerspective a good example of some of my code is this
Code: [Select]

    gluPerspective( 85.0f, float(Get2DResX())/float(Get2DResY()), 0.001f, 10000000.0f );


but it also has to do with your video card - i've got this cranked really close for the ZClip because my video card can handle it, but a publish build will have 0.1 - even the GeForce FX has huge clipping problems with that call of mine, when my Radeon 7500 does not - but 0.0001 it gets clippy, at 0.00001 it freaks
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

"The Mountains are calling, and I must go" - John Muir

 

Offline Fry_Day

  • 28
A freespace upgrade project request
The difference between a near Z of 0.01 and 0.001 is huge. I'm betting you can even get away with a near Z of about 1, without visible differences, and it'll help a lot.