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 of a 3D object has gone all worng... got some screenshots

Author
Message
dragon tail
21
Years of Service
User Offline
Joined: 23rd Jul 2003
Location: United Kingdom
Posted: 27th Aug 2003 15:45
ok iam a n00b (well thats why iam in this forum . I finished the 3D tutroials (the monster hunting FPS one) and i started to experiment with the code, eventually replacing the gun barrel with a mp5 form darkMATTER.

This is wot it looked like:

as u can see, the weapon is not displaying properly. If i put the mp5 model on the floor, it displays properly, so i think it s something to do with the positioning of the gun.

heres how i load the gun into the matrix:


if anybody can tell me why its like that and show me how to do it properly i'll be very gratefull as this porblem has annoyed me very much. Thanks in advance!
Chiwawa
21
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 27th Aug 2003 18:24
you work in DBC?
.....if yes..then its the Lock Object On .... this is a bug...

just find another way..like Gluing the gun to a box..and positioning/rotating it the same way than the camera.... or ..find your way!

dragon tail
21
Years of Service
User Offline
Joined: 23rd Jul 2003
Location: United Kingdom
Posted: 27th Aug 2003 20:26
thx chiwawa , but any idea how u can glue the gun to a box? do u have a good snippet to do so? sorry, but iam still grasping BASIC, and some fuctions i dont have a clue . Thx in advance for anything helpful, i really appreciate it!

ps iam using darkbasic+darkmatter bundle, db version:1.13 (latest)
Mentor
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 27th Aug 2003 22:56
just fix the box to the screen and then set the object (the gun) to the box position and orientation and it should stay in front of you, just remember to hide the box and make sure you have the camera range for near set close enough to prevent the gun getting clipped, cheers.

Mentor.
dragon tail
21
Years of Service
User Offline
Joined: 23rd Jul 2003
Location: United Kingdom
Posted: 27th Aug 2003 23:44
i'll try that. thx u two !
Chiwawa
21
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 28th Aug 2003 17:46
see source button...

Chiwawa
21
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 28th Aug 2003 17:49
and if you want a more complex one...

take this one (source button)......it does not need any media...

Chiwawa
21
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 28th Aug 2003 17:52
and sorry ... i forgot to say that:

the second example...use

ARROW key to move
mouse to ..move gun
and leftclick to shoot

and ..im french..and in the second example you will see the word "RELAXEZ" it mean......calm down..

dragon tail
21
Years of Service
User Offline
Joined: 23rd Jul 2003
Location: United Kingdom
Posted: 31st Aug 2003 23:57
sorry for bringing this up again, but i cant seem to get a 3d model (.x or .3ds) to appear on screen using several differnt methods. any1 any idea how to do this with a model (especially the weapons from darkMATTER)



the above codes doesnt seem to work...
thx for any help.
ssj3_shadow
21
Years of Service
User Offline
Joined: 12th Jan 2003
Location:
Posted: 1st Sep 2003 08:45
if u r still having problems with your gun.. displaying the inside faces
i dont know if dbc has this coimmand but in dbpro its

set object cull

i had the same problem and this is the only solution

w00t -what does it mean?
Chiwawa
21
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 4th Sep 2003 02:11
my solution work too.....

i did a little example .. (just change the OBJECT.X..into your object name)

SEE SOURCE BUTTON

Login to post a reply

Server time is: 2024-09-20 21:39:31
Your offset time is: 2024-09-20 21:39:31