Borisov Posted June 22, 2016 Share Posted June 22, 2016 I need to capture rendered images from camera. The code: image.clear(); viewport.renderImage2D(camera, image); Where are pixels has been stored? Link to comment
silent Posted June 22, 2016 Share Posted June 22, 2016 Hi, Image pixels stored in RAM, Texture pixels stored in VRAM. 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
Borisov Posted June 22, 2016 Author Share Posted June 22, 2016 Thank you, silent! I have got one more question. I create Image with RGB8 pixel format, but after rendering it have been RGB16F. Why is this happening? I tried to save RGB16F image into file. But error message "Image can't save RGB16F format into the file" has been printed. I tried to convert image to RGB8 format via converToFormat function, but the same error has been printed. How to save image into file? How to convert pixel format? Link to comment
silent Posted June 23, 2016 Share Posted June 23, 2016 Hi, Could you post a small code snippet that we can test in newly created C++ project to get an idea what is going on?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
Borisov Posted June 23, 2016 Author Share Posted June 23, 2016 Now it works fine, it was my fault. I don't properly set up texture object. Link to comment
Recommended Posts