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 / Bullet Appearing of the Map Please Help!!!

Author
Message
ReiKumar
16
Years of Service
User Offline
Joined: 23rd Sep 2008
Location:
Posted: 6th Oct 2008 20:43
I've already posted this once before but no one gave a good answer so I'm hoping some one can help me this time around.

Every time the buttons is clicked, it creates the bullet off the map, not at the camera position.

IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 6th Oct 2008 22:41
So where's the code that sets the object position? I see you're setting the camera position again (unnecessarily) - could it be you used the wrong function?

kBessa
17
Years of Service
User Offline
Joined: 8th Nov 2006
Location: Manaus, Amazonas, Brazil
Posted: 7th Oct 2008 01:46
dbMakeObjectSphere(20,10,180,180);

You are creating the object at the same position always!

[center][center]
ReiKumar
16
Years of Service
User Offline
Joined: 23rd Sep 2008
Location:
Posted: 7th Oct 2008 05:47
Quote: "So where's the code that sets the object position? I see you're setting the camera position again (unnecessarily) - could it be you used the wrong function?"


dbSetObjectToCameraOrientation(20)



Quote: "dbMakeObjectSphere(20,10,180,180);

You are creating the object at the same position always!"


Thats too create the object.
kBessa
17
Years of Service
User Offline
Joined: 8th Nov 2006
Location: Manaus, Amazonas, Brazil
Posted: 7th Oct 2008 07:16
I know it creates the object. What I'm saying is that it will create always at the same position.

If you want to creat it at the camera position you should do it like this:

Quote: "dbMakeObjectSphere(20,CurrentCameraX,CurrentCameraY,CurrentCameraZ);"


[center][center]
ReiKumar
16
Years of Service
User Offline
Joined: 23rd Sep 2008
Location:
Posted: 7th Oct 2008 07:26
That only creates the sphere, it doesnt position it:




Quote: "dbMakeObjectSphere
This command will construct a 3D object from a sphere mesh. The mesh is used as the root limb for the 3D object. The 3D object will be constructed untextured and such models will appear white when displayed.

Syntax
void dbMakeObjectSphere ( int iObject, float fSize )
void dbMakeObjectSphere ( int iObject, float fSize, int iRows, int Columns ) "
kBessa
17
Years of Service
User Offline
Joined: 8th Nov 2006
Location: Manaus, Amazonas, Brazil
Posted: 7th Oct 2008 07:33
Oh, sorry. I wasn't concentrated :-P

It should be dbPositionObject(20,CurrentCameraX,CurrentCameraY,CurrentCameraZ);

That should do it, just put this line after the dbMakeObjectSphere ok?

[center][center]
ReiKumar
16
Years of Service
User Offline
Joined: 23rd Sep 2008
Location:
Posted: 7th Oct 2008 08:51
Ok thanks that did it

Login to post a reply

Server time is: 2024-09-30 07:21:46
Your offset time is: 2024-09-30 07:21:46