What is the simplest way to . . . . . .

Everything related to 3D programming
RealUser60
User
User
Posts: 14
Joined: Sat Jan 06, 2018 4:54 am
Location: Saint George, Utah
Contact:

What is the simplest way to . . . . . .

Post 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?
Bitblazer
Enthusiast
Enthusiast
Posts: 733
Joined: Mon Apr 10, 2017 6:17 pm
Location: Germany
Contact:

Re: What is the simplest way to . . . . . .

Post by Bitblazer »

Open the reference manual (F1 - help) and read the 3D Games & Multimedia Libraries topic.

additionally read

the 3D Programming forum.
webpage - discord chat links -> purebasic GPT4All
User avatar
blueb
Addict
Addict
Posts: 1041
Joined: Sat Apr 26, 2003 2:15 pm
Location: Cuernavaca, Mexico

Re: What is the simplest way to . . . . . .

Post by blueb »

Check out Stargate's Drawing3D samples (ZIP) on the German PureBoard... :idea:

http://www.purebasic.fr/german/viewtopi ... 58#p269258
- It was too lonely at the top.

System : PB 6.10 Beta 9 (x64) and Win Pro 11 (x64)
Hardware: AMD Ryzen 9 5900X w/64 gigs Ram, AMD RX 6950 XT Graphics w/16gigs Mem
User avatar
DK_PETER
Addict
Addict
Posts: 898
Joined: Sat Feb 19, 2011 10:06 am
Location: Denmark
Contact:

Re: What is the simplest way to . . . . . .

Post 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
Current configurations:
Ubuntu 20.04/64 bit - Window 10 64 bit
Intel 6800K, GeForce Gtx 1060, 32 gb ram.
Amd Ryzen 9 5950X, GeForce 3070, 128 gb ram.
Post Reply