|
Re: Alpha Test
[Re: not_me]
#176863
01/09/08 04:43
01/09/08 04:43
|
Joined: Feb 2006
Posts: 2,185
mpdeveloper_B
Expert
|
Expert
Joined: Feb 2006
Posts: 2,185
|
also, to get your grass directly on the ground put this in the grass' action (behavior):
var tr; var res; vec_set (tr, my.x); tr.z -= 999999; res = c_trace (my.x, tr, ignore_me + ignore_you + ignore_passable + use_polygon); if (res != 0) { vec_set(my.x, target); }
for that to work, you have to make sure that the model's center is at the bottom of the grass, unless you want to make some grass look smaller, to make some diversity, then do this:
var grheight = 10;//if grass is too far in the ground, make the number smaller, if you want it to go down more, make this number more var tr; var res; vec_set (tr, my.x); tr.z -= 999999; res = c_trace (my.x, tr, ignore_me + ignore_you + ignore_passable + use_polygon); if (res != 0) { vec_set(tr.x, target.x); tr.z -= random (grheight); vec_set(my.x, tr); }
also if you are using model grass, i also recommend using this in the action as well:
my.pan = random (360);
don't place either of the codes in a while loop, just put it in an action that you apply to the grass, i assume you have one since you will be fading out the grass, one last important thing to say, since you will have multiple versions of the same model or sprite with the same action make sure you do this:
var grass_num = -1;
action grass_act { grass_num += 1; my.skill68 = grass_num; //any skill will work here, just use one that the grass doesn't use anywhere else
blah blah code.... }
Last edited by mpdeveloper_B; 01/09/08 04:51.
- aka Manslayer101
|
|
|
Re: Alpha Test
[Re: xXxGuitar511]
#176865
01/09/08 19:05
01/09/08 19:05
|
Joined: Mar 2006
Posts: 2,758 Antwerp,Belgium
frazzle
Expert
|
Expert
Joined: Mar 2006
Posts: 2,758
Antwerp,Belgium
|
@ mpdeveloper_B: I thought he used it when recording  Besides, I guess 3dgs will still give a more accurate approach since the fps is displayed directly via the engine. Thus it can compute the rendering aspect more correctly. Cheers Frazzle
Antec® Case Intel® X58 Chipset Intel® i7 975 Quad Core 8 GB RAM DDR3 SSD OCZ®-VERTEX2 3.5 x4 ; HD 600 GB NVIDIA® GeForce GTX 295 Memory 1795GB
|
|
|
Re: Alpha Test
[Re: frazzle]
#176866
01/10/08 01:24
01/10/08 01:24
|
Joined: Feb 2006
Posts: 2,185
mpdeveloper_B
Expert
|
Expert
Joined: Feb 2006
Posts: 2,185
|
 i guess...i just don't trust the fps reading in 3DGS, because of the whole "limited to your refresh rate" thing... i hope the advice i posted above is useful for this project too, if you need more help, i can help small amounts, but not much
- aka Manslayer101
|
|
|
Re: Alpha Test
[Re: not_me]
#176868
01/11/08 00:15
01/11/08 00:15
|
Joined: Feb 2006
Posts: 2,185
mpdeveloper_B
Expert
|
Expert
Joined: Feb 2006
Posts: 2,185
|
no, they were for your grass to stick to the ground, and to randomly go deeper in the ground, so that some grass is shorter than others, the last one was for you to make sure to do that with your actions, so that the engine will count them as seperate entities, if you don't there will be problems, especially with ai and grass, trees, etc...
- aka Manslayer101
|
|
|
|