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 · 6 comments
Open

blank output.tga #51

TjensenRex opened this issue Jul 29, 2020 · 6 comments

Comments

@TjensenRex
Copy link

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.

@DudeRenderer
Copy link

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

I'm using CLion, which uses relative paths.

@mcejp
Copy link

mcejp commented Oct 15, 2020

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

@Smartuil
Copy link

Smartuil commented Jan 7, 2021

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

@forkercat
Copy link

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

@longlongvip
Copy link

where is the face() function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants