patrikhuber / eos

A lightweight 3D Morphable Face Model library in modern C++
Apache License 2.0
1.91k stars 597 forks source link

mesh error #239

Closed sunjunlishi closed 5 years ago

sunjunlishi commented 5 years ago

out isomap

sunjunlishi commented 5 years ago

it is newest code

patrikhuber commented 5 years ago

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.

patrikhuber commented 5 years ago

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.

sunjunlishi commented 5 years ago

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?

patrikhuber commented 5 years ago

Works fine on my end. Please follow my advice above and provide more details - otherwise it's not possible to give any advice.

sunjunlishi commented 5 years ago

out out isomap

fit-model is same error. i use the master newest code

sunjunlishi commented 5 years ago

out isomap out

vs2015 32bit. change nothing almost

patrikhuber commented 5 years ago

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.

sunjunlishi commented 5 years ago
        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

patrikhuber commented 5 years ago

@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?

sunjunlishi commented 5 years ago

the code i pasted,i get rid of "//return"。 i have resovled the problem,althogh i don't know the realy reason

patrikhuber commented 5 years ago

That's indeed quite weird. I'd guess it's because of your VS 2015 and 32-bit build.

sunjunlishi commented 5 years ago

i have resolved it. out.isomap is bitmap is ok.