SOLVED: Help with Panorama module

Started by Slasher, Thu 17/01/2013 11:24:53

Previous topic - Next topic

Slasher

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
function room_Load()
{
 SetBackgroundFrame(0);
 Panorama3d.CreateFromBackground ();
 Panorama3d.Enable();
 
}



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


All help appreciated



Khris

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?

Slasher

#2
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.




Thanks again


Khris

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.

Slasher

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



Khris

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?

SMF spam blocked by CleanTalk