Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  VMP for Macintosh    Animations are called differently on Mac and Pc:

Moderators: e_phoenix13
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Member
Picture of hebdemnobad
Posted
XML Animations are called from Javascript differently on Mac and Pc: Goto:
http://www.ifam.net/virtual_collective/virt_cu_mac.htm#
Click on the Menu button titled "More". When the menu buttons display a new set of options, click on the button titled "Monsterrobots". If you click these buttons on a pc running ie, the animations are called correctly. If you click on these buttons on a mac running ie, toggling the "Monsterrobots", instead of collapsing and uncollapsing a geometry instance, the mac instead executes the animation that should have been called from pressing the same button on the main menu. It's a bit hard to put into words...on a mac, click on "More" and then "Monsterrobots" then click on "Monsterrobots" a couple of more times, go back to the main menu, and run the camera animations on the main menu. The geometry that should have been collapsed instead flips and grows huge. A viewpoint bug? Javascript anomaly? Some cross platform issue? Let me know when you can.
Dan
 
Posts: 108 | Registered: January 24, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of viewpoint d-d
Posted Hide Post
Hi,

I recommend you ensure that you have the latest MTS3Interface. This takes care of most of the cross-platform issues and can bring scripting onto an even plane between Mac and PC. We will soon be releasing a new MTS3Interface and also a new Mac Player so if the currently downloadable MTS3Interface doesn't help you, make sure you're on the newsletter mailing list so that you know when they're released.

-Derek
 
Posts: 793 | Location: Viewpoint, New York, New York | Registered: January 24, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of hebdemnobad
Posted Hide Post
Hello d-d:
This is more of an error report more than anything else but I thought you'd like to know about it:

Thanks for the response...things still aren't working out. The calls to the vmp are working in a quirky manner on the Mac...maybe my JavaScript markup isn't Mac friendly? (I thought there are no cross platform differences when it comes to setting and changing Boolean variables in ie but I'm no expert in the area) I have images set up to be buttons, using the JavaScript "onclick" method, and varying the mtx related functions depending on what image the page is displaying. Anyway, the buttons that I have set up will call mtx animations for both the "main" menu I have set up and the "more" menu I have set up. The uncollapse function works, but the collapse function doesn't seem to work. Changing render modes doesn't work (although the render mode does indeed change, just not to the mode that it switches to on a pc running ie5 on the nt os) the url for the macintoshic page I am working is:
http://www.ifam.net/virtual_collective/03.02.02_virt_cu_mac.htm
 
Posts: 108 | Registered: January 24, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of viewpoint d-d
Posted Hide Post
Wow! That's a unique page you've got there. I've never seen a HTML page 9000 lines long. Is there any reason for having between 5 and 20 return/linefeeds between each line of JavaScript? It makes it very difficult to find anything wrong with it.

I noticed that you have this kind of code:

borax.SetProperty('MTSScene', 'rmod', 2, 'Int');

It should be:

borax.SetProperty('MTSScene', 'rmod', '2', 'mts_int');

of course this applies to all commands, not just that one. This would cause problems with setting render modes.

Also, in the constructor line (the MTSPlugin call) you don't tell the plugin the name of the layer, which causes the scripting problems.

Also, you have hard-coded DIV tags. This will give Netscape problems as it doesn't support DIV tags, it uses Layer tags.

You should download the release notes and deployment guides which covers these things.

-Derek
 
Posts: 793 | Location: Viewpoint, New York, New York | Registered: January 24, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of hebdemnobad
Posted Hide Post
Hello Derek:

I slimmed down the length of the file (from 9000 to 900), and change the 'int' variable types to 'mts_int'. I placed the layer declaration in the javascript constructor line ("layer=Layer1"). As for the div tags, I'll get to that when I have time, but I'm not that worried about not reaching netscape users; thanks for all the tips.
Sadly, the page still doesn't (completely) work. The ToggleCollapse function doesn't seem to work on a poser generated mesh. I'll tool around some more today and send you a .zip of the files. Despite the changing on the 'int' declarations into 'mts_int' declarations, the rendermode behaves differently on a mac than on a pc..ie the rendermode doesn't properly change to wireframe on the mac.


thanks for your suggestions as always
Dan
 
Posts: 108 | Registered: January 24, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of viewpoint d-d
Posted Hide Post
Hi Dan,

Which version of the Mac plugin are you using? Are you in the Beta program? The fact that the render modes are not the same may just be that you're using the public mac beta which isn't as up-to-date as the PC plugin. With the latest beta I would expect the render modes to be the same.

I can't think of any reason why a Poser mesh should have problems collapsing. I guess we'll see when you send the files to us.

-Derek
 
Posts: 793 | Location: Viewpoint, New York, New York | Registered: January 24, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of hebdemnobad
Posted Hide Post
Hello Derek:

I'm sorry it's taken a couple of weeks to get back to you. Many responsibilities, and only so much time, with access to a mac just one day a week when I am at work and often busy with work. I will be getting my hands on a mac 9600 in the next few weeks. When I have it up and running at home, I'll check to see if my page works with the non-beta mac vmp.
Dan
 
Posts: 108 | 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  VMP for Macintosh    Animations are called differently on Mac and Pc: