Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Ayumi, 1 invisible), 584 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Possible bug In Collision c_trace Sprites #330776
06/29/10 18:32
06/29/10 18:32
Joined: Jul 2004
Posts: 1,710
MMike Offline OP
Serious User
MMike  Offline OP
Serious User

Joined: Jul 2004
Posts: 1,710
C_trace is not detecting sprites correclty bounding box.
do they need to be power of 2?

Check this topic Go TO Topic

Thanks.

Re: Possible bug In Collision c_trace Sprites [Re: MMike] #330844
06/30/10 08:30
06/30/10 08:30
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Sprites have no mesh. So you can't use polygonal collision detection with sprites - the POLY flag should not be set. A sprite collision shape is a box.

Re: Possible bug In Collision c_trace Sprites [Re: jcl] #330851
06/30/10 09:39
06/30/10 09:39
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
JCL,
the incorrect detection is also occuring when you
use c_scan with ONLY the SCAN_TEXTURES flag set.

It also appears to get worse if the sprite has a pan or tilt value applied...

Its not a polygon related issue.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: Possible bug In Collision c_trace Sprites [Re: EvilSOB] #330852
06/30/10 09:42
06/30/10 09:42
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Ah, ok. I'll look into this.

Re: Possible bug In Collision c_trace Sprites [Re: jcl] #330860
06/30/10 10:09
06/30/10 10:09
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
Thanks.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: Possible bug In Collision c_trace Sprites [Re: EvilSOB] #330989
07/01/10 13:40
07/01/10 13:40
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
The reason of the problem was the fact that sprites are billboards by default, thus their collision hull is vertical. When you trace them from above, you'll get hits slightly outside the image. Only sprites with a nonzero angle placed in WED have an oriented collision hull.

This will be fixed. As a workaround, you can use flat models instead of sprites.

Re: Possible bug In Collision c_trace Sprites [Re: jcl] #331092
07/01/10 21:02
07/01/10 21:02
Joined: Jul 2004
Posts: 1,710
MMike Offline OP
Serious User
MMike  Offline OP
Serious User

Joined: Jul 2004
Posts: 1,710
flat models, like just a face in med?

Re: Possible bug In Collision c_trace Sprites [Re: MMike] #331095
07/01/10 21:15
07/01/10 21:15
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Yes.


"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: Possible bug In Collision c_trace Sprites [Re: Superku] #331098
07/01/10 21:18
07/01/10 21:18
Joined: Jul 2004
Posts: 1,710
MMike Offline OP
Serious User
MMike  Offline OP
Serious User

Joined: Jul 2004
Posts: 1,710
but i have to .. resize the face according to the bmap size_right in runtime

Last edited by MMike; 07/01/10 21:18.
Re: Possible bug In Collision c_trace Sprites [Re: MMike] #331100
07/01/10 21:21
07/01/10 21:21
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline
Expert
Rei_Ayanami  Offline
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
scale_x y ?

Page 1 of 2 1 2

Moderated by  jcl, Nems, Spirit, Tobias 

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