ParallelGraphics Forums
Cortona VRML Client
You are here: [Forums]::[Browsers]::[Cortona VRML Client]

Registration 
Registration
Forgot your password?

Help 
Help
Support

Quick search 

Subscribe to newsletters 

Install Cortona VRML Client for FREE!
Outline 3D
Try RobinZone!
email:  password:
   Browsers - Cortona VRML Client

Subject: EXTERNPROTO instancing bug
Sender: michaelusachov@mail.ru 6.08.08 07:54

hi all!
When Cortona creates instance of externally declared prototype, user-defined default value of exposed (and private) fields are ignored. Here is an example:



#VRML V2.0 utf8

PROTO TestNode [
exposedField SFRotation r 1 0 0 0
exposedField SFBool b TRUE
field SFVec3f v3 5 5 5
]{}

Transform {
    translation -3 0 0
    children DEF VRML TestNode {}
    }

DEF    Functions Script {
field SFNode VRMLNode USE VRML
url    "javascript:

function initialize () {

var
    vrmlString1 =
    '#VRML V2.0 utf8\n'
    + 'PROTO TestNode [\n'
    + 'exposedField SFRotation r 1 0 0 0\n' // ok, this value used
    + 'exposedField SFBool b TRUE\n' // ok, this value used
    + 'field SFVec3f v3 5 5 5\n'
    + ']{}\n'
    + 'TestNode{}\n',

    vrmlString2 =
    '#VRML V2.0 utf8\n'
    + 'EXTERNPROTO TestNode [\n'
    + 'exposedField SFRotation r\n' // fail, used value 0 0 1 0 -- VRML std default value for SFRotation type
    + 'exposedField SFBool b\n' // fail, used value FALSE -- VRML std default value for SFBool type
    + 'field SFVec3f v3\n' // the same ...
    + ']\"Contact_Cortona_PROTO_expField_def_values_using 3.wrl#TestNode\"\n'
    + 'TestNode{}\n',

    node1 = new SFNode( vrmlString1 ),
    node2 = new SFNode( vrmlString2 );

print ( VRMLNode.r );
print ( VRMLNode.b );
print ( VRMLNode.v3 );
print ( node1.r );
print ( node1.b );
print ( node1.v3 );
print ( node2.r );
print ( node2.b );
print ( node2.v3 );
}
"
}



and second question: who knows where to put the same bug-report for Bitmanagement Software ? (their forum server does nor responds... Contact have the same problem...)

 


EXTERNPROTO instancing bug / michaelusachov@mail.ru / 6.08.08 07:54
     Re: EXTERNPROTO instancing bug / nalex@parallelgraphics.com / 7.08.08 01:13
         Re: Re: EXTERNPROTO instancing bug / michaelusachov@mail.ru / 7.08.08 03:12

Messages in thread: 3


© 1998-2007 ParallelGraphics. All rights reserved. Terms of use.