2D & 3D graphics

Advanced game related topics
User avatar
zxretrosoft
Enthusiast
Enthusiast
Posts: 169
Joined: Wed May 15, 2013 8:26 am
Location: Czech Republic, Prague
Contact:

2D & 3D graphics

Post by zxretrosoft »

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
https://zxretrosoft.cz/
User avatar
Bananenfreak
Enthusiast
Enthusiast
Posts: 519
Joined: Mon Apr 15, 2013 12:22 pm

Re: 2D & 3D graphics

Post by Bananenfreak »

You can do that:

Code: Select all

  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
User avatar
zxretrosoft
Enthusiast
Enthusiast
Posts: 169
Joined: Wed May 15, 2013 8:26 am
Location: Czech Republic, Prague
Contact:

Re: 2D & 3D graphics

Post by zxretrosoft »

Thanks a lot! That's what I need, I'll try it ...
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
https://zxretrosoft.cz/
User avatar
Bananenfreak
Enthusiast
Enthusiast
Posts: 519
Joined: Mon Apr 15, 2013 12:22 pm

Re: 2D & 3D graphics

Post by Bananenfreak »

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
User avatar
zxretrosoft
Enthusiast
Enthusiast
Posts: 169
Joined: Wed May 15, 2013 8:26 am
Location: Czech Republic, Prague
Contact:

Re: 2D & 3D graphics

Post by zxretrosoft »

Thanks! I know these similar website
http://opengameart.org/


They will also come in handy:-)
I apologize in advance for bad English
https://zxretrosoft.cz/
Post Reply