Closed yygbruce closed 4 years ago
Hi,
Good question what could be going on here. It could have to do with the visibility/z-buffer, or perhaps an invalid memory access somewhere. The first thing I'd do is run a debug build, where asserts are enabled. I am thinking that it's likely one of the asserts in the code will fire. Second, you could try the extract_texture(...)
from the devel
branch (this was previously in the render::v2
namespace) - this method will become the default in the near future.
Hi,
Good question what could be going on here. It could have to do with the visibility/z-buffer, or perhaps an invalid memory access somewhere. The first thing I'd do is run a debug build, where asserts are enabled. I am thinking that it's likely one of the asserts in the code will fire. Second, you could try the
extract_texture(...)
from thedevel
branch (this was previously in therender::v2
namespace) - this method will become the default in the near future.
Yes, It work.But another question append in PC and android.The backgroud color is not transparent:
Hi, Good question what could be going on here. It could have to do with the visibility/z-buffer, or perhaps an invalid memory access somewhere. The first thing I'd do is run a debug build, where asserts are enabled. I am thinking that it's likely one of the asserts in the code will fire. Second, you could try the
extract_texture(...)
from thedevel
branch (this was previously in therender::v2
namespace) - this method will become the default in the near future.Yes, It work.But another question append in PC and android.The backgroud color is not transparent:
Thanks! I have solved this problem, after I changed the the file of Rasterizer.hpp(line 52):
colorbuffer = eos::core::image::constant(viewport_height, viewport_width,
eos::core::Pixel<std::uint8_t, 4>(0, 0, 0, 0));
In addition, I alse changed the file of opencv_interop.hpp(line 113),:
inline Image4u from_mat_with_alpha(const cv::Mat& image)
{
Image4u converted(image.rows, image.cols);
if (image.type() == CV_8UC3)
{
for (int r = 0; r < image.rows; ++r)
{
for (int c = 0; c < image.cols; ++c)
{
converted(r, c) = {image.at
Sounds good! I'm not sure whether this is/was really a problem with eos on Android, or something local to your system/setup. So I would close this from my side, if you are happy?
Sounds good! I'm not sure whether this is/was really a problem with eos on Android, or something local to your system/setup. So I would close this from my side, if you are happy?
Of course!I look forward to your good news。
Hi patrikhuber, When I use the lib with android, I have the following problems:
I have checked the rendering parameters, no problem.So I think It was caused by the function of extract_texture, and the question just append in android system.