You are not logged in.

vrbrasov

Beginner

  • "vrbrasov" started this thread

Posts: 6

Location: Brasov

  • Send private message

1

Thursday, September 9th 2010, 5:00pm

coding issue

Hello to everyone!

I'm working on a VRgallery and I've encountered the following issue:
the image requested to show 'onover', has a clone that is blinking once, about 500px on the right side of the screen.
http://clubaustria.tvd.ro/

I guess the bug is somewhere below:
<plugin name="vilairis01-receptie"
url="vrgallery/vi01s.jpg"
origin="rightbottom" edge="center"
x="820" y="30"
keep="true"
visible="true" enabled="true" handcursor="true" capture="true" children="true"
zorder="1"
onover="action(show_hover_image,vilairis01-receptie,vrgallery/vi01.jpg);"
onhover="showtext(Receptie);"
onout="action(show_hover_image,vilairis01-receptie,null);"
ondown=""
onup=""
onclick="loadscene(vilairis01-receptie, null, MERGE, BLEND(1));"
flying="0"
/>

<action name="show_hover_image">
set(plugin[hover_image].parent,plugin[%1]);
set(plugin[hover_image].url,%2);
</action>

<plugin name="hover_image" keep="true"
url=""
parent=""
align="top" edge="bottom"
x="0" y="-10" />

http://clubaustria.tvd.ro/vilairis.xml

Hoping to get a little help. Thank you!


Best regards,
Laurentiu

michel

Professional

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

2

Friday, September 10th 2010, 3:47am

Hi Laurentiu,

That is strange... I have tried some changes on the code without success... Perhaps it's a bug...
Could you please allow back the editor plugin? I would like to try another approach without parent....

SAlut.

3

Friday, September 10th 2010, 6:46am

This is odd. Perhaps you could try this:

Source code

1
2
3
4
5
6
<action name="show_hover_image">
set(plugin[hover_image].visible,false);
set(plugin[hover_image].parent,plugin[%1]);
set(plugin[hover_image].url,%2);
set(plugin[hover_image].visible,true);
</action>


steve

michel

Professional

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

4

Friday, September 10th 2010, 8:08am

Hi Laurentiu,

After many tries, it seems the problem comes from the child plugin alignment: align="top" edge="bottom" ... Do not know the reason *confused* ... So, changing your code in this way seems to solve the problem:

Source code

1
2
3
4
5
<plugin name="hover_image" keep="true"
url=""
parent=""
align="bottom" edge=""  
x="0" y="40" />


Hi Steve *smile* , visible=false .... visible=true was my first attempt but without success *rolleyes* ... It seems to be some kind of bug with the alignment *huh* ...

SAlut.

vrbrasov

Beginner

  • "vrbrasov" started this thread

Posts: 6

Location: Brasov

  • Send private message

5

Friday, September 10th 2010, 8:53am

Indeed, seems that the alignment was the issue. Problem solved! :-)
That was very helpful and fast.
Thank you!

Best regards, Laurentiu