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,699 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
"Moving" the skin on a model (more info inside) #265544
05/13/09 03:37
05/13/09 03:37
Joined: Feb 2008
Posts: 69
Australia
M
MegaMarioDeluxe Offline OP
Junior Member
MegaMarioDeluxe  Offline OP
Junior Member
M

Joined: Feb 2008
Posts: 69
Australia
I was wondering if there's a way to "move" the skin on a model.

I previously had a topic in "Starting with Gamestudio" but I didn't get a answer, so I was thinking I need to be more precise.

What I'm thinking is something like this in this movie that I recorded from a emulator running Super Mario 64.

If you look at the video, it seems like the skin on the lava is moving to the left.

Is this possible to replicate in GameStudio or should I give up trying to make this effect?


----
MegaMario
Regular 3D Game Studio User
http://www.krystalgaming.net
Re: "Moving" the skin on a model (more info inside) [Re: MegaMarioDeluxe] #265781
05/14/09 06:35
05/14/09 06:35
Joined: Apr 2009
Posts: 298
Southern Oceans
KiwiBoy Offline
Member
KiwiBoy  Offline
Member

Joined: Apr 2009
Posts: 298
Southern Oceans
Hi, you need to research manual about uv shifting.
From vec_for_uv (VECTOR*, ENTITY*, var number);
vec_to_uv (VECTOR*, ENTITY*, var number);


function shiftskin(ent,num) // displace the skin position of a vertex{
vec_for_uv(temp,ent,num);
temp.x += 1; // move the skin coordinate by 1 pixel horizontally
vec_to_uv(temp,ent,num);
}


Found another;u, v
u
v
The pixel offsets of sprite and A7.07 model textures in horizontal and vertical direction. They affect the matTexture texture transformation matrix. By changing these offsets in real time, effects like streaming water can be achieved.
Range:
unlimited (default: 0)
Type:
var
Remarks:
The texture offsets of model or terrain skins can also be changed through the fx_uvspeed action in the MtlFX template script.
On sky domes the u v parameters give the speed of the cloud layers in pixels per tick.
Example:
action water_current // assign to a water sprite
{
while (1) {
my.v = 5*total_ticks;
wait (1);
}
}
See


Last edited by KiwiBoy; 05/14/09 07:17. Reason: added info

Use the 'manual' Luke, the manual is your friend. 'Self reminder' smile

My WebPage

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