It is currently Fri Oct 18, 2019 4:49 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: 2D & 3D graphics
PostPosted: Sat Jan 10, 2015 7:05 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed May 15, 2013 8:26 am
Posts: 157
Location: Czech Republic, Prague
I have an idea. I can something with 2D and 3D graphics. But I need the combination.
I want to do a combination of 2D and 3D graphics, like eg. In a simulator.

Image

There is still a 2D edge of the screen (there must be a 2D sprites), while the inside is a 3D space.
But I have not found a way to do it. Could somebody please help? Just generally, how to solve this in PB 8)

_________________
I apologize in advance for bad English


Top
 Profile  
Reply with quote  
 Post subject: Re: 2D & 3D graphics
PostPosted: Sat Jan 10, 2015 9:36 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Mon Apr 15, 2013 12:22 pm
Posts: 519
You can do that:

Code:
  RenderWorld()
 
  StartDrawing(SpriteOutput(x))
  DrawText(0, 0, Str("bla"))
  StopDrawing()
  DisplaySprite(x, 10, 10)
 
  FlipBuffers()


After RenderWorld() and before you call FlipBuffers, you can call spritefunctions.

But isn´t it a better way to use an planemodel? So you could handle with physics, start, landing,...

_________________
Image


Top
 Profile  
Reply with quote  
 Post subject: Re: 2D & 3D graphics
PostPosted: Sat Jan 10, 2015 10:14 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed May 15, 2013 8:26 am
Posts: 157
Location: Czech Republic, Prague
Thanks a lot! That's what I need, I'll try it ...

Quote:
But isn´t it a better way to use an planemodel?

Maybe so, but I have no experience with it. It is somewhere an example?

_________________
I apologize in advance for bad English


Top
 Profile  
Reply with quote  
 Post subject: Re: 2D & 3D graphics
PostPosted: Sun Jan 11, 2015 12:20 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Mon Apr 15, 2013 12:22 pm
Posts: 519
http://tf3dm.com/
There are multiple Websites with free models. Perhaps there are some jets you can use.
Just make a nodesystem with plane and camera and set the camera this way in Cockpit of plane.

_________________
Image


Top
 Profile  
Reply with quote  
 Post subject: Re: 2D & 3D graphics
PostPosted: Sun Jan 11, 2015 12:42 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed May 15, 2013 8:26 am
Posts: 157
Location: Czech Republic, Prague
Thanks! I know these similar website
http://opengameart.org/


They will also come in handy:-)

_________________
I apologize in advance for bad English


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 3 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