2 registered members (AndrewAMD, juanex),
1,247
guests, and 6
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
vec_for_vertex and polygons
#118965
03/22/07 19:37
03/22/07 19:37
|
Joined: Jan 2006
Posts: 1,829 Neustadt, Germany
TWO
OP
Serious User
|
OP
Serious User
Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
|
With vec_for_vertex you can get the relative position of a vertex. So is it true that 3 following numbers build a triangle (polygon)? So this would give me the first triangle of the entity: Code:
var vert1, vert2, vert3;
vec_for_vertex(vert1,1); vec_for_vertex(vert2,2); vec_for_vertex(vert3,3);
Or are the vertex numbers from MED like you build the modell (random)? Thanks
|
|
|
Re: vec_for_vertex and polygons
[Re: TWO]
#118968
03/23/07 12:02
03/23/07 12:02
|
Joined: Jan 2007
Posts: 1,619 Germany
Scorpion
Serious User
|
Serious User
Joined: Jan 2007
Posts: 1,619
Germany
|
i am not sure what you want with it and maybe there is a better way..., because you cant create vertexes or faces; you can just move vertexes...
edit: maybe u can do something as the position relative to the objects origin and go trought all vertexes and this which have the same position is the right one...
Last edited by Scorpion; 03/23/07 12:03.
|
|
|
Re: vec_for_vertex and polygons
[Re: Scorpion]
#118969
03/23/07 13:59
03/23/07 13:59
|
Joined: Mar 2006
Posts: 2,503 SC, United States
xXxGuitar511
Expert
|
Expert
Joined: Mar 2006
Posts: 2,503
SC, United States
|
I needed to do a similar thing. I was hoping to create a script to calculate lighting for models, but I couldn't find the faces...
xXxGuitar511 - Programmer
|
|
|
Re: vec_for_vertex and polygons
[Re: TWO]
#118971
03/23/07 15:53
03/23/07 15:53
|
Joined: Mar 2006
Posts: 2,503 SC, United States
xXxGuitar511
Expert
|
Expert
Joined: Mar 2006
Posts: 2,503
SC, United States
|
I tried, JCL simply said that I should look into writing a plugin using DX mesh commands. Unfortunatly, I don'y know sh*t about C++
xXxGuitar511 - Programmer
|
|
|
Re: vec_for_vertex and polygons
[Re: xXxGuitar511]
#118972
03/23/07 15:55
03/23/07 15:55
|
Joined: Mar 2006
Posts: 2,503 SC, United States
xXxGuitar511
Expert
|
Expert
Joined: Mar 2006
Posts: 2,503
SC, United States
|
I just gave more thought to your project. How are you going to tell where the sound is? I could see how a trace would work to tell if theres somethin in the way, but how are you going to use model polygons to do this? (I'm assuming your using model-based levels...)
xXxGuitar511 - Programmer
|
|
|
|