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 / Texturing and matrix problem

Author
Message
paulkay
18
Years of Service
User Offline
Joined: 11th Jul 2007
Location:
Posted: 27th Jul 2007 16:56
how do i make a cool texture for the ground in this matrix? and also, whenever i try to put in a gun barrel, it alters the matrix so that it is above me, not where the ground should be. How do i fix this and/or whats a good code for a gun barrel?

Thanks,
penguinspy42


sync on
sync rate 30
make matrix 1,6000,6000,40,40
randomize matrix 1,2
fog on
fog distance 300
fog color rgb(104,129,155)
REM MAIN LOOP
DO
REM MAIN LOOP
caY# = camera angle Y()
if shiftkey()=1 then move camera 200
if spacekey()=1 then move camera -200
if leftkey()=1 then Yrotate camera wrapvalue(caY#-10)
if rightkey()=1 then Yrotate camera wrapvalue(caY#+10)
if upkey()=1 then move camera 20
if downkey()=1 then move camera -20
sync
loop



Libervurto
20
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 27th Jul 2007 20:51
You need to edit your post, the code snippet isn't inside the tags
I've seen this exact code before! And it still doesn't look very good.
I'll try and find the fixes I made and post it up here too

I am King of the noobs!
Libervurto
20
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 27th Jul 2007 21:03 Edited at: 27th Jul 2007 21:07
OK it's not exactly the same but it has the same problems.
randomize matrix 1,2 will hardly make any difference to the height.

Quote: "
I made some changes to your code:
You didn't update your matrix so the randomized heights never displayed on screen. I've added this.
I increased the RANDOMIZE MATRIX for bigger "hills".
I removed CaY# because it was never used.
I've made the program read the height of the cube's position in the matrix and it now repositions it to that height.
Removed the mouseclick, wasn't exciting just delayed the program.
Changed the camera follow parameters.
"




What do you mean "code for a gun barrel"?
I don't understand why a gun barrel would change the matrix, maybe this is part of not having the UPDATE MATRIX command.
To make a texture for a matrix you first make the texture then lookup PREPARE MATRIX TEXTURE in the help file.

I am King of the noobs!
paulkay
18
Years of Service
User Offline
Joined: 11th Jul 2007
Location:
Posted: 20th Aug 2007 21:04
nevermind about the gun barrel...
i changed the box to sphere and i want it to lay bombs.... how would i do that?
the game is like bomberman, but 3d.

Login to post a reply

Server time is: 2026-07-05 22:39:11
Your offset time is: 2026-07-05 22:39:11