Page 1 of 1

Working with Meshes

Posted: Tue Apr 26, 2016 7:08 am
by Ortimh
I'm a complete beginner when working with meshes. I don't know how it works and how it draws. I tried to learn about meshes by making some code, of course. I provided a LÖVE file attachment below. What I need to know are:
  • How can I draw a complete rectangle with mesh?
  • How can I draw a texture to a mesh properly?
  • What are UV texture coordinates and how they work?
  • How to apply physics to the mesh? (love.physics is encouraged)

Re: Working with Meshes

Posted: Tue Apr 26, 2016 11:03 am
by Ortimh
Anyone? I really need the help to continue forward on my project. I searched through the internet but none of them is English-friendly (words that I don't understand). Any kind of answer is appreciated. You can answer only one of the questions.

Re: Working with Meshes

Posted: Tue Apr 26, 2016 12:45 pm
by cval
Well, there is a tutorial page which is pretty explanatory on that matter over here
https://love2d.org/wiki/love.graphics.newMesh
that should help you getting started

Then for custom meshes with different UV (texture) coordinates you should look at basics of UV mapping
images_9_98_VoiceMaze_UV_coords.png
images_9_98_VoiceMaze_UV_coords.png (5.45 KiB) Viewed 3633 times

Re: Working with Meshes

Posted: Tue Apr 26, 2016 2:17 pm
by Ortimh
Ah, you know how stupid I am. I never realize that there's a code snippet at the bottom of the page. Thank you for your help!