shichao Posted December 20, 2019 Share Posted December 20, 2019 setfov() not work in plugin appwall I followed the code find the camera is copy to itself Is that mean setfov() can not use in this plugin ? and how can i setfov() in extern plugins ? Camera *Camera::copy(Camera *camera) const { // if we'll try to copy camera to itself, setFov() will invoke update_projection() and original projection matrix will be lost if (camera == this) return camera; and i found this Link to comment
morbid Posted December 20, 2019 Share Posted December 20, 2019 Hello @shichao, You can change FoV directly from the main menu or like this: #include<UnigineInterpreter.h> #include<UnigineEngine.h> Engine::get()->runSystemFuction(Variable("wallSetFov"), Variable(60.0f)); Thanks. How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
shichao Posted December 20, 2019 Author Share Posted December 20, 2019 10 minutes ago, morbid said: Hello @shichao, You can change FoV directly from the main menu or like this: #include<UnigineInterpreter.h> #include<UnigineEngine.h> Engine::get()->runSystemFuction(Variable("wallSetFov"), Variable(60.0f)); Thanks. Thanks. Link to comment
Recommended Posts