Commit 414bc791 authored by Tomi Korpipää's avatar Tomi Korpipää
Browse files

Modify kria cluster for OpenGL runtime

parent ae9bb304
TEMPLATE = app
QT += qml quick 3dstudioruntime2
QT += qml quick
#target.path = $$[QT_INSTALL_EXAMPLES]/studio3d/$$TARGET
target.path = /opt/$$TARGET
target.path = $$[QT_INSTALL_EXAMPLES]/studio3d/$$TARGET
INSTALLS += target
SOURCES += main.cpp
......
......@@ -2,12 +2,9 @@
<qresource prefix="/">
<file alias="main.qml">qml/main.qml</file>
<file alias="SimuData.qml">qml/SimuData.qml</file>
<file>presentation/mainPresentation.uia</file>
<file>qml/fonts/TitilliumWeb-SemiBold.ttf</file>
<file>presentation/fonts/TitilliumWeb-Regular.ttf</file>
<file>main.cpp</file>
<file alias="FpsDisplay.qml">qml/FpsDisplay.qml</file>
<file>presentation/effects/VignetteEffect.effect</file>
<file>presentation/fonts/TitilliumWeb-Regular.ttf</file>
<file>presentation/meshes/Car/maps/outUV_normals.png</file>
<file>presentation/meshes/Car/maps/Seats_diffuse.jpg</file>
<file>presentation/meshes/Car/maps/Seats_normal.jpg</file>
......@@ -15,10 +12,7 @@
<file>presentation/meshes/Car/maps/Wheel_specular.jpg</file>
<file>presentation/meshes/Car/meshes/body.mesh</file>
<file>presentation/meshes/Car/meshes/Car.mesh</file>
<file>presentation/meshes/Car/meshes/Wheel_Back_Left.mesh</file>
<file>presentation/meshes/Car/meshes/Wheel_Back_Right.mesh</file>
<file>presentation/meshes/Car/meshes/Wheel_Front_Left.mesh</file>
<file>presentation/meshes/Car/meshes/Wheel_Front_Right.mesh</file>
<file>presentation/meshes/Car/Car.import</file>
<file>presentation/meshes/GaugeCenter/meshes/centerTacho.mesh</file>
<file>presentation/meshes/GaugeCenter/gaugecenter.import</file>
......@@ -40,5 +34,6 @@
<file>presentation/presentations/mainPresentation.uip</file>
<file>presentation/presentations/speedBackground.uip</file>
<file>presentation/presentations/tachoBackground.uip</file>
<file>presentation/mainPresentation.uia</file>
</qresource>
</RCC>
......@@ -50,19 +50,15 @@
#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QtGui/QFontDatabase>
#include <q3dsruntimeglobal.h>
int main(int argc, char *argv[])
{
// qputenv("Q3DS_NO_DRAGONWINGS", "1");
// qputenv("Q3DS_DRAGON", "1");
qputenv("QT_QPA_EGLFS_HIDECURSOR", "1");
// qputenv("QT_QPA_EGLFS_DISABLE_INPUT", "1");
qputenv("QT_QPA_EGLFS_WIDTH", "1920");
qputenv("QT_QPA_EGLFS_HEIGHT", "1080");
qputenv("QT_QPA_EGLFS_PHYSICAL_WIDTH", "293");
qputenv("QT_QPA_EGLFS_PHYSICAL_HEIGHT", "110");
// qputenv("QSG_RENDER_LOOP", "basic");
qputenv("QSG_RENDER_LOOP", "threaded");
// Debugging
......@@ -77,8 +73,6 @@ int main(int argc, char *argv[])
QGuiApplication app(argc, argv);
QSurfaceFormat::setDefaultFormat(Q3DS::surfaceFormat());
QFontDatabase::addApplicationFont("qrc:/presentation/fonts/TitilliumWeb-Regular.ttf");
QFont defaultFont;
defaultFont.setFamily("Titillium Web");
......
<?xml version="1.0" encoding="UTF-8" ?>
<?xml version='1.0' encoding='UTF-8'?>
<application>
<assets initial="mainPresentation">
<dataInput name="mainSlide" type="String"/>
......@@ -14,15 +14,15 @@
<presentation id="contentPresentation" src="presentations/contentPresentation.uip"/>
<presentation id="digitalSpeed" src="presentations/digitalSpeed.uip"/>
<presentation id="digitalTacho" src="presentations/digitalTacho.uip"/>
<presentation id="SpeedBackground" src="presentations/speedBackground.uip"/>
<presentation id="TachoBackground" src="presentations/tachoBackground.uip"/>
<presentation id="speedBackground" src="presentations/speedBackground.uip"/>
<presentation id="tachoBackground" src="presentations/tachoBackground.uip"/>
<presentation-qml id="navigationStream" args="../qml/Navigation.qml"/>
</assets>
<statemachine ref="#logic">
<visual-states>
<state ref="Initial">
<enter>
<goto-slide element="main:Scene" rel="next"/>
<goto-slide rel="next" element="main:Scene"/>
</enter>
</state>
</visual-states>
......
......@@ -4,16 +4,13 @@
<ProjectSettings author="" company="" presentationWidth="1024" presentationHeight="1024" maintainAspect="False" preferKtx="False" >
<CustomColors count="16" >#ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff</CustomColors>
</ProjectSettings>
<BufferData >
<ImageBuffer sourcepath="../meshes/Car/maps/outUV_normals.png" hasTransparency="True" />
</BufferData>
<Graph >
<Scene id="Scene" bgcolorenable="False" >
<Layer id="Layer" variants="" >
<Camera id="Camera" />
<Light id="Light" />
<Group id="Car" importid="__import__root__" >
<Model id="Car_001" name="Car" importid="Car" orientation="Right Handed" position="0 0 -0" rotation="-90 -0 0" rotationorder="XYZr" scale="0.387697 0.387697 0.387697" sourcepath="../meshes/Car/meshes/Car.mesh" >
<Group id="Car" variants="" importid="__import__root__" >
<Model id="Car_001" variants="" name="Car" importid="Car" orientation="Right Handed" position="0 0 -0" rotation="-90 -0 0" rotationorder="XYZr" scale="0.387697 0.387697 0.387697" sourcepath="../meshes/Car/meshes/Car.mesh" >
<Material id="Brakes" name="Brakes" blendmode="Normal" diffuse="0.64 0.64 0.64" emissivepower="0" importid="Brakes" opacity="100" specularamount="0" specularroughness="9.60784" />
<Material id="SmallDetails" name="SmallDetails" blendmode="Normal" diffuse="0 0 0" emissivepower="0" importid="SmallDetails" opacity="100" specularamount="0" specularroughness="9.60784" />
<Material id="Seats" name="Seats" blendmode="Normal" diffuse="0.0954207 0.0954207 0.0954207" emissivepower="0" importid="Seats" opacity="100" specularamount="0" specularroughness="9.60784" >
......@@ -25,26 +22,26 @@
</Material>
<Material id="CarBottom" name="CarBottom" blendmode="Normal" diffuse="0.64 0.64 0.64" emissivepower="0" importid="CarBottom" opacity="100" specularamount="0" specularroughness="9.60784" />
<Material id="Interior" name="Interior" blendmode="Normal" diffuse="0.64 0.64 0.64" emissivepower="0" importid="Interior" opacity="100" specularamount="0" specularroughness="9.60784" />
<Model id="body" name="body" importid="body" orientation="Right Handed" position="0 0 -0" rotation="1.51661e-21 -0 0" rotationorder="XYZr" scale="1 1 1" sourcepath="../meshes/Car/meshes/body.mesh" >
<Model id="body" variants="" name="body" importid="body" orientation="Right Handed" position="0 0 -0" rotation="1.51661e-21 -0 0" rotationorder="XYZr" scale="1 1 1" sourcepath="../meshes/Car/meshes/body.mesh" >
<Material id="lambert2" name="lambert2" blendmode="Normal" diffuse="1 1 1" emissivepower="0" importid="lambert2" opacity="100" specularamount="0" >
<Image id="lambert2_normalmap" />
</Material>
</Model>
<Model id="Wheel_Back_Left" name="Wheel_Back_Left" importid="Wheel_Back_Left" orientation="Right Handed" position="86.6948 114.27 -34.7378" rotation="90 -1.34352e-13 180" rotationorder="XYZr" scale="38.1413 38.1413 38.1413" sourcepath="../meshes/Car/meshes/Wheel_Back_Left.mesh" >
<ReferencedMaterial id="Wheel_001" />
<Model id="Wheel_Back_Left" variants="" name="Wheel_Back_Left" importid="Wheel_Back_Left" orientation="Right Handed" position="86.6948 114.27 -34.7378" rotation="90 -1.34352e-13 180" rotationorder="XYZr" scale="38.1413 38.1413 38.1413" sourcepath="../meshes/Car/meshes/Wheel_Back_Right.mesh" >
<ReferencedMaterial id="Wheel_001" name="Wheel" />
</Model>
<Model id="Wheel_Back_Right" name="Wheel_Back_Right" importid="Wheel_Back_Right" orientation="Right Handed" position="-89.4333 114.27 -34.7378" rotation="90 -0 0" rotationorder="XYZr" scale="38.1413 38.1413 38.1413" sourcepath="../meshes/Car/meshes/Wheel_Back_Right.mesh" >
<Model id="Wheel_Back_Right" variants="" name="Wheel_Back_Right" importid="Wheel_Back_Right" orientation="Right Handed" position="-89.4333 114.27 -34.7378" rotation="90 -0 0" rotationorder="XYZr" scale="38.1413 38.1413 38.1413" sourcepath="../meshes/Car/meshes/Wheel_Back_Right.mesh" >
<Material id="Wheel" name="Wheel" blendmode="Normal" diffuse="0.64 0.64 0.64" emissivepower="0" importid="Wheel" opacity="100" specularamount="0" specularroughness="9.60784" >
<Image id="Wheel_specularreflection" />
<Image id="Wheel_specularmap" />
<Image id="Wheel_normalmap" />
</Material>
</Model>
<Model id="Wheel_Front_Left" name="Wheel_Front_Left" importid="Wheel_Front_Left" orientation="Right Handed" position="86.6948 -145.909 -34.7378" rotation="90 -1.34352e-13 180" rotationorder="XYZr" scale="38.1413 38.1413 38.1413" sourcepath="../meshes/Car/meshes/Wheel_Front_Left.mesh" >
<ReferencedMaterial id="Wheel_002" />
<Model id="Wheel_Front_Left" variants="" name="Wheel_Front_Left" importid="Wheel_Front_Left" orientation="Right Handed" position="86.6948 -145.909 -34.7378" rotation="90 -1.34352e-13 180" rotationorder="XYZr" scale="38.1413 38.1413 38.1413" sourcepath="../meshes/Car/meshes/Wheel_Back_Right.mesh" >
<ReferencedMaterial id="Wheel_002" name="Wheel" />
</Model>
<Model id="Wheel_Front_Right" name="Wheel_Front_Right" importid="Wheel_Front_Right" orientation="Right Handed" position="-89.4333 -145.909 -34.7378" rotation="90 -0 0" rotationorder="XYZr" scale="38.1413 38.1413 38.1413" sourcepath="../meshes/Car/meshes/Wheel_Front_Right.mesh" >
<ReferencedMaterial id="Wheel_003" />
<Model id="Wheel_Front_Right" variants="" name="Wheel_Front_Right" importid="Wheel_Front_Right" orientation="Right Handed" position="-89.4333 -145.909 -34.7378" rotation="90 -0 0" rotationorder="XYZr" scale="38.1413 38.1413 38.1413" sourcepath="../meshes/Car/meshes/Wheel_Back_Right.mesh" >
<ReferencedMaterial id="Wheel_003" name="Wheel" />
</Model>
</Model>
</Group>
......@@ -53,11 +50,11 @@
</Graph>
<Logic >
<State name="Master Slide" component="#Scene" >
<Add ref="#Layer" disabledepthprepass="True" multisampleaa="4x" />
<Add ref="#Camera" fov="13.2" position="0 242 -600" rotation="17 0 0" />
<Add ref="#Light" brightness="100" castshadow="False" expfade="500" lightambient="0 0 0" lighttype="Point" linearfade="0" position="0 31.4202 97.0824" rotation="0 0 0" />
<Add ref="#Layer" disabledepthprepass="False" multisampleaa="None" />
<Add ref="#Camera" clipfar="1000" clipnear="700" fov="13" position="0 242 -600" rotation="17 0 0" />
<Add ref="#Light" brightness="100" castshadow="False" expfade="200" lightambient="0.196078 0.196078 0.196078" lighttype="Point" linearfade="0" position="0 31.4202 77.352" rotation="0 0 0" />
<Add ref="#Car" name="Car" importfile="../meshes/Car/Car.import" position="0 -24.7187 194" rotation="0 40 0" sourcepath="../meshes/Car/Car.import" />
<Add ref="#Car_001" importfile="../meshes/Car/Car.import" >
<Add ref="#Car_001" importfile="../meshes/Car/Car.import" shadowcaster="False" sourcepath="../meshes/Car/meshes/Car.mesh" >
<AnimationTrack property="position.x" type="EaseInOut" >0 0 100 100 2.971 -0.586441 100 100 8 0 100 100</AnimationTrack>
<AnimationTrack property="position.y" type="EaseInOut" >0 0 100 100 2.971 0 100 100 8 0 100 100</AnimationTrack>
<AnimationTrack property="position.z" type="EaseInOut" >0 3 100 100 2.971 -4.86288 100 100 8 3 100 100</AnimationTrack>
......@@ -74,16 +71,16 @@
<Add ref="#Glass_specularreflection" mappingmode="Environmental Mapping" sourcepath="Gauges/maps/environment.jpg" />
<Add ref="#CarBottom" diffuse="0.101961 0.101961 0.101961" importfile="../meshes/Car/Car.import" shaderlighting="None" />
<Add ref="#Interior" diffuse="0.0901961 0.0901961 0.0901961" importfile="../meshes/Car/Car.import" />
<Add ref="#body" importfile="../meshes/Car/Car.import" />
<Add ref="#body" importfile="../meshes/Car/Car.import" shadowcaster="False" />
<Add ref="#lambert2" bumpamount="1" controlledproperty="$displayColor diffuse" diffuse="0.870588 0 0" fresnelPower="5" importfile="../meshes/Car/Car.import" ior="0.3" normalmap="#lambert2_normalmap" opacity="100" specularamount="30" specularmodel="KWard" specularroughness="0.05" speculartint="1 1 1" />
<Add ref="#lambert2_normalmap" sourcepath="Car/maps/outUV_normals.png" />
<Add ref="#Wheel_Back_Left" importfile="../meshes/Car/Car.import" scale="90 38.141 38.141" >
<Add ref="#Wheel_Back_Left" importfile="../meshes/Car/Car.import" scale="90 38.141 38.141" shadowcaster="False" sourcepath="../meshes/Car/meshes/Wheel_Back_Right.mesh" >
<AnimationTrack property="rotation.x" type="EaseInOut" >0 720 0 0 8 0 0 0</AnimationTrack>
<AnimationTrack property="rotation.y" type="EaseInOut" >0 0 0 0 8 -0 0 0</AnimationTrack>
<AnimationTrack property="rotation.z" type="EaseInOut" >0 180 0 0 8 180 0 0</AnimationTrack>
</Add>
<Add ref="#Wheel_001" name="Wheel" referencedmaterial="#Wheel" />
<Add ref="#Wheel_Back_Right" importfile="../meshes/Car/Car.import" >
<Add ref="#Wheel_Back_Right" importfile="../meshes/Car/Car.import" shadowcaster="False" >
<AnimationTrack property="rotation.x" type="EaseInOut" >0 0 0 0 8 720 0 0</AnimationTrack>
<AnimationTrack property="rotation.y" type="EaseInOut" >0 0 0 0 8 0 0 0</AnimationTrack>
<AnimationTrack property="rotation.z" type="EaseInOut" >0 0 0 0 8 0 0 0</AnimationTrack>
......@@ -92,13 +89,13 @@
<Add ref="#Wheel_specularreflection" mappingmode="Environmental Mapping" sourcepath="Gauges/maps/environment.jpg" />
<Add ref="#Wheel_specularmap" sourcepath="../meshes/Car/maps/Wheel_specular.jpg" />
<Add ref="#Wheel_normalmap" sourcepath="../meshes/Car/maps/Wheel_normal.jpg" />
<Add ref="#Wheel_Front_Left" importfile="../meshes/Car/Car.import" >
<Add ref="#Wheel_Front_Left" importfile="../meshes/Car/Car.import" shadowcaster="False" sourcepath="../meshes/Car/meshes/Wheel_Back_Right.mesh" >
<AnimationTrack property="rotation.x" type="EaseInOut" >0 720 0 0 8 0 0 0</AnimationTrack>
<AnimationTrack property="rotation.y" type="EaseInOut" >0 0 0 0 8 0 0 0</AnimationTrack>
<AnimationTrack property="rotation.z" type="EaseInOut" >0 180 0 0 8 180 0 0</AnimationTrack>
</Add>
<Add ref="#Wheel_002" name="Wheel" referencedmaterial="#Wheel" />
<Add ref="#Wheel_Front_Right" importfile="../meshes/Car/Car.import" >
<Add ref="#Wheel_Front_Right" importfile="../meshes/Car/Car.import" shadowcaster="False" sourcepath="../meshes/Car/meshes/Wheel_Back_Right.mesh" >
<AnimationTrack property="rotation.x" type="EaseInOut" >0 0 0 0 8 720 0 0</AnimationTrack>
<AnimationTrack property="rotation.y" type="EaseInOut" >0 0 0 0 8 0 0 0</AnimationTrack>
<AnimationTrack property="rotation.z" type="EaseInOut" >0 0 0 0 8 0 0 0</AnimationTrack>
......
......@@ -16,7 +16,7 @@
<Logic >
<State name="Master Slide" component="#Scene" >
<Add ref="#Layer" background="SolidColor" disabledepthprepass="True" disabledepthtest="True" />
<Add ref="#Camera" orthographic="True" />
<Add ref="#Camera" clipfar="600" clipnear="500" orthographic="True" />
<State id="Scene-Slide1" name="Slide1" >
<Add ref="#speed" name="speed" controlledproperty="$speedText textstring" font="TitilliumWeb-Regular" position="0 40 0" size="90" textstring="0" />
<Add ref="#kmh" name="kmh" controlledproperty="$speedUnitSlide textstring" font="TitilliumWeb-Regular" position="0 -40 0" size="30" textstring="kph" />
......
......@@ -16,7 +16,7 @@
<Logic >
<State name="Master Slide" component="#Scene" >
<Add ref="#Layer" background="SolidColor" disabledepthprepass="True" disabledepthtest="True" />
<Add ref="#Camera" orthographic="True" />
<Add ref="#Camera" clipfar="600" clipnear="500" orthographic="True" />
<State id="Scene-Slide1" name="Slide1" >
<Add ref="#rpm" name="rpm" font="TitilliumWeb-Regular" position="0 -40 0" rotation="0 0 0" size="30" textstring="rpm x 1000" />
<Add ref="#tacho" name="tacho" controlledproperty="$tachoText textstring" font="TitilliumWeb-Regular" opacity="99" position="0 40 0" size="90" textstring="0.0" />
......
......@@ -12,18 +12,18 @@
<Scene id="Scene" controlledproperty="$speedUnitSlide @slide" >
<Layer id="Layer" variants="" >
<Camera id="Camera" />
<Model id="speed_mph_new" >
<Model id="speed_mph_new" variants="" >
<Material id="Material" >
<Image id="Material_diffusemap" />
</Material>
</Model>
<Model id="speed_new" >
<Model id="speed_new" variants="" >
<Material id="Material_001" >
<Image id="Material_001_diffusemap" />
</Material>
</Model>
<Component id="gaugespeed_background" >
<Model id="gaugespeed_background_001" >
<Model id="gaugespeed_background_001" variants="" >
<Material id="Material_002" >
<Image id="Material_002_diffusemap" />
</Material>
......@@ -35,13 +35,13 @@
<Logic >
<State name="Master Slide" component="#Scene" >
<Add ref="#Layer" name="SpeedTextures" aosoftness="49.5" background="Transparent" disabledepthprepass="True" disabledepthtest="False" width="100" />
<Add ref="#Camera" orthographic="True" />
<Add ref="#speed_mph_new" name="speed_mph" opacity="100" scale="5.12 5.12 1" sourcepath="#Rectangle" >
<Add ref="#Camera" clipfar="600" clipnear="500" orthographic="True" />
<Add ref="#speed_mph_new" name="speed_mph" opacity="100" scale="5.12 5.12 1" shadowcaster="False" sourcepath="#Rectangle" >
<AnimationTrack property="opacity" type="EaseInOut" >0 100 0 0</AnimationTrack>
</Add>
<Add ref="#Material" diffusemap="#Material_diffusemap" shaderlighting="None" />
<Add ref="#Material_diffusemap" sourcepath="../meshes/Gauges/maps/gaugespeed_mph.png" />
<Add ref="#speed_new" name="speed_kph" opacity="100" scale="5.12 5.12 1" sourcepath="#Rectangle" >
<Add ref="#speed_new" name="speed_kph" opacity="100" scale="5.12 5.12 1" shadowcaster="False" sourcepath="#Rectangle" >
<AnimationTrack property="opacity" type="EaseInOut" >0 100 0 0</AnimationTrack>
</Add>
<Add ref="#Material_001" diffusemap="#Material_001_diffusemap" shaderlighting="None" />
......@@ -71,7 +71,7 @@
</State>
</State>
<State name="Master Slide" component="#gaugespeed_background" >
<Add ref="#gaugespeed_background_001" name="gaugespeed_background" endtime="1000" scale="5.12 5.12 1" sourcepath="#Rectangle" />
<Add ref="#gaugespeed_background_001" name="gaugespeed_background" endtime="1000" scale="5.12 5.12 1" shadowcaster="False" sourcepath="#Rectangle" />
<Add ref="#Material_002" diffuse="1 1 1" diffusemap="#Material_002_diffusemap" shaderlighting="None" >
<AnimationTrack property="diffuse.x" type="EaseInOut" >0 1 0 0</AnimationTrack>
<AnimationTrack property="diffuse.y" type="EaseInOut" >0 1 0 0</AnimationTrack>
......
......@@ -11,13 +11,13 @@
<Scene id="Scene" >
<Layer id="Layer" variants="" >
<Camera id="Camera" />
<Model id="speed_mph_new" >
<Model id="speed_mph_new" variants="" >
<Material id="Material" >
<Image id="Material_diffusemap" />
</Material>
</Model>
<Component id="gaugespeed_background" >
<Model id="gaugespeed_background_001" >
<Model id="gaugespeed_background_001" variants="" >
<Material id="Material_002" >
<Image id="Material_002_diffusemap" />
</Material>
......@@ -29,8 +29,8 @@
<Logic >
<State name="Master Slide" component="#Scene" >
<Add ref="#Layer" name="TachoTextures" background="Transparent" disabledepthprepass="True" disabledepthtest="False" />
<Add ref="#Camera" orthographic="True" />
<Add ref="#speed_mph_new" name="tacho" opacity="100" scale="5.12 5.12 1" sourcepath="#Rectangle" >
<Add ref="#Camera" clipfar="600" clipnear="500" orthographic="True" />
<Add ref="#speed_mph_new" name="tacho" opacity="100" scale="5.12 5.12 1" shadowcaster="False" sourcepath="#Rectangle" >
<AnimationTrack property="opacity" type="EaseInOut" >0 100 0 0</AnimationTrack>
</Add>
<Add ref="#Material" diffusemap="#Material_diffusemap" shaderlighting="None" />
......@@ -46,7 +46,7 @@
</State>
</State>
<State name="Master Slide" component="#gaugespeed_background" >
<Add ref="#gaugespeed_background_001" name="gaugetacho_background" endtime="1000" scale="5.12 5.12 1" sourcepath="#Rectangle" />
<Add ref="#gaugespeed_background_001" name="gaugetacho_background" endtime="1000" scale="5.12 5.12 1" shadowcaster="False" sourcepath="#Rectangle" />
<Add ref="#Material_002" diffuse="1 1 1" diffusemap="#Material_002_diffusemap" shaderlighting="None" >
<AnimationTrack property="diffuse.x" type="EaseInOut" >0 1 0 0</AnimationTrack>
<AnimationTrack property="diffuse.y" type="EaseInOut" >0 1 0 0</AnimationTrack>
......
......@@ -50,8 +50,7 @@
import QtQuick 2.12
import QtQuick.Window 2.12
import QtStudio3D 2.3
//import QtStudio3D 1.1
import QtStudio3D.OpenGL 2.4
import QtQuick.Controls 2.1
Window {
......@@ -61,7 +60,7 @@ Window {
visible: true
color: "#000000"
title: "Qt 3D Studio Kria 3D Cluster Demo"
visibility: Window.FullScreen
//visibility: Window.FullScreen
property bool startupAnimation: true
property bool allowSelection: true
......@@ -94,28 +93,17 @@ Window {
readonly property int framesBetweenUpdates: 5 // Use a 5 frame average for the FPS counter
readonly property int secondsBetweenUpdates: 60 // Use a 1 minute average for the average FPS counter
// RT1
// onFrameSwapped: {
// frames++;
// avgFrames++;
// }
Studio3D {
id: studio3D
width: parent.width
height: parent.height
anchors.verticalCenter: parent.verticalCenter
// RT2
onFrameUpdate: {
frames++;
avgFrames++;
}
// ViewerSettings {
// scaleMode: ViewerSettings.ScaleModeFit
// }
Presentation {
id: cluster
source: "qrc:/presentation/mainPresentation.uia"
......
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