Commit afe29dc8 authored by Teemu Tamminen's avatar Teemu Tamminen

First cluster template added

parent 48a0949a
{"tag": "shared", "ns": 2482591808}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://qt.io/qt3dstudio/uia">
<assets initial="clusterTemplate">
<presentation id="clusterTemplate" src="clusterTemplate.uip"/>
</assets>
<statemachine ref="#logic">
<visual-states>
<state ref="Initial">
<enter>
<goto-slide element="main:Scene" rel="next"/>
</enter>
</state>
</visual-states>
</statemachine>
</application>
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8" ?>
<Effect>
<MetaData>
<Property name="road_color" formalName="Road Color" type="Color" default="0.5 0.63 0.7" description="The color to use for the road."/>
<Property name="land_color" formalName="Land Color" type="Color" default="0.0 0.0 0.0" description="The color to use for the land."/>
<Property name="water_color" formalName="Water Color" type="Color" default="0.6 0.6 0.9" description="The color to use for the water."/>
</MetaData>
<Shaders>
<Shared></Shared>
<VertexShaderShared></VertexShaderShared>
<FragmentShaderShared></FragmentShaderShared>
<Shader name="main">
<VertexShader></VertexShader>
<FragmentShader><![CDATA[
vec4 desaturate(vec3 color, float strenght)
{
vec3 lum = vec3(0.299, 0.587, 0.114);
// lum values based on: ITU-R BT.601
vec3 gray = vec3(dot(lum, color));
return vec4(mix(color, gray, strenght), 1.0);
}
void frag()
{
vec4 origColor = texture2D_0(TexCoord);
vec4 descolor = desaturate(origColor.rgb,1.0);
vec4 outcolor = vec4(0.0,0.0,0.0,1.0);
if(origColor.r > 0.1){
outcolor = descolor * vec4(road_color,1.0)*4;
}
else if(origColor.b > 0.1){
outcolor = descolor * vec4(water_color,1.0)*8;
}
else{
outcolor = vec4(land_color,1.0);
}
gl_FragColor = outcolor;
}
]]></FragmentShader>
</Shader>
</Shaders>
<Passes>
<Pass shader="main" input="[source]" output="[dest]"/>
</Passes>
</Effect>
<?xml version="1.0" encoding="UTF-8" ?>
<Effect>
<MetaData>
<Property name="vig_color" formalName="Vignet Color" type="Color" default="0.5 0.5 0.5" description="The color to use for the Vignetting."/>
<Property name="vig_strenght" formalName="Strenght" min="0" max="15" default="15.0" description="Strenght of Vignetting."/>
<Property name="vig_radius" formalName="Radius" min="0" max="5" default="0.35" description="Size of Vignetting."/>
</MetaData>
<Shaders>
<Shared></Shared>
<VertexShaderShared></VertexShaderShared>
<FragmentShaderShared></FragmentShaderShared>
<Shader name="main">
<VertexShader></VertexShader>
<FragmentShader><![CDATA[
void frag()
{
float radius = vig_radius;
vec4 origColor = texture2D_0(TexCoord);
vec2 uv = TexCoord.xy;
vec2 center = vec2(0.5);
vec4 bg = origColor;
uv *= 1.0 - uv.yx;
float vig = uv.x*uv.y * vig_strenght;
vig = pow(vig, vig_radius);
vec4 vigmixcolor = vec4(vig_color,vig) * vec4(vig);
gl_FragColor = vec4(mix(origColor,vigmixcolor,1.0-vig));
}
]]></FragmentShader>
</Shader>
</Shaders>
<Passes>
<Pass shader="main" input="[source]" output="[dest]"/>
</Passes>
</Effect>
<?xml version="1.0" encoding="UTF-8" ?>
<UIP Version="1" >
<Project Revision="1" >
<Graph >
<Group id="__import__root__" >
<Model id="qt_gauge_ring_2" name="qt_gauge_ring_2" orientation="Right Handed" position="0 0 -0" rotation="0 -0 0" rotationorder="XYZr" scale="1 1 1" sourcepath="meshes/qt_gauge_ring_2.mesh" >
<Material id="Default_white" name="Default_white" blendmode="Normal" diffuse="1 1 1" emissivepower="0" opacity="100" specularamount="0" />
</Model>
</Group>
</Graph>
<Import SrcFile="../../../../3D Models/Automotive/Cluster/Other/Ring_2.fbx" ImageDir="Images" MeshDir="Meshes" >
<Mesh >
<Source >qt_gauge_ring_2</Source>
<Dest >meshes/qt_gauge_ring_2.mesh</Dest>
</Mesh>
</Import>
</Project>
</UIP>
<?xml version="1.0" encoding="UTF-8" ?>
<UIP Version="1" >
<Project Revision="1" >
<Graph >
<Group id="__import__root__" >
<Model id="qt_gauge_needles_2" name="qt_gauge_needles_2" orientation="Right Handed" position="0 0 -0" rotation="0 -0 0" rotationorder="XYZr" scale="1 1 1" sourcepath="meshes/qt_gauge_needles_2.mesh" >
<Material id="qt_gauge_needles:red_transparent" name="qt_gauge_needles:red_transparent" blendmode="Normal" diffuse="1 1 1" emissivepower="0" opacity="100" specularamount="0" />
<Material id="qt_gauge_needles:black_solid" name="qt_gauge_needles:black_solid" blendmode="Normal" diffuse="1 1 1" emissivepower="0" opacity="100" specularamount="0" />
<Material id="qt_gauge_needles:solidWhite" name="qt_gauge_needles:solidWhite" blendmode="Normal" diffuse="1 1 1" emissivepower="0" opacity="100" specularamount="0" />
</Model>
</Group>
</Graph>
<Import SrcFile="../../../../3D Models/Automotive/Cluster/Needles/needle_2.fbx" ImageDir="Images" MeshDir="Meshes" >
<Mesh >
<Source >qt_gauge_needles_2</Source>
<Dest >meshes/qt_gauge_needles_2.mesh</Dest>
</Mesh>
</Import>
</Project>
</UIP>
<?xml version="1.0" encoding="UTF-8" ?>
<UIP Version="1" >
<Project Revision="1" >
<Graph >
<Group id="__import__root__" >
<Model id="qt_gauge_background_round_1" name="qt_gauge_background_round_1" orientation="Right Handed" position="0 0 -0" rotation="0 -0 0" rotationorder="XYZr" scale="1 1 1" sourcepath="meshes/qt_gauge_background_round_1.mesh" >
<Material id="background_1" name="background_1" blendmode="Normal" diffuse="1 1 1" diffusemap="background_1_diffusemap" emissivepower="0" opacity="100" specularamount="0" >
<Image id="background_1_diffusemap" name="background_1_diffusemap" sourcepath="maps/gradient.png" />
</Material>
</Model>
</Group>
</Graph>
<Import SrcFile="../../../../3D Models/Automotive/Cluster/GaugeBackgrounds/roundbg_1.fbx" ImageDir="Images" MeshDir="Meshes" >
<Image >
<Source >roundbg_1.fbm/gradient.png</Source>
<Dest >maps/gradient.png</Dest>
</Image>
<Mesh >
<Source >qt_gauge_background_round_1</Source>
<Dest >meshes/qt_gauge_background_round_1.mesh</Dest>
</Mesh>
</Import>
</Project>
</UIP>
<?xml version="1.0" encoding="UTF-8" ?>
<UIP Version="1" >
<Project Revision="1" >
<Graph >
<Group id="__import__root__" >
<Model id="qt_gauge_tickmarks_260" name="qt_gauge_tickmarks_260" orientation="Right Handed" position="0 0 -0" rotation="0 -0 0" rotationorder="XYZr" scale="1 1 1" sourcepath="meshes/qt_gauge_tickmarks_260.mesh" >
<Material id="Default_white" name="Default_white" blendmode="Normal" diffuse="1 1 1" emissivepower="0" opacity="100" specularamount="0" />
</Model>
</Group>
</Graph>
<Import SrcFile="../../../../3D Models/Automotive/Cluster/Tickmarks/tickmark_260.fbx" ImageDir="Images" MeshDir="Meshes" >
<Mesh >
<Source >qt_gauge_tickmarks_260</Source>
<Dest >meshes/qt_gauge_tickmarks_260.mesh</Dest>
</Mesh>
</Import>
</Project>
</UIP>
<?xml version="1.0" encoding="UTF-8" ?>
<UIP Version="1" >
<Project Revision="1" >
<Graph >
<Group id="__import__root__" >
<Model id="qt_gauge_tickmarks_8_small" name="qt_gauge_tickmarks_8_small" orientation="Right Handed" position="0 0 -0" rotation="0 -0 0" rotationorder="XYZr" scale="1 1 1" sourcepath="meshes/qt_gauge_tickmarks_8_small.mesh" >
<Material id="Default_white" name="Default_white" blendmode="Normal" diffuse="1 1 1" emissivepower="0" opacity="100" specularamount="0" />
</Model>
</Group>
</Graph>
<Import SrcFile="../../../../3D Models/Automotive/Cluster/Tickmarks/tickmark_8_small.fbx" ImageDir="Images" MeshDir="Meshes" >
<Mesh >
<Source >qt_gauge_tickmarks_8_small</Source>
<Dest >meshes/qt_gauge_tickmarks_8_small.mesh</Dest>
</Mesh>
</Import>
</Project>
</UIP>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment