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 / Camera problem , need help

Author
Message
Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 20th Jan 2006 05:56
This is my code
Quote: "autocam off

set display mode 1024,768,32
position camera 0,50,0


make matrix 1,100,100,10,10
load image "media/water.jpg",1
Prepare matrix texture 1,1,1,1


"



No madder what i put in POSITION CAMERA , camera WON`T change it`s position when i start , why ?

(yes , i haven`t put do and loop and sync , becouse there aren`t anything that`s heppening so far...i don`t know if that might have something to do with it..)

my posts have been read or opened
times !
The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 20th Jan 2006 07:23 Edited at: 20th Jan 2006 07:25
Hmmmm, I don't know if that's all your code... But if it is, it might have something to do with that the screen dosn't update, because you haven't synced. It dosn't really matter if the code dosn't really do anything, just put:



Althought if you compiled your code in DarkBasic Pro, it would quit again right away anyway. So no matter if the program dosn't really do anything, I usually place a do, sync and loop

-The Nerd

Free Particle Engine for DarkBasic Pro:
http://forum.thegamecreators.com/?m=forum_view&t=60141&b=5
Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 20th Jan 2006 09:17 Edited at: 20th Jan 2006 09:17
m...something VERY strange is going on here , when i try this :



And run it i get a WHITE screen ...


And when i try this:




it`s not white anymore , but it still doesn`t change the camera position , and that IS all the code , what a heck is going on here ? (sorry for the expression...)

my posts have been read or opened
times !
The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 20th Jan 2006 09:58 Edited at: 20th Jan 2006 10:05
Hmmm, I figured out that if you do it like this:


It works. Don't ask me why, but position the camera AFTER making the matrix works...

Could it be something like that when you make a matrix, the camera actually ignore the "autocam off" and just place itself at the newly created matrix?

-The Nerd

Free Particle Engine for DarkBasic Pro:
http://forum.thegamecreators.com/?m=forum_view&t=60141&b=5
Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 20th Jan 2006 10:05
Thanks very much for your help !

my posts have been read or opened
times !
UFO
19
Years of Service
User Offline
Joined: 11th Oct 2005
Location:
Posted: 20th Jan 2006 12:53
The first one didn't have a sync in the do-loop and manual sync was turned on. This is what happens when it is gets stuck in a do-loop withone syncing.


Hippopotomonstrosesquippedaliophobia-Fear of long words

Login to post a reply

Server time is: 2025-05-23 00:34:11
Your offset time is: 2025-05-23 00:34:11