Mombu the Programming Forum

Go Back   Mombu the Programming Forum > Programming > detecting macosx cortona ?
User Name
Password
REGISTER NOW! Mark Forums Read




Reply
1 11th August 17:04
joerg scheurich aka mufti
External User
 
Posts: 1
Default detecting macosx cortona ?



Hi !

I got problems to detect, if cortona on macosx is used.
Do browser.getName() work under MacOSX ?

I need to differ between cortona and other browsers, cause the following
seam not to work with cortona:

Script
{
....
eventOut MFVec3f vertices_out
....
coordindex_out=new MFInt32();
vertices_out[0].x = something;
vertices_out[0].y = something;
vertices_out[0].z = something;
vertices_out[1].x = something;
vertices_out[1].y = something;
vertices_out[1].z = something;

It looks like cortona needs a additional

vertices_out=new MFVec3f(vertices_out);

at the end of the script, otherwise there would be no resulting event.

Unfortunatly, the line

vertices_out=new MFVec3f(vertices_out);

is illegal in the view of ISO 14772, cause the only Instance creation function
may not have a MFVec3f type as argument:

http://www.web3d.org/x3d/specificati...t.html#MFVec3f

| C.6.18.2 Instance creation function
|
| mfVec3fObjectName = new MFVec3f(SFVec3f v1, SFVec3f v2,...)
|
| where

| The creation function shall initialize the array using 0 or more
| SFVec3f-valued expressions passed as parameters.

so long
MUFTI
--
6 von 5 Datei(en) erfolgreich empfangen.
Statusmeldung von Leonardo
  Reply With Quote


 


2 11th August 17:05
braden
External User
 
Posts: 1
Default detecting macosx cortona ?



I've no experience with Mac OS X Cortona; but it sounds from your
description of the problem like this might work:

var temp = new MFVec3f();
temp[0].x = something;
temp[0].y = something;
temp[0].z = something;
temp[1].x = something;
  Reply With Quote


 


Reply


Thread Tools
Display Modes




666