Skip to content

Commit

Permalink
Our mix of VRML 1.0 + VRML 2.0 is now less tolerant, you cannot place
Browse files Browse the repository at this point in the history
VRML 1.0 nodes in VRML 2.0

As some names conflict, it is easier to disallow them all. The "mix"
was never fully defined anyway, some nodes behaved weird.
  • Loading branch information
michaliskambi committed Sep 5, 2022
1 parent 62e83c7 commit e389595
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 69 deletions.
47 changes: 1 addition & 46 deletions navigation/castle_extensions/viewpoints_tests.wrl
@@ -1,7 +1,6 @@
#VRML V2.0 utf8

# This is a test of mixing VRML versions: Viewpoint, PerspectiveCamera and
# OrthographicCamera nodes in one VRML file.
# This is a test of Viewpoint.

Group{
children [
Expand All @@ -23,25 +22,6 @@ Group{
orientation 1 0 0 1.5711416006088257
}

Transform {
translation 2 2 2
rotation 1 0 0 1.570796370506287
children PerspectiveCamera {
position 0 0 0 # camera position is expressed by translation
orientation 0 0 1 0
}
}

DEF Same_as_before_but_without_correct_gravity PerspectiveCamera {
position 2 2 2
orientation 1 0 0 1.5711416006088257
}

DEF Camera3_3_3 PerspectiveCamera {
position 3 3 3
orientation 1 0 0 1.5711416006088257
}

Viewpoint {
position 1 1 10
orientation 1 0 0 1.5711416006088257
Expand All @@ -60,31 +40,6 @@ More text... More text... More text... More text... More text... More text...
"
}

DEF OrtoCamera OrthographicCamera{
position 4 4 4
orientation 1 0 0 1.5711416006088257
}

OrthographicCamera{
position 5 5 5
orientation 1 0 0 1.5711416006088257
}

Transform {
translation 10 10 10
children [
DEF CameraTranslated PerspectiveCamera {
position 1 1 1
orientation 1 0 0 1.5711416006088257
}
Viewpoint {
position 2 2 2
orientation 1 0 0 1.5711416006088257
description "translated viewpoint"
}
]
}

# Camera settings "encoded" in the VRML declaration below :
# direction 0 0.700684666633606 0.000241897432716
# up 0 -0.000345273787389 0.999999940395355
Expand Down
23 changes: 0 additions & 23 deletions vrml_engine_doc_simple_examples/sum_1_2.wrl

This file was deleted.

Binary file not shown.

0 comments on commit e389595

Please sign in to comment.