Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • 0
Szuran

Question about positioning sprites

Question

In Slade 3 there is this Sprite mesh to make sprite positioning easy. Why is the default setting for enemy sprites always a bit below the horizontal line? Is that how it should be? Why not position sprites on the ground level (which, I assume, is the horizontal line)?

Share this post


Link to post

4 answers to this question

Recommended Posts

  • 1
Posted (edited)

It's to create some sort of forced perspective. By shifting the sprite lower than it should be, it makes its bottom-most parts sit on a nearer part of the floor, so it makes the thing looks very slightly more 3D.

 

The trick, however, doesn't work in GL renderers*, which just clip away the bits that are below the floor. Obviously, that was not something id, Raven, and Rogue ever had any reason to worry about back then.

 

 

* Technically, it could work, but at the expense of performances. Kaiser explained the whole thing here: https://doom64ex.wordpress.com/2014/12/24/sprite-clipping-in-strife-veteran-edition-explained/

Share this post


Link to post
  • 1

if your project is specifically for GZDoom's GL renderer, don't bother. Most users will have some level of sprite clipping enabled in GZDoom's options that's just gonna bump it back up some.

Share this post


Link to post
  • 0

The convention came from id's own sprites, which were usually set in the ground a little bit. The intention is just to be a simple trick to try to sell a little more perspective on the sprite, since a character's foot in real life would cover up the floor a little, which is what the set in the ground offset sorta does.

Share this post


Link to post
  • 0

So when modding for GZDoom, should I put sprites below the horizontal line or not? What's your take?

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×