Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  JavaScript    MTX does not display until moused-over

Moderators: e_phoenix13
Go
New
Find
Notify
Tools
Reply
  
5-star Rating (1 Vote) Rate It!  Login/Join 
Member
Posted
I didn't really know where to put this question, so I hope it's not in the wrong place. I looked around for an answer and didn't find anyone describing this symptom.

I'm running into a strange issue where my .mtx does not display until i mouse over it when I use a % for the dimensions instead of a fixed size. With a fixed size it loads immediately but does not scale with the window. Any reason that it would not load until moused-over when set to a % or thoughts on how to resolve it?

Thanks,
Kevin
 
Posts: 8 | Registered: January 31, 2008Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of Admin
Posted Hide Post
hello

Do you have a url we could look at to investigate the issue?

regards
 
Posts: 1188 | Registered: January 08, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
It's a work in progress so it may be changing regularly, but it is here: http://www.harrington-group.com/ngrain/EurocopterFinal/eurocopter.htm

This message has been edited. Last edited by: UCF-GA,
 
Posts: 8 | Registered: January 31, 2008Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of Admin
Posted Hide Post
Thanks!

I looked at the content in Firefox 2.0, IE7, and IE6 on PC and didn't see the issue you are describing. It worked fine for me. Could you give me some details about your OS and browser?

One little thing I noticed (no big deal) is you're using 'popup' in your contructor line for the vmp install window. I would recommend using 'Simple" instead. It provides a more pleasant intsall experience where instead of a nasty popup window, the user gets a nice embedded frame at the top of their browser that tells them to install.
 
Posts: 1188 | Registered: January 08, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
I'm running Windows XP x64 and using IE 7 (x86). I'll try it out on a few other machines to see if they have the same symptom. Maybe it's just me.

I'll definately change the install window to Simple. Thanks for the suggestion.

Edit: Same issue on Vista (x64) and XP (x86). When testing make sure to load the page then hit the refresh button and don't move the mouse and see if the model appears. Sometimes when accessing the site the mouse may happen to be over the model making it appear not to have a problem.

This message has been edited. Last edited by: UCF-GA,
 
Posts: 8 | Registered: January 31, 2008Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
The functionality on the project is done and I've updated the link to point to the final version. In fact the whole project is ready to roll out to the customer except for this mouse-over issue. I don't have a machine readily available with IE6, and I know it's not a problem in Firefox, but IE7 is the primary browser it needs to work for and every machine I've tried it on has had the same issue.
 
Posts: 8 | Registered: January 31, 2008Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
I have some more detail to report in respect to this.

If you open the page and manipulate the model in some way and refresh the page the model appears immediately. If you use either the buttons at the top of the page or the flash control on the left after manipulating the model it does not appear on a refresh (until moused-over). Perhaps this is a focus related problem? Any way I can force the focus onto the model without any user interaction? A function to change the focus to the model in the onload tag?
 
Posts: 8 | Registered: January 31, 2008Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of Admin
Posted Hide Post
I think it's a redraw issue. Try re-rendering the VMP scene after your javascript resize() function is finished using vmp.Render(); (it may also be vmp.render(), don't remember exactly Wink )

****updated: I confirmed. It is vmp.Render()

This message has been edited. Last edited by: Admin,
 
Posts: 1188 | Registered: January 08, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
The resize function is called by the mtx though, which doesn't fire because it's not done loading until it appears.

I would try setting the focus to the vmp, but I don't know what the id for the vmp itself is. It's called by a script so I don't know how to make IE interact with it that way. Setting the focus to the div containing it does not seem to be doing the trick.
 
Posts: 8 | Registered: January 31, 2008Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of Admin
Posted Hide Post
Just wondering why go through all this trouble just to have a resizable VMP window?
 
Posts: 1188 | Registered: January 08, 2003Reply With QuoteEdit or Delete MessageReport This Post
EnIgMaTiCScOrPioN
Member
Picture of e_phoenix13
Posted Hide Post
I just pulled out the Div containing the VET scene from the table and it seems to work fine. Investigating the cause. Will keep you guys updated soon.

Cheers,
Anup
 
Posts: 557 | Location: India | Registered: February 12, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
Two reasons I guess.

1) This (and other projects we have done) is a wide deployment product and while we can specify that it has to run on IE we want to to scale to any size screen.

2) We had actually already completed this project in another tool and the customer wasn't really thrilled about the functionality but they loved the interface. We are trying to use viewpoints seriously improved functionality but keep the same look from the other tool (which scaled to any resolution with no trouble.)
 
Posts: 8 | Registered: January 31, 2008Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
Thanks Anup. That seems to be the ticket. I pulled the Div and am resizing the table instead and it works without a hitch.
 
Posts: 8 | Registered: January 31, 2008Reply With QuoteEdit or Delete MessageReport This Post
EnIgMaTiCScOrPioN
Member
Picture of e_phoenix13
Posted Hide Post
Just an update. I fixed your original DIV structure as well....

Just give

style="width:100%; height:100%;"

to the

- TD that contains the TABLE
- the table itself
- the TD inside the table hlding the DIV
- and to the DIV as follows....

<td style="width:100%; height:100%; ">
                            <table style="width:100%; height:100%; border-top:3px solid white; border-right:3px solid white; border-left:3px solid white; border-bottom:3px solid white;" cellpadding="0" cellspacing="0" border="0">
                                <tr>
                                    <td style="width:100%; height:100%; background-color:#2c3237;">
                                        <div id="ViewpointDiv" style="width:100%; height:100%; ">
                                            <script type="text/javascript" language="javascript">
                                                vmp = new MTSPlugin("Eurocopter.mtx", '100%', '100%', "", 'Simple', 'contenttype=3; ComponentMinimumVersion=50528285; GenieMinimumVersion=50528285; HostMinimumVersion=50528285; RequiredVersions=SWFView.dll=3.3.0.30, Cursors.dll=3.3.0.30, VMPSpeech.dll=3.3.0.30, LensFlares.dll=3.3.0.30, SreeD.dll=3.3.0.30, SreeDMMX.dll=3.3.0.30, Mts3Reader.dll=3.3.0.30;');
                                            </script>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </td>


This code will help you preserve your original DIV structure.


Cheers,
Anup
 
Posts: 557 | Location: India | Registered: February 12, 2003Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 

Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  JavaScript    MTX does not display until moused-over