Gamestudio Links
Zorro Links
Newest Posts
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Trading Journey
by 7th_zorro. 04/27/24 04:42
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, TipmyPip), 747 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Scaling UV map in-game #449692
03/29/15 04:30
03/29/15 04:30
Joined: May 2005
Posts: 868
Chicago, IL
Dooley Offline OP
User
Dooley  Offline OP
User

Joined: May 2005
Posts: 868
Chicago, IL
I found this thread about rotating/panning the UV map.

http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=173596&page=1

It also mentions that one might be able to change the scale as well. Is this possible? If so, would it change the UV scale for all entities using the same model, or could UVs be scaled independently of each other?

I'm not too experienced with materials and effects, but could anyone clarify where this code would be used?

Sorry for all the questions ... hoping someone has done this before!

Re: Scaling UV map in-game [Re: Dooley] #449699
03/29/15 12:11
03/29/15 12:11
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
you can change independetly for each entity if you use an entity skill, read by the shader that can be used by a lot of entities, to use it as scaling parameter.

e.g. in vertex shader:

Out.tex.x = entuscale * In.tex.x;
Out.tex.y = entvscale * In.tex.y;

Last edited by sivan; 03/29/15 12:13.

Free world editor for 3D Gamestudio: MapBuilder Editor
Re: Scaling UV map in-game [Re: sivan] #449773
03/31/15 08:43
03/31/15 08:43
Joined: May 2005
Posts: 868
Chicago, IL
Dooley Offline OP
User
Dooley  Offline OP
User

Joined: May 2005
Posts: 868
Chicago, IL
Thank you! I will try this out.


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