Page 1 of 1
What is the simplest way to . . . . . .
Posted: Thu Mar 08, 2018 4:05 am
by RealUser60
I'm NOT sure if I asked this question before, what is the simplest way to create a 3D screen, & create a cube, sphere, cone, or any simple object in the 3D screen? Please help?
Re: What is the simplest way to . . . . . .
Posted: Thu Mar 08, 2018 4:30 am
by Bitblazer
Open the
reference manual (F1 - help) and read the
3D Games & Multimedia Libraries topic.
additionally read
the
3D Programming forum.
Re: What is the simplest way to . . . . . .
Posted: Thu Mar 08, 2018 12:42 pm
by blueb
Check out Stargate's Drawing3D samples (ZIP) on the German PureBoard...
http://www.purebasic.fr/german/viewtopi ... 58#p269258
Re: What is the simplest way to . . . . . .
Posted: Thu Mar 08, 2018 1:26 pm
by DK_PETER
Simple..like this?
Code: Select all
InitEngine3D() : InitSprite()
OpenWindow(0, 0, 0, 1024, 768, "Small", #PB_Window_ScreenCentered|#PB_Window_SystemMenu)
OpenWindowedScreen(WindowID(0), 0, 0, 1024, 768)
CreateCamera(0, 0, 0, 100, 100)
CreateCone(0, 1, 1)
CreateEntity(0, MeshID(0), #PB_Material_None, 0, 0, -8)
Repeat
RotateEntity(0, 0.4, 0.5, 0.6, #PB_Relative)
RenderWorld()
FlipBuffers()
Until WindowEvent() = #PB_Event_CloseWindow