Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, Grant, Neb), 908 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
dynamic beams? #299143
11/21/09 17:50
11/21/09 17:50
Joined: Aug 2002
Posts: 164
Houston
Nicholas Offline OP
Member
Nicholas  Offline OP
Member

Joined: Aug 2002
Posts: 164
Houston
(using cscript)
I'm trying to create a presentation with 3dgs and here is what I need but am having problems doing so.
I am going to be making spheres in 3d space and need to be able to click on one then another and have a beam/line show up between them. I'm sure the best way to do that would be to click on one, store the temp value of the xyz of it's center then click on another (and this is the hard part I think) and get it's vector info reletive to the first sphere. This way I'd have the xyz origin for the beam from the first one, then just rotate the other one to face the 2nd, but then make sure it's long enough to reach the center of it.
Any ideas?
thanks

edit: I tried the mouseover code for the first part, but can't get it to work. (EVENT_TOUCH under help) it keeps telling me "parameter unknown emask" so I guess I need help with that part too. I got this working with lite-c, but I don't know if I want to do my project that way (not much exp, but I might have to)

Last edited by Nicholas; 11/21/09 18:28.

Black holes are where God divided by zero.
Re: dynamic beams? [Re: Nicholas] #299154
11/21/09 20:52
11/21/09 20:52
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
Have a look at "draw_line3d()" in the manual, it may be able to do what you want...
If so, you should be able to figure a way to use the EVENT_CLICK triggers.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1