Dual resolution

Hi!

I’m trying to have my game render in two resolutions. The scene at 720p and UI at 1080p.

Normally I would set the viewport to 720p, render it to texture and upscale. But I’m not sure how to approach this using jME3 API…

What would be the best approach to do that?

Thanks :slight_smile:

Could you not do this by making a separate viewport?

Why are you doing this?

@javagame said: Could you not do this by making a separate viewport?

I was thinking about this, but I can’t seem to find a way to overlay viewports and to set their resolutions directly.
Or am I wrong?

@zarch said: Why are you doing this?

Simple. The device I’m trying to run the game on won’t be able to handle 1080p at a decent framerate, but 720p should be obtainable. However at the same time I want a sharp crispy UI.
A lot of “last-gen” console games work this way.

Rener both to texture, do a third viewport that does the composition. Absolutly doable as I do this already :slight_smile: (for the opposite usecase ^^)

1 Like
@Empire Phoenix said: Rener both to texture, do a third viewport that does the composition. Absolutly doable as I do this already :) (for the opposite usecase ^^)
Ok. I'll try that. Thanks a lot :)