I'm trying to write a plugin for Adobe Photoshop, which would trace the most primary parts of a layer with a 1px pencil. So like.... if you have a layer of a building, or engine, it would kinda turn it into wire frame model. But
here is my problem how can you can determine the coordinates of and object's vertices from a 2d image, without knowing the light source details, surface
properties, refraction indexes, reflectivity, etc etc etc of that scene.
I’m thinking that if I get a function to convert a 2d image to grayscale use that to get a 2d wire frame then transpose that image on the z axis that might work. But, still how would I account for the textures, perspective, and reflections.
Also how the **** would I implement this into Photoshop as a plug in without the Photoshop code. I would like it to work as a filer. So it could do this effect on just 1 layer so how would I make it compatible with the .psd file format?
Thanks an advance for your advice getting me going on this.