Working with Meshes

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
Ortimh
Citizen
Posts: 90
Joined: Tue Sep 09, 2014 5:07 am
Location: Indonesia

Working with Meshes

Post 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)
Attachments
Mesh.love
(3.68 KiB) Downloaded 170 times
User avatar
Ortimh
Citizen
Posts: 90
Joined: Tue Sep 09, 2014 5:07 am
Location: Indonesia

Re: Working with Meshes

Post 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.
cval
Citizen
Posts: 58
Joined: Sun Apr 20, 2014 2:15 pm
Location: Ukraine

Re: Working with Meshes

Post 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 3374 times
User avatar
Ortimh
Citizen
Posts: 90
Joined: Tue Sep 09, 2014 5:07 am
Location: Indonesia

Re: Working with Meshes

Post 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!
Post Reply

Who is online

Users browsing this forum: No registered users and 199 guests