You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Monday, November 16th 2020, 2:53pm

Creating custom image-element does not work as expected

Hi
I'm creating a custom droplet.

Inside the scene-element I need an image-element.
Something like this:
<image style="Camera_001">
<cube url="panos/Camera_001.tiles/%s/l%l/%v/l%l_%s_%v_%h.jpg" multires="512,640,1152,2304" />
<depthmap style="depthmapsettings" center="300,0,0"/>
</image>

Question 1

For the style-attribute I added this in the vtour-normal.config:
# image element parameters
xmlimageparameters=style="[BASENAME]"

But this results as:
<image style="[BASENAME]">
<cube url="panos/Camera_001.tiles/%s/l%l/%v/l%l_%s_%v_%h.jpg" multires="512,640,1152,2304" />
</image>

I tried with the following variants:
xmlimageparameters=style=[BASENAME]
xmlimageparameters=style=%BASENAME%
xmlimageparameters=style="%BASENAME%"

None of them works. It outputs always the placeholder-name but not the dynamic Basename.
What do I do wrong there?

Question 2
What do I have to do to get a depthmap-element inside the image-element?


Kind regards
Alain

This post has been edited 1 times, last edit by "Alain" (Nov 16th 2020, 5:44pm)


2

Tuesday, November 17th 2020, 11:11am

Just solved it by putting the image-element with its depthmap-element directly into the scenetemplate (without a placeholder like [image]).
Often I'm just to blind to see the most obvious solutions *wacko* *smile*

This post has been edited 1 times, last edit by "Alain" (Nov 17th 2020, 11:43am)