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.

Newcomers DBPro Corner / Problems with 3D Code

Author
Message
flanque
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Australia
Posted: 23rd Mar 2004 13:18
Hi Everyone,

I am having some problems with some 3D code. I use to be good at DarkBasic...

When I run the attached code I just get a black screen with the FPS showing. Why is this? Is there an explaination of whatever it is I am missing so I can read and quit asking dumb questions?

Thx.

flanque

:: Specs: AMD Athlon XP 1600+ (1.4GHz), 256MB PC133 SDRAM, Leadtek Geforce 2MX SH 64MB, SB-Live!, LG SWrks 775N 17", MS Natural Pro KB, MS Optical Mouse, Windows 2000 Pro (SP3), DirectX 8.1 ::
hyrichter
20
Years of Service
User Offline
Joined: 15th Feb 2004
Location: Arizona
Posted: 23rd Mar 2004 14:49
Ok, as far as I know, there is no command to make cameras unless it's a command for DBPro. Take out the "make camera 1" and also the cls command in your main loop. If you're always clearing the screen, how can anything show up?

So your code should go like this:



Hope I helped.
Peter H
20
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Witness Protection Program
Posted: 23rd Mar 2004 22:23
Quote: "Ok, as far as I know, there is no command to make cameras unless it's a command for DBPro."

there is a "Make camera" command in DBPro...

You know, when i see an old lady slip and fall on the side walk, my first instinct is to luagh, but then i think, what if i where an ant? and she fell on me, it just doesn't seem so funny anymore.
the_winch
21
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 23rd Mar 2004 22:58 Edited at: 23rd Mar 2004 22:59
You don't need to make a camere, camera 0 is used by default. Also you should only turn the backdrop off if you have a sky box/sphere or the screen is full of objects. Using cls clears the screen so you don't see the object.

Login to post a reply

Server time is: 2024-11-26 09:37:13
Your offset time is: 2024-11-26 09:37:13