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 / object lock on

Author
Message
Cybermind
Valued Member
22
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 22nd Jul 2004 06:55
I read the other threads regarding object lock on, but it doesn't help me, I tried enabling zdetph, but it is still totally distorded (I am trying to lock an weapon to the screen) (I see all parts of object, even the parts that where supposed to be hidden)
freak_oz
20
Years of Service
User Offline
Joined: 20th Jul 2004
Location: castricum
Posted: 22nd Jul 2004 17:54 Edited at: 22nd Jul 2004 17:54
here's a tutorial for you
load object "ak.x",1
lock object on 1
that's not to hard...

FREAK_OZ CREATIONS THE GAME COMPANY!(but not in darkbasic)
plzzz help im a noob in dark basic but almost a expert in gamemaker( a other program)but i wanna learn thiS! anyone?
Cybermind
Valued Member
22
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 22nd Jul 2004 18:57
It is not that I dont know how to do it, I locked the object to the screen, but it is very distorted, it shows faces that is hidden
Mentor
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 23rd Jul 2004 04:47
thats cos the object is too close to the camera and getting faces culled that are inside the minimum range, try the following command

set camera range 0.0001,2000

that should allow you to see objects close to the camera without them getting culled, and limit your maximum visible range to 2000 units, cheers.

Mentor.

PC1: P4 hyperthreading 3ghz, 1gig mem, 2x160gig hd`s, Nvidia FX5900 gfx, 6 way surround sound, PC2: AMD 1.2ghz, 512mb ram, FX5200 ultra gfx, stereo 16 bit soundblaster.
Cybermind
Valued Member
22
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 24th Jul 2004 05:45
thank you, will go try that right away, makes things a bit more simple for me (I fixed it by newxvalueing it)
Northern Lights
21
Years of Service
User Offline
Joined: 12th Oct 2003
Location: Minnesota, USA
Posted: 28th Jul 2004 10:32
doesn't seem to work for me. It just says it has to be above 1

Watson you idiot!
Aramil
21
Years of Service
User Offline
Joined: 27th Oct 2003
Location: Wherever my feet take me
Posted: 1st Aug 2004 05:35
Are you first positioning the object before you lock it? You position it as you would normally, and if you lock it, it would appear on the screen always as it did when you first locked it, except it cannot be obscured by other objects. What I recommend is using an object limb to position the gun, so you don't have to lock it. This is just off the top of my head, so may not be correct. However, I hope it helps

Login to post a reply

Server time is: 2025-05-25 17:32:17
Your offset time is: 2025-05-25 17:32:17