[pmwiki-users] Need help to complete a recipe to read WRL 3D models

Benoit Dutilleul benoit.dutilleul at googlemail.com
Sun Nov 25 14:49:39 CST 2007


Dear pmwiki users!

I've been trying to write a recipe to display WRL files (3D models) in
pmwiki. I could get it to work by "hard-wiring" a specific file:

<?php if (!defined('PmWiki')) exit ();
Markup('wrl', 'directives', '/\\(:wrl:\\)/',
Keep("<embed src='
http://www.mediamachines.com:80/uploads/233/Reflections/3/model.x3d?myuid=0&inst=-712630691&src=codes'
WIDTH='420' HEIGHT='250' NAME='flux' TYPE='model/x3d+xml' DASHBOARD='0'
LOADSCREEN='1'/></div>") );
?>

This can also be seen on this test page:
http://wico.web-farm.org/index.php/Test/WRLRecipe

Now, I am trying to implement (:wrl http://www.mymodel.3d:) according to the
markup development page but I can't get it to work:

<?php if (!defined('PmWiki')) exit ();
Markup('wrl', 'directives',
'/\\(:wrl (\\d+) :\\)/e',
Keep("<embed src='$1' WIDTH='420' HEIGHT='250' NAME='flux'
TYPE='model/x3d+xml' DASHBOARD='0' LOADSCREEN='1'/>") );
?>

Any idea about what is wrong or missing?
Thanks!

Benoit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20071125/cd360246/attachment.html 


More information about the pmwiki-users mailing list