This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > VRML > April 2004 > detecting macosx cortona ?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author detecting macosx cortona ?
Joerg Scheurich aka MUFTI

2004-04-21, 11:05 pm

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/specificat...pt.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
Braden McDaniel

2004-04-21, 11:05 pm

Joerg Scheurich aka MUFTI <rusmufti@helpdesk.rus.uni-stuttgart.de> wrote in message news:<c5gldn$slm$1@news.uni-stuttgart.de>...
> 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.


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;
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews