camera bug fixed
This commit is contained in:
parent
19055c6097
commit
b8a4cd254d
|
@ -209,6 +209,7 @@ typedef typename SaveMeshType::CoordType CoordType;
|
||||||
{
|
{
|
||||||
for(unsigned int ii = 0;ii < 3;++ii)
|
for(unsigned int ii = 0;ii < 3;++ii)
|
||||||
{
|
{
|
||||||
|
fitn->N().Normalize();
|
||||||
idtf.write(4,TextUtility::nmbToStr(fitn->N().X()) + " " +
|
idtf.write(4,TextUtility::nmbToStr(fitn->N().X()) + " " +
|
||||||
TextUtility::nmbToStr(fitn->N().Z()) + " " +
|
TextUtility::nmbToStr(fitn->N().Z()) + " " +
|
||||||
TextUtility::nmbToStr(fitn->N().Y()));
|
TextUtility::nmbToStr(fitn->N().Y()));
|
||||||
|
|
|
@ -120,7 +120,6 @@ private:
|
||||||
|
|
||||||
static void SaveLatex(SaveMeshType& m,const QString& file,const u3dparametersclasses::Movie15Parameters& mov_par)
|
static void SaveLatex(SaveMeshType& m,const QString& file,const u3dparametersclasses::Movie15Parameters& mov_par)
|
||||||
{
|
{
|
||||||
|
|
||||||
Output_File latex(file.toStdString() + ".tex");
|
Output_File latex(file.toStdString() + ".tex");
|
||||||
QString u3df = file + ".u3d";
|
QString u3df = file + ".u3d";
|
||||||
QStringList file_trim;
|
QStringList file_trim;
|
||||||
|
@ -138,9 +137,9 @@ private:
|
||||||
{
|
{
|
||||||
cam_string = cam_string + "3Daac=" + TextUtility::nmbToStr(cam->_cam_fov_angle) +
|
cam_string = cam_string + "3Daac=" + TextUtility::nmbToStr(cam->_cam_fov_angle) +
|
||||||
", 3Droll=" + TextUtility::nmbToStr(cam->_cam_roll_angle) +
|
", 3Droll=" + TextUtility::nmbToStr(cam->_cam_roll_angle) +
|
||||||
", 3Dc2c=" + TextUtility::nmbToStr(cam->_obj_to_cam_dir.X()) + " " + TextUtility::nmbToStr(cam->_obj_to_cam_dir.Y()) + " " + TextUtility::nmbToStr(cam->_obj_to_cam_dir.Z()) +
|
", 3Dc2c=" + TextUtility::nmbToStr(cam->_obj_to_cam_dir.X()) + " " + TextUtility::nmbToStr(cam->_obj_to_cam_dir.Z()) + " " + TextUtility::nmbToStr(cam->_obj_to_cam_dir.Y()) +
|
||||||
", 3Droo=" + TextUtility::nmbToStr(cam->_obj_to_cam_dist) +
|
", 3Droo=" + TextUtility::nmbToStr(cam->_obj_to_cam_dist) +
|
||||||
", 3Dcoo=" + TextUtility::nmbToStr(cam->_obj_pos.X()) + " " + TextUtility::nmbToStr(cam->_obj_pos.Y()) + " " + TextUtility::nmbToStr(cam->_obj_pos.Z()) + ",";
|
", 3Dcoo=" + TextUtility::nmbToStr(cam->_obj_pos.X()) + " " + TextUtility::nmbToStr(cam->_obj_pos.Z()) + " " + TextUtility::nmbToStr(cam->_obj_pos.Y()) + ",";
|
||||||
latex.write(1,cam_string);
|
latex.write(1,cam_string);
|
||||||
}
|
}
|
||||||
latex.write(1,"3Dlights=File,");
|
latex.write(1,"3Dlights=File,");
|
||||||
|
|
Loading…
Reference in New Issue