Author Topic: 3D cube/phong  (Read 1521 times)


  • Sr. Member
  • ****
  • Posts: 250
3D cube/phong
« on: March 19, 2019, 07:51:12 pm »
I know how to paint phong, all good, but can you give me hint how to paint phong cube ? rounded edges like on second image


  • Hero Member
  • *****
  • Posts: 3709
    • Personal webpage
Re: 3D cube/phong
« Reply #1 on: March 19, 2019, 11:39:56 pm »
I would suggest to do it using a 3D scene.

Though not sure about the exact shape in 3D. It is kind of round rectangle that has a certain height, and at the top there is yet another rounding.

Note that you don't need to have a lot of polygons to have a nice rounded phong lighting. See for example in bgrabitmap/test/bgratutorial3d the cylinder (example 3). By setting scene.DefaultLightingNormal to lnVertex you get a rounded effect even with low polygon count.
Conscience is the debugger of the mind


TinyPortal © 2005-2018