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 Professional Discussion / Green is NOT my favorite color today

Author
Message
SoulMan
23
Years of Service
User Offline
Joined: 22nd Nov 2002
Location: In a house somewhere on the planet earth
Posted: 22nd Mar 2003 02:23
Hey everyone,
I am working on a program that is giving me fits.
This is really the first time I have started doing this but hey, I need to start somewhere.

Here is the code

Everytime I run this, after I enter text in, I get a green screen.
What I want it to do is to display the wireframe of the matrix that you enter in.
What is up with the green screen?
Thanks.
SoulMan
I am my own and own my am I
MrTAToad
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 22nd Mar 2003 02:34
Its because of the MAKE CAMERA command, although even removing that (and getting a blue screen), I cant see the matrix.

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
SoulMan
23
Years of Service
User Offline
Joined: 22nd Nov 2002
Location: In a house somewhere on the planet earth
Posted: 22nd Mar 2003 05:29
Ok
I managed to get it to work by working a bit with the numbers and taking out the Make Camera.
Now I have a couple more questions.

1. Why does the screen turn green when I use make camera.

2. How do coordnates work in Dark Basic Pro. I seem to be confused when it comes to working with the Matrix commands. If I postition a Matrix at 0,0,0 how do I position the camera to look straight down at it?
Thanks.
SoulMan

I am my own and own my am I
Richard Davey
Retired Moderator
24
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 22nd Mar 2003 05:37
1) Because by default cameras (other than 0) have no background. The green is to let you know this (i.e. give it a background!)

2) If your matrix is at 0,0,0 and you want the camera facing down on it - you need to position the camera to say 0,10,0 (depending on how large your matrix is the Y value might need to be higher) and then POINT the camera at 0,0,0 (or maybe even 0,0,5 for a "slanted" effect).

Cheers,

Rich

"Gentlemen, we are about to short-circuit the Universe!"
DB Team / Atari ST / DarkForge / Retro Gaming
SoulMan
23
Years of Service
User Offline
Joined: 22nd Nov 2002
Location: In a house somewhere on the planet earth
Posted: 22nd Mar 2003 06:27
Wait a sec.
When you create a matrix and place it at (0,0,0) does that mean the lower left point is placed right at 0,0,0?
Otherwise, this code works.



I have been trying to determine how to get it on the center and I think I am close. What do you think?
Thanks Rich for the help.
SoulMan

I am my own and own my am I
SoulMan
23
Years of Service
User Offline
Joined: 22nd Nov 2002
Location: In a house somewhere on the planet earth
Posted: 22nd Mar 2003 06:46
Oh, by the way, I want to program it to find the center and not just position the matrix at -50,0,-50 just to get the center.
How do I position the camera over the matrix without postitioning the matrix. I want the camera to find the center and display it looking down at the matrix.
Thanks.
SoulMan

I am my own and own my am I
Attreid
23
Years of Service
User Offline
Joined: 27th Nov 2002
Location:
Posted: 22nd Mar 2003 14:15


is it what you want ?

Bu$herie
How many civilians is he going to kill ? I know that Bush will sit at God's left, next to Saddam.
SoulMan
23
Years of Service
User Offline
Joined: 22nd Nov 2002
Location: In a house somewhere on the planet earth
Posted: 22nd Mar 2003 22:02
BINGO!!!!
Thanks for the help. I was going along similar lines, just couldn't figure out where I needed to stick the mWidth/2 and the mHeight/2 in.
Plus, I have determined how to display the entire matrix on the screen so it can adjust for different size matrixs.



One other question. Do we have a size limit of the matrix along a segment limit of a matrix?
I noticed if I go a certain size it doesn't display. I am curious about that.
Thanks.
SoulMan

I am my own and own my am I

Login to post a reply

Server time is: 2026-07-10 10:19:37
Your offset time is: 2026-07-10 10:19:37