home |  downloads |  help  |  forum  |  contact us 
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 24, 2013, 01:44:36 AM

Login with username, password and session length
Search:     Advanced search
fragMOTION 1.2.2 Released!
2787 Posts in 689 Topics by 788 Members
Latest Member: cliffordbryant4145
* Home Help Search Login Register
+  Fragmosoft Forum
|-+  fragMOTION
| |-+  Bug Reports
| | |-+  Exporting Sprites Offset Problem
« previous next »
Pages: [1] Go Down Print
Author Topic: Exporting Sprites Offset Problem  (Read 1080 times)
MikeMax
Newbie
**
Posts: 8


View Profile
Exporting Sprites Offset Problem
« on: February 13, 2012, 12:56:42 AM »

Hello,

Maybe i've not checked the good option but i can't achieve to export a model into a sprite sheet correctly (grid, or row or whatever) without having a sprite perfectly centered with the same offset at each frame. So the uniform sizing may size the frame but doesn't correct the sprite IN the frame. If i simply run and display frame after frame i can't see a smooth animation because my character is "jumping" lol

look at the last frames on this row sheet of a running animation. We can see the head of the dwarf it's not at the correct height (due to axe presence which change the frame height ... although i've chosen "uniform sizing" option ...) :

http://box.ht/frame0.png

You see ?

So .. is it possible to have a "Uniform POSITIONING" option now ? Wink due to this problem i can't continue to code my game Sad

Thanks a lot ! Fragmotion is really a great software Smiley
Logged
fragmo
Administrator
Not A Newbie
*****
Posts: 10664



View Profile
Re: Exporting Sprites Offset Problem
« Reply #1 on: February 13, 2012, 12:45:28 PM »

Coincidentally I just discovered this problem today too.  If you export using the grid format there is an xml file produced that will allow you to overcome this until I fix the problem.  There is a point named default_origin added to each frame that can be used for alignment.  The only catch here is that the format of the xml will change with the next version since I also discovered that the image info is missing from non-grid formatted sprites.
Logged
MikeMax
Newbie
**
Posts: 8


View Profile
Re: Exporting Sprites Offset Problem
« Reply #2 on: February 13, 2012, 12:56:34 PM »

Ok Smiley , and is there a way to get the background of each sprite completely transparent (and the shadow semi transparent at the transparency level specified .. with PNG export obviously:) ?
« Last Edit: February 13, 2012, 01:14:01 PM by MikeMax » Logged
fragmo
Administrator
Not A Newbie
*****
Posts: 10664



View Profile
Re: Exporting Sprites Offset Problem
« Reply #3 on: February 14, 2012, 09:08:55 AM »

Unless you check the Remove Alpha option, they are always exported with transparency if supported by the image format.
Logged
MikeMax
Newbie
**
Posts: 8


View Profile
Re: Exporting Sprites Offset Problem
« Reply #4 on: February 14, 2012, 09:31:49 AM »

i don't have checked the "remove alpha++" option.

Re-Check this image (directly exported from fragmotion sprite creation tool :

http://box.ht/frame0.png

open it with photoshop or Paint.NET ...

The background behind the sprite is white and around this background it's transparent... but, in fact, i don't know how to remove background color setting ... there is no "transparent color" in the color panel Smiley maybe i missed another option to disable this "background color" attribute ?
Logged
MikeMax
Newbie
**
Posts: 8


View Profile
Re: Exporting Sprites Offset Problem
« Reply #5 on: February 14, 2012, 09:59:10 AM »

oups !!!

.. i've just test it on another computer and the background is full transparent ...

Maybe i've forgot to click the "reset" button near the background color but i don't think ...

Sorry .. Smiley i will check that at home soon Smiley

i will do a feedback Smiley



i can't wait to test the sprite tool when it will be fixed (sprite position/offset height/width problem) Smiley
Logged
MikeMax
Newbie
**
Posts: 8


View Profile
Re: Exporting Sprites Offset Problem
« Reply #6 on: February 14, 2012, 02:13:18 PM »

Ok ... i definitely have a problem on my home computer :

- Core i7 + 8GB RAM
- Nvidia GTX460M 1.5GB VRAM
- Win7 Home Premium 64 Bits

With renderogl.dll :

with or without the remove alpha++ >>> white square around the sprite (as my frame0 from the web link)

with renderd3d9.dll :

same thing as the renderogl.dll except without removing alpha++, the sprite itself is transparent but i have always my white square around my transarent sprite lol (i saw an issue in a old post on the forum Smiley


so ... can it be a dll issue ? how works your "make transparency" function ? Smiley 
Logged
fragmo
Administrator
Not A Newbie
*****
Posts: 10664



View Profile
Re: Exporting Sprites Offset Problem
« Reply #7 on: February 14, 2012, 07:19:36 PM »

I think this issue is related to the video card not liking how I grab the rendered image.  There's probably nothing I can do to fix this short of making a software 3d renderer, which isn't going to happen.  My best suggestion would be to load your image back into fragmotion as a texture, right click the texture and select Set Alpha.  You'll be able to select a color to make transparent and hopefully that color doesn't show up in the actual sprite image or you'll need to redo the sprite with a unique background color.
Logged
MikeMax
Newbie
**
Posts: 8


View Profile
Re: Exporting Sprites Offset Problem
« Reply #8 on: February 15, 2012, 05:09:04 AM »

ok Smiley for the background it's not a big problem.

But the sprite offset is THE problem Wink any idea when the fix will be released in a new version ?
Logged
fragmo
Administrator
Not A Newbie
*****
Posts: 10664



View Profile
Re: Exporting Sprites Offset Problem
« Reply #9 on: February 15, 2012, 10:16:37 AM »

I can't give a good estimate, it could take a couple months.
Logged
MikeMax
Newbie
**
Posts: 8


View Profile
Re: Exporting Sprites Offset Problem
« Reply #10 on: February 15, 2012, 10:32:39 AM »

couple of months ? .. bad news Sad i will have to search another way to generate my sprites Sad

But thanks for all you have ever done Smiley
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Fragmosoft Forum | Powered by SMF 1.0.8.
© 2001-2005, Lewis Media. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!