Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [DBP] Multi-Mesh/Texture Landscape Engine

Author
Message
Fallout
22
Years of Service
User Offline
Joined: 1st Sep 2002
Location: Basingstoke, England
Posted: 6th Jun 2007 00:12 Edited at: 6th Jun 2007 00:33
Here's the basis of the 2nd landscape engine for ODF. There is no culling and it probably needs optimisation. Wouldn't be suitable really for an FPS type project, due to the overhead. It's been developed for RTS type projects with a top down view so you can cull a lot of the meshes, then it should run pretty fast.

There are issues with particle transparency, because there are already lots of layers of transparency on the landscape. Would recommend experimenting with all the particle engines you intend to use before commiting to this engine, just incase the particle effects you want to use don't display properly.

Suggest you load landscape.dba, create a project, then add the remaining source files and it should find the media. Feel free to use the media whereever. The real code is in mapmaker.dba - the rest is just hacked padding for the little chopper demo.

The basic principle is:
-Meshes are layered and textured completely with one tiling texture.
-Image files define the alpha levels for each vertex on each tile
-Vertices normals and raycasting is used for shadow effects

I think this might require the full version of EZRotate. Not sure, but definitely needs a version and also needs Sparky's DLL for raycasting. Make sure you use the included mesh .x file for your landscapes, as meshes you make in DB will probably not have the required vertex data for alpha transparencies.

Also note, the code is largely uncommented, so it won't be a fun read the first time in, but I code in a structured way, so it should make sense to an experienced coder.

Let me know if you do anything cool with it.

Edit: This is a more advanced version of the engine seen in this vid (foliage systems have been added)
http://www.youtube.com/watch?v=OGfpHHMzFA0


Attachments

Login to view attachments
Fallout
22
Years of Service
User Offline
Joined: 1st Sep 2002
Location: Basingstoke, England
Posted: 6th Jun 2007 00:14 Edited at: 6th Jun 2007 00:14



Attachments

Login to view attachments
Mr Kohlenstoff
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Germany
Posted: 10th Jun 2007 00:49
Wow.. it looks amazing.
Great job.. even if I'm more a fan of FPS-Games than RTS.

Visit the DBPro - Speed up your game-Thread. http://forum.thegamecreators.com/?m=forum_view&t=88661&b=1
Slooper
21
Years of Service
User Offline
Joined: 13th Feb 2003
Location: Sweden
Posted: 1st Jul 2007 18:53
The rar archive that you attached seems broken, tried download it twice with no luck, could you upload it again?

cheers


You never fail, only make mistakes.
Fallout
22
Years of Service
User Offline
Joined: 1st Sep 2002
Location: Basingstoke, England
Posted: 2nd Jul 2007 16:27
@Slooper

I just downloaded it myself to my work machine. It opens fine and the files I checked seem fine. What problems are you having? It's a .ZIP btw, not a .RAR, just in case that's the problem.


Login to post a reply

Server time is: 2024-11-22 18:41:42
Your offset time is: 2024-11-22 18:41:42