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.

3 Dimensional Chat / are you supposed to be able to make tiles different textures?!?

Author
Message
TeePee
22
Years of Service
User Offline
Joined: 18th Apr 2003
Location: Australia
Posted: 16th Nov 2003 01:04
Yea i need to make tiles different textures for my game, right. so the set matrix tile command sets a tile to a texture that has already been prepared by prepare matrix texture. now you can only have one texture prepared at one time but whenever you prepare a different one, every tile in the matrix is set to that texture. so because of this you can only have one texture on a matrix. i cant get it to do anything other then that. i think it is because i dont understand properly how to use prepare matrix texture. could someone please explain what i am doing wrong!?
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 16th Nov 2003 02:37
You can have loads of different textures on the same matrix, but all must come from same image.

The idea is to create one image which is tiled with textures, an example is to create an image 1024 * 1024 pixels, but cut it up into 16 squares of 256*256 pixels. So you get an image like the following:

01 02 03 04
05 06 07 08
09 10 11 12
13 14 15 16

the prepare matrix command is told how this image is tiled, ie 4 by 4

you can then texture individual tiles on matrix with numbers 1 to 16

Boo!
TeePee
22
Years of Service
User Offline
Joined: 18th Apr 2003
Location: Australia
Posted: 18th Nov 2003 09:02
is there any other way you can do it? i really dont want to have to create a tiled image because i plan on making a simple landscape editor for my game im making. this includes the ability for users to load up their own textures and this wont work properly if they have to then somehow create one single tiled image. so is there anyother way that this can be done? or not?
krannock
22
Years of Service
User Offline
Joined: 19th May 2003
Location: United Kingdom
Posted: 18th Nov 2003 11:15 Edited at: 18th Nov 2003 11:17
simple...
there is a program out there that will create matrix's and will let you tile it from existing bitmaps. it will then create a tile bitmap for you when it saves the matrix.

It's Matedit at http://www.matedit.com
and its free.
give it a whirl and see if its what you need.


Smile it could be worse....I smiled...it got worse!
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 18th Nov 2003 11:37
Matedit would compile all your textures into 1 big image, however Matedit is probably a little complex for the casual user and can't really be distributed with a game. I suggest using a hidden bitmap and pasting your textures onto it, then you can grab the image from the bitmap, or even save it with the level. You should make it so textures are replaced, so start with a basic texture set and let the user change the textures however they like. Matrice editors are a lot easier to make than people realise, on a small level design scale that is.


Van-B


I laugh in the face of fate!

Login to post a reply

Server time is: 2025-06-27 12:03:21
Your offset time is: 2025-06-27 12:03:21