The one other way you can arrange the 'wall' panels is to fold them both the same way, so that the pop-up becomes quite offset either forwards or backwards. Here is an animation and section drawing:
As you can see, it's not too hard to build in a gas strut to open the roof. This design was used for a decade or more by a British motorhome company.
The downside is that the parallel folding means that all the parts have to be exactly the right size or it won't fold exactly parallel.
Andrew