Notifications
Clear all

[Closed] Accessing Lighting and Shadow Data??

Thanks for this Denis T.

How are you able to get the colour of the texture pixel at a 3Point location?

1 Reply
(@denist)
Joined: 10 months ago

Posts: 0
  1. Get Bary Coordinates of the point in the plane of the specific face (Geo Face)
    (see MXS Help meshop.getBaryCoords)
  2. Using Bary Coords get position in UVW space (Map Face)
    (see MXS Help How To … Develop a Bitmap Painting Tool – 3D Painting)
  3. Using Size of the texture get position in XY space (pixel position) of the Texture
    (see MXS Help How To … Develop a Bitmap Painting Tool – 3D Painting)
  4. Using GetPixels get the color
    (see MXS Help getPixels)

Thanks for this.I will give it a crack and hopefully post up some working code soon!

Cheers.

Page 2 / 2