Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

What's the proper way to extrude a square tile's corner
Started by bitinn Jul 03 2016 11:33 PM

- - - - -
1 reply to this topic

Best Answer torbenratzlaff , 04 July 2016 - 02:07 AM

It may matter, just use the original corner pixels for that.

 

Lets say you have a 3 by 3 image just do the following:

original image:

1,1  2,1  3,1
1,2  2,2  3,2
1,3  2,3  3,3


extruded image:

[1,1][1,1][2,1][3,1][3,1]
[1,1] 1,1  2,1  3,1 [3,1]
[1,2] 1,2  2,2  3,2 [3,2]
[1,3] 1,3  2,3  3,3 [3,3]
[1,3][1,3][2,3][3,3][3,3]

You should take that extra step as its not hard to achieve.

[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

bitinn

[GLOBAL: userInfoPane.html]
bitinn
  • Enthusiast

  • 71 posts
  • Corona SDK

Due to an ongoing problem I want to try extruding my tileset for testing, I am writing a tool for my specific case. I understand how to extrude the edge, just repeat the side. But what about the corner, does it even matter in the case of Corona SDK?



[TOPIC: post.html]
#2

torbenratzlaff

[GLOBAL: userInfoPane.html]
torbenratzlaff
  • Contributor

  • 404 posts
  • Corona SDK

  Best Answer

It may matter, just use the original corner pixels for that.

 

Lets say you have a 3 by 3 image just do the following:

original image:

1,1  2,1  3,1
1,2  2,2  3,2
1,3  2,3  3,3


extruded image:

[1,1][1,1][2,1][3,1][3,1]
[1,1] 1,1  2,1  3,1 [3,1]
[1,2] 1,2  2,2  3,2 [3,2]
[1,3] 1,3  2,3  3,3 [3,3]
[1,3][1,3][2,3][3,3][3,3]

You should take that extra step as its not hard to achieve.




[topic_controls]
[/topic_controls]