|
![](/i/fill.gif) |
[...]
On 07/12/13 13:52, clipka wrote:
> There is indeed: While the documentation claims that the texture_list
> must go between vertex_vectors and face_indices, the actual
> implementation also allows it to be placed /before/ vertex_vectors.
Not quite --- it needs this patch:
diff --git a/source/backend/parser/parse.cpp
b/source/backend/parser/parse.cpp
index 7268519..5671853 100644
--- a/source/backend/parser/parse.cpp
+++ b/source/backend/parser/parse.cpp
@@ -4123,7 +4123,6 @@ ObjectPtr Parser::Parse_Mesh2()
}
Parse_End();
- EXIT
END_CASE
OTHERWISE
Here is a non-working example which this patch makes work:
mesh2
{
texture_list
{
2,
texture { pigment { rgb <1, 0, 0> } }
texture { pigment { rgb <0, 1, 0> } }
}
vertex_vectors {
8,
<-2719.2913915965546039, -893.33239410140299697, -767.54170874189844653>,
<-2718.0920180748885286, -892.13302057973692172, 1237.4785220361964093>,
<-2721.7475964839522931, 1115.3434150857556233, 1241.1341004452601737>,
<-711.99363163820544287, 1113.9653658569463914, 1239.7560512164509419>,
<-713.22223976959799074, -893.18194162859867902, 1238.527443085058394>,
<-712.90481070357554927, -893.49937069462112049, -767.70868533511657006>,
<-713.65531061695128301, 1112.3036868782005513, -766.95818542174083632>,
<-2718.5600943257700237, 1112.155912927573354, -766.81041147111363898>
}
face_indices {
12,
<0, 1, 2>, 1, 0, 1,
<3, 4, 5>, 1, 1, 1,
<5, 6, 3>, 1, 1, 1,
<3, 2, 1>, 1, 1, 0,
<1, 4, 3>, 0, 1, 1,
<6, 5, 0>, 1, 1, 1,
<0, 7, 6>, 1, 1, 1,
<2, 3, 6>, 1, 1, 1,
<6, 7, 2>, 1, 1, 1,
<1, 0, 5>, 0, 1, 1,
<5, 4, 1>, 1, 1, 0,
<2, 7, 0>, 1, 1, 1
}
inside_vector CameraSky
translate <1716.181589446674252, -109.77740804847752543,
-235.56809340798210428>
}
--
┌─── dg@cowlark.com ─────
http://www.cowlark.com ─────
│ "There does not now, nor will there ever, exist a programming
│ language in which it is the least bit hard to write bad programs." ---
│ Flon's Axiom
Post a reply to this message
|
![](/i/fill.gif) |