# Metal by Tutorials

**URL:** https://forums.kodeco.com/c/books/metal-by-tutorials/44.md?page=12

[Latest](https://forums.kodeco.com/latest.md) · [Categories](https://forums.kodeco.com/categories.md) · [Tags](https://forums.kodeco.com/tags.md)

**Page:** 13

---

## [Will you cover mesh manipulation?](https://forums.kodeco.com/t/will-you-cover-mesh-manipulation/45438)

<div class="topic-metadata">

**Author:** [@lagerberg](https://forums.kodeco.com/u/lagerberg)\
**Replies:** 2\
**Last updated:** [August 3, 2018, 3:22pm UTC](https://forums.kodeco.com/t/will-you-cover-mesh-manipulation/45438 "2018-08-03T15:22:57Z")

</div>

Hi, I am enjoying your book very much and look forward to it’s completion. I have a need to alter meshes using Boolean operations on base mesh object, like Union, Difference and so on. (Also called Constructive Solid Ge…

---

## [Missing train.blend for chapter 2?](https://forums.kodeco.com/t/missing-train-blend-for-chapter-2/43407)

<div class="topic-metadata">

**Author:** [@mratliff](https://forums.kodeco.com/u/mratliff)\
**Replies:** 7\
**Last updated:** [August 3, 2018, 2:28pm UTC](https://forums.kodeco.com/t/missing-train-blend-for-chapter-2/43407 "2018-08-03T14:28:13Z")

</div>

I can’t seem to find the Blender file in the downloads…is it missing or am I looking in the wrong place?

---

## [Chapter 8 animation indices is a get only property](https://forums.kodeco.com/t/chapter-8-animation-indices-is-a-get-only-property/45297)

<div class="topic-metadata">

**Author:** [@bababoega](https://forums.kodeco.com/u/bababoega)\
**Replies:** 2\
**Last updated:** [July 31, 2018, 11:42pm UTC](https://forums.kodeco.com/t/chapter-8-animation-indices-is-a-get-only-property/45297 "2018-07-31T23:42:04Z")

</div>

Following along in chapter 8. Once we’re going through the interpolation of keyframes we add this part to the update function in renderer.swift let keyFramePairs = translations.indices.dropFirst().map { (previous: tra…

---

## [Chapter 7 cube bad access](https://forums.kodeco.com/t/chapter-7-cube-bad-access/45259)

<div class="topic-metadata">

**Author:** [@bababoega](https://forums.kodeco.com/u/bababoega)\
**Replies:** 5\
**Last updated:** [July 30, 2018, 1:03pm UTC](https://forums.kodeco.com/t/chapter-7-cube-bad-access/45259 "2018-07-30T13:03:58Z")

</div>

When I change the model to be rendered to the cube I get a BAD\_ACCESS error when running. This happens both from the starter project when I follow along as well as when running the given final project.

---

## [Chapter 4 compile error/program crash](https://forums.kodeco.com/t/chapter-4-compile-error-program-crash/44160)

<div class="topic-metadata">

**Author:** [@brianlawson](https://forums.kodeco.com/u/brianlawson)\
**Replies:** 7\
**Last updated:** [July 17, 2018, 7:03pm UTC](https://forums.kodeco.com/t/chapter-4-compile-error-program-crash/44160 "2018-07-17T19:03:13Z")

</div>

Following along in the Chapter 4 tutorial, on page 75 (in the v0.3.pdf version), we are told to add this code: var vertices = \[float3(0, 0, 0.5)\] to the playground. This statement causes compiler errors in Xcode 9.4.1 an…

---

## [Failed assertion \`newBufferWithBytesNoCopy:pointer 0x107b78020 is not 4096 byte aligned.'](https://forums.kodeco.com/t/failed-assertion-newbufferwithbytesnocopy-pointer-0x107b78020-is-not-4096-byte-aligned/44567)

<div class="topic-metadata">

**Author:** [@008v](https://forums.kodeco.com/u/008v)\
**Replies:** 3\
**Last updated:** [July 12, 2018, 1:57am UTC](https://forums.kodeco.com/t/failed-assertion-newbufferwithbytesnocopy-pointer-0x107b78020-is-not-4096-byte-aligned/44567 "2018-07-12T01:57:37Z")

</div>

Here is my code : colorVBO = device.makeBuffer(bytesNoCopy: &colorVAO, length: MemoryLayout\<MetalRenderer\_VertexOut\>.stride \* colorVAO.count, options: .storageModeShared, deallocator: nil) colorVAO is an array. how to…

---

## [How to debug the Texture object?](https://forums.kodeco.com/t/how-to-debug-the-texture-object/44399)

<div class="topic-metadata">

**Author:** [@008v](https://forums.kodeco.com/u/008v)\
**Replies:** 3\
**Last updated:** [July 6, 2018, 5:27pm UTC](https://forums.kodeco.com/t/how-to-debug-the-texture-object/44399 "2018-07-06T17:27:49Z")

</div>

I found that the texture that I created with the MTKTextureLoader is flipped up and down and left and right. Why? How to debug the Texture object ?

---

## [Book Content Comments](https://forums.kodeco.com/t/book-content-comments/43867)

<div class="topic-metadata">

**Author:** [@mr\_berna](https://forums.kodeco.com/u/mr_berna)\
**Replies:** 5\
**Last updated:** [July 6, 2018, 1:40pm UTC](https://forums.kodeco.com/t/book-content-comments/43867 "2018-07-06T13:40:15Z")

</div>

I think this book is great. Since I’m reading the early access version I’d like to make a few comments about the content in hopes of improving the final book. These are from version 0.2 of the book. On page 16: The Oxfo…

---

## [Xcode 10 Beta 3 and OS X Mohave - Segmentation Fault](https://forums.kodeco.com/t/xcode-10-beta-3-and-os-x-mohave-segmentation-fault/44380)

<div class="topic-metadata">

**Author:** [@johnlobe](https://forums.kodeco.com/u/johnlobe)\
**Replies:** 3\
**Last updated:** [July 6, 2018, 2:41am UTC](https://forums.kodeco.com/t/xcode-10-beta-3-and-os-x-mohave-segmentation-fault/44380 "2018-07-06T02:41:49Z")

</div>

Hi All, I am having a blast trying/adapting the projects from Metal by Tutorials. Really great choices of topics! Perhaps I have been naive in wanting to try some Swift 4.2 features, but I have installed OS X Mohave an…

---

## [Who can tell me the difference between setVertexBuffer() and setVertexBytes() ？](https://forums.kodeco.com/t/who-can-tell-me-the-difference-between-setvertexbuffer-and-setvertexbytes/44353)

<div class="topic-metadata">

**Author:** [@008v](https://forums.kodeco.com/u/008v)\
**Replies:** 2\
**Last updated:** [July 5, 2018, 4:18pm UTC](https://forums.kodeco.com/t/who-can-tell-me-the-difference-between-setvertexbuffer-and-setvertexbytes/44353 "2018-07-05T16:18:04Z")

</div>

Who can tell me the difference between setVertexBuffer() and setVertexBytes() ？

---

## [Ch 7 Normals render inverted](https://forums.kodeco.com/t/ch-7-normals-render-inverted/44255)

<div class="topic-metadata">

**Author:** [@brianlawson](https://forums.kodeco.com/u/brianlawson)\
**Replies:** 2\
**Last updated:** [July 3, 2018, 7:34pm UTC](https://forums.kodeco.com/t/ch-7-normals-render-inverted/44255 "2018-07-03T19:34:28Z")

</div>

What would cause the normals to be inverted causing the bricks to look as though they have been carved out of the wall leaving the mortar higher than the bricks? See page 187 for reference.

---

## [More Chapter 4 issues](https://forums.kodeco.com/t/more-chapter-4-issues/44162)

<div class="topic-metadata">

**Author:** [@brianlawson](https://forums.kodeco.com/u/brianlawson)\
**Replies:** 7\
**Last updated:** [June 30, 2018, 11:40pm UTC](https://forums.kodeco.com/t/more-chapter-4-issues/44162 "2018-06-30T23:40:42Z")

</div>

On page 77 the book states that the matrix \[-1, 2\] has one column and two rows. The words column and row should be switched: 1 row and 2 columns.

---

## [Explanation of various 3D technologies](https://forums.kodeco.com/t/explanation-of-various-3d-technologies/44071)

<div class="topic-metadata">

**Author:** [@kvn](https://forums.kodeco.com/u/kvn)\
**Replies:** 1\
**Last updated:** [June 27, 2018, 3:37pm UTC](https://forums.kodeco.com/t/explanation-of-various-3d-technologies/44071 "2018-06-27T15:37:01Z")

</div>

:wave: Just purchased the v0.21. I’m very happy with it; it’s been a great resource! It would be helpful to have a section that differentiates the many different frameworks Apple offers for 3D programming, and offers a…

---

## [Writing 3D content creation tools in Metal](https://forums.kodeco.com/t/writing-3d-content-creation-tools-in-metal/43515)

<div class="topic-metadata">

**Author:** [@kikiwunder](https://forums.kodeco.com/u/kikiwunder)\
**Replies:** 1\
**Last updated:** [June 14, 2018, 3:14am UTC](https://forums.kodeco.com/t/writing-3d-content-creation-tools-in-metal/43515 "2018-06-14T03:14:44Z")

</div>

Hi there! Really enjoying the book so far. I was wondering: Will part of a later tutorial involve camera control? Manipulation? I’d really love to make content creation tools using Metal and to have more of a groundin…

[Previous page](https://forums.kodeco.com/c/books/metal-by-tutorials/44.md?page=11)
