World position of pixel

Posted By: MatAllum

World position of pixel - 04/24/15 02:37

Is there any function, or any way in general, to retrieve the world position of a given pixel of a model's lightmap?
Posted By: DLively

Re: World position of pixel - 04/24/15 04:21

You can use HLSL to solve this not so trivial task.

You can look into shaders here --> click here and be awesome
Posted By: MatAllum

Re: World position of pixel - 04/24/15 11:06

I thought it was pretty much a one-way trip from shaders to rendering. Given that I'm trying to retrieve the positions back into lite-C, I'm guessing I need to consider other options.
Posted By: Anonymous

Re: World position of pixel - 04/24/15 13:54

Simple work around is to place a floating vertex on the pixel inside med and find the vertex pos.

However if you want to find several spots you may want to look into the HitBox/HitZone code Superku do with the second skin as a color field for hit spots and head shoots. http://www.coniserver.net/coni_users/web...4_4_2_3_2_2.htm

Just idea's no solution
Mal
Posted By: DLively

Re: World position of pixel - 04/24/15 13:59

Yes, that would work too I suppose, however with much less accuracy - And could cause problems If the model is going to be animated (Especially, Especially if the model is animated already [depending on the amount of frames, and the exact vertex position needed to be updated]).
© 2024 lite-C Forums