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
2 registered members (Grant, AndrewAMD), 911 guests, and 9 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
ent_setvertex - anyone used this? #359392
02/17/11 10:08
02/17/11 10:08

M
mercuryus OP
Unregistered
mercuryus OP
Unregistered
M



Has anyone an idea how to adapt a plane complex model with ent_setvertex to a bumpy ground (terrain)?
Has anyone use ent_setvertex and can explain the parameters to me (with this example)?

like this model:


Re: ent_setvertex - anyone used this? [Re: ] #359394
02/17/11 10:16
02/17/11 10:16
Joined: Apr 2005
Posts: 4,506
Germany
F
fogman Offline
Expert
fogman  Offline
Expert
F

Joined: Apr 2005
Posts: 4,506
Germany
-Retrieve the lowest vertex position by vec_for_min
-Go through all vertices of the model
-For each vertex that is in the threshhold value (delivered from vec_to_min):
--Get terrain height at this position (take a look at level.c)
--adapt vertex to terrain height

This would be my approach.


no science involved
Re: ent_setvertex - anyone used this? [Re: fogman] #359405
02/17/11 13:30
02/17/11 13:30

M
mercuryus OP
Unregistered
mercuryus OP
Unregistered
M



ufff - this will work (and take time to change all the vertix) wink

thanx


Moderated by  adoado, checkbutton, mk_1, Perro 

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