carebear
10-11-2005, 06:19 AM
Hi all,
This is my first post here. Anyway, here is my problem. I am developing an open source game in C# and was advised not to use DirectDraw objects due to the imminant depreciation.
What I need to do it to make a deformable landscape, similar to the one found in worms. This means that I will need to add and remove from a texture.
The obvious way could be to do this myself by locking the texture (which I have no idea how to do) and erasing or adding pixels to it (e.g. explosions erase and shotgun shells add). The critical issue is that this is a liero clone, which is alot like worms with the addition that you realtime (not turn based). The weapons in this game are very exxagerated we can expect hundreds of small (16 x 16 to 32 x 32) explosions per second, the above mentioned method would just be too slow.
The most important detail is that the holes and shells come from other textures as the holes are not nessecarily round. Another issue is that I am using the texture to do collision detection, this adds even more to the mix - I doubt I could use shadow volumes (I don't know how to use them in any case).
If you make any suggestions an url for a tutorial on the techniques used would be much appreciated.
Thanks for your time,
Jonathan Dickinson
This is my first post here. Anyway, here is my problem. I am developing an open source game in C# and was advised not to use DirectDraw objects due to the imminant depreciation.
What I need to do it to make a deformable landscape, similar to the one found in worms. This means that I will need to add and remove from a texture.
The obvious way could be to do this myself by locking the texture (which I have no idea how to do) and erasing or adding pixels to it (e.g. explosions erase and shotgun shells add). The critical issue is that this is a liero clone, which is alot like worms with the addition that you realtime (not turn based). The weapons in this game are very exxagerated we can expect hundreds of small (16 x 16 to 32 x 32) explosions per second, the above mentioned method would just be too slow.
The most important detail is that the holes and shells come from other textures as the holes are not nessecarily round. Another issue is that I am using the texture to do collision detection, this adds even more to the mix - I doubt I could use shadow volumes (I don't know how to use them in any case).
If you make any suggestions an url for a tutorial on the techniques used would be much appreciated.
Thanks for your time,
Jonathan Dickinson