About Store Forum Documentation Contact



Post Reply 
D.fxEnd image export doesn't work
Author Message
MrPi Offline
Member

Post: #1
D.fxEnd image export doesn't work
This code has worked before but doesn't work anymore. It is the first time I tried it after the ImageRTPtr change.

PHP Code:
C Imageimg1 = *D.fxEnd();
img1.ExportTGA("image.tga"); 
11-01-2014 02:44 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: D.fxEnd image export doesn't work
Hello, ImageRTPtr is reference counted so you need to keep a valid reference to it.

ImageRTPtr rt=D.fxEnd();

Also exporting to TGA currently is supported only for DX9.
11-01-2014 02:47 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #3
RE: D.fxEnd image export doesn't work
Exporting to TGA will be available on all platforms in next release.
11-02-2014 01:58 AM
Find all posts by this user Quote this message in a reply
MrPi Offline
Member

Post: #4
RE: D.fxEnd image export doesn't work
Thanks, it's working now, but the backbuffer rendering handling is a bit different now. Before I could do twice such calls in one function, but it was crashing. After separating the calls it worked. I'm only using this to aggregate things onto a large texture to be used in the game, so it's ok.
11-02-2014 12:56 PM
Find all posts by this user Quote this message in a reply
Post Reply