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
Feature Requests
Adding support for Right-to-left languages (Hebrew, Arabic...)
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: 1106154" data-attributes="member: 48495"><p>Thanks [USER=96429]@velis[/USER], this is very useful information <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite24" alt="(y)" title="Thumbs Up (y)" loading="lazy" data-shortname="(y)" />!</p><p></p><p>I also spent more time into the actual rendering part:</p><p>My preferred solution should be directly working with (D3D9Ex) textures, so we can render them directly. Unfortunately none of the available text renderers directly support this. A common way would be to render text to a bitmap, then create a texture of it and let it render into our scene (GUI controls).</p><p></p><p>But if you look at this approach, I'm afraid it's much less effective than the current rendering: now we only have a 1024x1024 texture per font/size and collecting vertices (the corner coordinates of glyphs in our texture) which are then rendering using the same texture.</p><p>But with bitmap->texture per string this would require many textures to be used. But I'm not sure if one big texture is better than many smaller ones, but I guess so.</p><p></p><p>I tried to find a way to let DirectWrite render directly into a texture. If that would work we could save a lot of copy/bitmap format changes etc.:</p><p>There exists an example to use shared resources (surfaces, textures) between DX and DirectWrite: <a href="https://github.com/enix/SharpDXSharedResources" target="_blank">https://github.com/enix/SharpDXSharedResources</a>.</p><p>Unfortnutaley I only found this DX10 based example, although I've read that DX9Ex should be able to do the same. The major reason why we can't switch to DX10 is the lack of DXVA decoding support (at least I've read about this issue), which sounds like a No-Go for a video targeting application. (see <a href="http://devgurus.amd.com/thread/146158" target="_blank">http://devgurus.amd.com/thread/146158</a> and <a href="http://stackoverflow.com/questions/19846770/how-do-i-use-hardware-accelerated-video-h-264-decoding-with-directx-11-and-windo" target="_blank">http://stackoverflow.com/questions/19846770/how-do-i-use-hardware-accelerated-video-h-264-decoding-with-directx-11-and-windo</a>)</p><p></p><p>(edit: example for DirectWrite to bitmap: <a href="https://gist.github.com/Lyynx/3834740" target="_blank">https://gist.github.com/Lyynx/3834740</a>)</p></blockquote><p></p>
[QUOTE="morpheus_xx, post: 1106154, member: 48495"] Thanks [USER=96429]@velis[/USER], this is very useful information (y)! I also spent more time into the actual rendering part: My preferred solution should be directly working with (D3D9Ex) textures, so we can render them directly. Unfortunately none of the available text renderers directly support this. A common way would be to render text to a bitmap, then create a texture of it and let it render into our scene (GUI controls). But if you look at this approach, I'm afraid it's much less effective than the current rendering: now we only have a 1024x1024 texture per font/size and collecting vertices (the corner coordinates of glyphs in our texture) which are then rendering using the same texture. But with bitmap->texture per string this would require many textures to be used. But I'm not sure if one big texture is better than many smaller ones, but I guess so. I tried to find a way to let DirectWrite render directly into a texture. If that would work we could save a lot of copy/bitmap format changes etc.: There exists an example to use shared resources (surfaces, textures) between DX and DirectWrite: [url]https://github.com/enix/SharpDXSharedResources[/url]. Unfortnutaley I only found this DX10 based example, although I've read that DX9Ex should be able to do the same. The major reason why we can't switch to DX10 is the lack of DXVA decoding support (at least I've read about this issue), which sounds like a No-Go for a video targeting application. (see [url]http://devgurus.amd.com/thread/146158[/url] and [url]http://stackoverflow.com/questions/19846770/how-do-i-use-hardware-accelerated-video-h-264-decoding-with-directx-11-and-windo[/url]) (edit: example for DirectWrite to bitmap: [url]https://gist.github.com/Lyynx/3834740[/url]) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Feature Requests
Adding support for Right-to-left languages (Hebrew, Arabic...)
Contact us
RSS
Top
Bottom