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 / my simple flight sim problems

Author
Message
pimpin dj
21
Years of Service
User Offline
Joined: 28th Dec 2003
Location: michigan
Posted: 16th Jan 2004 18:56
i need help with a little problem i have, in matrix 3d in darkbasic classic, how do i texture a matrix? like make a skin and put it on a matrix, im going to simulate three united states real world levels. new york city, the rocky mountains, and hollywood. my problem isnt making the land forms but i need to know how to put skins on matrixes.

thanks to anyone that helps

dustin pruente

dj pimpin
arras
22
Years of Service
User Offline
Joined: 3rd Feb 2003
Location: Slovakia
Posted: 16th Jan 2004 23:44
look at help: prepare matrix texture command

..basicly you have to make your texture out of tilles and then put right texture tille on to right matrix tille
pimpin dj
21
Years of Service
User Offline
Joined: 28th Dec 2003
Location: michigan
Posted: 21st Jan 2004 19:16
yeah but how do i do that? im not a good programmer and im new to dark basic

dj pimpin
arras
22
Years of Service
User Offline
Joined: 3rd Feb 2003
Location: Slovakia
Posted: 21st Jan 2004 20:44
you have texture consisting of 4 tiles for example:

t1 | t2
-------
t3 | t4

1. make matrix 1,100,100,10,10
2. load image "yourtexture.bmp",1
3. prepare matrix texture 1,1,2,2
4. set matrix tile 1,4,6,3
5. update matrix 1

1. in firsth step you created martix number 1, 100 units wide and 100 units deep, consisting of 10 tiles in x axis and 10 tiles on z axis.

2. in this step you loaded image number 1 from file yourtexture.bmp which is texture you want to apply on matrix. This texture consist from 4 tiles as we sat at the begining.

3. in this step you sad to DB to use image num. 1 (your texture) as a texture for matrix num. 1 and split this image to 2*2 tiles = tiles num. 1,2,3,4 ...look at the schema at the begining.

4. now you sat to DB to take image tile num.3 and apply it on matrix tile 4,6 ...where 4 is tile position on x axis and 6 is its position on z axis.

5. now you finaly sat to DB to apply all the chances you made to display, so now they are wissible to you. You have to use this command afther any changes you make to matrix if you want that they are vissible.

Hope this helps...
pimpin dj
21
Years of Service
User Offline
Joined: 28th Dec 2003
Location: michigan
Posted: 24th Jan 2004 01:47
yeah it does. that explains a lot. thanks

dj pimpin

Login to post a reply

Server time is: 2025-06-28 03:06:48
Your offset time is: 2025-06-28 03:06:48