I am trying to load this model as a jME custom mesh.
model: "simple"
pointsPerArc:2
texture: "demo"
bottomLeft: 0.0,0.0
topRight: 0.5,0.5
texture: "demo2"
bottomLeft: 0.5,0.5
topRight: 1.0,1.0
texture: "demo3"
bottomLeft: 0.5,0.0
topRight: 1.0,0.5
texture: "demo4"
bottomLeft: 0.0,0.5
topRight: 0.5,1.0
mesh: "mesh1"
properties:
useTexture: "demo"
circle:
offset: 0.0, -2.0, 0.0
vector: 0.0, 1.0, 0.0
radius: 2.8
circle:
offset: 0.0, 2.0, 0.0
vector: 0.0, 1.0, 0.0
radius: 0.10
mesh: "mesh2"
properties:
useTexture: "demo2"
circle:
offset: 0.0, 4.0, 0.0
vector: 0.0, 1.0, 0.0
radius: 2.8
circle:
offset: 0.0, 8.0, 0.0
vector: 0.0, 1.0, 0.0
radius: 0.10
mesh: "mesh3"
properties:
useTexture: "demo3"
circle:
offset: 0.0, 12.0, 0.0
vector: 0.0, 1.0, 0.0
radius: 2.8
circle:
offset: 0.0, 16.0, 0.0
vector: 0.0, 1.0, 0.0
radius: 0.10
It should be three separate “triangles” pointing up. Instead the triangles are joined together as a strip and the index doesn’t seem to reference all the verteces.
My apologies for the code, it is still in the hacky will-it-work stage. No it doesn’t.
http://pastebin.java-gaming.org/85c373d701f1c
EDIT: I updated the pastebin with the fix.