Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Graphics and Multimedia
»
Graphics
»
BGRABitmap and LazPaint
»
3D cube/phong
Free Pascal
Website
Downloads
Wiki
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Bugtracker
IRC channel
Latest SVN
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
[SOLVED] Update ChangeWin...
by
valter.home
[
Today
at 09:15:44 pm]
Exception Class 'External...
by
Handoko
[
Today
at 08:48:36 pm]
Off Topic - Promises - Re...
by
marcov
[
Today
at 08:24:05 pm]
Post-Pascal
by
marcov
[
Today
at 08:19:12 pm]
[SOLVED] canvas
by
krolikbest
[
Today
at 08:09:53 pm]
Running Pyrhon Script
by
lucamar
[
Today
at 07:40:13 pm]
Free Pascal and Lazarus N...
by
ASBzone
[
Today
at 07:37:52 pm]
GitHub Action to setup La...
by
El Salvador
[
Today
at 07:33:07 pm]
Would like some feedback ...
by
lucamar
[
Today
at 07:22:19 pm]
Actioning an IPRo hot lin...
by
wp
[
Today
at 07:02:56 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: 3D cube/phong (Read 1378 times)
bigeno
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
Logged
circular
Hero Member
Posts: 3679
Re: 3D cube/phong
«
Reply #1 on:
March 19, 2019, 11:39:56 pm »
I would suggest to do it using a 3D scene.
http://wiki.freepascal.org/BGRABitmap_tutorial_15
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.
https://github.com/bgrabitmap/bgrabitmap/tree/master/test/bgratutorial3d
Logged
Conscience is the debugger of the mind
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Graphics and Multimedia
»
Graphics
»
BGRABitmap and LazPaint
»
3D cube/phong
TinyPortal
© 2005-2018