Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
4 registered members (NewbieZorro, Grant, TipmyPip, AndrewAMD), 12,885 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How to visualize c_scan cones #259205
04/04/09 19:43
04/04/09 19:43
Joined: Apr 2005
Posts: 4,506
Germany
F
fogman Offline OP
Expert
fogman  Offline OP
Expert
F

Joined: Apr 2005
Posts: 4,506
Germany
Has anyone a nice idea on how to visualize a scan cone?
Would be handy.


no science involved
Re: How to visualize c_scan cones [Re: fogman] #259209
04/04/09 19:59
04/04/09 19:59
Joined: Jul 2004
Posts: 1,710
MMike Offline
Serious User
MMike  Offline
Serious User

Joined: Jul 2004
Posts: 1,710
i think you could create a cone in med, and unitary cone, like 1x1x1
then you on runtime, mesh deform the cone, using the mesh functions, to place the vertices on the range you used for the cone and etc etc. Have you though that?

Re: How to visualize c_scan cones [Re: MMike] #259211
04/04/09 20:04
04/04/09 20:04
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
how about constructing it with draw_line / draw_line3d ?

Re: How to visualize c_scan cones [Re: DJBMASTER] #259213
04/04/09 20:07
04/04/09 20:07
Joined: Apr 2005
Posts: 4,506
Germany
F
fogman Offline OP
Expert
fogman  Offline OP
Expert
F

Joined: Apr 2005
Posts: 4,506
Germany
Thank you for your fast replies.
I´ve thought on both methods but they are quite complicated.
Maybe there´s be an easier better way.
If not, I´ve to dig alot into vector math.


no science involved
Re: How to visualize c_scan cones [Re: fogman] #259232
04/04/09 21:13
04/04/09 21:13
Joined: Jul 2004
Posts: 1,710
MMike Offline
Serious User
MMike  Offline
Serious User

Joined: Jul 2004
Posts: 1,710
you dont need to dig to deep.

i mean the cone is facing a direction right , to you define a line that points the directions.

then from that point you trace a perpendicular line, with the lateral range of the cone, (laterals and z laterals) then the point of the cone origin, and those lateral limits, will do another line, which is the cone "areaa" but in planes only.

Re: How to visualize c_scan cones [Re: fogman] #259247
04/04/09 23:44
04/04/09 23:44
Joined: Dec 2003
Posts: 521
LazyDog Offline
User
LazyDog  Offline
User

Joined: Dec 2003
Posts: 521
hey Fogman, long time since our last talk.

you could use the delphi routines I wrote in Delphi SDK that do just that:

procedure Debug_C_Scan(Entity : PEntity; Angle : PAngle; Scan : PVector);
procedure Debug_DrawLine_ToFront(Entity : PEntity; Dist : Var_);
procedure Debug_DrawBoundBox(Entity : PEntity);
procedure Debug_DrawTriggerRange(Entity : PEntity);

for the Debug_C_Scan it's called right after a c_scan with the same paramerters to graphically display the range of the c_scan operation

used like this:

if ShowDebug = 1 then
Debug_C_Scan(ev.me,@ev.me.pan,_vec(15,15,125));

I will update the SDK Homepage to have the actual DLL's there so non-delphi users can use them too. I will update the page this weekend.


www.LazyDogSoftware.com
Delphi SDK Homepage

A7 Pro 780
Delphi 5 through 2010
Re: How to visualize c_scan cones [Re: LazyDog] #259304
04/05/09 11:19
04/05/09 11:19
Joined: Apr 2005
Posts: 4,506
Germany
F
fogman Offline OP
Expert
fogman  Offline OP
Expert
F

Joined: Apr 2005
Posts: 4,506
Germany
Mr. Michael Messerschmidt, I love you. laugh
Thank you very much!


no science involved
Re: How to visualize c_scan cones [Re: fogman] #259311
04/05/09 12:12
04/05/09 12:12
Joined: Apr 2005
Posts: 4,506
Germany
F
fogman Offline OP
Expert
fogman  Offline OP
Expert
F

Joined: Apr 2005
Posts: 4,506
Germany
Thumbs up! Works like a charm. smile

One thing though: In "Delphi_A7_DLL.h"

void Debug_C_Scan(ENTITY Entity, ANGLE* Angle, VECTOR* Scan);

has to be

void Debug_C_Scan(ENTITY* Entity, ANGLE* Angle, VECTOR* Scan);


no science involved
Re: How to visualize c_scan cones [Re: fogman] #259403
04/05/09 23:21
04/05/09 23:21
Joined: Dec 2003
Posts: 521
LazyDog Offline
User
LazyDog  Offline
User

Joined: Dec 2003
Posts: 521
fogman, very glad to help out!

good catch with that incorrect prototype. I will change that for the next release.


www.LazyDogSoftware.com
Delphi SDK Homepage

A7 Pro 780
Delphi 5 through 2010

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

Gamestudio download | 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