Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / camera to image with multisampling?

Author
Message
The Weeping Corpse
14
Years of Service
User Offline
Joined: 19th Sep 2011
Location: United Kingdom
Posted: 18th Nov 2012 18:32
Hi folks,

I have multisampling set to 8 and this works fine with camera 0.

But anything rendered to an image with camera 1 doesn't seem to have multisampling enabled and thus the resulting texture has jaggies.

Any ideas?

The Weeping Corpse
14
Years of Service
User Offline
Joined: 19th Sep 2011
Location: United Kingdom
Posted: 18th Nov 2012 18:48
so, according to google directx doesn't support multisampling when rendering to textures.

The work around is to

1) render camera 1 to the backbuffer (which does support multisampling)

2) copy the backbuffer into the texture
3) render camera 0 to the backbuffer and present as normal.

Are there any plugins that enable me to grab the backbuffer?

MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 18th Nov 2012 19:30
Quote: "Are there any plugins that enable me to grab the backbuffer?"


Matrix1Utils?

Or that other thing... ImageKit?

Login to post a reply

Server time is: 2026-07-07 14:01:03
Your offset time is: 2026-07-07 14:01:03