Model style
Set the default color of your model and style its shadow.
Description
The model can be styled in two ways:
- Using the
color
orcolor-<group>
parameter you can define the default color of your model. - Using the
shadow-intensity
parameter you can define the appearance of the shadow of your model.
Color
To color a virtual product you have two options:
- For single color changes the
color
parameter can be used to define the default color of your model. - For multiple color changes the
color-<group>
parameter can be used to define the default color of a part of your model.
By default, only supported colors from the CMS can be chosen. If defined on the model, it is also possible to use custom colors.
- For models with a single color, the
custom-color
parameter can be used to define the default custom color of your model. - For models with multiple colors, the
custom-color-<group>
parameter can be used to define the default custom color of a part of your model.
Parameter | Supported values | Default value |
---|---|---|
color | The possible values are depending on your model. All values are lowercase alpha-numeric. | Set in CMS |
color-<group> | The possible values are depending on your model. All values are lowercase alpha-numeric. | Set in CMS |
custom-color | The possible values are depending on the supported color systems of your model. All values are lowercase alpha-numeric, a dash is used as separator. | Set in CMS |
custom-color-<group> | The possible values are depending on the supported color systems of your model. All values are lowercase alpha-numeric, a dash is used as separator. | Set in CMS |
Color example
<iframe
src="https://vulp.studio/foxmountain/cup2/en-US?color=yellow"
allow="xr-spatial-tracking; fullscreen; web-share; clipboard-write"
referrerpolicy="no-referrer-when-downgrade"
width="600"
height="510"
frameBorder="0"
title="Cup2 - vulp.studio"
></iframe>
Color-<group> example
<iframe
src="https://vulp.studio/foxmountain/moped/en-US?color-body=green"
allow="xr-spatial-tracking; fullscreen; web-share; clipboard-write"
referrerpolicy="no-referrer-when-downgrade"
width="600"
height="510"
frameBorder="0"
title="Moped - vulp.studio"
></iframe>
Custom color example
A custom color is identified by two components:
- A color system, for example
ral
. - A color identifier, for example
2007
.
In order to set a default custom color, two parameters need to be defined:
- The
color
(orcolor-<group>
) parameter should to be set to the identifier of the custom color. - The
custom-color
(orcustom-color-<group
) parameter should be set to the custom color. The custom color is identified by the color system and color identifier, which should be separated by a dash (-
).
Custom color example
<iframe
src="https://vulp.studio/foxmountain/cup2/en-US?color=custom&custom-color=ral-2007"
allow="xr-spatial-tracking; fullscreen; web-share; clipboard-write"
referrerpolicy="no-referrer-when-downgrade"
width="600"
height="510"
frameBorder="0"
title="Cup2 - vulp.studio"
></iframe>
Color-<group> custom color example
<iframe
src="https://vulp.studio/foxmountain/moped/en-US?color-body=custom&custom-color-body=ral-2007"
allow="xr-spatial-tracking; fullscreen; web-share; clipboard-write"
referrerpolicy="no-referrer-when-downgrade"
width="600"
height="510"
frameBorder="0"
title="Moped - vulp.studio"
></iframe>
Shadow intensity
Using the shadow-intensity
parameter you can define the appearance of the shadow of your model.
Parameter | Supported values | Default value |
---|---|---|
shadow-intensity | A value between 0.0 and 10.0 | Set in CMS |
Example
<iframe
src="https://vulp.studio/foxmountain/moped/en-US?shadow-intensity=3.0"
allow="xr-spatial-tracking; fullscreen; web-share; clipboard-write"
referrerpolicy="no-referrer-when-downgrade"
width="600"
height="510"
frameBorder="0"
title="Moped - vulp.studio"
></iframe>