Hi there,

I know the function c_trace and SCAN_TEXTURE can output tex_color, but this only works on levelblocks not models and only gives the color of the light source, not the pixel color of the model's skin.

I would like to adjust a particle function depending on the pixel color on the terrain below it. I take it I should use;

Code:
pixel_for_bmap(skinpointer, coords_x, coords_y);



and use the entity's skin intead, but I'm stuck on converting the 3D position of my player to the correct 2D positions in the texture.

Anyone got any hints or ideas?

Cheers


PHeMoX, Innervision Software (c) 1995-2008

For more info visit: Innervision Software