I have .obj model of wheel. In the viewer it loads and looks correct.
When I load this .obj model throuth SceneLoader all righth, but there are only fragment of tyre protector texture.
Texture does not repeated. How do I set up the renderer so that the texture repeats?

My code:
Qt Code:
  1. import QtQuick 2.5
  2. import QtQuick.Controls 1.4
  3.  
  4. import QtQuick.Scene3D 2.0
  5. import Qt3D.Core 2.0
  6. import Qt3D.Render 2.0
  7. import Qt3D.Input 2.0
  8. import Qt3D.Extras 2.0
  9.  
  10.  
  11. ApplicationWindow {
  12. visible: true
  13. width: 640
  14. height: 480
  15. title: qsTr("Hello World")
  16.  
  17.  
  18. Rectangle {
  19. id: scene
  20. anchors.fill: parent
  21. anchors.margins: 0
  22. color: "darkGray"
  23.  
  24. Scene3D {
  25. id: scene3d
  26. anchors.fill: parent
  27. anchors.margins: 0
  28. focus: true
  29. aspects: ["input", "logic"]
  30. cameraAspectRatioMode: Scene3D.AutomaticAspectRatio
  31. visible:true
  32.  
  33. Entity {
  34. id: sceneRoot
  35. Camera {
  36. id: camera
  37. projectionType: CameraLens.PerspectiveProjection
  38. fieldOfView: 45
  39. nearPlane : 0.1
  40. farPlane : 1000.0
  41. position: Qt.vector3d( 0.0, 0.0, 2.0 )
  42. upVector: Qt.vector3d( 0.0, 1.0, 0.0 )
  43. viewCenter: Qt.vector3d( 0.0, 0.0, 0.0 )
  44. }
  45.  
  46. FirstPersonCameraController { camera: camera }
  47.  
  48. components: [
  49. RenderSettings {
  50. activeFrameGraph: ForwardRenderer {
  51. camera: camera
  52. clearColor: "transparent"
  53.  
  54. }
  55. },
  56. InputSettings { }
  57. ]
  58.  
  59.  
  60. SceneLoader
  61. {
  62. id: wheelMesh
  63. source: "qrc:///disk_g.obj"
  64.  
  65. }
  66.  
  67. Transform {
  68. id: wheelTransform
  69. property real userAngle: 70
  70. matrix: {
  71. var m = Qt.matrix4x4();
  72. m.rotate(userAngle, Qt.vector3d(0, 1, 0))
  73. m.translate(Qt.vector3d(0, 0, 0));
  74. return m;
  75. }
  76. }
  77. DirectionalLight
  78. {
  79. id: wheelLight
  80. worldDirection: Qt.vector3d(0, -0.707, -0.707)
  81. color:"White"
  82. intensity: 1.0
  83. }
  84.  
  85. DirectionalLight
  86. {
  87. id: wheelLight1
  88. worldDirection: Qt.vector3d(0, 0.707, -0.707)
  89. color:"White"
  90. intensity: 1.0
  91. }
  92.  
  93. Entity {
  94. id: sphereEntity
  95. components: [ wheelMesh, wheelLight, /*wheelLight1,*/ wheelTransform ]
  96.  
  97. }
  98.  
  99. }
  100. }
  101. }
To copy to clipboard, switch view to plain text mode 

On screen:
result.png