Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

1411430 Posts in 69363 Topics- by 58416 Members - Latest Member: JamesAGreen

April 20, 2024, 02:28:38 AM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsCommunityDevLogsRay's the Dead
Pages: 1 [2]
Print
Author Topic: Ray's the Dead  (Read 4235 times)
Ragtag Studio
Level 0
**


Ray's the Dead


View Profile WWW
« Reply #20 on: March 07, 2015, 11:00:07 AM »

Here are the sprites imported into Blender before they are arranged via script.
Logged

Check out my devlog and vote for us on Steam Greenlight!
Ragtag Studio
Level 0
**


Ray's the Dead


View Profile WWW
« Reply #21 on: March 07, 2015, 11:26:04 AM »

I need to get the image dimensions out of the Gimp and do some maths to convert it into Blender units. I am importing images into Blender at 112 pixels per unit. So I just have to divide the pixel dimensions by 112. I will need to do this math on all of the offsets. I could do them on export or import. This is what I am outputting.

joints =  {'Joint-RearPawL': [288, 611], 'Joint-RearLowlegL': [309, 589], etc...}
layer_offsets= {'Body': [228, 434], 'Head-Bark ': [350, 203], etc...}

The origin is in the upper left hand corner of the image.
Logged

Check out my devlog and vote for us on Steam Greenlight!
Pages: 1 [2]
Print
Jump to:  

Theme orange-lt created by panic