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 Discussion / texture rotation?

Author
Message
freak
21
Years of Service
User Offline
Joined: 20th Jan 2003
Location:
Posted: 23rd Jan 2003 02:35
I'd like to xrotate a texture by 90 degrees. Is that possible? Defaultly, textures are projected on objects from top.
I hope it is possible...
freak
21
Years of Service
User Offline
Joined: 20th Jan 2003
Location:
Posted: 23rd Jan 2003 02:36
I forgot to mention: it's a limb texture that has to be rotated

Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 23rd Jan 2003 02:55
ack... can't you people possibly program some effects for yourself

i've recently made a texture flipper for someone - take a look at that (i'm sure with a few mins you'll spot the mistake and get it working) ... then simply not to rotate the texture imagine where all the pixels will have to go.

array the pixels with a memblock and then once you figure out thier movement you should be able to use an Nth term algebra to come up with a good equasion for calculating the movement of the pixels and then apply it to the pixels - if you tan the results you can even interpol and rotate it every second

Anata aru kowagaru no watashi!
freak
21
Years of Service
User Offline
Joined: 20th Jan 2003
Location:
Posted: 23rd Jan 2003 18:26
I don't mean the texture itsself that needs to be flipped or rotated or whatever (that should I rather do using photoshop).

Defaultly, a texture is set onto an object in the direction of the Y-axis.
I'd like to have the texture projected on my object in the direction of the X-axis

But I think I've already found a solution:

xrotate object 1,90
fix pivot 1
texture object 1,1
xrotate object 1,270
fix pivot 1


freak
21
Years of Service
User Offline
Joined: 20th Jan 2003
Location:
Posted: 23rd Jan 2003 18:27
I didnt try that code yet, so I don't know if it will work.
I dont have time to try now, too much work for school.

Login to post a reply

Server time is: 2024-05-05 01:13:08
Your offset time is: 2024-05-05 01:13:08