Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (EternallyCurious, howardR), 646 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, 11honza11, ccorrea, sakolin, rajesh7827
19046 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Odd contradiction or unneeded flag #454307
09/03/15 20:10
09/03/15 20:10

M
Malice
Unregistered
Malice
Unregistered
M



I was reading the update thread and saw this
http://www.conitec.net/beta/collision.htm
Please view chart in the link -- damn spacing
Quote:

Obstacle Model, Sprite Model (POLYGON) Terrain, Map, Level
c_trace Ray Polygon Ray Polygon Ray Polygon


If c_trace is always striking a polygon hull, then why would you ever need the USE_POLYGON flag
http://www.conitec.net/beta/c_trace.htm
States..
Quote:
USE_POLYGON Uses a polygonal hull of all target entities even if their POLYGON flag is not set. Only for entities with a collision
model, i.e. when the WED PASSABLE flag was not set and collision_mode not deactivated at entity creation.


It would seem to say model and model polygon both interact as polygon hulls.

I can say for a fact that this whole section lead to much confusion for me as a nwebie. Including activating the USE_POLYGON flag in every trace. A habit I often revert to as noted in a post in the last 5 months were someone(maybe 3Run), corrected me again on this issue.

Last edited by Malice; 09/03/15 20:12.
Re: Odd contradiction or unneeded flag [Re: ] #454309
09/03/15 20:18
09/03/15 20:18
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
I think if you c-trace a non polygon model you hit the bounding box (as I remember I had some problems because of it). but yes, the manual says different.


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: Odd contradiction or unneeded flag [Re: sivan] #454310
09/03/15 20:22
09/03/15 20:22

M
Malice
Unregistered
Malice
Unregistered
M



So then fair enough evidence to request a blame the manual post?

Re: Odd contradiction or unneeded flag [Re: ] #454312
09/03/15 20:31
09/03/15 20:31
Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
txesmi Offline
Serious User
txesmi  Offline
Serious User

Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
I think the table is wrong.

The first column should say
ray > ellipsoid
ray > box ellipsoid
box > box

Try yourself
Code:
#include <acknex.h>

void main ()
{
	mouse_mode = 4;
	wait(1);
	level_load ( "" );
	camera->x = -60;
	ENTITY *ent = ent_create ( SPHERE_MDL, nullvector, NULL );
	vec_scale ( &ent->max_x, 2 );
	vec_scale ( &ent->min_x, 2 );
	while ( !key_esc )
	{
		VECTOR vecPos;
		vec_set ( &vecPos, &mouse_dir3d );
		vec_scale ( &vecPos, 1000 );
		c_trace ( &camera->x, &vecPos, NULL );
		if ( HIT_TARGET )
		{
			draw_text ( "EOEOE", mouse_pos.x, mouse_pos.y, COLOR_WHITE );
		}
		wait(1);
	}
	sys_exit ( NULL );
}


Last edited by txesmi; 09/03/15 20:34. Reason: sorry, sprites are boxes
Re: Odd contradiction or unneeded flag [Re: txesmi] #454313
09/03/15 20:34
09/03/15 20:34

M
Malice
Unregistered
Malice
Unregistered
M



@txesmi I will gladly take your informed opinion on face value. Also I don't want to reinstall the engine to test lol.

Thank you

Re: Odd contradiction or unneeded flag [Re: ] #454314
09/03/15 20:43
09/03/15 20:43
Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
txesmi Offline
Serious User
txesmi  Offline
Serious User

Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
Reinstall? Are you digging the manual without intalling 3dgs? Or did you uninstall it in a fury? grin

Re: Odd contradiction or unneeded flag [Re: txesmi] #454315
09/03/15 21:13
09/03/15 21:13

M
Malice
Unregistered
Malice
Unregistered
M



I'm using the online manual.I'm Haunting the forum. And yes I uninstalled it in fury. Little Malice throw a bunch of tantrums lately.

Last edited by Malice; 09/03/15 21:16.
Re: Odd contradiction or unneeded flag [Re: ] #454316
09/03/15 21:58
09/03/15 21:58
Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
txesmi Offline
Serious User
txesmi  Offline
Serious User

Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
Be water myfriend
Peace&Ganja


Moderated by  HeelX, Spirit 

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