Comments (3)
@abhinavvs this is now fixed (77a8024)
Thanks for reporting this!
from mitsuba2.
Hi @abhinavvs ,
Q1: Mitsuba 2 uses the underscore_case
naming convention, so toWorld
should become to_world
. For compability with Mitsuba 1 scenes, the Mitsuba 2 parser is able to do the name conversion itself if a scene version is provided. In your case, this should fix it:
<scene version="0.1.0">
<!-- Define all the Shapes and bsdfs -->
</scene>
Q2: Currently, only triangular meshes are supported in the gpu_*
modes. You can easily generate .obj
meshes for rectangle and sphere with Blender, or use the ones in resources/data/docs/scenes/meshes/
.
from mitsuba2.
Thanks, @Speierers - I used the version tag for the older (Mitsuba 1) scene file as mentioned by you, but still got the same error.
Also, I have the following bsdf definition from Mitusba 1 format (this is not part of the external scene file above)
<!-- White paint definition -->
<bsdf type="twosided" id="white-paint">
<bsdf type="roughplastic">
<!-- The BEHR Premium paint is documented as having an RGB color
of (247, 248, 244) = #f7f8f4. This is used, although the
semi-gloss/eggshell sheen effects this too. -->
<srgb name="diffuseReflectance" value="#f7f8f4" />
<string name="distribution" value="ggx" />
<float name="alpha" value="0.08" />
<!-- BEHR paint has an acrylic finish, this is an approximate match. -->
<string name="intIOR" value="acrylic glass" />
<boolean name="nonlinear" value="true" />
</bsdf>
</bsdf>
How can I convert the diffuseReflectance
value from <srgb>
to <spectrum>
or <rgb>
? Could you tell me what would be the equivalent BSDF definition for the above material in Mitsuba2?
Also, I see that there are new commits to the repository all the time. For staying up-to-date with the latest version of Mitusba, is it sufficient to simply do a git pullall
as mentioned in the docs, or should we build and compile the software again as well?
Update:
Looks like the automatic name conversion from Mitsuba 1 to Mitsuba 2 doesn't seem to work for loading external files. I changed the syntax on the external xml file to Mitusba 2 format and things work fine.
from mitsuba2.
Related Issues (20)
- [🔨 compilation issue] 'cmake -GNinja' step HOT 3
- [❔ other question] How to convert/extract enoki.autodiff_cuda.Float32 type array from Bitmap class? HOT 4
- [❔ other question]runtime API error = 0719 HOT 1
- [🐛 bug report] importing Pytorch after mitsuba => Segmentation fault (core dumped) HOT 1
- [❔ other question] Performance on Windows much lower than Linux? HOT 5
- [🐛 bug report] hdrfilm.cpp: duplicate channel detection HOT 3
- [❔ other question] how to uninstall mitsuba2 in linux? HOT 4
- The examples of Differentiable rendering applications HOT 2
- [🐛 bug report] OptiX "arithmetic involving uninitialized variable!" with Certain Scenes HOT 1
- [✨ feature request] Tutorial on differential rendering material acquisition HOT 1
- Something about code HOT 1
- Caught a critical exception: main [properties.cpp:401] └1∩Æ∞☺
- [✨ feature request] Does the mitsuba2 support bsdf for cloth model? HOT 1
- 用java或C++用物件導向的概念設計程式解下面的問題:讀取一組時間,計算出時針與分針的夾角,時間的格式是0:00到12:00,小時數可能為1或2位數,分鐘數總是2位數,00到59之間。輸出腳讀為0到180之間的值,角度的精確度到千分之一。例如9:00是90.000度,不是-90,也不是270,2:00則是60 HOT 1
- Rendered polarized images' intensity doesn't change according to the change of polarization angle- [❔ other question] HOT 1
- [❔ other question] setting the variant("llvm_spectral_polarized"), the code didn't work HOT 2
- [❔ other question]How can we output UV map in python? HOT 1
- - [❔ other question] I want to optimize the values in the transform component of my sensor plugin HOT 1
- Unable to compile: Windows 10: Visual Studio Community 2022 HOT 1
- White noise in spectral rendering - [❔ other question] HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mitsuba2.