Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (degenerate_762, Aku_Aku, 7th_zorro, Ayumi), 1,080 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Problem texture scaling #382265
09/06/11 18:00
09/06/11 18:00
Joined: Sep 2009
Posts: 496
P
Progger Offline OP
Senior Member
Progger  Offline OP
Senior Member
P

Joined: Sep 2009
Posts: 496
Hi to make the fps better i want to scale a model but my problem is when i scale it with my.scale_x=2; my.scale_y=2; then the texture gets bigger but i dont want it i want it the normal size but tiled in 4 parts.How can i reach it do you know a shader for it?
WFG PRogger laugh


asking is the best Way to get help laugh laugh laugh
Re: Problem texture scaling [Re: Progger] #382267
09/06/11 18:26
09/06/11 18:26
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline
Senior Expert
HeelX  Offline
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
Hi, when you scale an entity, the UV coordinates won't change. To achieve the effect, load the model in MED, scale it to the double size and and rescale the UV coordinates in the skin editor, until they are tiled (or do that in the editor in which you created the model, I dunno).

To dynamically change the tiling of a texture, you need a shader for that, yes.

Re: Problem texture scaling [Re: HeelX] #382270
09/06/11 18:55
09/06/11 18:55
Joined: Sep 2009
Posts: 496
P
Progger Offline OP
Senior Member
Progger  Offline OP
Senior Member
P

Joined: Sep 2009
Posts: 496
@HeelX thanks for ur answer laugh
hm i think shader would be better do you know such a shader or is it complicated to create one?
WFG Progger


asking is the best Way to get help laugh laugh laugh
Re: Problem texture scaling [Re: Progger] #382273
09/06/11 18:57
09/06/11 18:57
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline
Senior Expert
HeelX  Offline
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
If I am not mistaken you just have to write a vertex shader, which passes the texture coordinate, scaled by a constant factor (or a variable one via entity skills).

Re: Problem texture scaling [Re: HeelX] #382279
09/06/11 19:26
09/06/11 19:26
Joined: Sep 2009
Posts: 496
P
Progger Offline OP
Senior Member
Progger  Offline OP
Senior Member
P

Joined: Sep 2009
Posts: 496
@HeelX ok thank you then i must learn shading laugh there is no day without learning something grin


asking is the best Way to get help laugh laugh laugh

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