OpenGL / GLSL:从体积数据中渲染云/烟雾的最佳算法是什么?(OpenGL/GLSL: What is the best algorithm to render clouds/smoke out of volumetric data?)
我想渲染3D体数据:密度(可以映射到Alpha通道),温度(可以映射到RGB)。 目前我正在模拟最大强度投影,例如:最终渲染最密集/不透明的像素。但是这种方法失去了深度感知。
我想模仿烟雾中的火焰效果。
所以我的问题是OpenGL基于可用数据生成图像的技术是什么?
欢迎任何想法。
谢谢阿曼。
I would like to render the 3D volume data: Density(can be mapped to Alpha channel), Temperature(can be mapped to RGB). Currently I am simulationg maximum intensity projection, eg: rendering the most dense/opaque pixel in the end.But this method looses the depth perception.
I would like to imitate the effect like a fire inside the smoke.
So my question is what is the techniques in OpenGL to generate images based on available data?
Any idea is welcome.
Thanks Arman.
原文:https://stackoverflow.com/questions/2591956
最满意答案
很久以前,旧的
rdoc/usage
模块已从rdoc中删除,即在Ruby 1.9.1中(当rdoc仍然是Ruby核心语言的一部分时)。 有关讨论或SVN提交,请参阅https://bugs.ruby-lang.org/issues/2713 。因此,最近的Rubies,再也没有办法使用这个模块了。 您应该更新代码以使用替代方法来生成文档。
The old
rdoc/usage
module was removed from rdoc quite some time ago, namely in Ruby 1.9.1 (when rdoc was still part of the Ruby core language). See https://bugs.ruby-lang.org/issues/2713 for a discussion or the SVN commit.Thus, with recent Rubies, there is no way to use this module anymore. You should update your code to use alternatives to generate documentation.
相关问答
更多-
`require':无法加载这样的文件 - mongo(LoadError)(`require': cannot load such file — mongo (LoadError))[2023-03-25]
因此,当我将Gem'mongo gem 'mongo'添加到我的Gemfile中时,发现Matt 'bundler/setup'发现了'bundler/setup'这似乎解决了这个问题。 So looking further into 'bundler/setup' thanks to Matt I found when adding gem 'mongo' to my Gemfile seemed to fix the problem. -
案件很重要。 require 'httparty' Case matters. require 'httparty'
-
`require':无法加载这样的文件--HTTParty(LoadError)(`require': cannot load such file — HTTParty (LoadError))[2019-12-10]
试试这个。 这都是失败的 require 'httparty' Try simply this. It's all downcase require 'httparty' -
我已经就你提出的摩卡问题 回答了这个问题 ,但基本上我认为你需要升级rspec(-rails)或降级摩卡。 你使用的两个版本不兼容。 I have answered this more fully on the mocha issue that you raised, but essentially I think you either need to upgrade rspec(-rails) or downgrade mocha. The two versions you are using are n ...
-
`require':无法加载此类文件 - rdoc / usage(LoadError)(`require': cannot load such file — rdoc/usage (LoadError))[2023-03-19]
很久以前,旧的rdoc/usage模块已从rdoc中删除,即在Ruby 1.9.1中(当rdoc仍然是Ruby核心语言的一部分时)。 有关讨论或SVN提交,请参阅https://bugs.ruby-lang.org/issues/2713 。 因此,最近的Rubies,再也没有办法使用这个模块了。 您应该更新代码以使用替代方法来生成文档。 The old rdoc/usage module was removed from rdoc quite some time ago, namely in Ruby 1 ... -
你可以用你的ruby脚本来调用它 ruby -rubygems script.rb 或者将rubygems添加到RUBYOPT $ export RUBYOPT="rubygems" You could invoke you ruby script with ruby -rubygems script.rb or add rubygems to RUBYOPT $ export RUBYOPT="rubygems"
-
根据API Dock, require_relative是你需要的。 Ruby尝试加载相对于所需文件路径的名为string的库。 如果无法确定文件的路径,则引发LoadError。 如果加载文件,则返回true,否则返回false。 所以你所要做的就是 require_relative "file-a" require_relative "file-b" require_relative "file-c" According to API Dock, require_relative is what yo ...
-
替换rdoc使用(Replacement for rdoc usage)[2022-01-05]
我喜欢OptionParser (文章提到RDoc::usage对补充很有用)。 看起来任何1.9个bug 都被修补了 。 I like OptionParser (the thing that the article mentions that RDoc::usage is useful to complement). It looks like any 1.9 bugs have been patched. -
错误:`require':无法加载此类文件 - jemoji(LoadError)(Error: `require': cannot load such file — jemoji (LoadError))[2023-06-30]
上述问题已按照自述文件中的说明并运行./scripts/install 。 谢谢@Jordan的帮助。 The above issue was resolved following the instructions in readme file and running ./scripts/install. Thanks @Jordan for your help. -
更好的使用方式 require_relative "sort" intead of require "sort" 谢谢,@JörgWMittag。 或者您可以添加ruby应该搜索文件的路径(可能存在安全风险): $:.unshift File.join(File.dirname(__FILE__), ".") # current directory require 'sort' The better way to use require_relative "sort" intead of requi ...