Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Quadrilateral Mesh
Started by philipp3 Feb 04 2019 03:04 AM

2 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

philipp3

[GLOBAL: userInfoPane.html]
philipp3
  • Enthusiast

  • 74 posts
  • Corona SDK

Hello,

 

As suggested in the docs (https://docs.coronalabs.com/guide/graphics/3D.html#quadrilateral-distortion), I am trying to make a mesh and transform it with the path-tool. When I follow the example on the docs, I can’t get a correctly clipped image.

 

Quadrilateral transformations shift the center of the image away from the actual center (which is fine because that’s how perspective works), but that way, I can’t get a mesh where the edges are corresponding to the next edge. (images 1 and 2)

 

In 3D programs, this is done with triangle transformations instead of rectangular transformations. The rectangle can be divided into two triangles on two axises (images 3 & 4). Is there any option to do this with Corona?

 

R6qolWB.png



[TOPIC: post.html]
#2

StarCrunch

[GLOBAL: userInfoPane.html]
StarCrunch
  • Contributor

  • 791 posts
  • Corona SDK

You might have better luck with actual mesh objects, probably indexed ones.



[TOPIC: post.html]
#3

philipp3

[GLOBAL: userInfoPane.html]
philipp3
  • Enthusiast

  • 74 posts
  • Corona SDK

You might have better luck with actual mesh objects, probably indexed ones.

 

Sorry for the late answer, this is exactly what I was looking for. Thank you so much!


  • StarCrunch likes this


[topic_controls]
[/topic_controls]