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 / Cant draw simple cube

Author
Message
Trev
20
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Canada, Ontario
Posted: 21st Feb 2004 00:43 Edited at: 21st Feb 2004 00:50
i got dark basic professional today and i cant get the simple cube command to work what happens is i click the create exe./run button and it loads but dosnt shows any image but goes back to my code.
Here is the code im using to draw the cube:
MAKE OBJECT CUBE 1,100
DO
YROTATE OBJECT 1, OBJECT ANGLE Y(1)+0.1
LOOP

Trevor Somerville
Emperor Baal
20
Years of Service
User Offline
Joined: 1st Dec 2003
Location: The Netherlands - Oudenbosch
Posted: 21st Feb 2004 00:58
arent you forgetting something?

SYNC ON
MAKE OBJECT CUBE 1,100

DO
YROTATE OBJECT 1,WRAPVALUE(OBJECT ANGLE Y(1)+0.1)
SYNC
LOOP

The manual/tutorials will tell you what "sync on | sync | wrapvalue" means


Quote: "
Amd 2500+ | 1024mb pc2700 | A7N8X-X | Geforce4 ti 4200 128mb
"
Trev
20
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Canada, Ontario
Posted: 21st Feb 2004 01:00
O...ok ty bcus i checked this one page in the help and thats all its said to put lol thx

Trevor Somerville
Lord Helmet
21
Years of Service
User Offline
Joined: 30th May 2003
Location:
Posted: 21st Feb 2004 01:28
that wont fix it, if you never say Sync On you dont have to say Sync in the loop.

add this to the begining (position camera 0,-200,0), your camera is inside your cube and you can only see it from the outside.
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 21st Feb 2004 01:32
get used to adding Autocam Off at the begining of your code otherwise the camera tends to flit all about the place as objects are loaded.

-RUST-
"What the... Mooooooooooo!"
the_winch
21
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 21st Feb 2004 04:17
Might want to check you have directx 9.0b and recent video card drivers.

Our civilization faces three great dangers. The first is destruction by a nuclear war, the second is being crippled with overpopulation and the third is the Age of Leisure.
Emperor Baal
20
Years of Service
User Offline
Joined: 1st Dec 2003
Location: The Netherlands - Oudenbosch
Posted: 21st Feb 2004 09:59
Well Lord Helmet, without sync on | sync the cube wont show up here. With sync on | sync it will. No need to reposition the camera.


Quote: "
Amd 2500+ | 1024mb pc2700 | A7N8X-X | Geforce4 ti 4200 128mb
"

Login to post a reply

Server time is: 2024-11-26 05:34:29
Your offset time is: 2024-11-26 05:34:29