Comments (6)
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
from tinyrenderer.
I'm using CLion, which uses relative paths.
from tinyrenderer.
Have you tried changing all paths to absolute? CLion might be doing something else than you are assuming.
from tinyrenderer.
Maybe you have the wrong file path
model = new Model("obj/african_head/african_head.obj");
from tinyrenderer.
Have you tried setting the working directory as the root directory? Then using Model model("obj/african_head/african_head.obj");
should be fine.
from tinyrenderer.
where is the face() function
from tinyrenderer.
Related Issues (20)
- [not issue] Porting of tinyrenderer to Atari 2600 HOT 1
- Implications of negative dot product of normal to the triangle and light direction HOT 3
- How to make TGA pictures HOT 1
- Incompatible with modern C++? HOT 3
- Lighting code in lesson 2 is not working properly
- Drawing triangle compilation error HOT 2
- Why does the rendered line break when it is vertical —— lesson 1 HOT 2
- Question about transformation of normal vectors in Lesson5 HOT 2
- My picture is brighter
- Where is the function of face() HOT 1
- Typo in Lesson 5
- 我渲染得到的结果是这样的,有人能告诉我这是哪里出现问题了吗 HOT 3
- Question about zbuffer HOT 2
- How to do the shadow mapping after perspective deformations? HOT 1
- Confused about design of the articles HOT 1
- In lesson2,something wrong in function `barycentric` when i run task in Vscode and i fix it. HOT 2
- The compilation error of lambda expressions in lesson 2 HOT 1
- Holes in fill a triangle using coordinates of pixel left bottom corner HOT 1
- About the function of face() HOT 1
- LLVM linker error HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tinyrenderer.