home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 2
General
Concept: Switch MP2 to D3D11/D2D rendering
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="morpheus_xx" data-source="post: 1126611" data-attributes="member: 48495"><p>After few weeks I continued on the DX11 switch. Finally I have the basic image rendering converted to use a custom D2D effect. </p><p></p><p>The main issue is, that I could not find a way to control sampler states for D2D render process. While there are methods for DX11 devices, all test didn't show an effect: rendering always used "Clamp" mode (repeating the outer pixel in non-texture area).</p><p></p><p>This looked very strange ofc. I worked around that issue by manual adding "border" logic to the shader: <a href="https://github.com/morpheusxx/MediaPortal-2/commit/5cc275b3f3441c9b7f2c29c6b2594cc9140d4946#diff-9bd808be0ee9a99868de94431a06863cR58" target="_blank">https://github.com/morpheusxx/MediaPortal-2/commit/5cc275b3f3441c9b7f2c29c6b2594cc9140d4946#diff-9bd808be0ee9a99868de94431a06863cR58</a>.</p><p></p><p>If anyone is able to tell me how I can set a real SamplerState which works in combination with Direct2D, I'm very happy...</p><p></p><p>Next step is to switch (back) the Video rendering to the ImageContext to allow custom shader effects (like sharpen). Now I'm stuck in the effects registration. The problem here is, that effects can be only registered by a Type, but we use different combination of shader effects. I have moodified SharpDX to allow this (<a href="https://github.com/sharpdx/SharpDX/issues/535" target="_blank">https://github.com/sharpdx/SharpDX/issues/535</a>), but unfortunately I can't compile the SharpDX solution. Any help is very appreciated.</p><p></p><p>Is any of our [USERGROUP=39]@Developers[/USERGROUP] able to help?</p></blockquote><p></p>
[QUOTE="morpheus_xx, post: 1126611, member: 48495"] After few weeks I continued on the DX11 switch. Finally I have the basic image rendering converted to use a custom D2D effect. The main issue is, that I could not find a way to control sampler states for D2D render process. While there are methods for DX11 devices, all test didn't show an effect: rendering always used "Clamp" mode (repeating the outer pixel in non-texture area). This looked very strange ofc. I worked around that issue by manual adding "border" logic to the shader: [url]https://github.com/morpheusxx/MediaPortal-2/commit/5cc275b3f3441c9b7f2c29c6b2594cc9140d4946#diff-9bd808be0ee9a99868de94431a06863cR58[/url]. If anyone is able to tell me how I can set a real SamplerState which works in combination with Direct2D, I'm very happy... Next step is to switch (back) the Video rendering to the ImageContext to allow custom shader effects (like sharpen). Now I'm stuck in the effects registration. The problem here is, that effects can be only registered by a Type, but we use different combination of shader effects. I have moodified SharpDX to allow this ([url]https://github.com/sharpdx/SharpDX/issues/535[/url]), but unfortunately I can't compile the SharpDX solution. Any help is very appreciated. Is any of our [USERGROUP=39]@Developers[/USERGROUP] able to help? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
General
Concept: Switch MP2 to D3D11/D2D rendering
Contact us
RSS
Top
Bottom