Plik scenerii: Różnice pomiędzy wersjami

Z MaSzyna
Skocz do: nawigacja, szukaj
(Utworzono nową stronę "Plik scenerii (*.scn) opisuje wygląd i strukturę symulowanego świata.")
 
Linia 1: Linia 1:
 
Plik scenerii (*.scn) opisuje wygląd i strukturę symulowanego świata.
 
Plik scenerii (*.scn) opisuje wygląd i strukturę symulowanego świata.
 +
 +
<P ALIGN=CENTER STYLE="margin-bottom: 0cm"><FONT FACE="Arial Black, sans-serif"><FONT SIZE=5><B>OPIS
 +
FORMATU PLIKU SCENERII</B></FONT></FONT></P>
 +
<P ALIGN=CENTER STYLE="margin-bottom: 0cm; font-style: normal; font-weight: normal">
 +
<FONT FACE="Arial Black, sans-serif"><FONT SIZE=2 STYLE="font-size: 10pt">Opracowanie
 +
na podstawie dokumentu scenery.doc autorstwa</FONT></FONT></P>
 +
<P ALIGN=CENTER STYLE="margin-bottom: 0cm; font-style: normal; font-weight: normal">
 +
<FONT FACE="Arial Black, sans-serif"><FONT SIZE=2 STYLE="font-size: 10pt">Marcina
 +
Woźniaka i Macieja Czapkiewicza</FONT></FONT></P>
 +
<P ALIGN=CENTER STYLE="margin-bottom: 0cm; border-top: none; border-bottom: 1px solid #000000; border-left: none; border-right: none; padding-top: 0cm; padding-bottom: 0.07cm; padding-left: 0cm; padding-right: 0cm; font-style: normal; font-weight: normal">
 +
<FONT FACE="Arial Black, sans-serif"><FONT SIZE=2 STYLE="font-size: 10pt">Aktualizacja
 +
wg stanu na rok 2015 </FONT></FONT>
 +
</P>
 +
<P ALIGN=CENTER STYLE="margin-bottom: 0cm; border-top: none; border-bottom: 1px solid #000000; border-left: none; border-right: none; padding-top: 0cm; padding-bottom: 0.07cm; padding-left: 0cm; padding-right: 0cm; font-style: normal; font-weight: normal">
 +
<BR>
 +
</P>
 +
<P ALIGN=CENTER STYLE="margin-bottom: 0cm; font-style: normal; font-weight: normal">
 +
<BR>
 +
</P>
 +
<P ALIGN=CENTER STYLE="margin-bottom: 0cm; font-style: normal; font-weight: normal">
 +
<BR>
 +
</P>
 +
<P ALIGN=CENTER STYLE="margin-bottom: 0cm; font-style: normal; font-weight: normal">
 +
<FONT FACE="Lucida Console, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">Na
 +
zebranych tu informacjach oparte zostały skrypty eksporterów</FONT></FONT></P>
 +
<P ALIGN=CENTER STYLE="margin-bottom: 0cm; font-style: normal; font-weight: normal">
 +
<FONT FACE="Lucida Console, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">jaki
 +
i importerów scenerii dla środowiska 3DS Max Studio</FONT></FONT></P>
 +
<P ALIGN=CENTER STYLE="margin-bottom: 0cm; font-style: normal; font-weight: normal">
 +
<FONT FACE="Lucida Console, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">oraz
 +
parser przetwarzajacy dane z plików scenerii wbudowany</FONT></FONT></P>
 +
<P ALIGN=CENTER STYLE="margin-bottom: 0cm; font-style: normal; font-weight: normal">
 +
<FONT FACE="Lucida Console, monospace"><FONT SIZE=2 STYLE="font-size: 10pt">w
 +
programie EU07.EXE</FONT></FONT></P>
 +
<P ALIGN=CENTER STYLE="margin-bottom: 0cm; font-style: normal; font-weight: normal">
 +
 +
</P>
 +
<P ALIGN=CENTER STYLE="margin-bottom: 0cm; font-style: normal; font-weight: normal">
 +
<BR>
 +
</P>
 +
<P STYLE="margin-bottom: 0cm">Domyślny plik trasy powinien nazywać
 +
się <B>scene.scn</B>, możliwe jest wgranie innego pliku poprzez
 +
podanie jego nazwy jako parametr w skrócie lub w konsoli polecen, np.
 +
</P>
 +
<P STYLE="margin-bottom: 0cm"><FONT COLOR="#3333ff"><FONT FACE="Courier New, monospace"><SPAN LANG="en-US">eu07.exe
 +
&ndash;s scenery/testowo.scn</SPAN></FONT><SPAN LANG="en-US">.</SPAN></FONT></P>
 +
<P STYLE="margin-bottom: 0cm"><BR>
 +
</P>
 +
<P STYLE="margin-bottom: 0cm">Można również zdefiniować domyślną
 +
nazwę scenerii w pliku <FONT COLOR="#990000"><FONT FACE="Arial, sans-serif"><FONT SIZE=2><B>eu07.ini
 +
</B></FONT></FONT></FONT><FONT COLOR="#000000"><FONT FACE="Times New Roman, serif"><FONT SIZE=3><SPAN STYLE="font-weight: normal">podajac
 +
parametr w kluczu</SPAN></FONT></FONT></FONT></P>
 +
<P STYLE="margin-bottom: 0cm"><FONT COLOR="#3333ff"><FONT FACE="Times New Roman, serif"><FONT SIZE=3><SPAN STYLE="font-weight: normal">sceneryfile
 +
np.:</SPAN></FONT></FONT></FONT></P>
 +
<P STYLE="margin-bottom: 0cm"><BR>
 +
</P>
 +
<P STYLE="margin-bottom: 0cm"><FONT COLOR="#3333ff"><FONT FACE="Times New Roman, serif"><FONT SIZE=3><SPAN STYLE="font-weight: normal">sceneryfile
 +
testowo.scn</SPAN></FONT></FONT></FONT></P>
 +
<P ALIGN=CENTER STYLE="margin-bottom: 0cm"><BR>
 +
</P>
 +
<P ALIGN=LEFT STYLE="margin-bottom: 0cm"><FONT FACE="Times New Roman, serif"><FONT SIZE=2 STYLE="font-size: 10pt"><SPAN STYLE="font-style: normal"><SPAN STYLE="font-weight: normal">Parametry
 +
obiektów w scenerii mogą być oddzielane spacjami, przecinkami,
 +
średnikami, tabulatorami lub końcami linii, jednak dla lepszej
 +
czytelności dla człowieka zaleca się oddzielanie ich wyłącznie
 +
spacją.</SPAN></SPAN></FONT></FONT></P>
 +
<P ALIGN=CENTER STYLE="margin-bottom: 0cm; font-style: normal; font-weight: normal">
 +
<BR>
 +
</P>
 +
<P ALIGN=CENTER STYLE="margin-bottom: 0cm; font-style: normal"><FONT FACE="Times New Roman, serif"><FONT SIZE=2 STYLE="font-size: 10pt"><B>Przykłady:</B></FONT></FONT></P>
 +
<P ALIGN=CENTER STYLE="margin-bottom: 0cm; font-style: normal; font-weight: normal">
 +
<BR>
 +
</P>
 +
<P ALIGN=LEFT STYLE="margin-bottom: 0cm; font-style: normal; font-weight: normal">
 +
<FONT FACE="Times New Roman, serif"><FONT SIZE=2 STYLE="font-size: 10pt">include;tree.inc;l61_plants/drzewo1024f;-3947.2;-4.0;2401.17;56.0;8.3;4.2;end</FONT></FONT></P>
 +
<P ALIGN=LEFT STYLE="margin-bottom: 0cm; font-style: normal; font-weight: normal">
 +
<BR>
 +
</P>
 +
<P ALIGN=LEFT STYLE="margin-bottom: 0cm; font-style: normal; font-weight: normal">
 +
<FONT FACE="Times New Roman, serif"><FONT SIZE=2 STYLE="font-size: 10pt">include,tree.inc,l61_plants/drzewo1024f,-3947.2,-4.0,2401.17,56.0,8.3,4.2,end</FONT></FONT></P>
 +
<P ALIGN=LEFT STYLE="margin-bottom: 0cm; font-style: normal; font-weight: normal">
 +
<BR>
 +
</P>
 +
<P ALIGN=LEFT STYLE="margin-bottom: 0cm; font-style: normal; font-weight: normal">
 +
<FONT FACE="Times New Roman, serif"><FONT SIZE=2 STYLE="font-size: 10pt">include
 +
tree.inc l61_plants/drzewo1024f -3947.2 -4.0 2401.17 56.0 8.3 4.2 end</FONT></FONT></P>
 +
<P ALIGN=LEFT STYLE="margin-bottom: 0cm; font-style: normal; font-weight: normal">
 +
<BR>
 +
</P>
 +
<P ALIGN=LEFT STYLE="margin-bottom: 0cm; font-style: normal; font-weight: normal">
 +
<BR>
 +
</P>
 +
<P ALIGN=LEFT STYLE="margin-bottom: 0cm; font-style: normal; font-weight: normal">
 +
<FONT FACE="Times New Roman, serif"><FONT SIZE=2 STYLE="font-size: 10pt">W
 +
pliku scenerii rozróżniamy 12 typów obiektów, są to: </FONT></FONT>
 +
</P>
 +
<P ALIGN=LEFT STYLE="margin-bottom: 0cm; font-style: normal; font-weight: normal">
 +
<FONT FACE="Times New Roman, serif"><FONT SIZE=2 STYLE="font-size: 10pt"><B>node</B>,
 +
<B>event</B>,<B> include</B>, <B>trainset</B>,<B> rotate</B>, <B>orgin</B>,<B>
 +
description</B>, <B>fog</B>, <B>atmo</B>, <B>light</B>, <B>camera</B>,
 +
<B>config</B></FONT></FONT></P>
 +
<P ALIGN=LEFT STYLE="margin-bottom: 0cm; font-style: normal; font-weight: normal">
 +
<BR>
 +
</P>
 +
<P ALIGN=LEFT STYLE="margin-bottom: 0cm; font-style: normal; font-weight: normal">
 +
<FONT FACE="Times New Roman, serif"><FONT SIZE=2 STYLE="font-size: 10pt">Dwa
 +
z wymienionych typow, tj. <B>node</B> i <B>event</B> dziela się na
 +
podtypy. Wpis typu <B>node</B> posiada 12 podtypów</FONT></FONT></P>
 +
<P ALIGN=LEFT STYLE="margin-bottom: 0cm; font-style: normal; font-weight: normal">
 +
<FONT FACE="Times New Roman, serif"><FONT SIZE=2 STYLE="font-size: 10pt">zaś
 +
wpis <B>event</B> 8.</FONT></FONT></P>
 +
<P ALIGN=LEFT STYLE="margin-bottom: 0cm; font-style: normal; font-weight: normal">
 +
<BR>
 +
</P>
 +
<P ALIGN=LEFT STYLE="margin-bottom: 0cm; font-style: normal; font-weight: normal">
 +
<BR>
 +
</P>
 +
<P ALIGN=LEFT STYLE="margin-bottom: 0cm; font-style: normal; font-weight: normal">
 +
<FONT FACE="Times New Roman, serif"><FONT SIZE=2 STYLE="font-size: 10pt">1
 +
Wpis node </FONT></FONT>
 +
</P>
 +
<P ALIGN=LEFT STYLE="margin-bottom: 0cm; font-style: normal; font-weight: normal">
 +
<BR>
 +
</P>
 +
<P ALIGN=LEFT STYLE="margin-bottom: 0cm; font-style: normal; font-weight: normal">
 +
<FONT FACE="Times New Roman, serif"><FONT SIZE=2 STYLE="font-size: 10pt">Typ
 +
<B>NODE</B> definiuje obiekty widoczne (a ogólniej: obiekty które
 +
bierze pod uwagę funkcja Render).</FONT></FONT></P>
 +
<P ALIGN=LEFT STYLE="margin-bottom: 0cm; font-weight: normal"><FONT FACE="Times New Roman, serif"><FONT SIZE=2 STYLE="font-size: 10pt"><SPAN STYLE="font-style: normal">Obiekty
 +
tego typu mogą być rysowalne lub niewidoczne. Parametry podstawowe
 +
wspólne dla wszystkich podtypów to: </SPAN></FONT></FONT>
 +
</P>
 +
<P ALIGN=LEFT STYLE="margin-bottom: 0cm; font-weight: normal"><BR>
 +
</P>
 +
<UL>
 +
<LI><P STYLE="margin-bottom: 0cm"><FONT FACE="Arial, sans-serif">MaxDistance</FONT>
 +
&ndash; maksymalna odległość z jakiej obiekt będzie widoczny</P>
 +
<LI><P STYLE="margin-bottom: 0cm"><FONT FACE="Arial, sans-serif">MinDistance</FONT>
 +
&ndash; minimalna odległość z jakiej obiekt będzie widoczny</P>
 +
<LI><P STYLE="margin-bottom: 0cm"><FONT FACE="Arial, sans-serif">Name</FONT>
 +
&ndash; nazwa obiektu, jeśli nie potrzebujemy należy wpisać <B>none</B></P>
 +
<LI><P ALIGN=LEFT STYLE="margin-bottom: 0cm; font-style: normal; font-weight: normal">
 +
<FONT FACE="Times New Roman, serif"><FONT SIZE=2 STYLE="font-size: 10pt"><FONT FACE="Arial, sans-serif">Type</FONT>
 +
- rodzaj obiektu</FONT></FONT></P>
 +
</UL>
 +
<P ALIGN=LEFT STYLE="margin-bottom: 0cm; font-style: normal; font-weight: normal">
 +
<BR>
 +
</P>
 +
<P ALIGN=LEFT STYLE="margin-bottom: 0cm; font-style: normal; font-weight: normal">
 +
<FONT FACE="Times New Roman, serif"><FONT SIZE=2 STYLE="font-size: 10pt">Ponizej
 +
tabela opisująca poszczególne podtypy wpisu NODE</FONT></FONT></P>
 +
<P ALIGN=LEFT STYLE="margin-bottom: 0cm; font-style: normal; font-weight: normal">
 +
<BR>
 +
</P>
 +
<TABLE WIDTH=691 BORDER=1 BORDERCOLOR="#000000" CELLPADDING=4 CELLSPACING=0>
 +
<COL WIDTH=89>
 +
<COL WIDTH=538>
 +
<COL WIDTH=38>
 +
<TR VALIGN=TOP>
 +
<TH WIDTH=89 BGCOLOR="#dddddd">
 +
<P ALIGN=LEFT><FONT COLOR="#000000"><FONT FACE="Times New Roman, serif"><FONT SIZE=2 STYLE="font-size: 10pt">track</FONT></FONT></FONT></P>
 +
</TH>
 +
<TH WIDTH=538>
 +
<P STYLE="font-weight: normal"><FONT FACE="Times New Roman, serif"><FONT SIZE=1 STYLE="font-size: 8pt">Definiuje
 +
trajektorię, po której może poruszać się obiekt dynamic. Kształt
 +
trajektorii definiujemy za pomocą krzywej Beziera </FONT></FONT>
 +
</P>
 +
</TH>
 +
<TH WIDTH=38>
 +
<P><BR>
 +
</P>
 +
</TH>
 +
</TR>
 +
<TR VALIGN=TOP>
 +
<TD WIDTH=89 BGCOLOR="#dddddd">
 +
<P ALIGN=LEFT><FONT COLOR="#000000"><FONT FACE="Times New Roman, serif"><FONT SIZE=2 STYLE="font-size: 10pt">traction</FONT></FONT></FONT></P>
 +
</TD>
 +
<TD WIDTH=538>
 +
<P ALIGN=LEFT><FONT COLOR="#333333"><FONT FACE="Times New Roman, serif"><FONT SIZE=2 STYLE="font-size: 9pt">Definiuje
 +
obiekt odcinka drutu sieci trakcyjnej</FONT></FONT></FONT></P>
 +
</TD>
 +
<TD WIDTH=38>
 +
<P ALIGN=LEFT><BR>
 +
</P>
 +
</TD>
 +
</TR>
 +
<TR VALIGN=TOP>
 +
<TD WIDTH=89 BGCOLOR="#dddddd">
 +
<P ALIGN=LEFT><FONT COLOR="#000000"><FONT FACE="Times New Roman, serif"><FONT SIZE=2 STYLE="font-size: 10pt">dynamic</FONT></FONT></FONT></P>
 +
</TD>
 +
<TD WIDTH=538>
 +
<P ALIGN=LEFT><FONT COLOR="#333333"><FONT FACE="Times New Roman, serif"><FONT SIZE=2 STYLE="font-size: 9pt">Definiuje
 +
obiekt poruszający się po ścieżkach typu <B>track</B> lub<B> road</B></FONT></FONT></FONT></P>
 +
</TD>
 +
<TD WIDTH=38>
 +
<P ALIGN=LEFT><BR>
 +
</P>
 +
</TD>
 +
</TR>
 +
<TR VALIGN=TOP>
 +
<TD WIDTH=89 BGCOLOR="#dddddd">
 +
<P ALIGN=LEFT><FONT COLOR="#000000"><FONT FACE="Times New Roman, serif"><FONT SIZE=2 STYLE="font-size: 10pt">model</FONT></FONT></FONT></P>
 +
</TD>
 +
<TD WIDTH=538>
 +
<P ALIGN=LEFT><FONT COLOR="#333333"><FONT FACE="Times New Roman, serif"><FONT SIZE=2 STYLE="font-size: 9pt">Wstawia
 +
obiekt modelu 3d statyczny lub z możliwością animacji</FONT></FONT></FONT></P>
 +
</TD>
 +
<TD WIDTH=38>
 +
<P ALIGN=LEFT><BR>
 +
</P>
 +
</TD>
 +
</TR>
 +
<TR VALIGN=TOP>
 +
<TD WIDTH=89 BGCOLOR="#dddddd">
 +
<P ALIGN=LEFT><FONT COLOR="#000000"><FONT FACE="Times New Roman, serif"><FONT SIZE=2 STYLE="font-size: 10pt">triangles</FONT></FONT></FONT></P>
 +
</TD>
 +
<TD WIDTH=538>
 +
<P ALIGN=LEFT><FONT COLOR="#333333"><FONT FACE="Times New Roman, serif"><FONT SIZE=2 STYLE="font-size: 9pt">Definiuje
 +
jeden trójkąt składajacy się z trzech wierzchołków jako element
 +
składowy terenu</FONT></FONT></FONT></P>
 +
</TD>
 +
<TD WIDTH=38>
 +
<P ALIGN=LEFT><BR>
 +
</P>
 +
</TD>
 +
</TR>
 +
<TR VALIGN=TOP>
 +
<TD WIDTH=89 BGCOLOR="#dddddd">
 +
<P ALIGN=LEFT STYLE="font-style: normal; font-weight: normal"><FONT COLOR="#000000"><FONT FACE="Times New Roman, serif"><FONT SIZE=2 STYLE="font-size: 10pt">riangle_strip</FONT></FONT></FONT></P>
 +
</TD>
 +
<TD WIDTH=538>
 +
<P ALIGN=LEFT><FONT COLOR="#333333"><FONT FACE="Times New Roman, serif"><FONT SIZE=2 STYLE="font-size: 9pt">Definiuje
 +
wielokąt jako element składowy terenu</FONT></FONT></FONT></P>
 +
</TD>
 +
<TD WIDTH=38>
 +
<P ALIGN=LEFT><BR>
 +
</P>
 +
</TD>
 +
</TR>
 +
<TR VALIGN=TOP>
 +
<TD WIDTH=89 BGCOLOR="#dddddd">
 +
<P ALIGN=LEFT STYLE="font-style: normal; font-weight: normal"><FONT COLOR="#000000"><FONT FACE="Times New Roman, serif"><FONT SIZE=2 STYLE="font-size: 10pt">triangle_fan</FONT></FONT></FONT></P>
 +
</TD>
 +
<TD WIDTH=538>
 +
<P ALIGN=LEFT><BR>
 +
</P>
 +
</TD>
 +
<TD WIDTH=38>
 +
<P ALIGN=LEFT><BR>
 +
</P>
 +
</TD>
 +
</TR>
 +
<TR VALIGN=TOP>
 +
<TD WIDTH=89 BGCOLOR="#dddddd">
 +
<P ALIGN=LEFT STYLE="font-style: normal; font-weight: normal"><FONT COLOR="#000000"><FONT FACE="Times New Roman, serif"><FONT SIZE=2 STYLE="font-size: 10pt">lines</FONT></FONT></FONT></P>
 +
</TD>
 +
<TD WIDTH=538>
 +
<P ALIGN=LEFT><FONT COLOR="#333333"><FONT FACE="Times New Roman, serif"><FONT SIZE=2 STYLE="font-size: 9pt">Definiuje
 +
linię &ndash; pojedynczy odcinek od punktu A do punktu B</FONT></FONT></FONT></P>
 +
</TD>
 +
<TD WIDTH=38>
 +
<P ALIGN=LEFT><BR>
 +
</P>
 +
</TD>
 +
</TR>
 +
<TR VALIGN=TOP>
 +
<TD WIDTH=89 BGCOLOR="#dddddd">
 +
<P ALIGN=LEFT STYLE="font-style: normal; font-weight: normal"><FONT COLOR="#000000"><FONT FACE="Times New Roman, serif"><FONT SIZE=2 STYLE="font-size: 10pt">line_strip</FONT></FONT></FONT></P>
 +
</TD>
 +
<TD WIDTH=538>
 +
<P ALIGN=LEFT><BR>
 +
</P>
 +
</TD>
 +
<TD WIDTH=38>
 +
<P ALIGN=LEFT><BR>
 +
</P>
 +
</TD>
 +
</TR>
 +
<TR VALIGN=TOP>
 +
<TD WIDTH=89 BGCOLOR="#dddddd">
 +
<P ALIGN=LEFT STYLE="font-style: normal; font-weight: normal"><FONT COLOR="#000000"><FONT FACE="Times New Roman, serif"><FONT SIZE=2 STYLE="font-size: 10pt">line_loop</FONT></FONT></FONT></P>
 +
</TD>
 +
<TD WIDTH=538>
 +
<P ALIGN=LEFT><BR>
 +
</P>
 +
</TD>
 +
<TD WIDTH=38>
 +
<P ALIGN=LEFT><BR>
 +
</P>
 +
</TD>
 +
</TR>
 +
<TR VALIGN=TOP>
 +
<TD WIDTH=89 BGCOLOR="#dddddd">
 +
<P ALIGN=LEFT STYLE="font-style: normal; font-weight: normal"><FONT COLOR="#000000"><FONT FACE="Times New Roman, serif"><FONT SIZE=2 STYLE="font-size: 10pt">memcell</FONT></FONT></FONT></P>
 +
</TD>
 +
<TD WIDTH=538>
 +
<P ALIGN=LEFT><FONT COLOR="#333333"><FONT FACE="Times New Roman, serif"><FONT SIZE=1 STYLE="font-size: 8pt">Komórka
 +
pamięci, nie jest rysowana ale ma współrzędne X, Y, Z, które np.
 +
są przekazywane do AI jako pozycja semafora. </FONT></FONT></FONT>
 +
</P>
 +
</TD>
 +
<TD WIDTH=38>
 +
<P ALIGN=LEFT><BR>
 +
</P>
 +
</TD>
 +
</TR>
 +
<TR VALIGN=TOP>
 +
<TD WIDTH=89 BGCOLOR="#dddddd">
 +
<P ALIGN=LEFT STYLE="font-style: normal; font-weight: normal"><FONT COLOR="#000000"><FONT FACE="Times New Roman, serif"><FONT SIZE=2 STYLE="font-size: 10pt">eventlauncher</FONT></FONT></FONT></P>
 +
</TD>
 +
<TD WIDTH=538>
 +
<P ALIGN=LEFT><FONT COLOR="#333333"><FONT FACE="Times New Roman, serif"><FONT SIZE=2 STYLE="font-size: 9pt">Obiekt
 +
wyzwalany naciśnięciem klawisza albo o określonej godzinie lub raz
 +
na jakiś czas. Nie jest rysowany ale ma współrzędne X, Y, Z,
 +
istotne przy wyzwalaniu klawiszem. </FONT></FONT></FONT>
 +
</P>
 +
</TD>
 +
<TD WIDTH=38>
 +
<P ALIGN=LEFT><BR>
 +
</P>
 +
</TD>
 +
</TR>
 +
</TABLE>
 +
<P ALIGN=LEFT STYLE="margin-bottom: 0cm; font-style: normal; font-weight: normal">
 +
<BR>
 +
</P>
 +
</BODY>
 +
</HTML>

Wersja z 00:58, 29 mar 2015

Plik scenerii (*.scn) opisuje wygląd i strukturę symulowanego świata.

OPIS FORMATU PLIKU SCENERII

Opracowanie na podstawie dokumentu scenery.doc autorstwa

Marcina Woźniaka i Macieja Czapkiewicza

Aktualizacja wg stanu na rok 2015




Na zebranych tu informacjach oparte zostały skrypty eksporterów

jaki i importerów scenerii dla środowiska 3DS Max Studio

oraz parser przetwarzajacy dane z plików scenerii wbudowany

w programie EU07.EXE


Domyślny plik trasy powinien nazywać się scene.scn, możliwe jest wgranie innego pliku poprzez podanie jego nazwy jako parametr w skrócie lub w konsoli polecen, np.

eu07.exe –s scenery/testowo.scn.


Można również zdefiniować domyślną nazwę scenerii w pliku eu07.ini podajac parametr w kluczu

sceneryfile np.:


sceneryfile testowo.scn


Parametry obiektów w scenerii mogą być oddzielane spacjami, przecinkami, średnikami, tabulatorami lub końcami linii, jednak dla lepszej czytelności dla człowieka zaleca się oddzielanie ich wyłącznie spacją.


Przykłady:


include;tree.inc;l61_plants/drzewo1024f;-3947.2;-4.0;2401.17;56.0;8.3;4.2;end


include,tree.inc,l61_plants/drzewo1024f,-3947.2,-4.0,2401.17,56.0,8.3,4.2,end


include tree.inc l61_plants/drzewo1024f -3947.2 -4.0 2401.17 56.0 8.3 4.2 end



W pliku scenerii rozróżniamy 12 typów obiektów, są to:

node, event, include, trainset, rotate, orgin, description, fog, atmo, light, camera, config


Dwa z wymienionych typow, tj. node i event dziela się na podtypy. Wpis typu node posiada 12 podtypów

zaś wpis event 8.



1 Wpis node


Typ NODE definiuje obiekty widoczne (a ogólniej: obiekty które bierze pod uwagę funkcja Render).

Obiekty tego typu mogą być rysowalne lub niewidoczne. Parametry podstawowe wspólne dla wszystkich podtypów to:


  • MaxDistance – maksymalna odległość z jakiej obiekt będzie widoczny

  • MinDistance – minimalna odległość z jakiej obiekt będzie widoczny

  • Name – nazwa obiektu, jeśli nie potrzebujemy należy wpisać none

  • Type - rodzaj obiektu


Ponizej tabela opisująca poszczególne podtypy wpisu NODE


<COL WIDTH=89> <COL WIDTH=538> <COL WIDTH=38>

track

Definiuje trajektorię, po której może poruszać się obiekt dynamic. Kształt trajektorii definiujemy za pomocą krzywej Beziera


traction

Definiuje obiekt odcinka drutu sieci trakcyjnej


dynamic

Definiuje obiekt poruszający się po ścieżkach typu track lub road


model

Wstawia obiekt modelu 3d statyczny lub z możliwością animacji


triangles

Definiuje jeden trójkąt składajacy się z trzech wierzchołków jako element składowy terenu


riangle_strip

Definiuje wielokąt jako element składowy terenu


triangle_fan



lines

Definiuje linię – pojedynczy odcinek od punktu A do punktu B


line_strip



line_loop



memcell

Komórka pamięci, nie jest rysowana ale ma współrzędne X, Y, Z, które np. są przekazywane do AI jako pozycja semafora.


eventlauncher

Obiekt wyzwalany naciśnięciem klawisza albo o określonej godzinie lub raz na jakiś czas. Nie jest rysowany ale ma współrzędne X, Y, Z, istotne przy wyzwalaniu klawiszem.



</BODY> </HTML>