patrikhuber / eos

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

Why I cannot display the out.obj with OpenGL? #291

Closed yygbruce closed 4 years ago

yygbruce commented 4 years ago

I cannot display the out.obj correctly with OpenGL, when I set the projection matrix and modelview matrix for the glsl shader.But I can use the class RenderingParameters to draw wireframe on the image, so the render parameters is right.What's wrong with me? By the way, have a interface for raycasting?

patrikhuber commented 4 years ago

Hi,

"display the out.obj correctly with OpenGL" sounds a bit weird. Maybe try opening your out.obj with MeshLab?

It sounds like you need to spend some time debugging your OpenGL matrices.

There is some ray casting stuff here and here.

yygbruce commented 4 years ago

Thanks! I have solved the question through rasterization.