T'embête pas avec le tuto, j'en ai fait en 2 langues il y a un peu plus de 2 ans...
FRANÇAIS
Tout d'abord, préparer un fichier avec les jantes à intégrer dans différents objets :
Dans cet exemple je ne ferai que 2 jantes tarmac.
Préparer les matériaux habituels (external dynamic::carpaint, external dynamic::tire et éventuellement external dynamic2::carpaint si plusieurs textures comme dans mon cas). Sélectionner les polys du pneu de la première jante et attribuer le matériau external dynamic::tire. Dans external state, attribuer un ID de poly unique (ici 1) :
Faire la même chose pour la jante avec le matériau external dynamic::carpaint et attribuer un autre ID de poly (ici 0) :
Faire la même chose avec la 2e jante :
Fichier en cours : Sauvegarder dans un nouveau fichier (save as) !
Ensuite créer un matériau Invisible ou external invisible peu importe avec une texture unie (blanc ou noir) et transparente :
Vous pouvez utiliser celle-là et la renommer :
Sur un des pneus, attribuer le matériau invisible sans modifier l'ID de poly. Attention à ne prendre que le pneu (utiliser la sélection par matériau c'est plus facile vu qu'on a attribué un matériau différent de la jante pour ces polys) :
Fichier en cours : Sauvegarder dans un nouveau fichier (save as) !
Attacher les objets ensemble et renommer le tout pour RBR :
On a donc 1 objet avec 4 matériaux suivant la jante ou le pneu choisi :
Fichier en cours : Sauvegarder dans un nouveau fichier (save as) !
Merger ce fichier avec la voiture finale. SAUVEGARER LE Z3D AVEC LA JANTE MULTI-MATERIAUX Si on réimporte le SGC, on perd les différents ID de poly donc il faut bien garder le z3d.
Finir la voiture et exporter. Vous aurez le nouveau matériau invisible de créé et les ID assignés comme il faut mais il faut encore corriger quelques détails.
XXXX.ini à corriger : [e_wheel_tarmac_lb] Predicate=NotUsed Switch=false SwitchBox=light FaceBlock0_Material=external dynamic::carpaint FaceBlock0_Shader=CarTire FaceBlock1_Material=external dynamic::tire FaceBlock1_Shader=Shader#1 FaceBlock2_Material=external dynamic2::carpaint FaceBlock2_Shader=Shader#4 FaceBlock3_Material=external invisible FaceBlock3_Shader=Shader#5
POUR OPTION JANTE 1 : [e_wheel_tarmac_lb] Predicate=NotUsed Switch=false SwitchBox=light FaceBlock0_Material=external dynamic::carpaint FaceBlock0_Shader=CarPaint FaceBlock1_Material=external dynamic::tire FaceBlock1_Shader=CarTire FaceBlock2_Material=external dynamic2::carpaint FaceBlock2_Shader=Invisible FaceBlock3_Material=external invisible FaceBlock3_Shader=Invisible
POUR OPTION JANTE 2 : [e_wheel_tarmac_lb] Predicate=NotUsed Switch=false SwitchBox=light FaceBlock0_Material=external dynamic::carpaint FaceBlock0_Shader=Invisible FaceBlock1_Material=external dynamic::tire FaceBlock1_Shader=Invisible FaceBlock2_Material=external dynamic2::carpaint FaceBlock2_Shader=CarPaint FaceBlock3_Material=external invisible FaceBlock3_Shader=CarTire
Dans les fichiers XXXX_shaders_settings_clear.ini et XXX_shaders_settings_overcast.ini il faut créer un nouveau shaders à la fin du fichier avant [nops2] : [Invisible] CookTorranceB = 0.000000 CookTorranceKs = 0.000000 CookTorranceM = 0.000000 FresnelMax = 0.000000 FresnelMin = 0.000000 FresnelPower = 0.000000 Ka = 0.000000 Kd = 0.000000 Kf = 0.000000
XXXX_shaders.ini OK : [external dynamic::carpaint] Ambient=0.427451 0.427451 0.427451 Diffuse=1.000000 1.000000 1.000000 Specular=1.000000 1.000000 1.000000 Transparency=0.000000 Shininess=0.100000 ShineStrenth=50.000000 BumpChannel=false ReflectionChannel=false SelfIllumunationChannel=false SpecularColorChannel=false Requirements=33808 DiffuseChannel=true DiffuseType=Bitmap OpacityChannel=false
[external dynamic::carpaint_diffuse_bitmap] AlphaAsMono=false AlphaAsRGB=false Amount=1.0 OffsetU=0.0 OffsetV=0.0 TileU=1.0 TileV=1.0 WrapU=3 WrapV=3 Filename=6r4_external_dynamic.dds
[external dynamic::tire] Ambient=0.588235 0.588235 0.588235 Diffuse=1.000000 1.000000 1.000000 Specular=1.000000 1.000000 1.000000 Transparency=0.000000 Shininess=0.100000 ShineStrenth=50.000000 BumpChannel=false ReflectionChannel=false SelfIllumunationChannel=false SpecularColorChannel=false Requirements=33808 DiffuseChannel=true DiffuseType=Bitmap OpacityChannel=false [external dynamic::tire_diffuse_bitmap] AlphaAsMono=false AlphaAsRGB=false Amount=1.0 OffsetU=0.0 OffsetV=0.0 TileU=1.0 TileV=1.0 WrapU=3 WrapV=3 Filename=6r4_external_dynamic.dds
[external dynamic2::carpaint] Ambient=0.427451 0.427451 0.427451 Diffuse=1.000000 1.000000 1.000000 Specular=1.000000 1.000000 1.000000 Transparency=0.000000 Shininess=0.100000 ShineStrenth=50.000000 BumpChannel=false ReflectionChannel=false SelfIllumunationChannel=false SpecularColorChannel=false Requirements=33808 DiffuseChannel=true DiffuseType=Bitmap OpacityChannel=false [external dynamic2::carpaint_diffuse_bitmap] AlphaAsMono=false AlphaAsRGB=false Amount=1.0 OffsetU=0.0 OffsetV=0.0 TileU=1.0 TileV=1.0 WrapU=3 WrapV=3 Filename=6r4_external_dynamic2.dds
[external invisible] Ambient=0.200000 0.200000 0.200000 Diffuse=1.000000 1.000000 1.000000 Specular=1.000000 1.000000 1.000000 Transparency=0.000000 Shininess=0.100000 ShineStrenth=50.000000 BumpChannel=false ReflectionChannel=false SelfIllumunationChannel=false SpecularColorChannel=false Requirements=8422416 DiffuseChannel=true DiffuseType=Bitmap OpacityChannel=true OpacityType=Bitmap
[external invisible_diffuse_bitmap] AlphaAsMono=false AlphaAsRGB=false Amount=1.0 OffsetU=0.0 OffsetV=0.0 TileU=1.0 TileV=1.0 WrapU=3 WrapV=3 Filename=6r4_external_invisible.dds
[external invisible_opacity_bitmap] AlphaAsMono=true AlphaAsRGB=false Amount=1.0 OffsetU=0.0 OffsetV=0.0 TileU=1.0 TileV=1.0 WrapU=3 WrapV=3 Filename=6r4_external_invisible.dds
ENGLISH
First of all, prepare your file with the different wheels to use in different objects but in one z3d :
In this example I will only do 2 tarmac wheels.
Prepare the standard RBR materials for the wheels (external dynamic::carpaint, external dynamic::tire and maybe external dynamic2::carpaint if you plan to use 2 different textures as I will here). In poly mod, select only the polys from the tire and in the properties (right clic -> Properties) apply the tire material external dynamic::tire. In external state, apply a single poly ID (here I use 1) :
Do the same for the wheel associated to this tire and use external dynamic::carpaint and apply another poly ID (here 0) :
Repeat the operation on the second wheel (2nd object) :
File at this moment : Fichier(s) joint(s): Le fichier joint tuto_2objets.z3d n’est plus disponible. SAVE IN A NEW FILE (save as) !
Then create a new material which will be invisible (name it Invisible or external invisible) with a single color texture (black or white) and fully transparent :
You can use that one (rename it for your car) : Fichier(s) joint(s): Le fichier joint 6R4_external_invisible.dds n’est plus disponible.
On one of the tires (for example the tire of the second wheel), apply the invisible material without modifying poly ID. Be carefull to select only the tire (use Select by material as we previously applied a different material on the tire) :
File at this moment : Fichier(s) joint(s): Le fichier joint tuto_2objets_invisible.z3d n’est plus disponible. SAVE IN A NEW FILE (save as) !
Attach the 2 objets together and rename it for RBR :
Now we have one object with 4 material depending on the tire or the wheel you choose :
File at this moment : Fichier(s) joint(s): Le fichier joint tuto_1objet.z3d n’est plus disponible. SAVE IN A NEW FILE (save as) !
Merge this file with the final car : SAVE THE Z3D FILE WITH THE MULTI-MATERIAL WHEEL. If you reimport the exported sgc from here, you will lose the poly ID so it's very important to keep the z3d of the car on each following modification you will do.
Finish your car and export it. You will have the new invisible material and the poly ID in the ini files, but there are still some modification to do.
Correct XXXX.ini : [e_wheel_tarmac_lb] Predicate=NotUsed Switch=false SwitchBox=light FaceBlock0_Material=external dynamic::carpaint FaceBlock0_Shader=CarTire FaceBlock1_Material=external dynamic::tire FaceBlock1_Shader=Shader#1 FaceBlock2_Material=external dynamic2::carpaint FaceBlock2_Shader=Shader#4 FaceBlock3_Material=external invisible FaceBlock3_Shader=Shader#5
OPTION WHEEL 1 : [e_wheel_tarmac_lb] Predicate=NotUsed Switch=false SwitchBox=light FaceBlock0_Material=external dynamic::carpaint FaceBlock0_Shader=CarPaint FaceBlock1_Material=external dynamic::tire FaceBlock1_Shader=CarTire FaceBlock2_Material=external dynamic2::carpaint FaceBlock2_Shader=Invisible FaceBlock3_Material=external invisible FaceBlock3_Shader=Invisible
OPTION WHEEL 2 : [e_wheel_tarmac_lb] Predicate=NotUsed Switch=false SwitchBox=light FaceBlock0_Material=external dynamic::carpaint FaceBlock0_Shader=Invisible FaceBlock1_Material=external dynamic::tire FaceBlock1_Shader=Invisible FaceBlock2_Material=external dynamic2::carpaint FaceBlock2_Shader=CarPaint FaceBlock3_Material=external invisible FaceBlock3_Shader=CarTire
In the XXXX_shaders_settings_clear.ini and XXX_shaders_settings_overcast.ini files, you need to manually create the invisible shaders at the end of the file before [nops2] : [Invisible] CookTorranceB = 0.000000 CookTorranceKs = 0.000000 CookTorranceM = 0.000000 FresnelMax = 0.000000 FresnelMin = 0.000000 FresnelPower = 0.000000 Ka = 0.000000 Kd = 0.000000 Kf = 0.000000
XXXX_shaders.ini OK : [external dynamic::carpaint] Ambient=0.427451 0.427451 0.427451 Diffuse=1.000000 1.000000 1.000000 Specular=1.000000 1.000000 1.000000 Transparency=0.000000 Shininess=0.100000 ShineStrenth=50.000000 BumpChannel=false ReflectionChannel=false SelfIllumunationChannel=false SpecularColorChannel=false Requirements=33808 DiffuseChannel=true DiffuseType=Bitmap OpacityChannel=false
[external dynamic::carpaint_diffuse_bitmap] AlphaAsMono=false AlphaAsRGB=false Amount=1.0 OffsetU=0.0 OffsetV=0.0 TileU=1.0 TileV=1.0 WrapU=3 WrapV=3 Filename=6r4_external_dynamic.dds
[external dynamic::tire] Ambient=0.588235 0.588235 0.588235 Diffuse=1.000000 1.000000 1.000000 Specular=1.000000 1.000000 1.000000 Transparency=0.000000 Shininess=0.100000 ShineStrenth=50.000000 BumpChannel=false ReflectionChannel=false SelfIllumunationChannel=false SpecularColorChannel=false Requirements=33808 DiffuseChannel=true DiffuseType=Bitmap OpacityChannel=false [external dynamic::tire_diffuse_bitmap] AlphaAsMono=false AlphaAsRGB=false Amount=1.0 OffsetU=0.0 OffsetV=0.0 TileU=1.0 TileV=1.0 WrapU=3 WrapV=3 Filename=6r4_external_dynamic.dds
[external dynamic2::carpaint] Ambient=0.427451 0.427451 0.427451 Diffuse=1.000000 1.000000 1.000000 Specular=1.000000 1.000000 1.000000 Transparency=0.000000 Shininess=0.100000 ShineStrenth=50.000000 BumpChannel=false ReflectionChannel=false SelfIllumunationChannel=false SpecularColorChannel=false Requirements=33808 DiffuseChannel=true DiffuseType=Bitmap OpacityChannel=false [external dynamic2::carpaint_diffuse_bitmap] AlphaAsMono=false AlphaAsRGB=false Amount=1.0 OffsetU=0.0 OffsetV=0.0 TileU=1.0 TileV=1.0 WrapU=3 WrapV=3 Filename=6r4_external_dynamic2.dds
[external invisible] Ambient=0.200000 0.200000 0.200000 Diffuse=1.000000 1.000000 1.000000 Specular=1.000000 1.000000 1.000000 Transparency=0.000000 Shininess=0.100000 ShineStrenth=50.000000 BumpChannel=false ReflectionChannel=false SelfIllumunationChannel=false SpecularColorChannel=false Requirements=8422416 DiffuseChannel=true DiffuseType=Bitmap OpacityChannel=true OpacityType=Bitmap
[external invisible_diffuse_bitmap] AlphaAsMono=false AlphaAsRGB=false Amount=1.0 OffsetU=0.0 OffsetV=0.0 TileU=1.0 TileV=1.0 WrapU=3 WrapV=3 Filename=6r4_external_invisible.dds
[external invisible_opacity_bitmap] AlphaAsMono=true AlphaAsRGB=false Amount=1.0 OffsetU=0.0 OffsetV=0.0 TileU=1.0 TileV=1.0 WrapU=3 WrapV=3 Filename=6r4_external_invisible.dds |