Hi,
ooh ! maybe in time before the next release, (but please dont worry if time does not allow) would it be possible to allow plugins to have the same distorted feature that hotspots have ? I was designing a cockpit gui a couple of weeks ago and went to put in the buttons (plugins) then realized they could not be distorted, to look like they were part of the dashboard.
I've already thought about that, but one big question was left - how to setup the perspective for such distorted buttons - a projection center and a field of view would be needed...
- using the pano projection would be one possibility, but in this case the button distortion will change during zooming...
- or each button/plugin has it's own projection center and fov...
I'm still experimenting with a good solution...
in the current beta 9 pre-release from above - there is the following possible for testing:
- use a <hotspot>
- set the flying to "1.0"
- now the hotspot is aligned in the center of the screen and can be rotated by changing rx,ry and rz
- a new attribute - "inverserotation" - can be used to change the rotation order
- the 2D position of this hotspot can be moved/shifted by changing the x/y attributes (using percent values is also possible)
e.g.
|
Source code
|
1
2
3
4
5
6
7
8
9
10
|
<hotspot name="arrow"
url="arrow.png"
keep="true"
flying="1.0"
distorted="true"
edge="bottom"
y="40%"
inverserotation="true"
rx="60" ry="0" rz="0"
/>
|
best regards,
Klaus