yfeng95 / face3d

Python tools for 3D face: 3DMM, Mesh processing(transform, camera, light, render), 3D face representations.
2.65k stars 611 forks source link

Choose far and near values for 3_transform.py #18

Open ileniTudor opened 5 years ago

ileniTudor commented 5 years ago

Thank you for sharing the work. Is there a reason that you choose those values camera['near'] = 1000 camera['far'] = -100 for clippings?

liurunxing13 commented 3 years ago

Seem as your question ,it confused me for a long time. T try to set near plane to 0 and far plane to 2000(just same as openGL common used),then I get nothing but black ground…… I check the x,y,z value after perspective project,all of the between -1 and 1(NDC)