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 / Urgent help! My object is transparencing itself!

Author
Message
This one
20
Years of Service
User Offline
Joined: 7th Feb 2004
Location: Usa
Posted: 5th Apr 2004 05:51
Im really confused why my object is coming out see through! Try out this code and it'll show you exactly what i mean. IF anyone can help me as to why i can see through this object than thansk a million! No my ghost isn't turned on! here is the code im using, just load any of your own model and ground image in to use with this code and ull see what i mean. Im really confused because ive never gotten over this problem before.



"All creators of a game, have the true name"
This one
20
Years of Service
User Offline
Joined: 7th Feb 2004
Location: Usa
Posted: 5th Apr 2004 05:53
oh, i forgot to add the code

make matrix 1,10000.0,10000.0,25,25
randomize matrix 1,50.0

rem Position camera
position camera 5000,200,5000
rem load object
load object "yourobjecthere.3ds",1
scale object 1,50,50,50
Lock object on 1
position object 1,9,3,3
rem Activate manual sync
sync on

rem Begin loop
do

rem Control camera with arrow keys
if upkey()=1 then move camera 10.0
if downkey()=1 then move camera -10.0
if leftkey()=1 then angley#=wrapvalue(angley#-2.0)
if rightkey()=1 then angley#=wrapvalue(angley#+2.0)

rem Update camera
xrotate camera 0.0
yrotate camera angley#
zrotate camera 0.0

rem Syncronise
sync

rem End loop
loop


"All creators of a game, have the true name"
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 5th Apr 2004 06:09
do u want to lock it to the camera or just have it as a world object?

try this example




fall down seven times, stand up eight
This one
20
Years of Service
User Offline
Joined: 7th Feb 2004
Location: Usa
Posted: 5th Apr 2004 20:06
yea it locks and all like its supposed to but, you can see the stuff inside the object. You know for instnace the plane model that comes in dark matter, If you locked that object to the screen using that code i gave earlier and playe dhte animation, you can see the weels moving insde the plane and all the gears or whatever is moving inside it.

"All creators of a game, have the true name"
MiR
21
Years of Service
User Offline
Joined: 13th Jul 2003
Location: Spain
Posted: 5th Apr 2004 21:09
Might be a bug in DBPro.

Libera tu mente y te liberaras a ti.
the_winch
21
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 5th Apr 2004 22:29
It could be that the object is too close to the camera. Try moving it further away.
This one
20
Years of Service
User Offline
Joined: 7th Feb 2004
Location: Usa
Posted: 6th Apr 2004 02:54
how can i move it further away,

is it liek

position object #,0,0,0

or

point camera 0,0,0

or whatever. I mean if this is going to be the case then, when i want to create a first person shooter where the gun bobs using a sin curve, how can i prevent it from showing up like that. If anyone can give me a Lock code so i can subsittute my objects in so i can see who to posistion the camera corectly, then that would really help alot!
Thanks
Thisone

"All creators of a game, have the true name"
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 6th Apr 2004 04:06
to move it away alter the z dimension after the lock command in the position command to a more positive integer.

Lock object on 1
` x,y,z
position object 1,9,3,3


fall down seven times, stand up eight
This one
20
Years of Service
User Offline
Joined: 7th Feb 2004
Location: Usa
Posted: 6th Apr 2004 05:22 Edited at: 6th Apr 2004 05:31
I just Edited this post because ive fixed my problem. Thanks for all the Help guys and thanks for that tip indi, i messed with it till i figured it out. Indeed the object wasn't being scaled but yet just being moved to close to the camera.
Thanks alot!
Thisone

"All creators of a game, have the true name"

Login to post a reply

Server time is: 2024-11-26 12:49:58
Your offset time is: 2024-11-26 12:49:58