問題タブ [pbrt]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
1896 参照

graphics - .PBRT ファイルの画像を表示する方法

.pbrtPBRT (物理ベースのレイ トレーシング) を初めて使用します。ファイルの画像を表示するにはどうすればよいですか。

コマンドプロンプトから以下の手順を実行しました。

0 投票する
0 に答える
279 参照

c++ - Kdtree ルックアップ: PBRT ソース コード

n最も近い点を見つけるために、pbrt ソース コードを使用して kdtree を実装しようとしています。3 次元空間に分布する点の配列があり、基準点から特定の距離内にある点の数を計算する必要があります。それで、誰かが私がどのように進むべきかについて私を導くことができますか? 基本的に、integrators/photonmap.cpp に記載されているものと同じルックアップ プロセス (PhotonProcess) を使用しています。しかし、どういうわけか私は奇妙な結果を得ることになります。ここに私が使用しているコードの小さな部分があります。

searchdist の期待値が得られません。ヒントのアイデアや提案は大歓迎です。

0 投票する
2 に答える
2467 参照

raytracing - How to sort and compare in a Bounding Volume Hierarchy

I'm currently implementing a Bounding Volume Hierarchy for 3D-Triangles only. Sadly all explanations of BVH fall short on the part where you sort your Objects for splitting. For starters I want to aim for a balanced tree and use the median cut. This would require me to sort either the triangles or their bounding boxes(AABB) after a spatial criterion on the split axis of the current node. I'm really unsure if the maximum or minimum extend of a BB or triangle is enough for a proper separation as some triangles can be bigger. I'm also unsure if it's better to compare the bounding box or the triangle.

The second part of the problem is that sorting every step seems to be expensive. Other algorithms in computer-graphics employ presorted lists and then split those according to the splitting criterion. I don't see a way how you could efficiently compare triangles and assure that they belong to a list. Does that mean I have to sort the list every step?

0 投票する
1 に答える
200 参照

graphics - pbrt でレンダリングされた画像を回転する

pbrt を使用してシーンをレンダリングしました。シーン ファイルで視野角を指定し、pbrt でレンダリングすると、その特定の視野角から画像が表示されます。マウスを使用して pbrt によってレンダリングされたシーンをリアルタイムで回転できる方法があるかどうかを知りたい