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 / cieling matrix

Author
Message
lilgamz
19
Years of Service
User Offline
Joined: 10th Mar 2006
Location:
Posted: 19th Mar 2006 16:16
I need a clear exlplanation of how to make a cieling matrix. (like in cave run)

I dont get it.
nojbox87
19
Years of Service
User Offline
Joined: 26th Jun 2005
Location: England
Posted: 19th Mar 2006 18:18
actually i have always wondered how they did that. never looked into it though

I am a Christian and I know that God loves me. That is what makes my life so great!
Me!
19
Years of Service
User Offline
Joined: 26th Jul 2005
Location:
Posted: 19th Mar 2006 19:08
make matrix 1,10,10,10,10
make matrix 2,10,10,10,10
position matrix 2,0,2,0
set matrix 2,1,0,0,0,0,0,0
wait key

allows you see the matrix from the underneath, remove line 4 and you can`t see the matrix, to make a cave just randomize the two matrix like this

make matrix 1,10,10,10,10
make matrix 2,10,10,10,10
position matrix 2,0,2,0
set matrix 2,1,0,0,0,0,0,0
randomize matrix 1,2
randomize matrix 2,2
update matrix 1
update matrix 2
do
loop

then link the edges by pulling em down like this

sync on
sync rate 40
make matrix 1,10,10,10,10
make matrix 2,10,10,10,10
position matrix 2,0,2,0
set matrix 2,1,0,0,0,0,0,0
randomize matrix 1,2
randomize matrix 2,2
for i=1 to 10
set matrix height 1,0,i,1
set matrix height 1,10,i,1
set matrix height 2,0,i,-1
set matrix height 2,10,i,-1
next i
update matrix 1
update matrix 2
do
sync
loop

and you have a "cave", cheers



I don`t care what you say, theres no way the commander of a Kamakasi Squadron got promoted up through the ranks.
lilgamz
19
Years of Service
User Offline
Joined: 10th Mar 2006
Location:
Posted: 19th Mar 2006 19:54
thanks, but Im still confused.

Here is matrix number 1

make matrix 1,10000.0,10000.0,25,25
load bitmap "xxx.bmp",1
get image 1,0,0,256,256
delete bitmap 1
prepare matrix texture 1,1,2,2
randomize matrix 1,10.0
set matrix height 1,12,12,300.0
update matrix 1


This gives me a matrix that shows on the bottom of the screen. What I need is one exactly like that but on the top.

I guess the key is in the " set matrix" command, but I have no idea what all those numbers mean.

Thanks. Peace.
Me!
19
Years of Service
User Offline
Joined: 26th Jul 2005
Location:
Posted: 21st Mar 2006 10:39
see the help

set matrix matrix number,wireframe on/off(1 or 0), transparency on/off(1 or 0), >>>cull on/off (1 or 0)<<<, filter (see help), light on/off,fog on/off (hidden by or not hidden by), ambient light 1 or 0

its the cull value you set to 0, that stops the system hiding any faces that face away from you (like the underneath of a matrix), if you are texturing the matrix then you need to set the light to on and go through the normals (sinc DB doesnt adjust em when you randomize), to set it to respond to light correctly.





I don`t care what you say, theres no way the commander of a Kamakasi Squadron got promoted up through the ranks.
lilgamz
19
Years of Service
User Offline
Joined: 10th Mar 2006
Location:
Posted: 23rd Mar 2006 21:50
someone mentioned that a .x texture maybe more efficient than an matrix. How can I scroll a .x texture along like a matrix?

Thanks

Login to post a reply

Server time is: 2025-05-23 19:18:13
Your offset time is: 2025-05-23 19:18:13