huangwei4478 / 3d_renderer_xcode

3D Software Renderer, using Xcode to develop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

3D Graphics Programming from scratch

This is my learning process of Pikuma's 3D Graphics From Scratch course. ($69.99)

Using only SDL2 and a C compiler. No Graphics API, no GPU, no OpenGL, no Metal, no DirectX!

Implement a software-renderer from scratch, draw every pixel on the screen to render a 3D obj model file.

3D graphics programming

3d programming from scratch

How to build & run

Xcode press Run button

Development environment: using Xcode.

"Setting up SDL 2 on XCode 13.4.1"

SDL 2 and Xcode trouble shootings:

I cannot build and run, dyld cannot find suitable dynamic library at runtime

  • Third-Party framework need to be code signed before running, a strict restriction enforced by Xcode and macOS recently.

  • Project settings -> General -> Frameworks and Libraries, SDL2.framework, change 'Embed' from 'Do Not Embed' to 'Embed and Sign'

Code signing for SDL2.framework

Why there are no autocomplete or Intellisence, and "cannot find SDL2.h" error?

How to set working directory, so program can access the assets folder to fetch images or 3D obj files?

Working Directory for Xcode Code Example of fetching assets

About

3D Software Renderer, using Xcode to develop


Languages

Language:C 100.0%