It is currently Sat Apr 21, 2018 11:43 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: What is the simplest way to . . . . . .
PostPosted: Thu Mar 08, 2018 4:05 am 
Offline
New User
New User

Joined: Sat Jan 06, 2018 4:54 am
Posts: 8
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?


Top
 Profile  
Reply with quote  
 Post subject: Re: What is the simplest way to . . . . . .
PostPosted: Thu Mar 08, 2018 4:30 am 
Offline
User
User

Joined: Mon Apr 10, 2017 6:17 pm
Posts: 85
Open the reference manual (F1 - help) and read the 3D Games & Multimedia Libraries topic.

additionally read

the 3D Programming forum.


Top
 Profile  
Reply with quote  
 Post subject: Re: What is the simplest way to . . . . . .
PostPosted: Thu Mar 08, 2018 12:42 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sat Apr 26, 2003 2:15 pm
Posts: 716
Location: Cuernavaca, Mexico
Check out Stargate's Drawing3D samples (ZIP) on the German PureBoard... :idea:

http://www.purebasic.fr/german/viewtopic.php?p=269258#p269258

_________________
- It was too lonely at the top.


Top
 Profile  
Reply with quote  
 Post subject: Re: What is the simplest way to . . . . . .
PostPosted: Thu Mar 08, 2018 1:26 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sat Feb 19, 2011 10:06 am
Posts: 707
Location: Denmark
Simple..like this?
Code:
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

_________________
“Tell me and I forget. Teach me and I remember. Involve me and I learn.”
— Benjamin Franklin
Current configurations: Windows 7/10, Intel 6800K, Gtx 970, 32 gb ram.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye