Sie sind nicht angemeldet.

1

Mittwoch, 1. September 2010, 20:21

limit view

can i limit the resolution of fullscreen mode?

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »budpull« (2. September 2010, 15:58)


2

Freitag, 3. September 2010, 06:22

hmm.... interesting question.
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

3

Freitag, 3. September 2010, 11:25

Hi,

how do you mean what?

best regards,
Klaus

4

Mittwoch, 8. September 2010, 09:43

Hi,

the question is:

We have a very large image to be shown but we don't want that the user can see an area bigger than 1920x1080 in fullscreen mode.

(We need a borderless black background and the 1920x1080 image in the center)

If the resolution is lower than 1920x1080, normal behaviour is ok.

I hope my explanation is clear now :-)

Thanks in advance

Budpull

5

Mittwoch, 8. September 2010, 11:40

Hi,

please have a look at the "fix-aspect" examples from the viewer download package,
there you have a fixed aspect of 16:9 and by adding a few lines to the "fixaspectresize" action
you can limit the size also to 1920x1080,

e.g. try that:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<action name="fixaspectresize">
		div(aspect,%1,%2);
		mul(destwidth,  stagewidth, aspect); 
		copy(destheight, stagewidth); 
		if(destwidth GT stagewidth, div(dwnscale,stagewidth,destwidth), set(dwnscale,1.0) );
		mul(destwidth,  destwidth, dwnscale);
		mul(destheight, destheight, dwnscale);
		if(destheight GT stageheight, div(dwnscale,stageheight,destheight), set(dwnscale,1.0) );
		mul(destwidth,  destwidth, dwnscale);
		mul(destheight, destheight, dwnscale);
		if(destwidth GT 1920, div(dwnscale,1920,destwidth), set(dwnscale,1.0) );
		mul(destwidth,  destwidth, dwnscale);
		mul(destheight, destheight, dwnscale);
		if(destheight GT 1080, div(dwnscale,1080,destheight), set(dwnscale,1.0) );
		mul(destwidth,  destwidth, dwnscale);
		mul(destheight, destheight, dwnscale);
		sub(destx, stagewidth,  destwidth);
		sub(desty, stageheight, destheight);
		mul(destx, destx, 0.5);
		mul(desty, desty, 0.5);
		copy(area.x,  	destx);
		copy(area.y,  	desty);
		copy(area.width,  destwidth);
		copy(area.height, destheight);
</action>


best regards,
Klaus

6

Mittwoch, 8. September 2010, 11:52

Thanks !!!

We'll let you know ...

Best regards

Ähnliche Themen