Search found 4 matches

by rujialiu
20 Apr 2017, 05:09
Forum: General Discussion
Replies: 9
Views: 5033

Re: How to Render a canvas to a high-resolution texture?

We've finally fixed the problem. All the methods posted here (including my own) are conceptually correct, but when it comes to implementation details, the real problem is that we forgot to call RSSetViewports() after changing render target, so D3D11 is still using the old viewport, thus restricted t...
by rujialiu
10 Apr 2017, 15:57
Forum: General Discussion
Replies: 9
Views: 5033

Re: How to Render a canvas to a high-resolution texture?

Does it work when you resize to a lower resolution? Good question! Unfortunately, no (I didn't try until you asked this). Now I feels that I'm misunderstanding something (I'm a novice). Now I'm doing this: // first, create a BRAND NEW canvas, set the widht/height to paperWidth and paperHeight, draw...
by rujialiu
09 Apr 2017, 10:30
Forum: General Discussion
Replies: 9
Views: 5033

Re: How to Render a canvas to a high-resolution texture?

You could also have a look at NoesisXamlEditor.cs where we have all the code to generate previews and thumbnail. That code is rendering UI into textures. Thanks, but I don't use Unity. I use Ogre with C++, so it should be quite different (and sorry, I didn't even find NoesisXamlEditor.cs in the SDK...
by rujialiu
07 Apr 2017, 11:17
Forum: General Discussion
Replies: 9
Views: 5033

How to Render a canvas to a high-resolution texture?

Hi! One of our GUI draws vector graphics on a canvas. We want to provde an "export to file" functionality to the user, is there an easy way to do it? Note that the exported texture usually have much higher resolution for printing, so I can't just dump the content of the current render wind...