Closed sunjunlishi closed 5 years ago
it is newest code
Hi,
Can you give a bit more information please? What model exactly are you using? What function? The fit-model
example app? With what command-line parameters are you calling it? Can you try it on the example image in the data/
folder? The more details you can give the better.
I cannot reproduce this with a clean checkout from the master branch (v1.0.1
) - Running fit-model
on the example image works just fine.
This is very likely a problem on your end.
fit-model-simple.cpp const core::Image4u isomap = render::extract_texture(mesh, affine_from_ortho, core::from_mat(image)); mesh and image is ok。so i don't know why?
Works fine on my end. Please follow my advice above and provide more details - otherwise it's not possible to give any advice.
fit-model is same error. i use the master newest code
vs2015 32bit. change nothing almost
As written in the readme, VS2015 hasn't been supported anymore for quite a while. I am surprised that it even still compiled without errors. I'd recommend updating to VS2017. Also, I'd recommend building a 64bit executable.
Still, the images don't really help without further details.
I am afraid this really looks like a problem on your own system. I recommend a clean clone & clean build with VS2017 64-bit.
if (!detail::is_triangle_visible(glm::tvec4<float>(v0[0], v0[1], v0[2], v0[3]),
glm::tvec4<float>(v1[0], v1[1], v1[2], v1[3]),
glm::tvec4<float>(v2[0], v2[1], v2[2], v2[3]), depthbuffer))
{
// continue;
// return; sunjunlishi changed
}
get out of return. it is ok
@sunjunlishi I don't understand. Was it some locally modified code that you had modified by accident? Or what about the code you pasted above?
the code i pasted,i get rid of "//return"。 i have resovled the problem,althogh i don't know the realy reason
That's indeed quite weird. I'd guess it's because of your VS 2015 and 32-bit build.
i have resolved it. out.isomap is bitmap is ok.