3D Framework - scene with sphere! As detailed as needed.
Posted: March 19th, 2017, 10:37 pm
Hi everybody, in order to learn to understand Chili's 3D Framework I added a scene with a sphere (the first scene actually so I didn't have to hit the tab button each time ). You can choose how many "slices" the sphere is made of in each direction (from 0 .. 2 PI and from top .. bottom), just change the values at the top of sphere.h:
I thought you might like it. I'm sorry for the messy colors, ran out of time to fix that. But you get the idea
I should've posted this as a separate branch on github but I couldn't be bothered to figure out how to do that.
I'm afraid I had to make a default constructor for your IndexedTriangleList Chili, sorry
Code: Select all
static const int NrHSlices = 20;
static const int NrVSlices = 16; // top & bottom disc included
I should've posted this as a separate branch on github but I couldn't be bothered to figure out how to do that.
I'm afraid I had to make a default constructor for your IndexedTriangleList Chili, sorry