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 Studio Chat / Sprite UV Scrolling and broadcasting

Author
Message
huggy70
3
Years of Service
User Offline
Joined: 11th Jun 2020
Location:
Posted: 6th Dec 2020 11:11
Hello everybody,

after struggling with the scene editor to get some UV Scrolling to work with a simple landscape background ( one must set SetDefaultWrapU(1) in the code for this Option of the scene editor to work at all, poor me how should I know that ?? Thank you forum search! ) , I still get an error when broadcasting to a device: "..must be power of 2, blah...". The image has a width of 2560 and resolution is 1280. All works well when run in windows.

Now when I set "#renderer "Basic" in code I get the same error under windows.

Is this UV-Scrolling sth. that is supposed to work only in vulcan engine?

blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 6th Dec 2020 19:55
1) That image is way too big
2) Like it says. It's not a power of 2
Loktofeit
AGK Developer
15
Years of Service
User Offline
Joined: 21st Jan 2009
Location: Sarasota, FL
Posted: 6th Dec 2020 20:22
"..must be power of 2" The image has a width of 2560 and resolution is 1280"

Try scaling it to 2048 x 1024. That would make it a Power of 2.
huggy70
3
Years of Service
User Offline
Joined: 11th Jun 2020
Location:
Posted: 7th Dec 2020 13:52
thank you for your kind feedback.

I must admit being a non native english fellow I confused somehow power of 2 with multiple of 2 of the width and not being 2^n

Never mind I set the image width to 2048 now but I still get the same error when using OpenGL with #renderer "Basic"
With the default render engine all works as expected even when the width is not power of 2

This is kind of a mistery to me

Login to post a reply

Server time is: 2024-04-24 06:42:45
Your offset time is: 2024-04-24 06:42:45