ParallelGraphics Forums
Cortona VRML Client
You are here:
[Forums]
::
[Browsers]
::
[Cortona VRML Client]
All forums
How to use forums
Favorites
Services
Registration
Registration
Forgot your password?
Help
Help
Support
Quick search
Subscribe to newsletters
email:
password:
 
Browsers
-
Cortona VRML Client
[reply]
[back to forum]
[new message]
[all forums]
Subject:
Proto Interface
Sender:
Bryancreer@aol.com
17.11.06 15:40
I have been having trouble with PROTOs. For instance, the following PROTO -
#VRML V2.0 utf8
PROTO Ball [
exposedField SFColor diffuseColor 1.0 1.0 1.0
exposedField SFVec3f translation 0.0 0.0 0.0
exposedField SFFloat radius 1.0
]{
Transform {
translation IS translation
children [
Shape {
appearance Appearance {
material Material {
diffuseColor IS diffuseColor
}
}
geometry Sphere {radius IS radius}
}
]
}
}
called from the following World -
#VRML V2.0 utf8
WorldInfo {
title "Ball Proto Test"
}
NavigationInfo {
type [ "WALK", "ANY" ]
headlight FALSE
avatarSize [ 0.25 1.6 0.5 ]
}
DirectionalLight {
ambientIntensity 0.5
direction -0.5 -0.5 -1
}
DirectionalLight {
ambientIntensity 0
intensity 0.25
direction 0 0 1
}
DEF Front Viewpoint {
position 0 1.6 15
orientation 0 0 1 0
fieldOfView 0.785398
description "Front"
}
EXTERNPROTO Ball [
exposedField SFColor diffuseColor
exposedField SFVec3f translation
exposedField SFFloat radius
] "Protos/Ball.wrl"
Transform {
children [
DEF Ball_1 Ball {
diffuseColor 1.0 0.0 0.0
translation 3.0 4.0 0.0
radius 3.0
}
]
}
doesn't display the Sphere. If I make 'radius' a field instead of an exposedField, it works and diffuseColor and translation work properly. It works as expected in BS Contact and Blaxxun Contact.
Any suggestions? Is this a bug in Cortona?
Bryan Creer
[reply]
[back to forum]
[new message]
[all forums]
Proto Interface
/
Bryancreer@aol.com
/ 17.11.06 15:40
Re: Proto Interface
/
si@naims.co.uk
/ 17.11.06 19:03
Re: Proto Interface
/
Bryancreer@aol.com
/ 17.11.06 19:22
Re: Proto Interface
/
Bryancreer@aol.com
/ 17.11.06 19:33
Re: Proto Interface
/
si@naims.co.uk
/ 18.11.06 05:12
Re: Proto Interface
/
si@naims.co.uk
/ 20.11.06 08:32
Re: Proto Interface
/
degor aka Installation Guru
/ 20.11.06 09:45
Re: Proto Interface
/
si@naims.co.uk
/ 20.11.06 14:09
Messages in thread:
8
[reply]
[back to forum]
[new message]
[all forums]
© 1998-2007
ParallelGraphics
. All rights reserved.
Terms of use
.