Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
Quick3d Dynamic Texture Input
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yuya Nishihara
Quick3d Dynamic Texture Input
Commits
765398e6
Commit
765398e6
authored
4 years ago
by
Yuya Nishihara
Browse files
Options
Downloads
Patches
Plain Diff
add some 2D/3D items
parent
f4d5bf4b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
main.qml
+132
-0
132 additions, 0 deletions
main.qml
with
132 additions
and
0 deletions
main.qml
+
132
−
0
View file @
765398e6
import
QtQuick
2.15
import
QtQuick
2.15
import
QtQuick
.
Layouts
1.15
import
QtQuick
.
Window
2.15
import
QtQuick
.
Window
2.15
import
QtQuick3D
1.15
Window
{
Window
{
id
:
root
property
int
tick
:
0
width
:
640
width
:
640
height
:
480
height
:
480
visible
:
true
visible
:
true
title
:
qsTr
(
"
Hello World
"
)
title
:
qsTr
(
"
Hello World
"
)
RowLayout
{
anchors.fill
:
parent
Item
{
Layout.fillWidth
:
true
Layout.fillHeight
:
true
Item
{
anchors.centerIn
:
parent
Rectangle
{
x
:
-
120
-
width
/
2
y
:
-
height
/
2
width
:
100
height
:
100
color
:
"
lightgray
"
Text
{
anchors.centerIn
:
parent
text
:
root
.
tick
}
}
ShaderEffectSource
{
x
:
120
-
width
/
2
y
:
-
height
/
2
width
:
100
height
:
100
sourceItem
:
Rectangle
{
width
:
100
height
:
100
color
:
"
lightblue
"
Text
{
anchors.centerIn
:
parent
text
:
root
.
tick
}
}
}
}
}
View3D
{
Layout.fillWidth
:
true
Layout.fillHeight
:
true
OrthographicCamera
{
position
:
Qt
.
vector3d
(
0
,
0
,
100
)
}
DirectionalLight
{
position
:
Qt
.
vector3d
(
0
,
0
,
100
)
brightness
:
100
}
Node
{
position
:
Qt
.
vector3d
(
-
120
,
0
,
0
)
Rectangle
{
anchors.centerIn
:
parent
// default of Qt 5
width
:
100
height
:
100
color
:
"
lightgray
"
Text
{
anchors.centerIn
:
parent
text
:
root
.
tick
}
}
}
Node
{
position
:
Qt
.
vector3d
(
0
,
0
,
0
)
Rectangle
{
anchors.centerIn
:
parent
// default of Qt 5
width
:
100
height
:
100
color
:
"
lightcyan
"
layer.enabled
:
true
Text
{
anchors.centerIn
:
parent
text
:
root
.
tick
}
}
}
Node
{
position
:
Qt
.
vector3d
(
120
,
0
,
0
)
ShaderEffectSource
{
anchors.centerIn
:
parent
// default of Qt 5
width
:
100
height
:
100
sourceItem
:
Rectangle
{
width
:
100
height
:
100
color
:
"
lightblue
"
Text
{
anchors.centerIn
:
parent
text
:
root
.
tick
}
}
}
}
Model
{
position
:
Qt
.
vector3d
(
0
,
0
,
10
)
scale
:
Qt
.
vector3d
(
0.2
,
0.2
,
0.2
)
source
:
"
#Sphere
"
opacity
:
0.1
materials
:
DefaultMaterial
{
diffuseColor
:
"
blue
"
}
}
}
}
Timer
{
interval
:
1000
repeat
:
true
running
:
true
onTriggered
:
{
root
.
tick
+=
1
}
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment