Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline tidalWave  
#1 Posted : Wednesday, December 21, 2011 3:59:41 AM(UTC)
tidalWave

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.

Wanna join the discussion?! Login to your forum accountregister a new account. Or Connect via Facebook Twitter Google

Offline Benjamin  
#2 Posted : Wednesday, December 21, 2011 4:19:35 PM(UTC)
Benjamin

Medals: Admin

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:
Code:

Tutorials.DrawImage();


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!
Offline tidalWave  
#3 Posted : Wednesday, December 21, 2011 11:06:41 PM(UTC)
tidalWave

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?

Offline Benjamin  
#4 Posted : Thursday, December 22, 2011 2:00:29 AM(UTC)
Benjamin

Medals: Admin

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).
Rss Feed  Atom Feed
Users browsing this topic
OceanSpiders 2.0
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.

Powered by YAF.NET | YAF.NET © 2003-2022, Yet Another Forum.NET
This page was generated in 0.042 seconds.