Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
1 registered members (Grant), 999 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
3D model grows up on the ground #397021
03/13/12 17:05
03/13/12 17:05
Joined: Jan 2012
Posts: 39
B
BySharDe Offline OP
Newbie
BySharDe  Offline OP
Newbie
B

Joined: Jan 2012
Posts: 39
I have a 3d model(a spelling word like "Acknex") and want it coming out little by little, like a line of grass growing up on the ground.
I have thought a lot and have no idea. Anyone get it?

Re: 3D model grows up on the ground [Re: BySharDe] #397029
03/13/12 18:36
03/13/12 18:36
Joined: Sep 2009
Posts: 987
Budapest
Aku_Aku Offline
User
Aku_Aku  Offline
User

Joined: Sep 2009
Posts: 987
Budapest
Assumed your model is under the ground exactly.
Code:
for(i=0;i<your_model.max_z;i++) {
	your_model.z++;
	wait(-0.4);
}


Not tested.

Last edited by Aku_Aku; 03/13/12 18:37.
Re: 3D model grows up on the ground [Re: Aku_Aku] #397030
03/13/12 18:39
03/13/12 18:39
Joined: Feb 2005
Posts: 3,687
Hessen, Germany
T
Tempelbauer Offline
Expert
Tempelbauer  Offline
Expert
T

Joined: Feb 2005
Posts: 3,687
Hessen, Germany
additionaly you could play with the scale_x/y/z-parameters (lets say, starting with the half size and grow to the full size)

Re: 3D model grows up on the ground [Re: Tempelbauer] #397077
03/14/12 09:10
03/14/12 09:10
Joined: Jan 2012
Posts: 39
B
BySharDe Offline OP
Newbie
BySharDe  Offline OP
Newbie
B

Joined: Jan 2012
Posts: 39
Yes, scale_x/y/z is helpful.
obj.z is not suitable at this case.

Re: 3D model grows up on the ground [Re: BySharDe] #397085
03/14/12 13:07
03/14/12 13:07
Joined: Oct 2005
Posts: 4,771
Bay City, MI
lostclimate Offline
Expert
lostclimate  Offline
Expert

Joined: Oct 2005
Posts: 4,771
Bay City, MI
put the origin of the model at the bottom of the model in the center. change the scale_'s to 0. increment them slowly to 1.0.

tada.


Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1