Gamestudio Links
Zorro Links
Newest Posts
MRC.c and WFO
by 11honza11. 11/18/25 15:22
webGL
by Ice2642. 11/17/25 21:27
Camera always moves upwards?
by NeoDumont. 11/17/25 09:56
Future of ZorroHFT
by TipmyPip. 11/16/25 13:52
COT Download with Quandl does not work
by Petra. 11/15/25 09:35
Training with the R bridge does not work
by Petra. 11/15/25 09:31
Zorro 2.70
by jcl. 11/15/25 08:43
brokerCommand PLOT_HLINE parameters
by M_D. 11/13/25 10:42
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (AndrewAMD, Quad), 32,974 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
SkinnyApe, tritom, sheliepaley, Blueguy, blobplayintennis
19179 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
mesh deformation #120020
03/29/07 00:24
03/29/07 00:24
Joined: May 2005
Posts: 83
Texas
mocosgames Offline OP
Junior Member
mocosgames  Offline OP
Junior Member

Joined: May 2005
Posts: 83
Texas
I'm trying to deform a mesh but I need to use global coordinates to move the vertex. I can't just subtract the models position from the vector because the model has to be able to rotate.

Re: mesh deformation [Re: mocosgames] #120021
03/29/07 00:31
03/29/07 00:31
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
You can't use a vec_rotate()?

var WorldPos[3];
var VertexPos[3];

vec_set(temp, WorldPos);
vec_sub(temp, my.x);
vec_rotate(temp, my.pan);

?


Please explain what your goal is, so we get a better idea of how to solve it...


xXxGuitar511
- Programmer
Re: mesh deformation [Re: xXxGuitar511] #120022
03/29/07 01:44
03/29/07 01:44
Joined: May 2005
Posts: 83
Texas
mocosgames Offline OP
Junior Member
mocosgames  Offline OP
Junior Member

Joined: May 2005
Posts: 83
Texas
Thanks for that, I never knew about the vec_rotate command

Re: mesh deformation [Re: mocosgames] #120023
03/29/07 02:00
03/29/07 02:00
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
Let us know if it works!

And please tell us what your doing. It sounds very interesting!


xXxGuitar511
- Programmer
Re: mesh deformation [Re: xXxGuitar511] #120024
03/29/07 03:07
03/29/07 03:07
Joined: May 2005
Posts: 83
Texas
mocosgames Offline OP
Junior Member
mocosgames  Offline OP
Junior Member

Joined: May 2005
Posts: 83
Texas
I'm making a program for real time sword trails.

Its almost working now but it still doesn't work right when you rotate it around more than one axis at once


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

Gamestudio download | 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