Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (TipmyPip, 1 invisible), 18,789 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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