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.
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
2D & 3D graphics
- zxretrosoft
- Enthusiast
- Posts: 169
- Joined: Wed May 15, 2013 8:26 am
- Location: Czech Republic, Prague
- Contact:
- Bananenfreak
- Enthusiast
- Posts: 519
- Joined: Mon Apr 15, 2013 12:22 pm
Re: 2D & 3D graphics
You can do that:
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,...
Code: Select all
RenderWorld()
StartDrawing(SpriteOutput(x))
DrawText(0, 0, Str("bla"))
StopDrawing()
DisplaySprite(x, 10, 10)
FlipBuffers()
But isn´t it a better way to use an planemodel? So you could handle with physics, start, landing,...
- zxretrosoft
- Enthusiast
- Posts: 169
- Joined: Wed May 15, 2013 8:26 am
- Location: Czech Republic, Prague
- Contact:
Re: 2D & 3D graphics
Thanks a lot! That's what I need, I'll try it ...
Maybe so, but I have no experience with it. It is somewhere an example?But isn´t it a better way to use an planemodel?
- Bananenfreak
- Enthusiast
- Posts: 519
- Joined: Mon Apr 15, 2013 12:22 pm
Re: 2D & 3D graphics
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.
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.
- zxretrosoft
- Enthusiast
- Posts: 169
- Joined: Wed May 15, 2013 8:26 am
- Location: Czech Republic, Prague
- Contact: