Skip to content

Instantly share code, notes, and snippets.

@t-artikov
Created November 14, 2017 19:54
Show Gist options
  • Save t-artikov/4215eae5a56123a43433ee787a52c56e to your computer and use it in GitHub Desktop.
Save t-artikov/4215eae5a56123a43433ee787a52c56e to your computer and use it in GitHub Desktop.
import QtQuick 2.0
import QtQuick.Window 2.0
import Render3D 1.0
Window {
id: root
width: 1024
height: 768
visible: true
SceneView {
anchors.fill: parent
scene: Scene {
id: scene
source: "boxes.fbx"
}
}
Item {
id: qtQuickScene
visible: false
layer.enabled: true
...
}
Binding {
target: scene.nodes.find("Box01").material
property: "diffuseTexture"
value: QtQuickTexture {
source: qtQuickScene
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment