Unable to update parts of a material dynamically

Apr 21, 2011 at 1:50 PM

Hi, adept,

As mentioned here, I need to update part of a material dynamically often. 

I'm encounter the exactly same problem with E13Mort, which is need to use a WriteableBitmap as DiffuseMap of a Material so that I can update the appearance of the Material dynamically.( exactly, needs to update parts of the Material periodically)

 After created a class that implemented the IMap interface, which also has a WriteableBitmap property, the initial appearance of the Material looks fine. But when I update the Pixels of the WriteableBitmap, the Material didn't change.

The only way to change the appearance of the Material I found is creating a new WriteableBitmap and give it to the DiffuseMap again. But in my scenario, I have to created a 4096*2048 WriteableBitmap and use it as an inside material of a sphere, every new WriteableBitmap of this size could consume more 100M memory additionally, this is unacceptable.

So is there any chance to update only parts of DiffuseMap of a Material dynamically? I really need this feature. Thanks!

Apr 26, 2011 at 7:42 AM

The issue have been registered as a work item here.

Apr 27, 2011 at 3:01 AM
adept wrote:

The issue have been registered as a work item here.

thanks, adept, looking forward to the solutions:)