Joined: 11/29/2011(UTC) Posts: 15 Location: Ohio, USA
|
How does one go about changing the texture filtering for a Material2DColored?
Setting UseFiltering to false in the content manager seems to have no effect.
|
|
|
|
Medals:  Joined: 8/20/2011(UTC) Posts: 1,421 Location: Hannover
Thanks: 18 times Was thanked: 97 time(s) in 92 post(s)
|
Setting UseFiltering="False" for an image entry in the ContentMetaData.xml file has the correct effect. It is fully supported on the client side. You can also add a method in the Texture class to override the ImageContent property from the content you get if you want to do it in code. Tested with the DeltaEngineLogo image via: But you are right when using the ContentManager tool this feature is not supported yet. In fact any meta data property change will not be send to the server. You have to wait for the next major ContentManager tool update for all the new features (image animations, fonts, meta data change, rename, updating files, etc. lots of improvements are in the works). Hope that helps!
|
|
|
|
Joined: 11/29/2011(UTC) Posts: 15 Location: Ohio, USA
|
Thanks Ben
I knew it was supported just couldn't figure out how to get it to work!
Any way to manually set a Material to use/not use filtering?
|
|
|
|
Medals:  Joined: 8/20/2011(UTC) Posts: 1,421 Location: Hannover
Thanks: 18 times Was thanked: 97 time(s) in 92 post(s)
|
You mean in code? Because setting it manually in your local ContentMetaData.xml works fine for now until the ContentManager tool will support it.
In code you would need to overwrite the basic functionality in Delta.Graphics.Basics (probably a bit of trial and error, you just need to return something different for Texture.UseFiltering).
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.