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 / positioning objects

Author
Message
citybee
17
Years of Service
User Offline
Joined: 27th Jan 2007
Location:
Posted: 12th Feb 2007 02:43
I know this might sound a little strange to advanced db pro users, but i want to know how to position a sphere in the middle of the screen without having to make it move or anything. just pretty much a sphere sitting there. i try this but the sphere doesnt thow up.

thx
Kieran
18
Years of Service
User Offline
Joined: 6th Aug 2006
Location: Hamilton, New Zealand
Posted: 12th Feb 2007 04:29
position object objectnumber,x,y,z

pick somewhere in the x,y and z to make it positioned to those co-ordinants

TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 12th Feb 2007 06:23
Use Autocam Off at the start of your program and when you've positioned the sphere as Kieran said, use Point Camera with the same X,Y,Z co-ords as the sphere.

TDK_Man

citybee
17
Years of Service
User Offline
Joined: 27th Jan 2007
Location:
Posted: 12th Feb 2007 23:03 Edited at: 12th Feb 2007 23:03
that works, but i cant see the sphere.
here is my code:

is anything wrong with it?

thx
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 12th Feb 2007 23:58
position the sphere at 0,0,0
back the cam position out with 0,0,-whatever number here until you see the thing

Michael Moore needs this film:Aaron Russo's America: Freedom To Fascism
RonPaul'08
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 13th Feb 2007 00:13
CattleRustler is right - it's just a camera positioning problem.

You have pointed the camera, but you haven't positioned it, so it's sitting at 0,0,0.

You've placed the sphere at 50,50,50 which is 50 units away from the camera.

But, your sphere has a radius of 200 units - which means that the camera is inside the sphere! (By default, in DB the inside of objects are not drawn, so the sphere seems to be invisible).

TDK_Man

Login to post a reply

Server time is: 2024-11-26 00:30:01
Your offset time is: 2024-11-26 00:30:01