tinyrenderer
tinyrenderer copied to clipboard
blank output.tga
I've made it to the end of lesson 1 and I don't know what I'm doing wrong. I've copied all the files, they're in the right places, but when I run main.cpp I don't get the wire frame of the head, it's just blank. What am I doing wrong? I suspect it's something to do with the arguments in main() but I don't know much about them or what to do with them.
I‘m having the same problem in which the output is blank. If you same as me that use visual studio to open the project. I guess you should modify the main.cpp
which the filename. Lesson 1 uses a relative path, but the visual studio's normal work directory is $(ProjectDir)
, so you should modify the filename to "./obj/african_head.obj" .So try it
I'm using CLion, which uses relative paths.
Have you tried changing all paths to absolute? CLion might be doing something else than you are assuming.
Maybe you have the wrong file path
model = new Model("obj/african_head/african_head.obj");
Have you tried setting the working directory as the root directory? Then using Model model("obj/african_head/african_head.obj");
should be fine.
where is the face() function