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
1 registered members (AndrewAMD), 14,661 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
Page 2 of 2 1 2
Re: Scanning entities [Re: Superku] #320559
04/22/10 16:42
04/22/10 16:42
Joined: Sep 2009
Posts: 1,032
Budapest
Aku_Aku Offline OP
Serious User
Aku_Aku  Offline OP
Serious User

Joined: Sep 2009
Posts: 1,032
Budapest
Do the vector(90,90,200) make the 90x90 size?

Re: Scanning entities [Re: Aku_Aku] #320585
04/22/10 21:57
04/22/10 21:57
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Have you read the c_scan description in the manual? There is everything you need to know.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Scanning entities [Re: Superku] #320587
04/22/10 22:03
04/22/10 22:03
Joined: Sep 2009
Posts: 1,032
Budapest
Aku_Aku Offline OP
Serious User
Aku_Aku  Offline OP
Serious User

Joined: Sep 2009
Posts: 1,032
Budapest
Yes i did. Perhaps that description isn't clear for me. I wasn't born in english speaking country. But if the manual is so short in describing that function i have to on to another solution for my problem.

Re: Scanning entities [Re: Aku_Aku] #320604
04/22/10 23:10
04/22/10 23:10
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
c_scan (VECTOR* pos, ANGLE* ang, VECTOR* sector, var mode);

When you look "from above" into your level, f.i. use the xy-Top-Down-View in WED as an illustration, sector.x is the width of your c_scan in degrees (0..360).
Example:
sector.x = 90;
camera.pan = 0. => scan-cone.pan = -45..45, //the value is centered around your camera.pan

When you look from the side in WED (xz,yz), sector.y ( = alpha = 45° in the image) determines the scan height in degrees.


sector.y behaves the same way as sector.x does, if your camera.tilt = 20 and sector.y is 25, your scan-tilt-angle will be -5..45. (camera.tilt-sector.y to camera.tilt+sector.y).

Be aware of the shape of a cone, c_scan is not a cylindrical scan.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Scanning entities [Re: Superku] #320605
04/22/10 23:24
04/22/10 23:24
Joined: Sep 2009
Posts: 1,032
Budapest
Aku_Aku Offline OP
Serious User
Aku_Aku  Offline OP
Serious User

Joined: Sep 2009
Posts: 1,032
Budapest
Thank you Superku, it is much more clearer now for me. I appreciate your work to teach me.

What do you think, how should implement an always visible, half transparent square in front of the camera at 150 distance?
It would be useful to check the proper c_scan usage for me.

Page 2 of 2 1 2

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