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.

Newcomers DBPro Corner / Mesh "Growing" on Top of an Object

Author
Message
flipcode
19
Years of Service
User Offline
Joined: 9th Jan 2005
Location:
Posted: 9th Jan 2005 10:35
Hi,

I'll start with the analogy.. Algae or slime growing and dying on a piece of wood or a rock.

I would like to do this on my own timescale.

How could this objective be met?

Thank you.

Kind regards,

[flipcode]
Major Payn
20
Years of Service
User Offline
Joined: 16th Dec 2003
Location: United States of America
Posted: 9th Jan 2005 13:30
A cheap way of doing it, would be to create your algae model or whatever, then continuously scale it in the loop by a scale factor, first if it is algae, you may want it to spread out first, before taking hight, so you might scale it by the x and y axisis, then once those reach a certain limit, you start to scale it's y axis, so that it grows taller. Of course, that is not exactly Dynamic, if that is what you are looking for, but it is certainly a way to make an abject appear to grow. Here is an example

do

if scalefactorx(0)<100
scalefactorx(0)=scalefactorx(0)+1
endif

if scalefactoryz(0)<100
scalefacorz(0)=scalefactorz(0)+1
endif

if scalefactorx(0)=100 and scale factory(0)=100
if scalefactory(0)<100
scalefactory(0)=scalefactory(0)+1
endif
endif

scale object 1,scalefactorx(0),scalefacory(0),scalefactorz(0)
loop

to make the object die, you would wait untill the y scale factor reached it's maximum, then youw ould start to decrease the different scale factor variables.

Guns arn't the problem, people are the problem, shoot all the people and guns arn't a problem anymore.
The admiral
22
Years of Service
User Offline
Joined: 29th Aug 2002
Location:
Posted: 9th Jan 2005 17:54
You could throw in some additional variables and things to allow for different heights and things so it doesnt appear all the same height.

[href]www.vapourhost.com/~flyer[/href]

Login to post a reply

Server time is: 2024-09-23 08:26:14
Your offset time is: 2024-09-23 08:26:14