Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  General Topics    questions about Widgets in VET Scene

Moderators: e_phoenix13
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Member
Posted
Hi my friends in this forum, can anyone help me ? (pic attached for reference)

I added widget to artery of the heart with <LayerData Text=".." ..../> in MTX. All works fine.
I used artery object as 'Hot Spot' for itself.
So when the cursor move over the model the content of Widget will show.

The problem is:
The distance between the artery model and widget text is too far, even I changed the value of Radius to 0.001. How to make the widget text just next to the cursor?

many thanks for your helpSmile

my full code:
<MTSInstance Name="coronary_A_RCA" Opacity="0" Collapsed="1">
<MTSGeometry Name="coronary_A_RCA_GEOM" MultiUV="0" BackFaceDir="-1" />
<MTSMaterial Name="arteries" ID="0" RenderMode="LightTexture" >
<MTSTextureMap Type="Light" Name="verydiffuse05_ELight" x="256" y="256" />
<MTSColor Type="Diffuse" r="0.83922" g="0.07059" b="0.0902" />
</MTSMaterial>
<MTSInstance Name="rca" >
<LayerData Text="Right coronary artery" Font="Arial" TextSize="20" TextColor="1 1 1" AnchorWidget="0" WidgetLine="0" AlwaysVisible="0" Radius="1"/>
</MTSInstance>
<MTSHandle Event="MouseEnter" Action="MTSAssignProperty" Target="MTSScene::crsr" Value="MTSCursor::MTS_Point"/>
<MTSHandle Event="MouseExit" Action="MTSAssignProperty" Target="MTSScene::crsr" Value="0" />
</MTSInstance>

widget problem
 
Posts: 181 | Registered: January 24, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of Admin
Posted Hide Post
Hi CG,

I believe you are using Scene Builder, correct? Please play around with the settings under the "Hot Spots" tab in Scene Builder. When you get what you like, publish it out and make note of the code.

Regards
 
Posts: 1188 | Registered: January 08, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
Thanks AdminSmile
Wish you all the best in 2008!
 
Posts: 181 | Registered: January 24, 2003Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 

Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  General Topics    questions about Widgets in VET Scene