Hi, I want to make an interface similar to Citra for Android but I don’t where to start.
The final result in my mind it’s like the top screen with the viewport and the bottom part with a menu screen and a central joystick.
I tried asking to gemini but it didn’t work. For making the game running better and to learn while coding, I’d like to implement this in c++. Any suggestion?
is that an emulator?
for the buttons you can use the on screen touch input system. that already exists. but that’s for touch screens.
as for the split screen you can do this:
use a “multiplayer” split screen (non networked).
or use a texture with a scene capture for one of the screens.
the 1st one will take a bit of set up. but will be much more performant (i think).
Yeah it’s an emulator and i’d like to recreate a similar look. I asked gemini and it told me that using texture with a scene capture reduce perfomances. Since I want to run this on mobile I’d like to optimize it as much as I can. There’s no way I can force to render camera at a particular size and only in a portion of the screen? Idk using coordinates and giving it width and height through c++?
gemini the llm?
it makes me sad. i told you the same but you believe the llm more
yup i told you a scene capture will be less performant. it won’t kill a mobile app though.
that’s the only way i know.
i know in panda3d you can create small “windows” with different cameras. just like you’ve described. but i don’t know how to do that in ue, and afaik, it’s not possible without modifying the engine.
the split screen will give you something similar, you just can’t control the size and can’t overlap.
otherwise you can check how the engine implements splitscreen and do something similar.
sometimes there are few options and you have to bite the bullet.
you might be able to either change the parameters, or create a subclass of
UGameViewportClient
https://github.com/EpicGames/UnrealEngine/blob/5.5/Engine/Source/Runtime/Engine/Classes/Engine/GameViewportClient.h#L70
but i don’t recommend it if you’re not confident with cpp.
Ok thank you so much. I asked gemini (the llm) before asking cause I didn’t want to bother the community with my annoying question but here I am.
dont worry.
about the llm i just said as half joke, i meant that they usually give very poor answers compared to humans. (and also i value humans more than llms).
it’s ok to ask questions, it’s not annoying. as long as people do an internet search before asking to avoid asking repeated things, it’s totally fine.
many ppl here enjoy helping. and the forum becomes a live documentation.
have you managed to progress on your issue?