Hi Alex,
Please, in your next version make an script for build a vrml inline where the links for vrml files are in default.db :
01|dat1|dat2|file1.wrl
and in html.pl a think link this :
sub html_view_success {
[..]
&html_print_headers;
print qq|
<HTML>
<HEAD>
<script language="JavaScript">
function AfficheVRML()
{
Sortie = parent.vrml;
document.open();
document.open("x-world/x-vrml","replace");
document.writeln("#VRML V2.0 utf8");
document.writeln(" NavigationInfo { ");
document.writeln(' type [ "EXAMINE" , "WALK" ] ');
document.writeln(" speed 2.0 ");
document.writeln(" headlight TRUE ");
document.writeln(" } ");
document.writeln(" DEF camera Viewpoint { ");
document.writeln(" position 93.2076 45.4639 -45.8499 ");
document.writeln(" orientation 0.381796 -0.908621 -0.169236 -0.907747 ");
document.writeln(" fieldOfView 0.785398 ");
document.writeln(' description "vue automatique" ');
document.writeln(" } ");
document.writeln(" DEF Inline-ROOT Transform { ");
document.writeln(" translation 0 0 0 ");
document.writeln(" children [ ");
document.writeln(" Inline { ");
document.writeln(' url "http://www-sira.montaigne.u-bordeaux.fr/boisset/cgi/vrml/wrl/@hits+1.wrl" ');
document.writeln(" bboxSize 10.81 10.81 10.81 ");
document.writeln(" } ");
document.writeln(" ] ");
document.writeln(" } ");
document.close();
}
// -->
</script>
<TITLE></TITLE>
</HEAD>
<BODY onLoad="AfficheVRML()">
</BODY>
</HTML>
|;
}
Please, in your next version make an script for build a vrml inline where the links for vrml files are in default.db :
01|dat1|dat2|file1.wrl
and in html.pl a think link this :
sub html_view_success {
[..]
&html_print_headers;
print qq|
<HTML>
<HEAD>
<script language="JavaScript">
function AfficheVRML()
{
Sortie = parent.vrml;
document.open();
document.open("x-world/x-vrml","replace");
document.writeln("#VRML V2.0 utf8");
document.writeln(" NavigationInfo { ");
document.writeln(' type [ "EXAMINE" , "WALK" ] ');
document.writeln(" speed 2.0 ");
document.writeln(" headlight TRUE ");
document.writeln(" } ");
document.writeln(" DEF camera Viewpoint { ");
document.writeln(" position 93.2076 45.4639 -45.8499 ");
document.writeln(" orientation 0.381796 -0.908621 -0.169236 -0.907747 ");
document.writeln(" fieldOfView 0.785398 ");
document.writeln(' description "vue automatique" ');
document.writeln(" } ");
document.writeln(" DEF Inline-ROOT Transform { ");
document.writeln(" translation 0 0 0 ");
document.writeln(" children [ ");
document.writeln(" Inline { ");
document.writeln(' url "http://www-sira.montaigne.u-bordeaux.fr/boisset/cgi/vrml/wrl/@hits+1.wrl" ');
document.writeln(" bboxSize 10.81 10.81 10.81 ");
document.writeln(" } ");
document.writeln(" ] ");
document.writeln(" } ");
document.close();
}
// -->
</script>
<TITLE></TITLE>
</HEAD>
<BODY onLoad="AfficheVRML()">
</BODY>
</HTML>
|;
}