Add default material colors.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
# Fdb version 4
|
# Fdb version 4
|
||||||
["pdflatex"] 1752694631.12208 "c:/Users/FlorianSpeicher/projects/vr-configurator/docs/Dokumentation/main.tex" "main.pdf" "main" 1752694631.83207 0
|
["pdflatex"] 1752695249.26683 "c:/Users/FlorianSpeicher/projects/vr-configurator/docs/Dokumentation/main.tex" "main.pdf" "main" 1752695250.049 0
|
||||||
"C:/Users/FlorianSpeicher/AppData/Local/MiKTeX/fonts/map/pdftex/pdftex.map" 1752439065.51368 80909 eab91d9745dd2edfd62a31d53cd5fe15 ""
|
"C:/Users/FlorianSpeicher/AppData/Local/MiKTeX/fonts/map/pdftex/pdftex.map" 1752439065.51368 80909 eab91d9745dd2edfd62a31d53cd5fe15 ""
|
||||||
"C:/Users/FlorianSpeicher/AppData/Local/MiKTeX/fonts/pk/ljfour/jknappen/ec/dpi600/ecbx1200.pk" 1750189210.97783 31952 41a082a35b3028f8b71bd9c879d982ec ""
|
"C:/Users/FlorianSpeicher/AppData/Local/MiKTeX/fonts/pk/ljfour/jknappen/ec/dpi600/ecbx1200.pk" 1750189210.97783 31952 41a082a35b3028f8b71bd9c879d982ec ""
|
||||||
"C:/Users/FlorianSpeicher/AppData/Local/MiKTeX/fonts/pk/ljfour/jknappen/ec/dpi600/ecbx1440.pk" 1752053368.95535 40136 6f1d0396a2fd1a9449d374529253c892 ""
|
"C:/Users/FlorianSpeicher/AppData/Local/MiKTeX/fonts/pk/ljfour/jknappen/ec/dpi600/ecbx1440.pk" 1752053368.95535 40136 6f1d0396a2fd1a9449d374529253c892 ""
|
||||||
@@ -81,11 +81,11 @@
|
|||||||
"C:/Users/FlorianSpeicher/AppData/Local/Programs/MiKTeX/tex/latex/tools/longtable.sty" 1748713680 15912 618223a798a4d829f4d8e1ccf24e518f ""
|
"C:/Users/FlorianSpeicher/AppData/Local/Programs/MiKTeX/tex/latex/tools/longtable.sty" 1748713680 15912 618223a798a4d829f4d8e1ccf24e518f ""
|
||||||
"C:/Users/FlorianSpeicher/AppData/Local/Programs/MiKTeX/tex/latex/tools/tabularx.sty" 1748713680 7243 a2c17f18e2c9b702b84fad03d5f9c78b ""
|
"C:/Users/FlorianSpeicher/AppData/Local/Programs/MiKTeX/tex/latex/tools/tabularx.sty" 1748713680 7243 a2c17f18e2c9b702b84fad03d5f9c78b ""
|
||||||
"C:/Users/FlorianSpeicher/AppData/Local/Programs/MiKTeX/tex/latex/xcolor/xcolor.sty" 1729265222 55384 b454dec21c2d9f45ec0b793f0995b992 ""
|
"C:/Users/FlorianSpeicher/AppData/Local/Programs/MiKTeX/tex/latex/xcolor/xcolor.sty" 1729265222 55384 b454dec21c2d9f45ec0b793f0995b992 ""
|
||||||
"c:/Users/FlorianSpeicher/projects/vr-configurator/docs/Dokumentation/main.tex" 1752694629.89334 31045 5cb0dc40a9090f81a465cf9c33951a51 ""
|
"c:/Users/FlorianSpeicher/projects/vr-configurator/docs/Dokumentation/main.tex" 1752695248.4502 31045 940fc9e2ba3de883b7a7e17ad389382f ""
|
||||||
"content.tex" 1752693337.66776 21 2a14a47df701af2ae052aa3067474952 ""
|
"content.tex" 1752693337.66776 21 2a14a47df701af2ae052aa3067474952 ""
|
||||||
"graphics/htw_logo.pdf" 1752693337.66827 38674 37be0a1187ef08bd560d140172e8408b ""
|
"graphics/htw_logo.pdf" 1752693337.66827 38674 37be0a1187ef08bd560d140172e8408b ""
|
||||||
"main.aux" 1752694631.67309 4858 9d19ff275252da3979a160fce52dcf20 "pdflatex"
|
"main.aux" 1752695249.87681 4858 9d19ff275252da3979a160fce52dcf20 "pdflatex"
|
||||||
"main.toc" 1752694631.67513 3001 5098249b5d903f8b3d3fd1d44fa94338 "pdflatex"
|
"main.toc" 1752695249.88904 3001 5098249b5d903f8b3d3fd1d44fa94338 "pdflatex"
|
||||||
"settings.tex" 1752693337.6754 755 00da007a658d7b495f87b67072a27998 ""
|
"settings.tex" 1752693337.6754 755 00da007a658d7b495f87b67072a27998 ""
|
||||||
"titlepage.tex" 1752693337.67643 750 4350988cc42b7596c577ecd5a86636c6 ""
|
"titlepage.tex" 1752693337.67643 750 4350988cc42b7596c577ecd5a86636c6 ""
|
||||||
(generated)
|
(generated)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
This is pdfTeX, Version 3.141592653-2.6-1.40.27 (MiKTeX 25.4) (preloaded format=pdflatex 2025.6.17) 16 JUL 2025 21:37
|
This is pdfTeX, Version 3.141592653-2.6-1.40.27 (MiKTeX 25.4) (preloaded format=pdflatex 2025.6.17) 16 JUL 2025 21:47
|
||||||
entering extended mode
|
entering extended mode
|
||||||
restricted \write18 enabled.
|
restricted \write18 enabled.
|
||||||
file:line:error style messages enabled.
|
file:line:error style messages enabled.
|
||||||
@@ -440,7 +440,7 @@ Here is how much of TeX's memory you used:
|
|||||||
1141 hyphenation exceptions out of 8191
|
1141 hyphenation exceptions out of 8191
|
||||||
73i,12n,80p,827b,480s stack positions out of 10000i,1000n,20000p,200000b,200000s
|
73i,12n,80p,827b,480s stack positions out of 10000i,1000n,20000p,200000b,200000s
|
||||||
<C:\Users\FlorianSpeicher\AppData\Local\MiKTeX\fonts/pk/ljfour/jknappen/ec/dpi600\ectt1200.pk> <C:\Users\FlorianSpeicher\AppData\Local\MiKTeX\fonts/pk/ljfour/jknappen/ec/dpi600\ecrm1095.pk> <C:\Users\FlorianSpeicher\AppData\Local\MiKTeX\fonts/pk/ljfour/jknappen/ec/dpi600\tcrm1200.pk> <C:\Users\FlorianSpeicher\AppData\Local\MiKTeX\fonts/pk/ljfour/jknappen/ec/dpi600\ecbx1440.pk> <C:\Users\FlorianSpeicher\AppData\Local\MiKTeX\fonts/pk/ljfour/jknappen/ec/dpi600\ecrm1200.pk> <C:\Users\FlorianSpeicher\AppData\Local\MiKTeX\fonts/pk/ljfour/jknappen/ec/dpi600\ecbx1728.pk> <C:\Users\FlorianSpeicher\AppData\Local\MiKTeX\fonts/pk/ljfour/jknappen/ec/dpi600\ecbx1200.pk> <C:\Users\FlorianSpeicher\AppData\Local\MiKTeX\fonts/pk/ljfour/jknappen/ec/dpi600\ecrm1728.pk> <C:\Users\FlorianSpeicher\AppData\Local\MiKTeX\fonts/pk/ljfour/jknappen/ec/dpi600\ecbx2488.pk>
|
<C:\Users\FlorianSpeicher\AppData\Local\MiKTeX\fonts/pk/ljfour/jknappen/ec/dpi600\ectt1200.pk> <C:\Users\FlorianSpeicher\AppData\Local\MiKTeX\fonts/pk/ljfour/jknappen/ec/dpi600\ecrm1095.pk> <C:\Users\FlorianSpeicher\AppData\Local\MiKTeX\fonts/pk/ljfour/jknappen/ec/dpi600\tcrm1200.pk> <C:\Users\FlorianSpeicher\AppData\Local\MiKTeX\fonts/pk/ljfour/jknappen/ec/dpi600\ecbx1440.pk> <C:\Users\FlorianSpeicher\AppData\Local\MiKTeX\fonts/pk/ljfour/jknappen/ec/dpi600\ecrm1200.pk> <C:\Users\FlorianSpeicher\AppData\Local\MiKTeX\fonts/pk/ljfour/jknappen/ec/dpi600\ecbx1728.pk> <C:\Users\FlorianSpeicher\AppData\Local\MiKTeX\fonts/pk/ljfour/jknappen/ec/dpi600\ecbx1200.pk> <C:\Users\FlorianSpeicher\AppData\Local\MiKTeX\fonts/pk/ljfour/jknappen/ec/dpi600\ecrm1728.pk> <C:\Users\FlorianSpeicher\AppData\Local\MiKTeX\fonts/pk/ljfour/jknappen/ec/dpi600\ecbx2488.pk>
|
||||||
Output written on main.pdf (19 pages, 191771 bytes).
|
Output written on main.pdf (19 pages, 191774 bytes).
|
||||||
PDF statistics:
|
PDF statistics:
|
||||||
450 PDF objects out of 1000 (max. 8388607)
|
450 PDF objects out of 1000 (max. 8388607)
|
||||||
0 named destinations out of 1000 (max. 500000)
|
0 named destinations out of 1000 (max. 500000)
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -336,7 +336,7 @@ Die Transformer verwalten das Interaktionsverhalten der angezeigten Konfiguratio
|
|||||||
\end{itemize}
|
\end{itemize}
|
||||||
|
|
||||||
\subsection{UI}
|
\subsection{UI}
|
||||||
Das UI basiert auf vielen Einzelteilen welche Zusammen eine angenehme Nutzererfahrung bieten.
|
Das UI basiert auf vielen Einzelteilen welche zusammen eine angenehme Nutzererfahrung bieten.
|
||||||
|
|
||||||
\begin{itemize}
|
\begin{itemize}
|
||||||
\item \textbf{TODO: MAX HAT DAS UI GEMACHT, DAS SOLL DER SCHREIBEN}
|
\item \textbf{TODO: MAX HAT DAS UI GEMACHT, DAS SOLL DER SCHREIBEN}
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using Models;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -7,22 +8,6 @@ using UnityEngine;
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class ModelList
|
public class ModelList
|
||||||
{
|
{
|
||||||
public static List<Color> DefaultColors = new List<Color>()
|
|
||||||
{
|
|
||||||
Color.black,
|
|
||||||
Color.gray,
|
|
||||||
Color.blue,
|
|
||||||
Color.red,
|
|
||||||
Color.yellow,
|
|
||||||
};
|
|
||||||
public static List<Color> WindowColor = new List<Color>()
|
|
||||||
{
|
|
||||||
new Color(0f, 0f, 0f, 0f),
|
|
||||||
Resources.Load<Material>($"Material/Glas").color,
|
|
||||||
new Color(0.2f, 0.2f, 0.2f, 0.45f),
|
|
||||||
new Color(0.1f, 0.1f, 0.1f, 0.65f),
|
|
||||||
new Color(0.05f, 0.05f, 0.05f, 0.80f),
|
|
||||||
};
|
|
||||||
|
|
||||||
public static readonly List<BaseModel> BaseModels = new List<BaseModel>()
|
public static readonly List<BaseModel> BaseModels = new List<BaseModel>()
|
||||||
{
|
{
|
||||||
@@ -39,8 +24,8 @@ public class ModelList
|
|||||||
Port.Choosable("Back Frame", PortDef.BIKE_FRAME, "idBikeAttachments", Vector3.zero),
|
Port.Choosable("Back Frame", PortDef.BIKE_FRAME, "idBikeAttachments", Vector3.zero),
|
||||||
Port.Choosable("Frame", PortDef.BIKE_FRAME2, "idBikeFrame", Vector3.zero),
|
Port.Choosable("Frame", PortDef.BIKE_FRAME2, "idBikeFrame", Vector3.zero),
|
||||||
Port.Hidden(PortDef.BIKE_SPROCKET, "idBikeSprocket", new Vector3(0.007933f, 0.444f, -0.1614f), Quaternion.identity, 1f, new Vector3(0.5f, 0f, 0f)),
|
Port.Hidden(PortDef.BIKE_SPROCKET, "idBikeSprocket", new Vector3(0.007933f, 0.444f, -0.1614f), Quaternion.identity, 1f, new Vector3(0.5f, 0f, 0f)),
|
||||||
Port.Hidden(PortDef.BIKE_PEDAL_L, "idBikePedalL", new Vector3(-0.1252177f, 0.5490288f, -0.312027f), Quaternion.identity, 1f, new Vector3(-0.5f, 0f, 0f)),
|
Port.Hidden( PortDef.BIKE_PEDAL_L, "idBikePedalL", new Vector3(-0.1252177f, 0.5490288f, -0.312027f), Quaternion.identity, 1f, new Vector3(-0.5f, 0f, 0f)),
|
||||||
Port.Hidden(PortDef.BIKE_PEDAL_R, "idBikePedalR", new Vector3(0.1410843f, 0.3393247f, -0.01154391f), Quaternion.identity, 1f, new Vector3(0.5f, 0f, 0f)),
|
Port.Hidden( PortDef.BIKE_PEDAL_R, "idBikePedalR", new Vector3(0.1410843f, 0.3393247f, -0.01154391f), Quaternion.identity, 1f, new Vector3(0.5f, 0f, 0f)),
|
||||||
Port.Choosable("Handlebars", PortDef.BIKE_STEER, "idBikeHandlebars", new Vector3(0.002989591f, 1.214713f, 0.4860705f), Quaternion.Euler(-30f, 0f, 0f), 1f, new Vector3(0f, 0.5f, 1f)),
|
Port.Choosable("Handlebars", PortDef.BIKE_STEER, "idBikeHandlebars", new Vector3(0.002989591f, 1.214713f, 0.4860705f), Quaternion.Euler(-30f, 0f, 0f), 1f, new Vector3(0f, 0.5f, 1f)),
|
||||||
Port.Choosable("Back Rim", PortDef.BIKE_RIM, "idBikeRim_Back", new Vector3(-0.01431298f, 0.4673222f, -0.7874681f), Quaternion.identity, 1f, new Vector3(0f, 0f, -0.6f)),
|
Port.Choosable("Back Rim", PortDef.BIKE_RIM, "idBikeRim_Back", new Vector3(-0.01431298f, 0.4673222f, -0.7874681f), Quaternion.identity, 1f, new Vector3(0f, 0f, -0.6f)),
|
||||||
Port.Hidden(PortDef.BIKE_TIRE, "idBikeTire_Back", new Vector3(-0.01431298f, 0.4673222f, -0.7874681f), Quaternion.identity, 1f, new Vector3(0f, 0f, -0.6f)),
|
Port.Hidden(PortDef.BIKE_TIRE, "idBikeTire_Back", new Vector3(-0.01431298f, 0.4673222f, -0.7874681f), Quaternion.identity, 1f, new Vector3(0f, 0f, -0.6f)),
|
||||||
@@ -174,7 +159,7 @@ public class ModelList
|
|||||||
Port.Hidden(PortDef.ERL_RIM_RH, "erlRim1_RH", Vector3.zero, Quaternion.identity, 1f, new Vector3(0f, 30f, 0f)),
|
Port.Hidden(PortDef.ERL_RIM_RH, "erlRim1_RH", Vector3.zero, Quaternion.identity, 1f, new Vector3(0f, 30f, 0f)),
|
||||||
Port.Hidden(PortDef.ERL_RIM_RV, "erlRim1_RV", Vector3.zero, Quaternion.identity, 1f, new Vector3(0f, 30f, 0f)),
|
Port.Hidden(PortDef.ERL_RIM_RV, "erlRim1_RV", Vector3.zero, Quaternion.identity, 1f, new Vector3(0f, 30f, 0f)),
|
||||||
},
|
},
|
||||||
DefaultColors,
|
ModelListColors.ColorAluminiumScratched,
|
||||||
true
|
true
|
||||||
),
|
),
|
||||||
new ChildModel(
|
new ChildModel(
|
||||||
@@ -192,7 +177,7 @@ public class ModelList
|
|||||||
Port.Hidden(PortDef.ERL_RIM_RH, "erlRim2_RH", Vector3.zero, Quaternion.identity, 1f, new Vector3(0f, 30f, 0f)),
|
Port.Hidden(PortDef.ERL_RIM_RH, "erlRim2_RH", Vector3.zero, Quaternion.identity, 1f, new Vector3(0f, 30f, 0f)),
|
||||||
Port.Hidden(PortDef.ERL_RIM_RV, "erlRim2_RV", Vector3.zero, Quaternion.identity, 1f, new Vector3(0f, 30f, 0f)),
|
Port.Hidden(PortDef.ERL_RIM_RV, "erlRim2_RV", Vector3.zero, Quaternion.identity, 1f, new Vector3(0f, 30f, 0f)),
|
||||||
},
|
},
|
||||||
DefaultColors,
|
ModelListColors.ColorAluminiumScratched,
|
||||||
true
|
true
|
||||||
),
|
),
|
||||||
new ChildModel(
|
new ChildModel(
|
||||||
@@ -210,7 +195,7 @@ public class ModelList
|
|||||||
Port.Hidden(PortDef.ERL_RIM_RH, "erlRim3_RH", Vector3.zero, Quaternion.identity, 1f, new Vector3(0f, 30f, 0f)),
|
Port.Hidden(PortDef.ERL_RIM_RH, "erlRim3_RH", Vector3.zero, Quaternion.identity, 1f, new Vector3(0f, 30f, 0f)),
|
||||||
Port.Hidden(PortDef.ERL_RIM_RV, "erlRim3_RV", Vector3.zero, Quaternion.identity, 1f, new Vector3(0f, 30f, 0f)),
|
Port.Hidden(PortDef.ERL_RIM_RV, "erlRim3_RV", Vector3.zero, Quaternion.identity, 1f, new Vector3(0f, 30f, 0f)),
|
||||||
},
|
},
|
||||||
DefaultColors,
|
ModelListColors.ColorAluminiumScratched,
|
||||||
true
|
true
|
||||||
),
|
),
|
||||||
// Sport
|
// Sport
|
||||||
@@ -224,7 +209,7 @@ public class ModelList
|
|||||||
Quaternion.Euler(-180, 0, 0),
|
Quaternion.Euler(-180, 0, 0),
|
||||||
new Vector3(1f, 1f, 1f),
|
new Vector3(1f, 1f, 1f),
|
||||||
null,
|
null,
|
||||||
DefaultColors
|
ModelListColors.ColorAluminiumScratched
|
||||||
),
|
),
|
||||||
new ChildModel(
|
new ChildModel(
|
||||||
PortDef.ERL_RIM_RV,
|
PortDef.ERL_RIM_RV,
|
||||||
@@ -236,7 +221,7 @@ public class ModelList
|
|||||||
Quaternion.Euler(-180, 0, 0),
|
Quaternion.Euler(-180, 0, 0),
|
||||||
new Vector3(1f, 1f, 1f),
|
new Vector3(1f, 1f, 1f),
|
||||||
null,
|
null,
|
||||||
DefaultColors
|
ModelListColors.ColorAluminiumScratched
|
||||||
),
|
),
|
||||||
new ChildModel(
|
new ChildModel(
|
||||||
PortDef.ERL_RIM_LV,
|
PortDef.ERL_RIM_LV,
|
||||||
@@ -248,7 +233,7 @@ public class ModelList
|
|||||||
Quaternion.Euler(0, 0, 0),
|
Quaternion.Euler(0, 0, 0),
|
||||||
new Vector3(1f, 1f, 1f),
|
new Vector3(1f, 1f, 1f),
|
||||||
null,
|
null,
|
||||||
DefaultColors
|
ModelListColors.ColorAluminiumScratched
|
||||||
),
|
),
|
||||||
new ChildModel(
|
new ChildModel(
|
||||||
PortDef.ERL_RIM_LH,
|
PortDef.ERL_RIM_LH,
|
||||||
@@ -260,7 +245,7 @@ public class ModelList
|
|||||||
Quaternion.Euler(-180, 0, 0),
|
Quaternion.Euler(-180, 0, 0),
|
||||||
new Vector3(1f, 1f, 1f),
|
new Vector3(1f, 1f, 1f),
|
||||||
null,
|
null,
|
||||||
DefaultColors
|
ModelListColors.ColorAluminiumScratched
|
||||||
),
|
),
|
||||||
// Elegance
|
// Elegance
|
||||||
new ChildModel(
|
new ChildModel(
|
||||||
@@ -273,7 +258,7 @@ public class ModelList
|
|||||||
Quaternion.Euler(-180, 0, 0),
|
Quaternion.Euler(-180, 0, 0),
|
||||||
new Vector3(1f, 1f, 1f),
|
new Vector3(1f, 1f, 1f),
|
||||||
null,
|
null,
|
||||||
DefaultColors
|
ModelListColors.ColorAluminiumScratched
|
||||||
),
|
),
|
||||||
new ChildModel(
|
new ChildModel(
|
||||||
PortDef.ERL_RIM_RV,
|
PortDef.ERL_RIM_RV,
|
||||||
@@ -285,7 +270,7 @@ public class ModelList
|
|||||||
Quaternion.Euler(-180, 0, 0),
|
Quaternion.Euler(-180, 0, 0),
|
||||||
new Vector3(1f, 1f, 1f),
|
new Vector3(1f, 1f, 1f),
|
||||||
null,
|
null,
|
||||||
DefaultColors
|
ModelListColors.ColorAluminiumScratched
|
||||||
),
|
),
|
||||||
new ChildModel(
|
new ChildModel(
|
||||||
PortDef.ERL_RIM_LV,
|
PortDef.ERL_RIM_LV,
|
||||||
@@ -297,7 +282,7 @@ public class ModelList
|
|||||||
Quaternion.Euler(0, 0, 0),
|
Quaternion.Euler(0, 0, 0),
|
||||||
new Vector3(1f, 1f, 1f),
|
new Vector3(1f, 1f, 1f),
|
||||||
null,
|
null,
|
||||||
DefaultColors
|
ModelListColors.ColorAluminiumScratched
|
||||||
),
|
),
|
||||||
new ChildModel(
|
new ChildModel(
|
||||||
PortDef.ERL_RIM_LH,
|
PortDef.ERL_RIM_LH,
|
||||||
@@ -309,7 +294,7 @@ public class ModelList
|
|||||||
Quaternion.Euler(-180, 0, 0),
|
Quaternion.Euler(-180, 0, 0),
|
||||||
new Vector3(1f, 1f, 1f),
|
new Vector3(1f, 1f, 1f),
|
||||||
null,
|
null,
|
||||||
DefaultColors
|
ModelListColors.ColorAluminiumScratched
|
||||||
),
|
),
|
||||||
// GRILL
|
// GRILL
|
||||||
new ChildModel(
|
new ChildModel(
|
||||||
@@ -322,7 +307,7 @@ public class ModelList
|
|||||||
Quaternion.Euler(0f, 180f, -90f), // no rotation
|
Quaternion.Euler(0f, 180f, -90f), // no rotation
|
||||||
new Vector3(1f, 1f, 1f), // scale
|
new Vector3(1f, 1f, 1f), // scale
|
||||||
null, // no children
|
null, // no children
|
||||||
DefaultColors // default colors
|
ModelListColors.ColorAluminiumBrushed // default colors
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -338,15 +323,15 @@ public class ModelList
|
|||||||
ModelLoader.LoadChildFromPackedModel(ChildModels,
|
ModelLoader.LoadChildFromPackedModel(ChildModels,
|
||||||
new List<ModelElement>
|
new List<ModelElement>
|
||||||
{
|
{
|
||||||
new ModelElement(PortDef.BIKE_FRAME, "Back Frame", "idBikeAttachments", Resources.Load<Material>($"Material/AluminiumPolished"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors),
|
new ModelElement(PortDef.BIKE_FRAME, "Back Frame", "idBikeAttachments", Resources.Load<Material>($"Material/AluminiumPolished"), Vector3.zero, Quaternion.identity, Vector3.one, null, ModelListColors.ColorAluminiumPolished),
|
||||||
new ModelElement(PortDef.BIKE_FRAME2, "Frame", "idBikeFrame", Resources.Load<Material>($"Material/AluminiumPolished"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors),
|
new ModelElement(PortDef.BIKE_FRAME2, "Frame", "idBikeFrame", Resources.Load<Material>($"Material/AluminiumPolished"), Vector3.zero, Quaternion.identity, Vector3.one, null, ModelListColors.ColorAluminiumPolished),
|
||||||
new ModelElement(PortDef.BIKE_SPROCKET, "Sprocket", "idBikeSprocket", Resources.Load<Material>($"Material/AluminiumBrushed"), Vector3.zero, Quaternion.identity, Vector3.one, null, null),
|
new ModelElement(PortDef.BIKE_SPROCKET, "Sprocket", "idBikeSprocket", Resources.Load<Material>($"Material/AluminiumBrushed"), Vector3.zero, Quaternion.identity, Vector3.one, null, null),
|
||||||
new ModelElement(PortDef.BIKE_PEDAL_L, "Left Pedal", "idBikePedalL", Resources.Load<Material>($"Material/PVC"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors),
|
new ModelElement(PortDef.BIKE_PEDAL_L, "Left Pedal", "idBikePedalL", Resources.Load<Material>($"Material/PVC"), Vector3.zero, Quaternion.identity, Vector3.one, null, ModelListColors.ColorPVC),
|
||||||
new ModelElement(PortDef.BIKE_PEDAL_R, "Right Pedal", "idBikePedalR", Resources.Load<Material>($"Material/PVC"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors),
|
new ModelElement(PortDef.BIKE_PEDAL_R, "Right Pedal", "idBikePedalR", Resources.Load<Material>($"Material/PVC"), Vector3.zero, Quaternion.identity, Vector3.one, null, ModelListColors.ColorPVC),
|
||||||
new ModelElement(PortDef.BIKE_STEER, "Handlebars", "idBikeHandlebars", Resources.Load<Material>($"Material/AluminiumScratched"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors),
|
new ModelElement(PortDef.BIKE_STEER, "Handlebars", "idBikeHandlebars", Resources.Load<Material>($"Material/AluminiumScratched"), Vector3.zero, Quaternion.identity, Vector3.one, null, ModelListColors.ColorAluminiumScratched),
|
||||||
new ModelElement(PortDef.BIKE_RIM, "Back Back", "idBikeRim_Back", Resources.Load<Material>($"Material/AluminiumPolished"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors),
|
new ModelElement(PortDef.BIKE_RIM, "Back Back", "idBikeRim_Back", Resources.Load<Material>($"Material/AluminiumPolished"), Vector3.zero, Quaternion.identity, Vector3.one, null, ModelListColors.ColorAluminiumPolished),
|
||||||
new ModelElement(PortDef.BIKE_TIRE, "Back Tire", "idBikeTire_Back", Resources.Load<Material>($"Material/PlasticCable"), Vector3.zero, Quaternion.identity, Vector3.one, null, null),
|
new ModelElement(PortDef.BIKE_TIRE, "Back Tire", "idBikeTire_Back", Resources.Load<Material>($"Material/PlasticCable"), Vector3.zero, Quaternion.identity, Vector3.one, null, null),
|
||||||
new ModelElement(PortDef.BIKE_RIM_FRONT, "Front Rim", "idBikeRim_Front", Resources.Load<Material>($"Material/AluminiumPolished"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors),
|
new ModelElement(PortDef.BIKE_RIM_FRONT, "Front Rim", "idBikeRim_Front", Resources.Load<Material>($"Material/AluminiumPolished"), Vector3.zero, Quaternion.identity, Vector3.one, null, ModelListColors.ColorAluminiumPolished),
|
||||||
new ModelElement(PortDef.BIKE_TIRE_FRONT, "Front Tire", "idBikeTire_Front", Resources.Load<Material>($"Material/PlasticCable"), Vector3.zero, Quaternion.identity, Vector3.one, null, null)
|
new ModelElement(PortDef.BIKE_TIRE_FRONT, "Front Tire", "idBikeTire_Front", Resources.Load<Material>($"Material/PlasticCable"), Vector3.zero, Quaternion.identity, Vector3.one, null, null)
|
||||||
},
|
},
|
||||||
Resources.LoadAll<Mesh>($"Model/Bicycle/Models/Low-Poly Bicycle"),
|
Resources.LoadAll<Mesh>($"Model/Bicycle/Models/Low-Poly Bicycle"),
|
||||||
@@ -443,24 +428,24 @@ public class ModelList
|
|||||||
new ModelElement( PortDef.ERL_ROD_78, "Erlbach Part 78", "idErlbachPart78", Resources.Load<Material>($"Material/PVC"), Vector3.zero, Quaternion.identity, Vector3.one, null, null ),
|
new ModelElement( PortDef.ERL_ROD_78, "Erlbach Part 78", "idErlbachPart78", Resources.Load<Material>($"Material/PVC"), Vector3.zero, Quaternion.identity, Vector3.one, null, null ),
|
||||||
new ModelElement( PortDef.ERL_ROD_79, "Erlbach Part 79", "idErlbachPart79", Resources.Load<Material>($"Material/PVC"), Vector3.zero, Quaternion.identity, Vector3.one, null, null ),
|
new ModelElement( PortDef.ERL_ROD_79, "Erlbach Part 79", "idErlbachPart79", Resources.Load<Material>($"Material/PVC"), Vector3.zero, Quaternion.identity, Vector3.one, null, null ),
|
||||||
new ModelElement( PortDef.ERL_TIRE_LH, "Tire LH", "erlTire1_LH", Resources.Load<Material>($"Material/CarTire"), Vector3.zero, Quaternion.identity, Vector3.one, null, null ),
|
new ModelElement( PortDef.ERL_TIRE_LH, "Tire LH", "erlTire1_LH", Resources.Load<Material>($"Material/CarTire"), Vector3.zero, Quaternion.identity, Vector3.one, null, null ),
|
||||||
new ModelElement( PortDef.ERL_RIM_LH, "Standard Rim", "erlRim1_LH", Resources.Load<Material>($"Material/AluminiumScratched"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors ),
|
new ModelElement( PortDef.ERL_RIM_LH, "Standard Rim", "erlRim1_LH", Resources.Load<Material>($"Material/AluminiumScratched"), Vector3.zero, Quaternion.identity, Vector3.one, null, ModelListColors.ColorAluminiumScratched ),
|
||||||
new ModelElement( PortDef.ERL_TIRE_LV, "Tire LV", "erlTire1_LV", Resources.Load<Material>($"Material/CarTire"), Vector3.zero, Quaternion.identity, Vector3.one, null, null ),
|
new ModelElement( PortDef.ERL_TIRE_LV, "Tire LV", "erlTire1_LV", Resources.Load<Material>($"Material/CarTire"), Vector3.zero, Quaternion.identity, Vector3.one, null, null ),
|
||||||
new ModelElement( PortDef.ERL_RIM_LV, "Standard Rim", "erlRim1_LV", Resources.Load<Material>($"Material/AluminiumScratched"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors ),
|
new ModelElement( PortDef.ERL_RIM_LV, "Standard Rim", "erlRim1_LV", Resources.Load<Material>($"Material/AluminiumScratched"), Vector3.zero, Quaternion.identity, Vector3.one, null, ModelListColors.ColorAluminiumScratched ),
|
||||||
new ModelElement( PortDef.ERL_TIRE_RH, "Tire RH", "erlTire1_RH", Resources.Load<Material>($"Material/CarTire"), Vector3.zero, Quaternion.identity, Vector3.one, null, null ),
|
new ModelElement( PortDef.ERL_TIRE_RH, "Tire RH", "erlTire1_RH", Resources.Load<Material>($"Material/CarTire"), Vector3.zero, Quaternion.identity, Vector3.one, null, null ),
|
||||||
new ModelElement( PortDef.ERL_RIM_RH, "Standard Rim", "erlRim1_RH", Resources.Load<Material>($"Material/AluminiumScratched"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors ),
|
new ModelElement( PortDef.ERL_RIM_RH, "Standard Rim", "erlRim1_RH", Resources.Load<Material>($"Material/AluminiumScratched"), Vector3.zero, Quaternion.identity, Vector3.one, null, ModelListColors.ColorAluminiumScratched ),
|
||||||
new ModelElement( PortDef.ERL_TIRE_RV, "Tire RV", "erlTire1_RV", Resources.Load<Material>($"Material/CarTire"), Vector3.zero, Quaternion.identity, Vector3.one, null, null ),
|
new ModelElement( PortDef.ERL_TIRE_RV, "Tire RV", "erlTire1_RV", Resources.Load<Material>($"Material/CarTire"), Vector3.zero, Quaternion.identity, Vector3.one, null, null ),
|
||||||
new ModelElement( PortDef.ERL_RIM_RV, "Standard Rim", "erlRim1_RV", Resources.Load<Material>($"Material/AluminiumScratched"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors ),
|
new ModelElement( PortDef.ERL_RIM_RV, "Standard Rim", "erlRim1_RV", Resources.Load<Material>($"Material/AluminiumScratched"), Vector3.zero, Quaternion.identity, Vector3.one, null, ModelListColors.ColorAluminiumScratched ),
|
||||||
new ModelElement( PortDef.ERL_BODY, "Body", "idErlbachPart84", Resources.Load<Material>($"Material/AluminiumPolished"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors ),
|
new ModelElement( PortDef.ERL_BODY, "Body", "idErlbachPart84", Resources.Load<Material>($"Material/AluminiumPolished"), Vector3.zero, Quaternion.identity, Vector3.one, null, ModelListColors.ColorAluminiumPolished ),
|
||||||
new ModelElement( PortDef.ERL_BUMPER_BACK, "Rear Bumper", "idErlbachPart85", Resources.Load<Material>($"Material/AluminiumPolished"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors ),
|
new ModelElement( PortDef.ERL_BUMPER_BACK, "Rear Bumper", "idErlbachPart85", Resources.Load<Material>($"Material/AluminiumPolished"), Vector3.zero, Quaternion.identity, Vector3.one, null, ModelListColors.ColorAluminiumPolished ),
|
||||||
new ModelElement( PortDef.ERL_DRL_OUTLINE, "Front Bumper", "idErlbachPart86", Resources.Load<Material>($"Material/AluminiumPolished"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors ),
|
new ModelElement( PortDef.ERL_DRL_OUTLINE, "Front Bumper", "idErlbachPart86", Resources.Load<Material>($"Material/AluminiumPolished"), Vector3.zero, Quaternion.identity, Vector3.one, null, ModelListColors.ColorAluminiumPolished ),
|
||||||
new ModelElement( PortDef.ERL_BADGE, "Number", "idErlbachPart87", Resources.Load<Material>($"Material/AluminiumScratched"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors ),
|
new ModelElement( PortDef.ERL_BADGE, "Number", "idErlbachPart87", Resources.Load<Material>($"Material/AluminiumScratched"), Vector3.zero, Quaternion.identity, Vector3.one, null, ModelListColors.ColorAluminiumScratched ),
|
||||||
new ModelElement( PortDef.ERL_LP_BASE, "License Plate", "idErlbachPart88", Resources.Load<Material>($"Material/AluminiumPolished"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors ),
|
new ModelElement( PortDef.ERL_LP_BASE, "License Plate", "idErlbachPart88", Resources.Load<Material>($"Material/AluminiumPolished"), Vector3.zero, Quaternion.identity, Vector3.one, null, ModelListColors.ColorAluminiumPolished ),
|
||||||
new ModelElement( PortDef.ERL_LP_TEXT, "License Plate Content", "idErlbachPart89", Resources.Load<Material>($"Material/PVC"), Vector3.zero, Quaternion.identity, Vector3.one, null, null ),
|
new ModelElement( PortDef.ERL_LP_TEXT, "License Plate Content", "idErlbachPart89", Resources.Load<Material>($"Material/PVC"), Vector3.zero, Quaternion.identity, Vector3.one, null, null ),
|
||||||
new ModelElement( PortDef.ERL_LP_COUNTRY, "Erlbach Part 90", "idErlbachPart90", Resources.Load<Material>($"Material/PVC"), Vector3.zero, Quaternion.identity, Vector3.one, null, null ),
|
new ModelElement( PortDef.ERL_LP_COUNTRY, "Erlbach Part 90", "idErlbachPart90", Resources.Load<Material>($"Material/PVC"), Vector3.zero, Quaternion.identity, Vector3.one, null, null ),
|
||||||
new ModelElement( PortDef.ERL_GRILL, "Standard Grill", "erlGrill_1", Resources.Load<Material>($"Material/AluminiumBrushed"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors ),
|
new ModelElement( PortDef.ERL_GRILL, "Standard Grill", "erlGrill_1", Resources.Load<Material>($"Material/AluminiumBrushed"), Vector3.zero, Quaternion.identity, Vector3.one, null, ModelListColors.ColorAluminiumBrushed ),
|
||||||
new ModelElement( PortDef.ERL_BUMPER_FRONT, "Headlight Cover", "idErlbachPart92", Resources.Load<Material>($"Material/AluminiumBrushed"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors ),
|
new ModelElement( PortDef.ERL_BUMPER_FRONT, "Headlight Cover", "idErlbachPart92", Resources.Load<Material>($"Material/AluminiumBrushed"), Vector3.zero, Quaternion.identity, Vector3.one, null, ModelListColors.ColorAluminiumBrushed ),
|
||||||
new ModelElement( PortDef.ERL_DRL_PLATE, "Headlight", "idErlbachPart93", Resources.Load<Material>($"Material/MetalMesh"), Vector3.zero, Quaternion.identity, Vector3.one, null, null ),
|
new ModelElement( PortDef.ERL_DRL_PLATE, "Headlight", "idErlbachPart93", Resources.Load<Material>($"Material/MetalMesh"), Vector3.zero, Quaternion.identity, Vector3.one, null, null ),
|
||||||
new ModelElement( PortDef.ERL_WINDOW, "Fenster", "idErlbachGlas", Resources.Load<Material>($"Material/Glas"), Vector3.zero, Quaternion.identity, Vector3.one, null, WindowColor),
|
new ModelElement( PortDef.ERL_WINDOW, "Fenster", "idErlbachGlas", Resources.Load<Material>($"Material/Glas"), Vector3.zero, Quaternion.identity, Vector3.one, null, ModelListColors.ColorGlass),
|
||||||
},
|
},
|
||||||
Resources.LoadAll<Mesh>($"Model/ERLbach/ERLBach_mit_Fenster"),
|
Resources.LoadAll<Mesh>($"Model/ERLbach/ERLBach_mit_Fenster"),
|
||||||
1 //skip basemodel
|
1 //skip basemodel
|
||||||
|
|||||||
59
vr-configurator/Assets/Scripts/Models/ModelListColors.cs
Normal file
59
vr-configurator/Assets/Scripts/Models/ModelListColors.cs
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
namespace Models
|
||||||
|
{
|
||||||
|
public class ModelListColors
|
||||||
|
{
|
||||||
|
public static List<Color> DefaultColors = new List<Color>()
|
||||||
|
{
|
||||||
|
Color.black,
|
||||||
|
Color.gray,
|
||||||
|
Color.blue,
|
||||||
|
Color.red,
|
||||||
|
Color.yellow,
|
||||||
|
};
|
||||||
|
|
||||||
|
public static List<Color> ColorGlass = new List<Color>()
|
||||||
|
{
|
||||||
|
Resources.Load<Material>($"Material/Glas").color,
|
||||||
|
new Color(0f, 0f, 0f, 0f),
|
||||||
|
new Color(0.2f, 0.2f, 0.2f, 0.45f),
|
||||||
|
new Color(0.1f, 0.1f, 0.1f, 0.65f),
|
||||||
|
new Color(0.05f, 0.05f, 0.05f, 0.80f),
|
||||||
|
};
|
||||||
|
|
||||||
|
public static List<Color> ColorAluminiumPolished = new List<Color>()
|
||||||
|
{
|
||||||
|
Color.black,
|
||||||
|
Resources.Load<Material>($"Material/AluminiumPolished").color,
|
||||||
|
Color.blue,
|
||||||
|
Color.red,
|
||||||
|
Color.yellow,
|
||||||
|
};
|
||||||
|
public static List<Color> ColorAluminiumScratched = new List<Color>()
|
||||||
|
{
|
||||||
|
Color.black,
|
||||||
|
Resources.Load<Material>($"Material/AluminiumScratched").color,
|
||||||
|
Color.blue,
|
||||||
|
Color.red,
|
||||||
|
Color.yellow,
|
||||||
|
};
|
||||||
|
public static List<Color> ColorAluminiumBrushed = new List<Color>()
|
||||||
|
{
|
||||||
|
Color.black,
|
||||||
|
Resources.Load<Material>($"Material/AluminiumBrushed").color,
|
||||||
|
Color.blue,
|
||||||
|
Color.red,
|
||||||
|
Color.yellow,
|
||||||
|
};
|
||||||
|
public static List<Color> ColorPVC = new List<Color>()
|
||||||
|
{
|
||||||
|
Resources.Load<Material>($"Material/PVC").color,
|
||||||
|
Color.blue,
|
||||||
|
Color.gray,
|
||||||
|
Color.red,
|
||||||
|
Color.yellow,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 71e14943eee94c1393c731422951dc3e
|
||||||
|
timeCreated: 1752695579
|
||||||
Reference in New Issue
Block a user