Jump to content

[SOLVED] How to render AppPanorama camera to Widget


photo

Recommended Posts

I'm using the

-extern_plugin "AppPanorama" -mode fisheye -border 0.1

 flags to run my game in fisheye projection mode.

However I'm trying to render what the camera sees to a WidgetSpriteViewport.

With a normal projection I just create a new PlayerSpectator and set the widget's projection and modelview to the player's projection and model view.

However I want the WidgetSpriteViewport to also render the fisheye projection.

How can I do this?

 

EDIT:

Solved.

I've achieved it by using

engine.render.renderImage2D(projection, modelview, image, size, size, "", 0);

and using a WidgetSprite of which I set the image.

Link to comment
×
×
  • Create New...