Projectile sprites are misplaced

Ask about editing graphics, sounds, models, music, etc here!
Shaders (GLSL) and SNDINFO questions also go here!

Moderators: GZDoom Developers, Raze Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Post Reply
Kzer-Za
Posts: 509
Joined: Sat Aug 19, 2017 11:52 pm
Graphics Processor: nVidia (Modern GZDoom)

Projectile sprites are misplaced

Post by Kzer-Za »

They are displayed (if you look at the projectile from the front) to the right and below of where the real projectile is. The collision obviously happens not where the sprites are displayed.

How can it be fixed? I have attached one of the files used.
Attachments
PUF2R0.png
PUF2R0.png (1003 Bytes) Viewed 593 times
Blue Shadow
Posts: 4949
Joined: Sun Nov 14, 2010 12:59 am

Re: Projectile sprites are misplaced

Post by Blue Shadow »

Load it up in SLADE3 and adjust its offsets.

[imgur]https://i.imgur.com/VOheB3G[/imgur]
Kzer-Za
Posts: 509
Joined: Sat Aug 19, 2017 11:52 pm
Graphics Processor: nVidia (Modern GZDoom)

Re: Projectile sprites are misplaced

Post by Kzer-Za »

I'm on Linux, is it possible to adjust offsets from command line?
Blue Shadow
Posts: 4949
Joined: Sun Nov 14, 2010 12:59 am

Re: Projectile sprites are misplaced

Post by Blue Shadow »

SLADE3 runs on Linux.
Kzer-Za
Posts: 509
Joined: Sat Aug 19, 2017 11:52 pm
Graphics Processor: nVidia (Modern GZDoom)

Re: Projectile sprites are misplaced

Post by Kzer-Za »

Oh, indeed it does! But it crashes when I try to open any graphics file :(
User avatar
Enjay
 
 
Posts: 26534
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Projectile sprites are misplaced

Post by Enjay »

GrabPNG might work for you.

http://baghead.drdteam.org/grabpng.xml
Kzer-Za
Posts: 509
Joined: Sat Aug 19, 2017 11:52 pm
Graphics Processor: nVidia (Modern GZDoom)

Re: Projectile sprites are misplaced

Post by Kzer-Za »

Thanks! It worked :)

Though it required some efforts, so in case someone else needs it, I'm gonna post what I did.

The download links at http://baghead.drdteam.org/grabpng.xml are dead. I found it on http://baghead.drdteam.org/tools.xml and downloaded. But it requires fltk 1.1 to work, it's an old version, that at least in my distro is not available in repos. It also refused to build from source, so I've created symlinks to the lybraries of the installed, newer version of fltk:

Code: Select all

sudo ln -s /usr/lib/libfltk.so /usr/lib/libfltk.so.1.1
sudo ln -s /usr/lib/libfltk_images.so /usr/lib/libfltk_images.so.1.1
After that I could use grabpng with total success :)
Post Reply

Return to “Assets (and other stuff)”