Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ugliness in the display of player names #24

Closed
Meridian59 opened this issue Jan 21, 2013 · 5 comments
Closed

Ugliness in the display of player names #24

Meridian59 opened this issue Jan 21, 2013 · 5 comments

Comments

@Meridian59
Copy link
Owner

There are at least two problems with the display of player names in the 3D area when using the hardware renderer:

  • There's z-flighting between the name and its black "shadow"
  • Kerning isn't done quite right, and so there's sometimes a lot of extra space between letters.
cyberjunk pushed a commit to cyberjunk/meridian59-orig that referenced this issue Dec 1, 2013
@Meridian59 Meridian59 reopened this Jan 10, 2015
@cyberjunk
Copy link

There's z-flighting between the name and its black "shadow"

Really? Different than on 103? I don't think we have z-fighting there for the names..
You could try increasing the delta between the following two values in D3DRenderNamesDraw3D (these are the zbias values for the name and the shadowname) - Like turn 254 into 250...

if (offset == 0)
pChunk->zBias = 255;
else
pChunk->zBias = 254;

It also should be mentioned that we use the following call also affecting DEPTHBIAS, in D3DRenderInit, which seems not yet be part of your port:

IDirect3DDevice9_SetRenderState(gpD3DDevice, D3DRS_SLOPESCALEDEPTHBIAS, F2DW(1.0f));

@Meridian59
Copy link
Owner Author

I think the z fighting is fixed thanks to the DX9 upgrade. Kerning still
needs some work though.

On Sat, Jan 10, 2015 at 8:39 AM, Clint Banzhaf notifications@github.com
wrote:

There's z-flighting between the name and its black "shadow"

Really? Different than on 103? I don't think we have z-fighting there
for the names..
You could try increasing the delta between the following two values in
D3DRenderNamesDraw3D (these are the zbias values for the name and the
shadowname) - Like turn 254 into 250...

if (offset == 0)
pChunk->zBias = 255;
else
pChunk->zBias = 254;

It also should be mentioned that we use the following call also
affecting DEPTHBIAS, in D3DRenderInit, which seems not yet be part of your
port:

IDirect3DDevice9_SetRenderState(gpD3DDevice, D3DRS_SLOPESCALEDEPTHBIAS,
F2DW(1.0f));


Reply to this email directly or view it on GitHub
#24 (comment)
.

@davidklaw
Copy link
Contributor

@Meridian59 Is this the type of kerning issue you're referring to? Where the in-game font rendering looks like the Paint version and not Photoshop?

image

@akirmse
Copy link
Collaborator

akirmse commented Jul 25, 2022 via email

@davidklaw
Copy link
Contributor

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants