English 中文(简体)
采用 k树为斯坦福 b树模式的Ry Tracing
原标题:Ray Tracing using k-d trees for stanford bunny model

我正试图追踪作为PLY格式的“斯坦福 b”模式。 我有一个教区,把PLY案卷归为平地,给我以三 tri子的 co子及其vert子。 现在我对今后如何开展工作感到困惑。 我是否应当把这些三角树vert放在病媒中,然后通过它们建造一个 k树? 还有,有人有传导或样本来源法,将一种照相模型传给 k树,然后打上 k树以跟踪现场? 如果任何人都有他们能够分享的样本代码,让我知道。 感谢。

最佳回答

PLY是被描述为聚合物收集的物体的档案格式。 A. 事实 树木是一种优化结构,旨在通过消除不必要的交叉试验来加快时间。

因此,你需要:

  1. Define your own data structures for representing objects as a collection of points and a collection of polygons (which refer to the points).
  2. Write a loader which uses the parser to read an object in PLY format, and constructs an instance of your polygon type.
  3. Define a KD Tree data structure.
  4. Write a KD Tree builder which iterates through the polygons which comprise your object and constructs a KD Tree.
  5. Extend your ray-tracer to use the KD Tree.

利用权宜之计为KAI树找到更多的胎儿和样本。 标准文件由Vlastimil Havran编写,可在网上查阅。

问题回答

暂无回答




相关问题
How to show some animation while control is rendering?

I have WPF ListBox that shows a lot of data. I need smooth scrolling, so I ve set ListBox.ScrollViewer.CanContentScroll to False that disables virtualization. Now when I open the tab where this ...

Font Rendering between Mozilla and webkit

I m not sure if this has anything to do with the recent Safari update, but I m beginning to notice this a lot. There is a drastic difference in the way each browser is rendering fonts. for instance, ...

How to render a printable image from a SWF

I m working on a project at the moment where the client uses an off-the-shelf Flash library to display data against a map. It s a SWF that we feed some XML data and it renders it in various ways, such ...

Load image into memory immediately

I need to open all frames from Tiff image in WPF into memory and then delete the source. And after that I eventually need to render that image (resized according to window size). My solution is quite ...

JSP programmatically render

I need to programmatically render JSP page. As far as I understand, JSP should have some compiler. The question is can I use this compiler dirrectly without JspServlet and others? All I need is ...

热门标签