return the color of a shaded face or point?

Software: Away3D 4.x

davivid, Newbie
Posted: 28 May 2012 02:49 PM   Total Posts: 12

How can I access the the colour of a particular face or point? after being rendered using various light and shadow sources?

   

davivid, Newbie
Posted: 11 June 2012 01:56 PM   Total Posts: 12   [ # 1 ]

Is this possible, after a lot of searching I haven’t found any info.

Looking through the source I did see LightProbes.as, which sounds like it might be what I’m looking for, but then I couldn’t find any info on it.

   

Shegl, Sr. Member
Posted: 11 June 2012 02:43 PM   Total Posts: 134   [ # 2 ]

no no davivd. Just capture your 3D output like here away3d com/showcase/jane_austen_regency_dressup in bitmapdata. And then use getPixelAt(x,y):uint;

   

davivid, Newbie
Posted: 11 June 2012 03:55 PM   Total Posts: 12   [ # 3 ]

ah no that wont work, I need a real time feed of ~hundreds of light measurement points. Its for a lighting simulation type app / experiment.

   

Shegl, Sr. Member
Posted: 11 June 2012 04:20 PM   Total Posts: 134   [ # 4 ]

davivid I dunno. I hope u will find help from guys over here.

   

Richard Olsson, Administrator
Posted: 16 June 2012 01:41 PM   Total Posts: 1192   [ # 5 ]

I’m afraid you can’t do this except using the method that Shegl suggests. Because you can’t retrieve anything from a shader, and the only way to retrieve something from the already-rendered backbuffer is by drawing it to a BitmapData using the Context3D API for this.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X