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.

Dark GDK / Teleportation when making or loading and object.

Author
Message
Slayer 706
16
Years of Service
User Offline
Joined: 18th May 2008
Location:
Posted: 19th May 2008 01:58
Whenever I make or load an object, the camera teleports to position 0,0,0 before creating the object. I assume it does it before, because I set the object to be created at the camera\'s position and the object is always created at 0,0,0. Here is the code:
Sorry about the code being so messy, but I was only making this to test out creating objects on the fly.

Anyway, the function is called when the \'+\' key is pressed during game-play. This teleportation also happens if I try to load an object. I have tried making the object not be created at the camera\'s position to no avail, and I have tried turning collisions off. Anyone know why this is happening? Thanks in advance.
jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 19th May 2008 05:03
By default, the autocam is on. At the start of your program, call dbAutoCamOff().
Slayer 706
16
Years of Service
User Offline
Joined: 18th May 2008
Location:
Posted: 19th May 2008 05:24
Thanks a lot. Just what I needed.
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 19th May 2008 18:56
But now remember when you make a cube... You're in it! (doesn't show until you move it or set culling off LOL

(That has puzzled me more than once! LOL)

Login to post a reply

Server time is: 2024-11-20 11:26:50
Your offset time is: 2024-11-20 11:26:50