Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (ozgur, Ayumi, VHX, monarch), 1,161 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 4 of 4 1 2 3 4
Re: War Effect (working title) "by spheresoft" [Re: frazzle] #181074
02/06/08 17:32
02/06/08 17:32
Joined: Aug 2005
Posts: 1,012
germany, dresden
ulf Offline
Serious User
ulf  Offline
Serious User

Joined: Aug 2005
Posts: 1,012
germany, dresden
hey, looks like you are making fast progress. may i ask how you did those shoreline?

Re: War Effect (working title) "by spheresoft" [Re: ulf] #181075
02/07/08 02:35
02/07/08 02:35
Joined: Jul 2007
Posts: 15
Brazil
leandropim Offline OP
Newbie
leandropim  Offline OP
Newbie

Joined: Jul 2007
Posts: 15
Brazil
i will try to explain it in english.. if you dont understand you ask me..

i create a target that follow the mouse pointer when i click create the point_dummy in the mouse position...
and i create 22 points.. the shore model has 22 vertices
i get the pos of these points_dummy and i create a shore and deform it...
after i save shore position in a database or a txt file...

see it...



function create_a_point()
{
you = ent_create("point.mdl", PosModel, point_dummy);
you.skill1 = cont_point; // save to deform vertex...
Save_Point(); // save in a temp vetor
}

function followpointer_shore() // create a target that follow mouse pointer
{
cont_point = 1; // vertex number
target_create = me;
var pos1;
var pos2;

while (cont_point <= 22) // shore has 22 vertices
{
pos1.x = mouse_pos.x;
pos1.y = mouse_pos.y;
pos1.z = 0;
vec_for_screen (pos1, camera);
pos2.x = mouse_pos.x;
pos2.y = mouse_pos.y;
pos2.z = 20000;
vec_for_screen (pos2, camera);
c_trace (pos1.x, pos2.x, ignore_me | ignore_passable | ignore_models);
vec_set (my.x, target.x);



if (mouse_right == 1)
{
PosModel.x = my.x; // create a point, get target position
PosModel.y = my.y;
PosModel.z = my.z;

create_a_point();

cont_point += 1;
wait(1);
}
wait (1);
}
ent_remove(me); // remove follow pointer

create_shore(); // create shore and deform vertices with point_dummys
}

function create_target_point()
{
ent_create("point.mdl",nullvector,followpointer_shore);
}


i hope you understand the comments...
bye...


leandro pim and maruska
spheresoft
www.leandropim.blogspot.com

Re: War Effect (working title) "by spheresoft" [Re: leandropim] #181076
02/11/08 16:57
02/11/08 16:57
Joined: Oct 2002
Posts: 799
Germany->Bavaria->Nuremberg
C
Christian__A Offline
User
Christian__A  Offline
User
C

Joined: Oct 2002
Posts: 799
Germany->Bavaria->Nuremberg
Interesting project - keep up the good work!


MfG, Christian__A. Visit my Site: www.chris-a.de


Re: War Effect (working title) "by spheresoft" [Re: Christian__A] #181077
02/14/08 04:38
02/14/08 04:38
Joined: Jul 2007
Posts: 15
Brazil
leandropim Offline OP
Newbie
leandropim  Offline OP
Newbie

Joined: Jul 2007
Posts: 15
Brazil
thks...i´m working very hard... i´m converting my project from c-script to lite-c...so i have no updates... and terrain now is a MDL file, cause i want to try newton physics but it doesnt works with HMP models...

Re: War Effect (working title) "by spheresoft" [Re: leandropim] #181078
02/14/08 04:43
02/14/08 04:43
Joined: Jul 2007
Posts: 15
Brazil
leandropim Offline OP
Newbie
leandropim  Offline OP
Newbie

Joined: Jul 2007
Posts: 15
Brazil
i forgot to say.. can anyone help me with mdl exporters.. idont want to save the terrain coords in file.txt i want to export to a new model.mdl deformed yet

like in ICEX

i see MDL SDK but i have no idea to start to build a plugin...

thks...

Page 4 of 4 1 2 3 4

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