diff --git a/docs/Dokumentation/main.fdb_latexmk b/docs/Dokumentation/main.fdb_latexmk index 9439e13..51eb576 100644 --- a/docs/Dokumentation/main.fdb_latexmk +++ b/docs/Dokumentation/main.fdb_latexmk @@ -1,5 +1,5 @@ # 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/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 "" @@ -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/tabularx.sty" 1748713680 7243 a2c17f18e2c9b702b84fad03d5f9c78b "" "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 "" "graphics/htw_logo.pdf" 1752693337.66827 38674 37be0a1187ef08bd560d140172e8408b "" - "main.aux" 1752694631.67309 4858 9d19ff275252da3979a160fce52dcf20 "pdflatex" - "main.toc" 1752694631.67513 3001 5098249b5d903f8b3d3fd1d44fa94338 "pdflatex" + "main.aux" 1752695249.87681 4858 9d19ff275252da3979a160fce52dcf20 "pdflatex" + "main.toc" 1752695249.88904 3001 5098249b5d903f8b3d3fd1d44fa94338 "pdflatex" "settings.tex" 1752693337.6754 755 00da007a658d7b495f87b67072a27998 "" "titlepage.tex" 1752693337.67643 750 4350988cc42b7596c577ecd5a86636c6 "" (generated) diff --git a/docs/Dokumentation/main.log b/docs/Dokumentation/main.log index 5575de9..b107a46 100644 --- a/docs/Dokumentation/main.log +++ b/docs/Dokumentation/main.log @@ -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 restricted \write18 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 73i,12n,80p,827b,480s stack positions out of 10000i,1000n,20000p,200000b,200000s -Output written on main.pdf (19 pages, 191771 bytes). +Output written on main.pdf (19 pages, 191774 bytes). PDF statistics: 450 PDF objects out of 1000 (max. 8388607) 0 named destinations out of 1000 (max. 500000) diff --git a/docs/Dokumentation/main.pdf b/docs/Dokumentation/main.pdf index 5c7eac3..0ea9d56 100644 Binary files a/docs/Dokumentation/main.pdf and b/docs/Dokumentation/main.pdf differ diff --git a/docs/Dokumentation/main.synctex.gz b/docs/Dokumentation/main.synctex.gz index 8b897b0..7efdbad 100644 Binary files a/docs/Dokumentation/main.synctex.gz and b/docs/Dokumentation/main.synctex.gz differ diff --git a/docs/Dokumentation/main.tex b/docs/Dokumentation/main.tex index 456fdf2..bf1d185 100644 --- a/docs/Dokumentation/main.tex +++ b/docs/Dokumentation/main.tex @@ -336,7 +336,7 @@ Die Transformer verwalten das Interaktionsverhalten der angezeigten Konfiguratio \end{itemize} \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} \item \textbf{TODO: MAX HAT DAS UI GEMACHT, DAS SOLL DER SCHREIBEN} diff --git a/vr-configurator/Assets/Scripts/Models/ModelList.cs b/vr-configurator/Assets/Scripts/Models/ModelList.cs index 0deef6f..8697137 100644 --- a/vr-configurator/Assets/Scripts/Models/ModelList.cs +++ b/vr-configurator/Assets/Scripts/Models/ModelList.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; +using Models; using UnityEngine; /// @@ -7,22 +8,6 @@ using UnityEngine; /// public class ModelList { - public static List DefaultColors = new List() - { - Color.black, - Color.gray, - Color.blue, - Color.red, - Color.yellow, - }; - public static List WindowColor = new List() - { - new Color(0f, 0f, 0f, 0f), - Resources.Load($"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 BaseModels = new List() { @@ -39,8 +24,8 @@ public class ModelList Port.Choosable("Back Frame", PortDef.BIKE_FRAME, "idBikeAttachments", 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_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_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.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.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_RV, "erlRim1_RV", Vector3.zero, Quaternion.identity, 1f, new Vector3(0f, 30f, 0f)), }, - DefaultColors, + ModelListColors.ColorAluminiumScratched, true ), 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_RV, "erlRim2_RV", Vector3.zero, Quaternion.identity, 1f, new Vector3(0f, 30f, 0f)), }, - DefaultColors, + ModelListColors.ColorAluminiumScratched, true ), 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_RV, "erlRim3_RV", Vector3.zero, Quaternion.identity, 1f, new Vector3(0f, 30f, 0f)), }, - DefaultColors, + ModelListColors.ColorAluminiumScratched, true ), // Sport @@ -224,7 +209,7 @@ public class ModelList Quaternion.Euler(-180, 0, 0), new Vector3(1f, 1f, 1f), null, - DefaultColors + ModelListColors.ColorAluminiumScratched ), new ChildModel( PortDef.ERL_RIM_RV, @@ -236,7 +221,7 @@ public class ModelList Quaternion.Euler(-180, 0, 0), new Vector3(1f, 1f, 1f), null, - DefaultColors + ModelListColors.ColorAluminiumScratched ), new ChildModel( PortDef.ERL_RIM_LV, @@ -248,7 +233,7 @@ public class ModelList Quaternion.Euler(0, 0, 0), new Vector3(1f, 1f, 1f), null, - DefaultColors + ModelListColors.ColorAluminiumScratched ), new ChildModel( PortDef.ERL_RIM_LH, @@ -260,7 +245,7 @@ public class ModelList Quaternion.Euler(-180, 0, 0), new Vector3(1f, 1f, 1f), null, - DefaultColors + ModelListColors.ColorAluminiumScratched ), // Elegance new ChildModel( @@ -273,7 +258,7 @@ public class ModelList Quaternion.Euler(-180, 0, 0), new Vector3(1f, 1f, 1f), null, - DefaultColors + ModelListColors.ColorAluminiumScratched ), new ChildModel( PortDef.ERL_RIM_RV, @@ -285,7 +270,7 @@ public class ModelList Quaternion.Euler(-180, 0, 0), new Vector3(1f, 1f, 1f), null, - DefaultColors + ModelListColors.ColorAluminiumScratched ), new ChildModel( PortDef.ERL_RIM_LV, @@ -297,7 +282,7 @@ public class ModelList Quaternion.Euler(0, 0, 0), new Vector3(1f, 1f, 1f), null, - DefaultColors + ModelListColors.ColorAluminiumScratched ), new ChildModel( PortDef.ERL_RIM_LH, @@ -309,7 +294,7 @@ public class ModelList Quaternion.Euler(-180, 0, 0), new Vector3(1f, 1f, 1f), null, - DefaultColors + ModelListColors.ColorAluminiumScratched ), // GRILL new ChildModel( @@ -322,7 +307,7 @@ public class ModelList Quaternion.Euler(0f, 180f, -90f), // no rotation new Vector3(1f, 1f, 1f), // scale null, // no children - DefaultColors // default colors + ModelListColors.ColorAluminiumBrushed // default colors ) }; @@ -338,15 +323,15 @@ public class ModelList ModelLoader.LoadChildFromPackedModel(ChildModels, new List { - new ModelElement(PortDef.BIKE_FRAME, "Back Frame", "idBikeAttachments", Resources.Load($"Material/AluminiumPolished"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors), - new ModelElement(PortDef.BIKE_FRAME2, "Frame", "idBikeFrame", Resources.Load($"Material/AluminiumPolished"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors), + new ModelElement(PortDef.BIKE_FRAME, "Back Frame", "idBikeAttachments", Resources.Load($"Material/AluminiumPolished"), Vector3.zero, Quaternion.identity, Vector3.one, null, ModelListColors.ColorAluminiumPolished), + new ModelElement(PortDef.BIKE_FRAME2, "Frame", "idBikeFrame", Resources.Load($"Material/AluminiumPolished"), Vector3.zero, Quaternion.identity, Vector3.one, null, ModelListColors.ColorAluminiumPolished), new ModelElement(PortDef.BIKE_SPROCKET, "Sprocket", "idBikeSprocket", Resources.Load($"Material/AluminiumBrushed"), Vector3.zero, Quaternion.identity, Vector3.one, null, null), - new ModelElement(PortDef.BIKE_PEDAL_L, "Left Pedal", "idBikePedalL", Resources.Load($"Material/PVC"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors), - new ModelElement(PortDef.BIKE_PEDAL_R, "Right Pedal", "idBikePedalR", Resources.Load($"Material/PVC"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors), - new ModelElement(PortDef.BIKE_STEER, "Handlebars", "idBikeHandlebars", Resources.Load($"Material/AluminiumScratched"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors), - new ModelElement(PortDef.BIKE_RIM, "Back Back", "idBikeRim_Back", Resources.Load($"Material/AluminiumPolished"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors), + new ModelElement(PortDef.BIKE_PEDAL_L, "Left Pedal", "idBikePedalL", Resources.Load($"Material/PVC"), Vector3.zero, Quaternion.identity, Vector3.one, null, ModelListColors.ColorPVC), + new ModelElement(PortDef.BIKE_PEDAL_R, "Right Pedal", "idBikePedalR", Resources.Load($"Material/PVC"), Vector3.zero, Quaternion.identity, Vector3.one, null, ModelListColors.ColorPVC), + new ModelElement(PortDef.BIKE_STEER, "Handlebars", "idBikeHandlebars", Resources.Load($"Material/AluminiumScratched"), Vector3.zero, Quaternion.identity, Vector3.one, null, ModelListColors.ColorAluminiumScratched), + new ModelElement(PortDef.BIKE_RIM, "Back Back", "idBikeRim_Back", Resources.Load($"Material/AluminiumPolished"), Vector3.zero, Quaternion.identity, Vector3.one, null, ModelListColors.ColorAluminiumPolished), new ModelElement(PortDef.BIKE_TIRE, "Back Tire", "idBikeTire_Back", Resources.Load($"Material/PlasticCable"), Vector3.zero, Quaternion.identity, Vector3.one, null, null), - new ModelElement(PortDef.BIKE_RIM_FRONT, "Front Rim", "idBikeRim_Front", Resources.Load($"Material/AluminiumPolished"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors), + new ModelElement(PortDef.BIKE_RIM_FRONT, "Front Rim", "idBikeRim_Front", Resources.Load($"Material/AluminiumPolished"), Vector3.zero, Quaternion.identity, Vector3.one, null, ModelListColors.ColorAluminiumPolished), new ModelElement(PortDef.BIKE_TIRE_FRONT, "Front Tire", "idBikeTire_Front", Resources.Load($"Material/PlasticCable"), Vector3.zero, Quaternion.identity, Vector3.one, null, null) }, Resources.LoadAll($"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/PVC"), Vector3.zero, Quaternion.identity, Vector3.one, null, null ), new ModelElement( PortDef.ERL_ROD_79, "Erlbach Part 79", "idErlbachPart79", Resources.Load($"Material/PVC"), Vector3.zero, Quaternion.identity, Vector3.one, null, null ), new ModelElement( PortDef.ERL_TIRE_LH, "Tire LH", "erlTire1_LH", Resources.Load($"Material/CarTire"), Vector3.zero, Quaternion.identity, Vector3.one, null, null ), - new ModelElement( PortDef.ERL_RIM_LH, "Standard Rim", "erlRim1_LH", Resources.Load($"Material/AluminiumScratched"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors ), + new ModelElement( PortDef.ERL_RIM_LH, "Standard Rim", "erlRim1_LH", Resources.Load($"Material/AluminiumScratched"), Vector3.zero, Quaternion.identity, Vector3.one, null, ModelListColors.ColorAluminiumScratched ), new ModelElement( PortDef.ERL_TIRE_LV, "Tire LV", "erlTire1_LV", Resources.Load($"Material/CarTire"), Vector3.zero, Quaternion.identity, Vector3.one, null, null ), - new ModelElement( PortDef.ERL_RIM_LV, "Standard Rim", "erlRim1_LV", Resources.Load($"Material/AluminiumScratched"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors ), + new ModelElement( PortDef.ERL_RIM_LV, "Standard Rim", "erlRim1_LV", Resources.Load($"Material/AluminiumScratched"), Vector3.zero, Quaternion.identity, Vector3.one, null, ModelListColors.ColorAluminiumScratched ), new ModelElement( PortDef.ERL_TIRE_RH, "Tire RH", "erlTire1_RH", Resources.Load($"Material/CarTire"), Vector3.zero, Quaternion.identity, Vector3.one, null, null ), - new ModelElement( PortDef.ERL_RIM_RH, "Standard Rim", "erlRim1_RH", Resources.Load($"Material/AluminiumScratched"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors ), + new ModelElement( PortDef.ERL_RIM_RH, "Standard Rim", "erlRim1_RH", Resources.Load($"Material/AluminiumScratched"), Vector3.zero, Quaternion.identity, Vector3.one, null, ModelListColors.ColorAluminiumScratched ), new ModelElement( PortDef.ERL_TIRE_RV, "Tire RV", "erlTire1_RV", Resources.Load($"Material/CarTire"), Vector3.zero, Quaternion.identity, Vector3.one, null, null ), - new ModelElement( PortDef.ERL_RIM_RV, "Standard Rim", "erlRim1_RV", Resources.Load($"Material/AluminiumScratched"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors ), - new ModelElement( PortDef.ERL_BODY, "Body", "idErlbachPart84", Resources.Load($"Material/AluminiumPolished"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors ), - new ModelElement( PortDef.ERL_BUMPER_BACK, "Rear Bumper", "idErlbachPart85", Resources.Load($"Material/AluminiumPolished"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors ), - new ModelElement( PortDef.ERL_DRL_OUTLINE, "Front Bumper", "idErlbachPart86", Resources.Load($"Material/AluminiumPolished"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors ), - new ModelElement( PortDef.ERL_BADGE, "Number", "idErlbachPart87", Resources.Load($"Material/AluminiumScratched"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors ), - new ModelElement( PortDef.ERL_LP_BASE, "License Plate", "idErlbachPart88", Resources.Load($"Material/AluminiumPolished"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors ), + new ModelElement( PortDef.ERL_RIM_RV, "Standard Rim", "erlRim1_RV", Resources.Load($"Material/AluminiumScratched"), Vector3.zero, Quaternion.identity, Vector3.one, null, ModelListColors.ColorAluminiumScratched ), + new ModelElement( PortDef.ERL_BODY, "Body", "idErlbachPart84", Resources.Load($"Material/AluminiumPolished"), Vector3.zero, Quaternion.identity, Vector3.one, null, ModelListColors.ColorAluminiumPolished ), + new ModelElement( PortDef.ERL_BUMPER_BACK, "Rear Bumper", "idErlbachPart85", Resources.Load($"Material/AluminiumPolished"), Vector3.zero, Quaternion.identity, Vector3.one, null, ModelListColors.ColorAluminiumPolished ), + new ModelElement( PortDef.ERL_DRL_OUTLINE, "Front Bumper", "idErlbachPart86", Resources.Load($"Material/AluminiumPolished"), Vector3.zero, Quaternion.identity, Vector3.one, null, ModelListColors.ColorAluminiumPolished ), + new ModelElement( PortDef.ERL_BADGE, "Number", "idErlbachPart87", Resources.Load($"Material/AluminiumScratched"), Vector3.zero, Quaternion.identity, Vector3.one, null, ModelListColors.ColorAluminiumScratched ), + new ModelElement( PortDef.ERL_LP_BASE, "License Plate", "idErlbachPart88", Resources.Load($"Material/AluminiumPolished"), Vector3.zero, Quaternion.identity, Vector3.one, null, ModelListColors.ColorAluminiumPolished ), new ModelElement( PortDef.ERL_LP_TEXT, "License Plate Content", "idErlbachPart89", Resources.Load($"Material/PVC"), Vector3.zero, Quaternion.identity, Vector3.one, null, null ), new ModelElement( PortDef.ERL_LP_COUNTRY, "Erlbach Part 90", "idErlbachPart90", Resources.Load($"Material/PVC"), Vector3.zero, Quaternion.identity, Vector3.one, null, null ), - new ModelElement( PortDef.ERL_GRILL, "Standard Grill", "erlGrill_1", Resources.Load($"Material/AluminiumBrushed"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors ), - new ModelElement( PortDef.ERL_BUMPER_FRONT, "Headlight Cover", "idErlbachPart92", Resources.Load($"Material/AluminiumBrushed"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors ), + new ModelElement( PortDef.ERL_GRILL, "Standard Grill", "erlGrill_1", Resources.Load($"Material/AluminiumBrushed"), Vector3.zero, Quaternion.identity, Vector3.one, null, ModelListColors.ColorAluminiumBrushed ), + new ModelElement( PortDef.ERL_BUMPER_FRONT, "Headlight Cover", "idErlbachPart92", Resources.Load($"Material/AluminiumBrushed"), Vector3.zero, Quaternion.identity, Vector3.one, null, ModelListColors.ColorAluminiumBrushed ), new ModelElement( PortDef.ERL_DRL_PLATE, "Headlight", "idErlbachPart93", Resources.Load($"Material/MetalMesh"), Vector3.zero, Quaternion.identity, Vector3.one, null, null ), - new ModelElement( PortDef.ERL_WINDOW, "Fenster", "idErlbachGlas", Resources.Load($"Material/Glas"), Vector3.zero, Quaternion.identity, Vector3.one, null, WindowColor), + new ModelElement( PortDef.ERL_WINDOW, "Fenster", "idErlbachGlas", Resources.Load($"Material/Glas"), Vector3.zero, Quaternion.identity, Vector3.one, null, ModelListColors.ColorGlass), }, Resources.LoadAll($"Model/ERLbach/ERLBach_mit_Fenster"), 1 //skip basemodel diff --git a/vr-configurator/Assets/Scripts/Models/ModelListColors.cs b/vr-configurator/Assets/Scripts/Models/ModelListColors.cs new file mode 100644 index 0000000..ece3eb8 --- /dev/null +++ b/vr-configurator/Assets/Scripts/Models/ModelListColors.cs @@ -0,0 +1,59 @@ +using System.Collections.Generic; +using UnityEngine; + +namespace Models +{ + public class ModelListColors + { + public static List DefaultColors = new List() + { + Color.black, + Color.gray, + Color.blue, + Color.red, + Color.yellow, + }; + + public static List ColorGlass = new List() + { + Resources.Load($"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 ColorAluminiumPolished = new List() + { + Color.black, + Resources.Load($"Material/AluminiumPolished").color, + Color.blue, + Color.red, + Color.yellow, + }; + public static List ColorAluminiumScratched = new List() + { + Color.black, + Resources.Load($"Material/AluminiumScratched").color, + Color.blue, + Color.red, + Color.yellow, + }; + public static List ColorAluminiumBrushed = new List() + { + Color.black, + Resources.Load($"Material/AluminiumBrushed").color, + Color.blue, + Color.red, + Color.yellow, + }; + public static List ColorPVC = new List() + { + Resources.Load($"Material/PVC").color, + Color.blue, + Color.gray, + Color.red, + Color.yellow, + }; + } +} \ No newline at end of file diff --git a/vr-configurator/Assets/Scripts/Models/ModelListColors.cs.meta b/vr-configurator/Assets/Scripts/Models/ModelListColors.cs.meta new file mode 100644 index 0000000..524a5e9 --- /dev/null +++ b/vr-configurator/Assets/Scripts/Models/ModelListColors.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 71e14943eee94c1393c731422951dc3e +timeCreated: 1752695579 \ No newline at end of file