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 / Gun Screws Up When Locked on to Screen (Screenshots of it)

Author
Message
Mason
21
Years of Service
User Offline
Joined: 20th Mar 2004
Location: Arizona
Posted: 9th Dec 2004 06:53 Edited at: 9th Dec 2004 06:55
I made an ak47 with 3ds max. It works fine in the game and looks perfectly normal until I lock it onto the screen. Then it is almost like i can see through it or something. Some of the parts are misplaced as well. I gave the whole source code and a screenshot so you can see if you can figure it out. I tried it with a model with less pieces and different shape (shotgun) and it worked...

Screenshot of the Gun when Locked




<-Mason->

-D-B-G- (Dark Basic Gamers)
Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 9th Dec 2004 07:23
yeah darkbasic has 'issues' with turning things inside out.
you'll have to find out which limbs turn inside out and deliberately turn them inside out in milkshape or something.

god knows why it does it, probably a zdepth issue.


Mr Niceguy
21
Years of Service
User Offline
Joined: 23rd Dec 2003
Location: The zoo
Posted: 9th Dec 2004 09:53
Yup, I had the EXACT same problem with a gun I made. You can't use Lock Object. I just used some code from the "Iced" example to keep the gun where the camera is, so it looks like it's locked, but it really isn't.

Mason
21
Years of Service
User Offline
Joined: 20th Mar 2004
Location: Arizona
Posted: 9th Dec 2004 11:42
OK good, I thought I was being stupid, lol. I tried to avoid the lock command and just make it seem like it was with me but I failed
Can you give me some source code to make the object move with me as if it were locked on. Thanks I'll look through Iced as well (but there is a lot of code)

<-Mason->

-D-B-G- (Dark Basic Gamers)
BadMonkey91
21
Years of Service
User Offline
Joined: 13th Jan 2004
Location:
Posted: 11th Dec 2004 01:32
the deal with the misplaced limbs, you cant use mirrored limbs.
Which sucks the big butt, but nothing a good modeller cant handle.

Sol462
20
Years of Service
User Offline
Joined: 12th Sep 2004
Location: playing with the spazookeedoo
Posted: 11th Dec 2004 05:54
but how would this go in multiplayer?
it's hard to explain, but like, how would i have a gun or something on the screen but other players wouldnt see it if they look at my character? or is that a fov thing?

Login to post a reply

Server time is: 2025-05-24 08:14:36
Your offset time is: 2025-05-24 08:14:36