Bitmap Vs Vectors

Just starting out? Need help? Post your questions and find answers here.
User avatar
SPH
Enthusiast
Enthusiast
Posts: 617
Joined: Tue Jan 04, 2011 6:21 pm

Bitmap Vs Vectors

Post by SPH »

I have a few questions about an upcoming game. Let me explain:

Let's take the game "Worms" as an example. The scenery (and therefore the ground) is either in BMP (or other image format) or in vector format. I think it's in bitmap format, not vector (although I'm not sure).
The ground is easily calculated so that the worm can move around.
The terrain is a large block, not necessarily flat. It has elevation changes.

But here's the problem: when a weapon explodes in the game, the scenery is damaged. This creates holes in the ground for the worms. The ground calculation for the worms is easily recalculated. But if the scenery is in vector format, it's much harder to damage it after an explosion. On the other hand, vectors are easily zoomable. Bitmaps are not.
Another thing: if I use a bitmap for the scenery (the ground), it will be a large block that I "DisplayTransparentSprite" in each rendering loop (I haven't tested the speed, but it might be problematic...).

I would like your opinion on the technique to use and also see if you have any tips...

!i!i!i!i!i!i!i!i!i!
!i!i!i!i!i!i!
!i!i!i!
//// Informations ////
Portable LENOVO ideapad 110-17ACL 64 bits
Version de PB : 6.12LTS - 64 bits
User avatar
idle
Always Here
Always Here
Posts: 6092
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Bitmap Vs Vectors

Post by idle »

3D engine would be the best option like if you want outline shaders on the terrain

Sprites and if you need zoom draw vectors to array of sprites, for the terrain use a mask image, blow holes in it, combine and redraw sprite and use the mask to work out worm height on terrain.

If say you were thinking along those lines from seeing the AVGSceneGraph (which isn't ready for that yet) you would just modify a pathBezier spline on the fly by deforming or inserting points along an arc where the explosion intersects the path which your worms would then automatically follow.
Post Reply