kopia lustrzana https://github.com/OpenDroneMap/WebODM
Fixed textured model orientation alignment issue
rodzic
c5b78675a4
commit
a4554f2c5f
|
@ -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;
|
||||
|
||||
|
|
|
@ -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%);
|
||||
|
|
Ładowanie…
Reference in New Issue