DevalVR support

 

It is currently Sat May 25, 2013 3:35 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Is it possible to overlay a logo on bottom of the screen?
PostPosted: Wed May 26, 2010 11:30 pm 
Offline
I only was walking somewhere...
User avatar

Joined: Tue Aug 09, 2005 1:55 am
Posts: 2007
If you do not want to resize your image to cover 100% of screen, you can use a background image (with defined color) and place your imege over this background with orignal size. Then, if the two images has the same name, you can hide then with same timer instruction. Example:

Code:
image= imgini, 1, 0, 0, 100%, 100%, #99, 100, block, #FFFFFF;
image= imgini, 1, 0, 0, 0, 0, #99, 100, block, imageINI;
settimer=timer2,1,6.0,"Fade('','imgini',0,2.0);";


regards!


Top
 Profile E-mail  
 
 Post subject: Re: Is it possible to overlay a logo on bottom of the screen?
PostPosted: Fri May 28, 2010 8:41 am 
Offline

Joined: Sun Apr 11, 2010 10:55 pm
Posts: 20
that works, however you can see the band appear at the bottom. I used this code, however I admit I don't quite understand how it works. As far as I can see, I've set the blank white screen to dissapear before the white screen with the logo. This infact works the opossite though - the logo switches off first, then the white screen.

Is there a way to specify the size of the image rather than use two layers?

My image is 1024x600, and so is my saved panorama.

Thanks a lot for you help.


Top
 Profile E-mail  
 
 Post subject: Re: Is it possible to overlay a logo on bottom of the screen?
PostPosted: Wed Jun 02, 2010 9:54 am 
Offline

Joined: Sun Apr 11, 2010 10:55 pm
Posts: 20
I found the yellow rectangle as copied from one of your sample files did not work on a colleagues computer, the area inside the yellow rectangle displayed as black so I've tried to swap this for an image with an Alpha channel, now called rectangle.png.

Can you offer advice on how you amend the script so this works please?

(PAN1)
{
TYPE=PANORAMIC;
FILE=images/Spherev31.jpg;
TRANSITION=1,30,1,blend;

INCLUDE=buttons;
IMAGE= yellowrectangle, 1, -110,-42,#59,100,TRANS,rectangle;
IMAGE= img1, 1, -10, -10, #66, 100, no, image01;

image= imgini, 1, 0, 0, 100%, 100%, #99, 100, block, #FFFFFF;
image= imgini2, 1, 0, 0, 0, 0, #99, 100, block, imageINI;
settimer=timer2,1,2,"Fade('','imgini',0,2.0);";
settimer=timer3,1,.5,"Fade('','imgini2',0,2.0);";
}

(PAN2)
{
TYPE=PANORAMIC;
FILE=IMAGES/Spherev32.jpg;

INCLUDE=buttons;
IMAGE= yellowrectangle, 1, 0,-42,#59,100,TRANS,rectangle;
IMAGE= img1, 1, -10, -10, #66, 100, no, image01;

}

(buttons)
{
type=INCLUDE;

BUTTON= buttonhome ,1 , -110,-42,0,0, #59, image1, image1, image1, 100,90,100, no,no,no, 2 , nokey , release, "Go to PAN1 panorama", "GoToFrame("PAN1");";
BUTTON= buttonhome ,1 , 0,-42,0,0, #59, image2, image2, image2, 100,90,100, no,no,no, 2 , nokey , release, "Go to PAN2 panorama", "GoToFrame("PAN2");";

}

(image1)
{
TYPE=IMAGE;
FILE=IMAGES/Perspective1TINY.jpg;
}

(image2)
{
TYPE=IMAGE;
FILE=IMAGES/Perspective2TINY.jpg;
}


(rectangle)
{
TYPE=IMAGE;
FILE=images/rectangle.png;
}

(image01)
{
TYPE=IMAGE;
FILE=IMAGES/GrontmijsmallPerc.png;
}

(imageINI)
{
TYPE=IMAGE;
FILE=IMAGES/white.jpg;
}


Top
 Profile E-mail  
 
 Post subject: Re: Is it possible to overlay a logo on bottom of the screen?
PostPosted: Wed Jun 02, 2010 12:10 pm 
Offline
I only was walking somewhere...
User avatar

Joined: Tue Aug 09, 2005 1:55 am
Posts: 2007
Hi MisterS,

I see the problem, this is a bug with 16 bits desktops.
If you use a PNG file it should work correctly. Is it ok?

Another option (if the rectangle is bigger than buttons) is to place the rectangle below the butons:

Code:
(PAN1)
{
TYPE=PANORAMIC;
FILE=images/Spherev31.jpg;
TRANSITION=1,30,1,blend;

IMAGE= yellowrectangle, 1, -110,-42,#59,100,TRANS,rectangle;
INCLUDE=buttons;
IMAGE= img1, 1, -10, -10, #66, 100, no, image01;

image= imgini, 1, 0, 0, 100%, 100%, #99, 100, block, #FFFFFF;
image= imgini2, 1, 0, 0, 0, 0, #99, 100, block, imageINI;
settimer=timer2,1,2,"Fade('','imgini',0,2.0);";
settimer=timer3,1,.5,"Fade('','imgini2',0,2.0);";
}

(PAN2)
{
TYPE=PANORAMIC;
FILE=IMAGES/Spherev32.jpg;

IMAGE= yellowrectangle, 1, 0,-42,#59,100,TRANS,rectangle;
INCLUDE=buttons;
IMAGE= img1, 1, -10, -10, #66, 100, no, image01;

}


Top
 Profile E-mail  
 
 Post subject: Re: Is it possible to overlay a logo on bottom of the screen?
PostPosted: Wed Jun 02, 2010 1:14 pm 
Offline

Joined: Sun Apr 11, 2010 10:55 pm
Posts: 20
Thanks, and yes the rectangle was smaller, however the yellow was on top of the image before. This is no longer the case, instead I will resize either images or rectangle.


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group