Fixed textured model orientation alignment issue

pull/94/head
Piero Toffanin 2017-02-08 09:53:01 -05:00
rodzic c5b78675a4
commit a4554f2c5f
2 zmienionych plików z 8 dodań i 2 usunięć

Wyświetl plik

@ -46,10 +46,11 @@ class ModelView extends React.Component {
}
objFilePath(){
return this.texturedModelDirectoryPath() + 'odm_textured_model.obj';
return this.texturedModelDirectoryPath() + 'odm_textured_model_geo.obj';
}
mtlFilename(){
// For some reason, loading odm_textured_model_geo.mtl does not load textures properly
return 'odm_textured_model.mtl';
}
@ -508,7 +509,7 @@ class ModelView extends React.Component {
// ODM models are Y-up
object.rotateX(THREE.Math.degToRad(-90));
// Bring the model close to center
// // Bring the model close to center
if (object.children.length > 0){
const geom = object.children[0].geometry;

Wyświetl plik

@ -4,6 +4,11 @@
.model-view{
height: 80%;
canvas{
width: 100% !important;
height: 100% !important;
}
.container{
background: rgb(79,79,79);
background: -moz-radial-gradient(center, ellipse cover, rgba(79,79,79,1) 0%, rgba(22,22,22,1) 100%);