Skip to content

Commit 1a01744

Browse files
Fixed typo
1 parent 4f2d141 commit 1a01744

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

content/posts/custom-3d-engine/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Custom 3D engine in Matplotlib"
33
date: 2019-12-18T09:05:32+01:00
44
draft: false
5-
description: "3D rendering is really easy once you've understood a few concepts. To demonstrate that, we'll deisng a simple custom 3D engine that with 60 lines of Python and one matplotlib call. That is, we'll render the bunny without using the 3D axis."
5+
description: "3D rendering is really easy once you've understood a few concepts. To demonstrate that, we'll design a simple custom 3D engine that with 60 lines of Python and one matplotlib call. That is, we'll render the bunny without using the 3D axis."
66
categories: ["tutorials", "3D"]
77
author: Nicolas P. Rougier
88
displayInList: true
@@ -214,10 +214,10 @@ We'll now decompose the transformations we want to apply in term of model
214214
we can compute a global MVP matrix that will do everything at once:
215215

216216
```
217-
model = xrotate(20) @ yrotate(45)
217+
model = xrotate(20) @ yrotate(45)
218218
view = translate(0,0,-3.5)
219-
proj = perspective(25, 1, 1, 100)
220-
MVP = proj @ view @ model
219+
proj = perspective(25, 1, 1, 100)
220+
MVP = proj @ view @ model
221221
```
222222

223223
and we now write:

0 commit comments

Comments
 (0)