Odd contradiction or unneeded flag

Posted By: Anonymous

Odd contradiction or unneeded flag - 09/03/15 20:10

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.
Posted By: sivan

Re: Odd contradiction or unneeded flag - 09/03/15 20:18

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.
Posted By: Anonymous

Re: Odd contradiction or unneeded flag - 09/03/15 20:22

So then fair enough evidence to request a blame the manual post?
Posted By: txesmi

Re: Odd contradiction or unneeded flag - 09/03/15 20:31

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 );
}

Posted By: Anonymous

Re: Odd contradiction or unneeded flag - 09/03/15 20:34

@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
Posted By: txesmi

Re: Odd contradiction or unneeded flag - 09/03/15 20:43

Reinstall? Are you digging the manual without intalling 3dgs? Or did you uninstall it in a fury? grin
Posted By: Anonymous

Re: Odd contradiction or unneeded flag - 09/03/15 21:13

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.
Posted By: txesmi

Re: Odd contradiction or unneeded flag - 09/03/15 21:58

Be water myfriend
Peace&Ganja
© 2024 lite-C Forums