Issue344

Title ANIMATION: Bullets should start near gun muzzle
Priority important Status resolved
Assigned To fluzz Keywords
Linked issues Watchers fluzz

Submitted on 2011-07-24 19h08 by tracker_migration, last changed by matthiaskrgr.

Files
File name Uploaded Type Edit Remove
unnamed fluzz, 2011-11-19.18:47:03 text/html
Messages
Author: tracker_migration Date: 2011-02-12   14h23
Submitted by lowerthanred
Tux's new model is taller than the old one; this means that bullet offset that may have fit in the past doesn't fit now and when tux shoots a gun, bullets appear to exit from his middle instead of from the gun. Perhaps it is possible to somehow determine where the bullet should originate using the offset from the weapon's image_archive file?
Author: tracker_migration Date: 2011-03-21   11h47
Posted by ahuillet
Raising priority as this is an issue that must be fixed before a release.
Author: fluzz Date: 2011-07-30   16h54
It seems hard to retrieve it from weapon's image. If you want it to perfectly
fit, it should need to add a 'reference' in the blender model, such as the one
used to compute the offset, I think.
Author: hail Date: 2011-10-28   07h23
I took a crack at this a couple months ago. I came to the same conclusion as 
fluzz. I had marginal success doing it by calculating a bullet position based on 
the gun's image's dimensions, but couldn't figure the math between image offset 
and height/width. Let me know if you'd like more detail on my attempt.
Author: fluzz Date: 2011-11-14   13h06
So, as far as I understand it, the bullet's on-screen vertical offset is not
computed, but use the value defined in the .offset file of each bullet images
(meaning that it does not take into account the weapon used to fire the bullet,
since the same offset will be used for all weapons using that type of bullet).
I don't know how those offsets where initially computed...
I will try to change those offset values to reflect the new Tux model, but we
definitely need a better fix, after 0.15.
Author: salimiles Date: 2011-11-19   17h40
So how is this coming along?
Author: fluzz Date: 2011-11-19   18h47
I am just on it.

----- Reply message -----
De : "salimiles - Roundup" <bugs@freedroid.org>
Date : sam., nov. 19, 2011 18:40
Objet : [issue344] ANIMATION: Bullets should start near gun muzzle
PourĀ : <fluzz@gmx.com>, <freedroid-bugs@lists.sourceforge.net>

salimiles <stinkyfishheadisred@yahoo.com> added the comment:

So how is this coming along?

________________________________________
FreedroidRPG issues <bugs@freedroid.org>
<http://bugs.freedroid.org/b/issue344>
________________________________________

Attached unnamed.
Author: fluzz Date: 2011-11-20   16h33
Patch on http://rb.freedroid.org/r/1630/
That's an intermediate fix to have a better offset, but some more work is needed
to fix all issues related to bullet (and possibly blast) offset.
Author: matthiaskrgr Date: 2011-11-23   16h22
Fixed in 5198. Thanks!
History
Date User Action Args
2011-11-23 16:22:00matthiaskrgrsetstatus: open -> resolved
messages: + msg2074
2011-11-20 16:33:25fluzzsetmessages: + msg2041
2011-11-19 18:47:03fluzzsetfiles: + unnamed
messages: + msg2031
2011-11-19 17:40:27salimilessetmessages: + msg2029
2011-11-14 13:06:24fluzzsetmessages: + msg1974
2011-10-28 07:23:57hailsetmessages: + msg1784
2011-08-09 08:38:10fluzzsetassignedto: fluzz
nosy: + fluzz
2011-07-30 16:54:28fluzzsetmessages: + msg1396
2011-07-27 09:23:24matthiaskrgrlinkissue225 linked
2011-07-26 11:57:37matthiaskrgrsetpriority: bug -> important
2011-07-24 19:08:04tracker_migrationcreate