|
|
@@ -7,6 +7,10 @@
|
|
|
:imagesdir: ../..
|
|
|
ifdef::env-github,env-browser[:outfilesuffix: .adoc]
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+image::jme3/advanced/custom_mesh.png[custom_mesh.png,with="150",height="150",align="left"]
|
|
|
+
|
|
|
Use the Mesh class to create custom shapes that go beyond Quad, Box, Cylinder, and Sphere, even procedural shapes are possible. Thank you to KayTrance for providing the sample code!
|
|
|
|
|
|
*Note:* In this tutorial, we (re)create a very simple rectangular mesh (a quad), and we have a look at different ways of coloring it. Coding a custom quad may not be very useful because it's exactly the same as the built-in `com.jme3.scene.shape.Quad`. We chose a simple quad to teach you how to build any shape out of triangles, without the distractions of more complex shapes.
|