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 / Help with my matrix

Author
Message
JoelJ
21
Years of Service
User Offline
Joined: 8th Sep 2003
Location: UTAH
Posted: 21st Oct 2003 04:56 Edited at: 21st Oct 2003 04:58
alright, i dont know much about matricies, so help me.
i have my matrix, and around the edges i want mountains,so you cant see off the edge of the world. any ideas?


thats my temp matrix while i am working out my engine and what i will be using for awhile. so base your help around that code if you could.

[edit]
if anyone has some good rocky/dirt textures i could use in my game, and you dont mind me using them, please let me know.

<{^_^<}
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 21st Oct 2003 15:00
Skybox.

A box that moves with you, and is textured with mountains, sky and all things beautiful.

Do a search on Skybox / Skysphere, you'll find loads of info on them.

BatVink (formerly StevieVee)
http://facepaint.me.uk/catalog/default.php
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 21st Oct 2003 15:29
Or put this code in just after you make the matrix...



Hope I Helped...


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
JoelJ
21
Years of Service
User Offline
Joined: 8th Sep 2003
Location: UTAH
Posted: 22nd Oct 2003 06:53 Edited at: 22nd Oct 2003 07:03
wow im stupid, if you saw what i said, ignore it

ok, here we go. it works. well, at least the collistion does. i cant see it...at all, but i can climb it

prolly something real simple. i tried cut and paste to diffent places and the mountains didnt work at all.
and also (sorry, im really dumb with these matricies) how do i make it so i cant go on the mountains. asin, i dont want the player to beable the leave the square the matrix is making thanx for anyhelp that will make its way into this post

<{^_^<}
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 22nd Oct 2003 10:00
you need to put in

Update Matrix

After the mountains are created...

Then to stop the player going off the edge of the matrix, do this:



That is, assuming that your z position data is saved in z# and same for x in x#.


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
JoelJ
21
Years of Service
User Offline
Joined: 8th Sep 2003
Location: UTAH
Posted: 22nd Oct 2003 20:33
ok, ill try that when i get home (im at school ) thanx a lot

<{^_^<}
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 23rd Oct 2003 07:21
Glad to help...


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy

Login to post a reply

Server time is: 2025-05-21 09:56:44
Your offset time is: 2025-05-21 09:56:44