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.

DarkBASIC Professional Discussion / Can't scroll UV texture :\

Author
Message
Alduce
23
Years of Service
User Offline
Joined: 26th Oct 2002
Location: Rama spaceship
Posted: 4th Feb 2014 17:30
Hi guys, I have 2 box objects with a texture applied on both of these boxes. So each of these boxes using the same texture.

So to avoid to see the same identical texture I decided to scroll the UV of the second box texture but nothig! I continue to see 2 identical textures! why?

Here my code (outside the main loop):

chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 4th Feb 2014 17:42
Try this:



I'm not a grumpy grandpa
Alduce
23
Years of Service
User Offline
Joined: 26th Oct 2002
Location: Rama spaceship
Posted: 4th Feb 2014 17:55
Thank you chafari, looking your example I noticed that I was using "scroll object texture" with too large values.
I tried my code using U=0.5 V=0.1 and all working fine!

Thank you
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 4th Feb 2014 22:13
Plus both cubes had the same texture scroll anyway.

Login to post a reply

Server time is: 2026-07-07 02:40:08
Your offset time is: 2026-07-07 02:40:08