willy
02-22-2003, 08:52 AM
hello ,
i have created some 2D sprites (TGA)
testure are on QUADS
my sprite represent a world map (planisphere)
i want to detect mouse clic on it
i detect selection of the QUADS but it is not suffisant !
i want to detect the region of the sprite not the QUAD where the texture is ?
detect a clic in a rect is simple in 2D ,and i think it's not necessary to use the picking technique ?
how can i detect the real region off the sprite and the QUAD ?
the problem is my sprite (territory of the planisphere) are in contact and this pose some problems when i detect selection with the technique of picking !
the QUAD are superposed and this pose problem
i think the solution is in detection of the alpha region off the sprite !
have you a solution ?
willy
i have created some 2D sprites (TGA)
testure are on QUADS
my sprite represent a world map (planisphere)
i want to detect mouse clic on it
i detect selection of the QUADS but it is not suffisant !
i want to detect the region of the sprite not the QUAD where the texture is ?
detect a clic in a rect is simple in 2D ,and i think it's not necessary to use the picking technique ?
how can i detect the real region off the sprite and the QUAD ?
the problem is my sprite (territory of the planisphere) are in contact and this pose some problems when i detect selection with the technique of picking !
the QUAD are superposed and this pose problem
i think the solution is in detection of the alpha region off the sprite !
have you a solution ?
willy