Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Object Texture Flip ?

Author
Message
haliop_New
User Banned
Posted: 22nd Sep 2015 17:33
is there a way to Flip an Object Texture like i would with a Sprite Texture ?

since Sprites are 3d planes ... is there a way to control an object's texture in the same manner ?
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 22nd Sep 2015 18:52
i not saw any uv commands
maybe change the object uvs itself
or mirror once the texture image at hard disc.

AGK (Steam) V2 Beta .. : Windows 10 Pro 64 Bit : AMD (15.7.1) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
haliop_New
User Banned
Posted: 22nd Sep 2015 18:55
what i have now is that i take the texture , create a sprite with it spread it all over the screen flip it and then Render it to image and use this image on the object as a new flipped texture but it takes too long :/
major fps drop...
kinda wierd that there is no such a command since spriteflip is actually the same as planeflip ...
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 22nd Sep 2015 18:57
how about rotate the plane and disable culling,
means show from back side?

AGK (Steam) V2 Beta .. : Windows 10 Pro 64 Bit : AMD (15.7.1) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
janbo
15
Years of Service
User Offline
Joined: 10th Nov 2008
Location: Germany
Posted: 22nd Sep 2015 19:13 Edited at: 22nd Sep 2015 19:14
You could write a simple shader to do the job.
I have one for scrolling and streching UV coordinates...


Using AGKv2 Tier1
haliop_New
User Banned
Posted: 22nd Sep 2015 19:27
i'll try the culling disabling , thank you.

Janbo i dont understand shaders at all it makes my head hurt !
haliop_New
User Banned
Posted: 22nd Sep 2015 19:38
WOW Markus man i should pay you

thanks man it works flawless! no fps drop what so ever.

thank you for your time
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 22nd Sep 2015 19:54
Fine

AGK (Steam) V2 Beta .. : Windows 10 Pro 64 Bit : AMD (15.7.1) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)

Login to post a reply

Server time is: 2024-09-29 05:21:27
Your offset time is: 2024-09-29 05:21:27