Hello xhtml friends :)
I retried xhtml since some days .
I archivied here recently :
http://alaindumenieu.pagesperso-orange.fr/artvrml/221112.htm
I know how to convert from vrml to x3d
( I use Flux and repare the errors with vrmlpad)
I edit the x3d with notepad to get the xhtml
but it is hard for me to understand how to get no errors
with javascipt scipts.
I googled about , but get still errors.
It is sad because I have some friends or pupils who can see my files without installing BS or blaxx ,
using xhtml ,
but I do want that they get ALSO the result of my codes !!
( even when they are not MY codes , LOL ,
I spent 10 years to be unable to write only one , LOOOL )
exemple :
that one has a script to change the viewpoint after a short moment :
http://mixed3d.free.fr/x3d/beton.wrl
sorry the texture is 1MO and there is a sound too , LOL
when I convert to xhtml I had errors so I deleted the script here , that is sad LOL
http://mixed3d.free.fr/x3d/beton.xhtml
I must say too that the lights are not working in similar way than in vrml , but it is less important.
ps : I see also in Chrome that the sound is lost :(
ps : I wonder is there is a more simple way to edit all that , than to do all by hand !
I tried the online converter from instantreality but I got the same errors with the cam script and the
<![CDATA[ shit :)
Thank you in advance if you have time to look at
Amicalement ,Alain
my problem is just that :
DEF camTimer TimeSensor {
cycleInterval 20.000
loop TRUE
startTime 1.000
}
DEF CamJump Script {
directOutput TRUE
mustEvaluate TRUE
eventIn SFTime nextCam
field SFNode cam1 USE Viewpoint1
field SFNode cam2 USE Viewpoint2
field SFInt32 counter 0
url [ "javascript:
function nextCam(ts){
counter++;
if(counter > 2) counter = 1;
if(counter == 1)
cam1.set_bind = TRUE;
else if(counter == 2) cam2.set_bind = TRUE;
}
" ]
}
ROUTE camTimer.cycleTime TO CamJump.nextCam
for the sound I found that , and it is OK
<sound>
<audioClip url='cabrel.wav' loop='true'></audioClip>
</sound>
Hi Alain,
Glad to see you around
One problem is that WebGL altough very powerfull is not a finished norm and, in part because of that, there are only one or two design tools that export to it. None of the tools is a mainstream 3D design program. As far as I know, coding is for the moment, the only real viable way of webGL creation.
On the other end X3Doom is still in progress, so expect lot of conversion issues and pain.
vcard
merci Vitor.
I will try to have the script as external ...