The Wayback Machine - https://web.archive.org/web/20201219044344/https://github.com/ssloy/tinyrenderer/issues/51
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

blank output.tga #51

Open
TjensenRex opened this issue Jul 29, 2020 · 3 comments
Open

blank output.tga #51

TjensenRex opened this issue Jul 29, 2020 · 3 comments

Comments

@TjensenRex
Copy link

@TjensenRex TjensenRex commented Jul 29, 2020

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.

@jaggerjiang
Copy link

@jaggerjiang jaggerjiang commented Jul 31, 2020

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

@TjensenRex
Copy link
Author

@TjensenRex TjensenRex commented Jul 31, 2020

I'm using CLion, which uses relative paths.

@mcejp
Copy link

@mcejp mcejp commented Oct 15, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants
You can’t perform that action at this time.