Ouchface
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Source Ports > Source port sprites through the floor?
 
Author
All times are GMT. The time now is 14:10. Post New Thread    Post A Reply
Xegethra
Junior Member


Posts: 164
Registered: 02-14


Heyo!

I've noticed for a while now that some source ports will display part of the sprites in-bedded into the ground. Like say for example one sprite is the dead marine, in some ports you can see his bleeding brain fine, in others you can't as it is cut off....same for one of the gore pools, there's a spine that sometimes get cut off by the floor.

I was wondering why does this happen?

As another sort of related question to graphics, is howcome some source ports have those blurred graphics, and others keep it pixelated?

You can tell I'm not all too knowledgeable on this but I'm just curious.

Old Post 04-14-14 16:26 #
Xegethra is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
gemini09
Senior Member


Posts: 1162
Registered: 04-03


I'm actually curious about this too

Old Post 04-14-14 17:40 #
gemini09 is online now Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
gemini09
Senior Member


Posts: 1162
Registered: 04-03


Regarding "blurry" graphics, that's from graphics processing by the computer's graphics card. I think it looks good with a high resolution.

Old Post 04-14-14 17:54 #
gemini09 is online now Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
plums
Senior Member


Posts: 1629
Registered: 08-13



Xegethra said:
As another sort of related question to graphics, is howcome some source ports have those blurred graphics, and others keep it pixelated?


Typically OpenGL ports are set to do some sort of filtering by default on all graphics. This makes textures and sprites at a distance look much nicer and avoid pixelated aliasing patterns. But on graphics that are close-up, it looks blurry instead.

I'm pretty sure you can customize this in most ports. In GZDoom I use HQ3X resizing so that all the graphics are smoothly scaled up before filtering, which keeps the edges of sprites fairly sharp while avoiding most pixelation. In GLBoom+ I use filtering on textures only (even though it supports basically the same options that GZDoom does), keeping the sprites pixelated while smoothing the textures out.

Old Post 04-14-14 17:55 #
plums is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Gez
Why don't I have a custom title by now?!


Posts: 10987
Registered: 07-07



Xegethra said:
I've noticed for a while now that some source ports will display part of the sprites in-bedded into the ground. Like say for example one sprite is the dead marine, in some ports you can see his bleeding brain fine, in others you can't as it is cut off....same for one of the gore pools, there's a spine that sometimes get cut off by the floor.

It's a question of rendering. Doom sprites are offset so that they "bleed" a little into the floor. This helps offset their 2D-ness a tiny little bit.

However, hardware 3D renderers (OpenGL typically, there aren't many Direct3D ports still active) do not use the same method as Dooom's original software renderer to find out where and how to have sprites cut off by level geometry. Doom uses overdraw and renders the sprites above the geometry, which allows them to be drawn into the floor or the ceiling with impunity. Polygonal renders on the other hand display sprites as a vertical plane which is cut off by geometry "correctly", so parts of it that go below the floor or above the ceiling are not rendered.

In GZDoom, you can often that a little by having sprite clipping adjustment which dynamically modify the offsets to get all or more of the sprite shown. The most accurate workaround, though, would be to code in some overdraw method to faithfully replicate what software does; but it'd probably hamper performances quite a bit especially when there are tons of sprites (e.g., nuts.wad).


Xegethra said:
As another sort of related question to graphics, is howcome some source ports have those blurred graphics, and others keep it pixelated?

Texture filtering options. In GZDoom, this can be changed from this menu. I'd personally recommend using "none" or "nearest mipmap" for texture filtering mode, keeping anisotropic filtering as high as possible, and enabling HQ resize only for fonts.

Old Post 04-14-14 18:47 #
Gez is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Enjay
ASK ME ABOUT FOOTBALL / STEAM / DEAD CELEBRITIES / THE BLAIR WITCH PROJECT


Posts: 6381
Registered: 12-00


Not perfectly on topic, but possibly useful:

http://www.aspectsweb.co.uk/enjay/doom/clipping.png
http://www.aspectsweb.co.uk/enjay/doom/clipping2.png
http://www.aspectsweb.co.uk/enjay/doom/offsets.png

Why, sometimes, the vanilla/software behaviour can look odd too...

http://www.aspectsweb.co.uk/enjay/doom/clipping3.png

Old Post 04-14-14 21:38 #
Enjay is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Xegethra
Junior Member


Posts: 164
Registered: 02-14


Ahh right. I fnd it less noticeable on enemies until they die and on some decoration items they look out of place as nobly lumps poking out as opposed to a say a blood splatter....

So performance is the reason then? Does it really make that much difference? I know more on screen tends to but does cutting off their toes and top of their heads really make it run smoother?

Old Post 04-15-14 07:07 #
Xegethra is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Gez
Why don't I have a custom title by now?!


Posts: 10987
Registered: 07-07


It's not the fact of cutting off the feet that makes it faster. It's the fact of not having complicated code in place to draw the feet back after the sprites have been rendered normally.

In GZDoom if you use sprite clipping adjustment of "always" the sprites will get a boost of their vertical offset so that no parts are cut off by the floor.

Old Post 04-15-14 08:13 #
Gez is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Edward850
Member


Posts: 400
Registered: 08-07


You are thinking of this backwards. Cutting off the sprite isn't defined behaviour, but rather a side effect of putting sprites in a 3D world. To actually fix this, said 3D renderer would need to set up to render everything in stages, rather then just one full pass, and also account for possible overdraw from each pass in doing so.
It's not exactly a straightforward and fast method of doing things.

Edit: Wonk. Gez is faster then I am.

Old Post 04-15-14 08:17 #
Edward850 is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Xegethra
Junior Member


Posts: 164
Registered: 02-14


Ahh, well now I've gone through the options again knowing what they do, I have set it to my liking.

Thanks for the help, there's quite a bit to just textures....

Old Post 04-15-14 10:26 #
Xegethra is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 14:10. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Source Ports > Source port sprites through the floor?

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.