Commit 56cb0e22 authored by Marianne Yrjänä's avatar Marianne Yrjänä

Add Coffee Maker demo presentation

parent bfbbd4a9
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://qt.io/qt3dstudio/uia">
<assets initial="Untitled">
<presentation id="Untitled" src="CoffeeMaker.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" ?>
<UIP Version="1" >
<Project Revision="1" >
<Graph >
<Group id="__import__root__" >
<Group id="Group_Env" name="Group_Env" orientation="Right Handed" position="0 0 -0" rotation="-90 -0 0" rotationorder="XYZr" scale="2.01491 2.01491 2.01491" >
<Model id="MachineBottomPart" name="MachineBottomPart" orientation="Right Handed" position="0 2.39711e-28 1.47134e-21" rotation="0 -0 0" rotationorder="XYZr" scale="1 1 1" sourcepath=".\meshes\MachineBottomPart.mesh#1" >
<Material id="Machine1" name="Machine1" blendmode="Normal" diffuse="0.118581 0.168675 0.138214" emissivepower="0" opacity="100" specularamount="0" specularroughness="9.60784" />
</Model>
<Model id="WallTiles" name="WallTiles" orientation="Right Handed" position="0 0 -0" rotation="0 -0 0" rotationorder="XYZr" scale="1 1 1" sourcepath=".\meshes\WallTiles.mesh#1" >
<Material id="Filler1" name="Filler1" blendmode="Normal" diffuse="0.381592 0.381592 0.381592" emissivepower="0" opacity="100" specularamount="0" specularroughness="9.60784" />
<Material id="Walltiles1" name="Walltiles1" blendmode="Normal" diffuse="0.8 0.8 0.8" emissivepower="0" opacity="100" specularamount="0" specularroughness="9.60784" />
</Model>
<Model id="Machine2" name="Machine2" orientation="Right Handed" position="0 0 -0" rotation="0 -0 0" rotationorder="XYZr" scale="1 1 1" sourcepath=".\meshes\Machine2.mesh#1" >
<Material id="Machine1_0001" name="Machine1" blendmode="Normal" diffuse="0.118581 0.168675 0.138214" emissivepower="0" opacity="100" specularamount="0" specularroughness="9.60784" />
<Material id="MachineLight1" name="MachineLight1" blendmode="Normal" diffuse="0.330971 0.492141 0.393637" emissivepower="0" opacity="100" specularamount="0" specularroughness="9.60784" />
<Material id="Material1" name="Material1" blendmode="Normal" diffuse="0 0 0" emissivepower="0" opacity="100" specularamount="0" specularroughness="9.60784" />
</Model>
<Model id="Cup" name="Cup" orientation="Right Handed" position="0 7.77563e-27 4.77265e-20" rotation="-3.03321e-21 7.58303e-22 -40.1869" rotationorder="XYZr" scale="1 1 1" sourcepath=".\meshes\Cup.mesh#1" >
<Material id="Cup2" name="Cup2" blendmode="Normal" diffuse="1 1 1" diffusemap="Cup2_diffusemap" emissivepower="0" opacity="100" specularamount="0" specularroughness="9.60784" >
<Image id="Cup2_diffusemap" name="Cup2_diffusemap" sourcepath=".\maps\CupTexture.png" />
</Material>
</Model>
<Model id="Table2" name="Table2" orientation="Right Handed" position="0 2.88508e-15 -2.01644e-14" rotation="90 -0 0" rotationorder="XYZr" scale="1 1 1" sourcepath=".\meshes\Table2.mesh#1" >
<Material id="Table3" name="Table3" blendmode="Normal" diffuse="0.287072 0.241009 0.103064" emissivepower="0" opacity="100" specularamount="0" specularroughness="9.60784" />
<Material id="BaseCabin1" name="BaseCabin1" blendmode="Normal" diffuse="0.202354 0.202354 0.202354" emissivepower="0" opacity="100" specularamount="0" specularroughness="9.60784" />
</Model>
</Group>
<Group id="Group_Animated" name="Group_Animated" orientation="Right Handed" position="0 0 -0" rotation="-90 -0 0" rotationorder="XYZr" scale="2.01491 2.01491 2.01491" >
<Model id="inCup_Coffee" name="inCup_Coffee" orientation="Right Handed" position="0.0350145 0.0350145 -3.6434" rotation="0.0350145 0.0350145 0.0350145" rotationorder="XYZr" scale="1.37255 1.37255 1.37255" sourcepath=".\meshes\inCup_Coffee.mesh#1" >
<AnimationTrack property="position.x" type="EaseInOut" >0.791667 0.0350145 100 100 1.25 0.0350145 100 100 2.20833 0.0350145 100 100</AnimationTrack>
<AnimationTrack property="position.y" type="EaseInOut" >0.791667 0.0350147 100 100 1.25 0.0350146 100 100 2.20833 0.0350144 100 100</AnimationTrack>
<AnimationTrack property="position.z" type="EaseInOut" >0.791667 -2.53259 100 100 1.25 -2.9409 100 100 2.20833 -3.94604 100 100</AnimationTrack>
<AnimationTrack property="scale.x" type="EaseInOut" >0.791667 0.936815 100 100 1.25 1.13464 100 100 2.20833 1.46861 100 100</AnimationTrack>
<AnimationTrack property="scale.y" type="EaseInOut" >0.791667 0.936815 100 100 1.25 1.13464 100 100 2.20833 1.46861 100 100</AnimationTrack>
<AnimationTrack property="scale.z" type="EaseInOut" >0.791667 0.936815 100 100 1.25 1.13464 100 100 2.20833 1.46861 100 100</AnimationTrack>
<Material id="Coffee1" name="Coffee1" blendmode="Normal" diffuse="0.0355637 0.0207541 0.00840018" emissivepower="0" opacity="100" specularamount="0" specularroughness="9.60784" />
</Model>
<Model id="fromMachine_Coffee" name="fromMachine_Coffee" orientation="Right Handed" position="0.5 1.04192e-08 -6.67731" rotation="0 -0 0" rotationorder="XYZr" scale="0.997213 0.997213 5.56623" sourcepath=".\meshes\fromMachine_Coffee.mesh#1" >
<AnimationTrack property="position.x" type="EaseInOut" >0.0416667 0.5 100 100 0.291667 0.5 100 100 1 0.5 100 100 1.95833 0.5 100 100 2.33333 0.5 100 100</AnimationTrack>
<AnimationTrack property="position.y" type="EaseInOut" >0.0416667 1.04192e-08 100 100 0.291667 1.04192e-08 100 100 1 1.04192e-08 100 100 1.95833 1.04192e-08 100 100 2.33333 5.6618e-07 100 100</AnimationTrack>
<AnimationTrack property="position.z" type="EaseInOut" >0.0416667 -6.67731 100 100 0.291667 -6.67731 100 100 1 -6.67731 100 100 1.95833 -6.67731 100 100 2.33333 -3.26608 100 100</AnimationTrack>
<AnimationTrack property="scale.x" type="EaseInOut" >0.0416667 0.997213 100 100 0.291667 0.997213 100 100 1 0.997213 100 100 1.95833 0.997213 100 100 2.33333 0.997213 100 100</AnimationTrack>
<AnimationTrack property="scale.y" type="EaseInOut" >0.0416667 0.997213 100 100 0.291667 0.997213 100 100 1 0.997213 100 100 1.95833 0.997213 100 100 2.33333 0.997213 100 100</AnimationTrack>
<AnimationTrack property="scale.z" type="EaseInOut" >0.0416667 1.08304 100 100 0.291667 1.08304 100 100 1 5.56623 100 100 1.95833 5.56623 100 100 2.33333 0.527402 100 100</AnimationTrack>
<Material id="Coffee1_0001" name="Coffee1" blendmode="Normal" diffuse="0.0355637 0.0207541 0.00840018" emissivepower="0" opacity="100" specularamount="0" specularroughness="9.60784" />
</Model>
<Model id="fromMachine_Milk" name="fromMachine_Milk" orientation="Right Handed" position="-0.49754 0.0487237 -6.72604" rotation="0.00850864 0.00850865 0.0487237" rotationorder="XYZr" scale="1.04872 1.04872 6.00539" sourcepath=".\meshes\fromMachine_Milk.mesh#1" >
<AnimationTrack property="scale.x" type="EaseInOut" >1.33333 1.04872 100 100 1.625 1.04872 100 100 2 1.04872 100 100 2.29167 1.04872 100 100</AnimationTrack>
<AnimationTrack property="scale.y" type="EaseInOut" >1.33333 1.04872 100 100 1.625 1.04872 100 100 2 1.04872 100 100 2.29167 1.04872 100 100</AnimationTrack>
<AnimationTrack property="scale.z" type="EaseInOut" >1.33333 1.1622 100 100 1.625 6.00539 100 100 2 6.00539 100 100 2.29167 0.168512 100 100</AnimationTrack>
<AnimationTrack property="position.x" type="EaseInOut" >1.33333 -0.49754 100 100 1.625 -0.49754 100 100 2 -0.49754 100 100 2.29167 -0.49754 100 100</AnimationTrack>
<AnimationTrack property="position.y" type="EaseInOut" >1.33333 0.0487237 100 100 1.625 0.0487237 100 100 2 0.0487237 100 100 2.29167 0.0487243 100 100</AnimationTrack>
<AnimationTrack property="position.z" type="EaseInOut" >1.33333 -6.72604 100 100 1.625 -6.72604 100 100 2 -6.72604 100 100 2.29167 -3.22301 100 100</AnimationTrack>
<Material id="Milk1" name="Milk1" blendmode="Normal" diffuse="0.64 0.64 0.64" emissivepower="0" opacity="100" specularamount="0" specularroughness="9.60784" />
</Model>
</Group>
</Group>
</Graph>
<Import SrcFile="..\..\CoffeeDemo\Assets\coffeeAnimated.fbx" ImageDir="Images" MeshDir="Meshes" >
<Image >
<Source >.\coffeeAnimated.fbm\CupTexture.png</Source>
<Dest >.\maps\CupTexture.png</Dest>
</Image>
<Mesh >
<Source >MachineBottomPart</Source>
<Dest >.\meshes\MachineBottomPart.mesh</Dest>
</Mesh>
<Mesh >
<Source >Machine2</Source>
<Dest >.\meshes\Machine2.mesh</Dest>
</Mesh>
<Mesh >
<Source >WallTiles</Source>
<Dest >.\meshes\WallTiles.mesh</Dest>
</Mesh>
<Mesh >
<Source >fromMachine_Coffee</Source>
<Dest >.\meshes\fromMachine_Coffee.mesh</Dest>
</Mesh>
<Mesh >
<Source >inCup_Coffee</Source>
<Dest >.\meshes\inCup_Coffee.mesh</Dest>
</Mesh>
<Mesh >
<Source >fromMachine_Milk</Source>
<Dest >.\meshes\fromMachine_Milk.mesh</Dest>
</Mesh>
<Mesh >
<Source >Table2</Source>
<Dest >.\meshes\Table2.mesh</Dest>
</Mesh>
<Mesh >
<Source >Cup</Source>
<Dest >.\meshes\Cup.mesh</Dest>
</Mesh>
</Import>
</Project>
</UIP>
<?xml version="1.0" encoding="UTF-8" ?>
<Effect>
<MetaData>
<Property name="strenght_gray" formalName="Effect Strenght" min="0" max="1" default="1.0" description="Strenght of the Grayscale"/>
</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);
gl_FragColor = desaturate(origColor.rgb,strenght_gray);
}
]]></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>
# Qt 3D Studio Coffee Maker Demo
This demo design is created with Qt 3D Studio.
It uses a Qt 3D presentation (.uip file) to play a short animation.
![Coffee Maker Demo](/CoffeeMaker/images/coffeemaker.png)
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