View unanswered posts | View active topics It is currently Thu Jan 09, 2025 10:35 pm



Reply to topic  [ 15 posts ] 
 Offsets - For the love of god, why? 
Author Message
User avatar

Joined: Mon Apr 06, 2009 9:41 am
Posts: 712
Location: New York
Reply with quote
Post Offsets - For the love of god, why?
I've spent the last two hours trying to get the offsets right on something. Sprite Offsets + Join Offsets = Kill someone.

What sense does this make?

Image


Fri Sep 25, 2009 5:30 am
Profile YIM
User avatar

Joined: Fri Dec 22, 2006 4:20 am
Posts: 4772
Location: Good news everyone!
Reply with quote
Post Re: Offsets - For the love of god, why?
Offsets need to be fixed.


Fri Sep 25, 2009 5:31 am
Profile WWW
User avatar

Joined: Mon Apr 06, 2009 9:41 am
Posts: 712
Location: New York
Reply with quote
Post Re: Offsets - For the love of god, why?
I give up.

I've spent three hours of my night trying to get the offsets right on one single thing. ♥♥♥♥ this.


Fri Sep 25, 2009 5:51 am
Profile YIM
User avatar

Joined: Sat Sep 19, 2009 8:33 pm
Posts: 32
Reply with quote
Post Re: Offsets - For the love of god, why?
Are you trying to make offsets for a gun?


Fri Sep 25, 2009 5:56 am
Profile
User avatar

Joined: Fri Dec 22, 2006 4:20 am
Posts: 4772
Location: Good news everyone!
Reply with quote
Post Re: Offsets - For the love of god, why?
When you know which way is which it gets pretty easy.
Stupid thing is that joint offsets and sprites offsets, etc, seem to differ in which way is which. Very confusing.


Fri Sep 25, 2009 5:57 am
Profile WWW
User avatar

Joined: Sat Sep 19, 2009 8:33 pm
Posts: 32
Reply with quote
Post Re: Offsets - For the love of god, why?
Well, the joint offset is the hand, but you're moving the gun to that spot.

So if you had -10 x -5 as the sprite offset, moving left 3 and down 2 would give you joint offsets as -3 x 2.
don't ask me why you have to negate them.


Fri Sep 25, 2009 5:59 am
Profile
User avatar

Joined: Mon Apr 06, 2009 9:41 am
Posts: 712
Location: New York
Reply with quote
Post Re: Offsets - For the love of god, why?
This is the whole thing so far, as I would like it to be aligned (will have crab legs):

Image

This is the same thing with the biggest bit of armor removed (this is all just a rough sketch - don't judge the sprites):

Image

No head:
Image

Just Head:

Image

I am having an impossible time getting the head to rotate on that limb. Also, to the mods, no it's not a baby. It was going to be, but since the ban threat from Wizard James, I've made it into an angry-looking bald man.


Fri Sep 25, 2009 6:26 am
Profile YIM
User avatar

Joined: Sun Jul 13, 2008 9:57 am
Posts: 4886
Location: some compy
Reply with quote
Post Re: Offsets - For the love of god, why?
SpriteOffset: NEGATIVE numbers that position the sprite so that it is centered. imagine that the vector is moving the sprite, not the offset. basically, divide the dimensions of the image by 2 and make them negative.
JointOffset: done in the normal way (+x is right, +y is down), to where you want it to connect.


Fri Sep 25, 2009 8:42 am
Profile WWW
User avatar

Joined: Mon Apr 06, 2009 9:41 am
Posts: 712
Location: New York
Reply with quote
Post Re: Offsets - For the love of god, why?
Geti wrote:
SpriteOffset: NEGATIVE numbers that position the sprite so that it is centered. imagine that the vector is moving the sprite, not the offset. basically, divide the dimensions of the image by 2 and make them negative.
JointOffset: done in the normal way (+x is right, +y is down), to where you want it to connect.


Oooo.
I did not realize they were opposite. Is that in the wiki? I didn't see it.


And just to clarify, if I want to make the head pivot on that round joint, I make the joint offset at that point?

Also, what's Parent Offset?


Fri Sep 25, 2009 1:10 pm
Profile YIM
happy carebear mom
User avatar

Joined: Tue Mar 04, 2008 1:40 am
Posts: 7096
Location: b8bbd5
Reply with quote
Post Re: Offsets - For the love of god, why?
ParentOffset is where on the sprite you're attaching it to it goes.
Yes, heads, arms, legs, and attachables in general rotate on their JointOffset.


Fri Sep 25, 2009 1:21 pm
Profile
User avatar

Joined: Mon Apr 06, 2009 9:41 am
Posts: 712
Location: New York
Reply with quote
Post Re: Offsets - For the love of god, why?
I GET IT NOW.

Yeah, was using sprite offset as if it were parent offset.


Fri Sep 25, 2009 5:40 pm
Profile YIM
User avatar

Joined: Mon Apr 06, 2009 9:41 am
Posts: 712
Location: New York
Reply with quote
Post Re: Offsets - For the love of god, why?
The y axis is flipped for joint offsets. That only took me 45 min to figure out.

Update: on another note, Gimp has amazing pixel rotating.


Fri Sep 25, 2009 6:37 pm
Profile YIM
Loose Canon
User avatar

Joined: Sun Mar 29, 2009 11:07 pm
Posts: 2992
Location: --------------->
Reply with quote
Post Re: Offsets - For the love of god, why?
I've heard so many glorious things about GIMP, I'll finally give it a try, and I just accidentally closed the download for the installer didn't I.


Fri Sep 25, 2009 11:56 pm
Profile WWW
User avatar

Joined: Sun Jul 13, 2008 9:57 am
Posts: 4886
Location: some compy
Reply with quote
Post Re: Offsets - For the love of god, why?
the y axis is not flipped. it is always -y up +y down. glad to help though.


Sat Sep 26, 2009 2:36 am
Profile WWW
User avatar

Joined: Mon Apr 06, 2009 9:41 am
Posts: 712
Location: New York
Reply with quote
Post Re: Offsets - For the love of god, why?
Geti wrote:
the y axis is not flipped. it is always -y up +y down. glad to help though.


Pretty sure it is for joint offsets. Maybe this is something that is dependent on another variable? Perhaps the relativity of the axis blaaaaaah too drunk to think abou this in a smart way, but there's prob something which makes the y switch things up or something. Going back to the pary.

Baaaai!


Sat Sep 26, 2009 3:06 am
Profile YIM
Display posts from previous:  Sort by  
Reply to topic   [ 15 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.038s | 14 Queries | GZIP : Off ]