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.

Author
Message
Encrypto Studios
18
Years of Service
User Offline
Joined: 18th Dec 2005
Location: Virginia
Posted: 2nd Sep 2009 23:50
ok so im trying to make a simple program to make an object below where the cursor object is.the object placed will be aligned with the plain(this will be replaced with a terrain later)

you need to press the "r" key after each click to reset it(i don't have a timer system yet) or hold it down to make a one every loop.

but the hit points of the cast are always at like 1.23...,0,0
so what am i doing wrong?



Thanks for you time
E.S.

HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 3rd Sep 2009 01:16 Edited at: 3rd Sep 2009 01:16
not sure which bit you are get your value from, however have you notice that your objects are being place in the middle of the plain see picture.



Dark Physics makes any hot drink go cold.

Attachments

Login to view attachments
Duke E
15
Years of Service
User Offline
Joined: 10th Mar 2009
Location:
Posted: 3rd Sep 2009 05:03 Edited at: 3rd Sep 2009 05:04
Are you talking about the "hit distance 1.62..." on HowDo's screenshot? you get 1.28?
It's from the "pick screen mousex(),mouseY(),1000" you use an arbitrary value (1000) for the distance parameter and get a slightly wrong value in return vectors. You could increase it to get more accurate result though, or use "get pick distance()".
Your "hit distance" value should always be 1.5 nothing else, the cursor at 2 above the ground and the ray hits the ground at 0.5

Regards
Encrypto Studios
18
Years of Service
User Offline
Joined: 18th Dec 2005
Location: Virginia
Posted: 3rd Sep 2009 17:00 Edited at: 3rd Sep 2009 17:04
thats weird,when i run it it only places the objects in the middle of the plain on the x any z that was my problem am i running the wrong version or something? i can get a screen shot for you when i get home. im using upgrade 1.05 (or something close to that) and the latest dark physics form the bonza thing.(dont know if this would help too soft bodies commands arent recconized)

Duke E
15
Years of Service
User Offline
Joined: 10th Mar 2009
Location:
Posted: 3rd Sep 2009 21:08
What version of DarkBasic Pro are you using? The pick commands changed alittle in the 7.4 update (the one i am using, and i suppose HowDo also).
Encrypto Studios
18
Years of Service
User Offline
Joined: 18th Dec 2005
Location: Virginia
Posted: 3rd Sep 2009 23:45
i am using version 1.074 (7.4) beta 1 and here is the pic of when i compile it. im not sure whats wrong

Attachments

Login to view attachments
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 4th Sep 2009 00:02
what nvidia driver are you using, is the newest one that's just come out.

have you update darkphysx to 1.05.

are you running on vista or XP.

just going through the checks to see if you have done every thing.

Dark Physics makes any hot drink go cold.
Encrypto Studios
18
Years of Service
User Offline
Joined: 18th Dec 2005
Location: Virginia
Posted: 4th Sep 2009 00:37 Edited at: 4th Sep 2009 01:57
im not sure if im reading the right info but for the nvidia in the properties dialog the drivers for the card is 9.09.0428 with a notebook Geforce 7400(old!)

and the nvidia engine is V2.8.1
im bad with drivers so this is prob wrong info

i have upgraded to 1.05

im using xp

thanks for your help so far

*edit ok found out that the most recent version is 9.09.0814 downloading now will see if that does it. darn slow internet

*edit 2

ok it works now! i also had to reinstall the update for dark physics

Thanks for all your help!

Login to post a reply

Server time is: 2024-11-24 17:23:56
Your offset time is: 2024-11-24 17:23:56