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 / How to do tiled textures on a plain object?

Author
Message
orv
22
Years of Service
User Offline
Joined: 9th Sep 2003
Location: Chicago, IL
Posted: 15th Sep 2003 06:35
I can do tiled textures fine using a matrix.
But the problem comes in that I need to be able to rotate the surface. The matrix seems to be specifically for doing terrain type stuff.

I want to take my texture and tile it across the surface of the plain object (which is much larger in dimension that the bitmap image). Right now it just seems to stretch the one image across the whole surface of the object.

Can it be done? I would think so!
What would be the syntax for the commands.

Any help would be appreciated.
indi
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 15th Sep 2003 06:44
at the moment u have to design each rotation as a seperate tile on your main plate.

Later on we might get rotate matrix tile in future patches.

http://www.lunarpixel.com
It's already tomorrow in Australia
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 15th Sep 2003 09:50
You can get the right tile texture by using the SCALE OBJECT TEXTURE and SCROLL OBJECT TEXTURE commands, but as indi says, you can't rotate the texture, although you may be able to flip it (haven't tried this though).
orv
22
Years of Service
User Offline
Joined: 9th Sep 2003
Location: Chicago, IL
Posted: 15th Sep 2003 16:19
it looks like SCALE OBJECT TEXTURE might be what i'm looking for.

just to clear up a bit of confusion, i don't want to rotate the texture, i want to rotate the surface that the texture is on.

i'm using a matrix to make a road using a road texture. i wanted curbs on the road's edges (a flat surface rotated 90 degrees) and i wanted a texture repeated on the side of my curb. i'm using a PLAIN OBJECT because the MATRIX doesn't allow you to tilt it from its flat position. the PLAIN OBJECT starts out flat, but i rotate it so its a "wall" or in this case a curb. I'm prob going into too much gory detail!

Well, i'll see what i can do with that SCALE OBJECT TEXTURE cmd!

thanks!
indi
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 15th Sep 2003 17:59 Edited at: 15th Sep 2003 18:00
If you need to make textures that resemble roads and corners u need to make each corner prerendered as a tile for each rotation currently until we get rotate matrix tile or something similar.

in order to blend two colours these are the combos required.

eg green and brown

full green suare
full brown square

half brown/green vertical
half green/brown vertical

half brown/green horizontal
half green/brown vertical

now if you want corners

green with a brown curve in the left bottom corner
brown with a green curve in the left bottom corner

green with a brown curve in the right bottom corner
brown with a green curve in the right bottom corner

green with a brown curve in the left top corner
brown with a green curve in the left top corner

green with a brown curve in the right top corner
brown with a green curve in the right top corner



now if we had a way to rotate the tiles we wouldnt need to make each rotation as its own tile in a series.

If we had rotate matrix tile we can reduce the amount of combinations to 3

1 full colour / 1 half half colour / and one corner tile of two colours.

rotating these 0 / 90 / 180 / 270 will alleiate having to create every tile combo as well as increase the pixel space per tile.

As you can see this gets very complicated but its possible.
I have 5 colour combinations in my matrix editor and it took a lot of blood sweat and tears to work this out.

It looks like your using a plain for some reason i cant fathom yet.

http://www.lunarpixel.com
It's already tomorrow in Australia
orv
22
Years of Service
User Offline
Joined: 9th Sep 2003
Location: Chicago, IL
Posted: 30th Sep 2003 21:53
tis along time coming: my response!

i figured out how to use SCALE OBJECT TEXTURE. It does what I need.
I'm ditching the matrix and going with a PLAIN object (which will work just fine for my needs).

Thanks for the input.

Login to post a reply

Server time is: 2026-07-25 07:00:30
Your offset time is: 2026-07-25 07:00:30