Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, VoroneTZ), 1,258 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
vec_for_vertex and polygons #118965
03/22/07 19:37
03/22/07 19:37
Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
T
TWO Offline OP

Serious User
TWO  Offline OP

Serious User
T

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] #118966
03/22/07 20:08
03/22/07 20:08
Joined: Jan 2007
Posts: 1,619
Germany
Scorpion Offline
Serious User
Scorpion  Offline
Serious User

Joined: Jan 2007
Posts: 1,619
Germany
they are "random"

Re: vec_for_vertex and polygons [Re: Scorpion] #118967
03/22/07 20:10
03/22/07 20:10
Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
T
TWO Offline OP

Serious User
TWO  Offline OP

Serious User
T

Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
Sh*t! Hmm, ok any other ideas?

Ok, what I need is all polygons of the level to build an exact duplicate of the it (only modells / meants I need 3 vectors with the position of the current polygon)

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 Offline
Serious User
Scorpion  Offline
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 Offline
Expert
xXxGuitar511  Offline
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: xXxGuitar511] #118970
03/23/07 15:22
03/23/07 15:22
Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
T
TWO Offline OP

Serious User
TWO  Offline OP

Serious User
T

Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
I need this for a sound plugin. With that you would be able to hear the sounds quieter and have other cool effects behind walls and in special rooms. But hey, let's ask Conitec.

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 Offline
Expert
xXxGuitar511  Offline
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 Offline
Expert
xXxGuitar511  Offline
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
Re: vec_for_vertex and polygons [Re: xXxGuitar511] #118973
03/23/07 16:40
03/23/07 16:40
Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
T
TWO Offline OP

Serious User
TWO  Offline OP

Serious User
T

Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
Easy. I'm using FMOD for my plugin, I just have to pass all polygons of the level and turn on the effect modifier.

Ok, this is a good solution, I should have known that myselfe Thanks


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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