Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Slasher on Thu 17/01/2013 11:24:53

Title: SOLVED: Help with Panorama module
Post by: Slasher on Thu 17/01/2013 11:24:53
Hi

i'm looking into making a game with the Panoramic module for a game idea I have.

So far it sort of works but it shows background color beyond the 6 320 x 240 stitched rooms onto 1 image (1600 x 1000.)

Is this normal and could someone please assist me in.

Code (AGS) Select
function room_Load()
{
SetBackgroundFrame(0);
Panorama3d.CreateFromBackground ();
Panorama3d.Enable();

}



Code (AGS) Select
function room_RepExec()
{
Panorama3d.StandardLookAround();
}


All help appreciated


Title: Re: Help with Panorama module
Post by: Khris on Thu 17/01/2013 12:03:30
There are two Panorama modules; the first uses a texture consisting of 4 squares next to each other, the 3d version uses an unwrapped cube which is the same with a ceiling and floor added above and below the 2nd image.
I looks like you're using the latter, thus a single image should be 320x320 and the entire image should be 1280x960. (4x3)

If following what it plainly says in the documentation still doesn't work, could you post the image you're using?
Title: Re: Help with Panorama module
Post by: Slasher on Thu 17/01/2013 13:42:17
Khris

My actual image is now :1280 x 960

each color (room area) is now 320 x 320

It now looks almost perfect Khris.

Game resolution is in 320 x 240resolution

How would I do it in 640 x 480 is acceptable.

Thank.


(http://i1181.photobucket.com/albums/x423/qikfire/panarama_room4_zps023da21c.png)

Thanks again

Title: Re: Help with Panorama module
Post by: Khris on Thu 17/01/2013 14:11:47
For 640, you'd simply duplicate all the values.
6 squares, 640x640, arranged in the same fashion. The image would be 2560 x 1920.

It looks "almost perfect" because your image's squares are slightly off. Turn on your paint program's grid.
Title: Re: Help with Panorama module
Post by: Slasher on Thu 17/01/2013 14:24:43
Hi Khris,

yes I know squares were slightly off, was example only.

Thanks for your help.

Additional question: I assume in the scripts somewhere is a way to have the move 'drag' rather then auto move around room via the cursor?

cheers again for all your help.

slasher


Title: Re: SOLVED: Help with Panorama module
Post by: Khris on Thu 17/01/2013 15:48:53
Having looked very briefly at the code, I don't think so, no.
The module's creator, Kweepa, is still around, so why don't you PM him or post in the module's thread?