tinyrenderer icon indicating copy to clipboard operation
tinyrenderer copied to clipboard

blank output.tga

Open TjensenRex opened this issue 4 years ago • 6 comments

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.

TjensenRex avatar Jul 29 '20 16:07 TjensenRex

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

DudeRenderer avatar Jul 31 '20 15:07 DudeRenderer

I'm using CLion, which uses relative paths.

TjensenRex avatar Jul 31 '20 17:07 TjensenRex

Have you tried changing all paths to absolute? CLion might be doing something else than you are assuming.

mcejp avatar Oct 15 '20 11:10 mcejp

Maybe you have the wrong file path
model = new Model("obj/african_head/african_head.obj");

Smartuil avatar Jan 07 '21 09:01 Smartuil

Have you tried setting the working directory as the root directory? Then using Model model("obj/african_head/african_head.obj"); should be fine.

forkercat avatar Jan 07 '21 18:01 forkercat

where is the face() function

longlongvip avatar Feb 13 '23 08:02 longlongvip