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.

Newcomers AppGameKit Corner / Scaling a texture applied to an Object in AGK2?

Author
Message
Stab in the Dark software
Valued Member
17
Years of Service
User Offline
Joined: 12th Dec 2002
Playing: Badges, I don't need no stinkin badges
Posted: 23rd Jun 2015 00:48
Is there a way to scale an objects texture?

WindowsXP SP3,Vista,Windows 7 SP1, DBpro v7.7RC7
Stab In The Dark Editor
The coffee is lovely dark and deep,and I have code to write before I sleep.
BatVink
Moderator
16
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 24th Jun 2015 16:35
2D or 3D?

For Sprites it is SetSpriteUVScale()

For 3D objects, I don't think there are any UV commands yet.

Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
janbo
11
Years of Service
User Offline
Joined: 10th Nov 2008
Location: Germany
Posted: 26th Jun 2015 11:46 Edited at: 26th Jun 2015 11:47
For 3D and if it's an simple object you can read the object-file and write it again with changed UV entries.

Or do it with shaders : )
I think of something like:


For me, it seems that are the only two possibilities for now.


Using AGKv2 Tier1

Login to post a reply

Server time is: 2019-12-13 15:34:14
Your offset time is: 2019-12-13 15:34:14