New Tutorial: UI Render To Texture

A feature in Ground Branch requires rendering Unreal textures to the UI, so while adding support for that, I figured I might as well get render targets worked too. The idea was to use it to render models in the UI, letting the player preview various bits of kit before choosing them.

You’d think that rendering a 3D model in the UI would be easy… well, it is… now that I know how, but getting there was a right pain in the arse. Information I found on the subject either wasn’t very helpful or was just plain wrong – especially the part about using the function SetExternalTexture() function.

Grrr.

Anyways, after going through the motions – and much swearing and general confusion –  I tried something different and, to my knowledge, no one else had suggested. It was almost perfect and, as usual, it was one bloody line. A couple of minor tweaks later and I was done.

Thought I better save someone from a potential aneurism and put up a tutorial on it.

Or is it aneurysm?

*shrug*

Tutorial: UI Render To Texture

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s