You are not logged in.

> The forum rules have been updated. Please take a moment to read them.


#1 2012-08-10 23:58:45

Thommen2
New member
Registered: 2012-08-02
Posts: 4

Menu buttons display size

Hi everybody,

I try ti customize a menu in PTP. As I see in the Kolor Wiki (http://www.autopano.net/wiki-en/action/ … ical_theme ) , the display size of the button is 40px. Is someone knows a trick to have bigger buttons than 40 px ?

Thanx in advance,

Thommen

Offline

 

#2 2012-08-11 02:02:17

gkaefer
Member
From: Salzburg
Registered: 2009-06-09
Posts: 2675
Website

Re: Menu buttons display size

well, take bigger images and place them with more distance...
each "button" is handled in form of a "plugin" object inside the xml files... in each such plugin you can set option like the x and y position and the virtual zero point can also be choosen, so x,y 0,0 can be bottom middle of your pano or top left of your pano...
all xml statements available are here:
http://www.krpano.com/docu/xml/

Liebe Gruesse,
Georg

Online

 

#3 2012-08-11 02:47:01

Destiny
Moderator
From: Australia
Registered: 2010-04-27
Posts: 2348
Website

Re: Menu buttons display size

Yep, like Georg says but here is more info...

Essentially, you need to edit your XML to accommodate the change in size and X/Y values.. The thing you need to understand about a menu set, the buttons work like a kind of coded animation based on a single graphic that move its position so basically its in two parts as seen below at the "off" button, but this one has two buttons, which you can see in the XML code below, so not just an over state but a change button state from "on" to "off". It does this so quickly that you will not notice this happening.. You can see that this XML code has : "0|65|120|65" for the button crop values which is basically the transition between the two states, the over state gives a value of 65. You can see the X and Y values of the buttons below, which accommodates the extra width in this button set as seen in my link.. But as you can see from the graphics below, and as Georg says, you also have to change X and Y values accordingly.. You can basically make any menu button set you want but it's not a quick process but once you have your X/Y values and buttons, you can copy the XML code and past it in for all your tours and then replace the menu set to your own graphics. With cleaver use of the alpa channel in a png, you can create great looking menu buttons.. wink

http://www.destinyvirtualtours.com/TEST … STHOT.html

Oh, and there are other crazy tests going on here.. Just ignore those big_smile

Destiny.. cool

<plugin name="autorotationOFF" align="bottom" blendmode="normal" crop="0|0|120|65" customColor="true" height="prop" keep="true" onclick="switch(autorotate.enabled);set(plugin[autorotationOFF].visible,false); set(plugin[autorotationON].visible,true);" onovercrop="0|65|120|65" url="TESTHOTdata/graphics/menu/menu10.png" visible="" width="80" x="264" y="10"/>
    <plugin name="info" align="bottom" crop="0|0|120|65" customColor="true" height="prop" keep="true" onclick="displayHelp();" onout="" onover="" onovercrop="0|65|120|65" url="TESTHOTdata/graphics/menu/menu11.png" width="80" x="337" y="10"/>
    <plugin name="helpScreen" align="center" customColor="true" keep="true" onclick="closeHelp();" url="dockmenu.swf" visible="false"/>


Uploaded Images

Last edited by Destiny (2012-08-11 03:16:11)


Virtual Tours and 3D/360 Object/Product Photographer - Our aim is to create a 3D/360 Virtual Tour Shop/Store with links to 3D/360 degree products. My gear, VR Drive II - D90 - Nikon 10.5 fisheye - Nikon D800 with Nikon-Nikkor 14-24 - NOVOFLEX Magic Balance - Acratech GP Ball-head - Nodal Ninja 4 + RD-16 Rotor - Manfrotto 190CXPRO4 Carbon Fiber Tripod smile smile

Offline

 

#4 2012-08-11 10:55:33

Thommen2
New member
Registered: 2012-08-02
Posts: 4

Re: Menu buttons display size

Thank you very much for your reply.
As I see in the Wiki :
" Note: The 2D theme icons are 65 pixels wide and 130 pixels high. This width of 65 pixels is recognized by Panotour Pro by default.
If you wish to create or use icons of a different width, you need to modify the newTheme.xml file by adding the iconwidth parameter.
So if you use icons 32 pixels wide, the general description of the theme line in the newTheme.xml file becomes:
Be aware, though, that the final size of the buttons in the tour will be 40 pixels. This is the display size that is defined in each of the menu templates supplied with Panotour Pro.
It is advisable, therefore, to not create buttons that are too small as this risks a degradation in their quality.  "

My goal is to create a PTP theme to exclude injecting or copying xml in the final folder created by PTP.
The theme would looks like this http://www.autopano.net/wiki-en/images-en/5/56/Tutorial_ptp_template_conclusion_tour.png as described here http://www.autopano.net/wiki-en/action/ … _templates.
I well understand the w|h|x|y but when and I've change the "iconwidth" to 46 but the result still be 40 px...
Destiny: what I don't understood is how do you implement this big grey rounded multi button in a tour ...

I continue my investigations and thank you again.

Offline

 

#5 2012-08-11 11:38:44

Destiny
Moderator
From: Australia
Registered: 2010-04-27
Posts: 2348
Website

Re: Menu buttons display size

Hi.. Well the big grey menu button set is just an example of a more complicated menu set, I also made it bigger so it could be seen better. You can see here at the graphic that its made up of four buttons with an up and over state within the red line. You then bring them together using the X/Y but its best to use even px sizes since it will fit better.. If you use odd px sizes you run the risk of half increments with this setup which you cannot use.. I have put the final button at a 65% alpha on the up state, perhaps a 85% on the over state might look nice and a different colour. You could even make up a spot for the centre for the Home button. I was just showing what is possible..

Destiny...


Uploaded Images

Last edited by Destiny (2012-08-11 11:53:30)


Virtual Tours and 3D/360 Object/Product Photographer - Our aim is to create a 3D/360 Virtual Tour Shop/Store with links to 3D/360 degree products. My gear, VR Drive II - D90 - Nikon 10.5 fisheye - Nikon D800 with Nikon-Nikkor 14-24 - NOVOFLEX Magic Balance - Acratech GP Ball-head - Nodal Ninja 4 + RD-16 Rotor - Manfrotto 190CXPRO4 Carbon Fiber Tripod smile smile

Offline

 

#6 2012-08-12 02:23:01

Destiny
Moderator
From: Australia
Registered: 2010-04-27
Posts: 2348
Website

Re: Menu buttons display size

Thommen2 Quote "I well understand the w|h|x|y but when and I've change the "iconwidth" to 46 but the result still be 40 px... "

This is not right.. it is not the w|h| as such... this in fact is the crop factor so even if you change this to 46, you will still see a button size of 40 since that is the true size of the buttons.. If you want 46 sized buttons you have to physically change the size of them using Photoshop.. Then if the buttons clash, you have to change the x/y values to separate them...

Destiny...

Last edited by Destiny (2012-08-12 02:23:42)


Virtual Tours and 3D/360 Object/Product Photographer - Our aim is to create a 3D/360 Virtual Tour Shop/Store with links to 3D/360 degree products. My gear, VR Drive II - D90 - Nikon 10.5 fisheye - Nikon D800 with Nikon-Nikkor 14-24 - NOVOFLEX Magic Balance - Acratech GP Ball-head - Nodal Ninja 4 + RD-16 Rotor - Manfrotto 190CXPRO4 Carbon Fiber Tripod smile smile

Offline

 

#7 2012-09-15 13:52:00

klausesser
Member
From: Düsseldorf, Germany
Registered: 2006-05-22
Posts: 6403
Website

Re: Menu buttons display size

Thommen2 wrote:

Hi everybody,

I try ti customize a menu in PTP. As I see in the Kolor Wiki (http://www.autopano.net/wiki-en/action/ … ical_theme ) , the display size of the button is 40px. Is someone knows a trick to have bigger buttons than 40 px ?

Thanx in advance,

Thommen

Hi Thommen!

You can change the button-size easily by setting a different width in the xml:

Code:

 . . . . url="SonneTourdata/graphics/menu/menu0.png" width="60" x="0" y="-30"/>

bst, Klaus

PS: when using customized buttons it´s better to generate them in the size you need them to be.

Last edited by klausesser (2012-09-15 13:54:51)


If you want something you´ve never had,
then you´ve got to do something you´ve never done.

Online

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson