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 / Construction animation for buildings (DBP)

Author
Message
lower logic
18
Years of Service
User Offline
Joined: 15th Jun 2006
Location:
Posted: 18th Jul 2006 00:03
This code snippet "builds" objects from the ground up. It's not very fast on objects with lots of vertices.
Instead of scaling the objects, this will set the y position of each vertex above height# to height#. height# goes from the bottom vertex to the top vertex during construction.


I tried redoing the function using the vertexdata commands, and it is faster (vertexdata commands - 300 fps, memblock commands - 70 fps). The only problem is the program slows down really fast and then there's a unhandled win32 exception or something like that and the program crashes.
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 18th Jul 2006 03:08
That was cool!

My Functions: Mine
Post yours: Post
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 19th Jul 2006 14:12
Nice! That is incredibly useful for an RTS. I'm going to read through and make sure I understand the code.

[url]andrewneale2004@yahoo.com[/url]
http://www.elbsoftware.dbspot.com

Login to post a reply

Server time is: 2024-11-23 03:28:25
Your offset time is: 2024-11-23 03:28:25