Comments (3)
There is no such thing as a "proper" rendering; all depends on conventions that you use. Given a single triangle, how can you know which side is the "front" and which one is the "back" side? No way to define in general without some sort of a convention. One possibility is to say that if you look at a triangle from the "front" side, the vertices are numbered counter-clockwise. Or the other way round ;)
Footnote: auto orientation of normals can be possible for closed (i.e. without boundary edges) manifold surfaces.
from tinyrenderer.
One possibility is to say that if you look at a triangle from the "front" side, the vertices are numbered counter-clockwise
Does the model used here follow such a convention so that the normals calculated using the provided code come out to be "outwards" or "inwards" ?
from tinyrenderer.
african_head.obj uses clockwise ordering if I am not mistaken
from tinyrenderer.
Related Issues (20)
- Lesson 04 : Buggy Perspective Projection HOT 1
- [not issue] Porting of tinyrenderer to Atari 2600 HOT 1
- 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
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.