X3D中的体积渲染

时间:2017-06-03 00:27:40

标签: x3d

所以最近我开始使用X3D并且一直试图尝试使用体积渲染,但我似乎无法正常工作。我有一个X3D文件,其中包含以下代码:

<?xml version="1.0" encoding="UTF-8"?> 
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "http://www.web3d.org/specifications/x3d-3.3.dtd">
<X3D profile='Interchange' version='3.3'  xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation =' http://www.web3d.org/specifications/x3d-3.3.xsd '>
<head>
<component level='1' name='VolumeRendering'/> 
</head> 
<Scene>
<Group>
<Viewpoint DEF='VP' description='Basic Brain' orientation='-0.0212122 0.99986 0.012461 3.23009' position='-0.00920216 0.012033 -0.184913'/> 
<Background DEF='BG' skyColor='1 1 1'/> 
<Transform scale='0.117188 0.117188 0.117188'>
<VolumeData dimensions='1.28 1.28 1.0' containerField='children'>
<ImageTexture3D containerField='voxels' 
  url=' "datasets/nrrd/supine.nrrd"'>
 </ImageTexture3D>
</VolumeData>
</Transform>
</Group>
</Scene>
</X3D> 

我从以下链接抓住了这个例子并修剪了head标签中的一些脂肪。此外,他们引用的图像似乎不在服务器上,因此我使用的图像与他们使用的图像不同。

http://www.web3d.org/x3d/content/examples/Basic/VolumeRendering/BasicBrainIndex.html

现在出于某种原因,当我打开X3D文件并尝试查看场景时,似乎唯一呈现的是背景。当我在BS Content Studio中提取它时,它给出了一个错误,声明“未知节点类'VolumeData'”。至于我正在使用的X3D播放器,我使用的是BS Content Player。任何帮助都会非常感激,因为我现在有点亏本,并且没有收到BS内容播放器支持团队的回复。

哦,我的桌面上有一个文件夹来镜像数据集/ nrrd / supine.nrrd的url调用,所以我认为这不是问题。

2 个答案:

答案 0 :(得分:0)

BS Content Player不支持节点<ul> <li class="active"><a href="home.html">Home</a></li> <li><a href="#about">About me</a></li> <li><a href="#contacts">Contacts</a></li> <li><a href="#help">Help</a></li> <li><a href="#other">Other Works</a></li> <li><a href="#news">News</a></li> </ul>。但你可以尝试使用即时现实中的即时播放器:enter image description here

答案 1 :(得分:0)

X_ITE正常工作。

https://www.web3d.org/x3d/content/examples/Basic/VolumeRendering/BasicBrainIndex.html

如果测试本地副本,则该目录中的build.xml文件的目标是下载(非常大的)包含.nrrd文件的datasets.zip。