Comments (10)
Maybe you can try my script: rm_instance.
It can convert instance
and shapegroup
shapes into non-instanced shapes.
Maybe buggy... : )
from mitsuba2.
Hi @KelSolaar,
instancing is one of the features that we haven't yet ported to Mitsuba 2. We are currently looking into this, as it is obviously an important feature.
Best,
Wenzel
from mitsuba2.
Sweet thanks @wjakob!
@chaosink : I searched for group
in the entire codebase and could not find anything, hence my thread. Bookmarked your repo for future reference though!
Cheers,
Thomas
from mitsuba2.
@KelSolaar Try searching shapegroup
instead.
from mitsuba2.
Unless I missed something super obvious (and as I stated it earlier), nothing like that in Mitsuba 2!
from mitsuba2.
@KelSolaar Convert instance
and shapegroup
shapes in XML files to non-instanced shapes.
Is this what you want?
Or I misunderstood you needs?
from mitsuba2.
I need to be able to take a bunch of shapes, group them and transform that group.
For example, I have that ColorChecker geometry here: https://github.com/colour-science/colour-mitsuba/tree/master/colour_mitsuba/colorchecker_classic/geometry. I want to assemble it a the origin of the world, group everything under a group/assembly and then move that group at the location I wish. At the moment I have to export everything at the final worldspace location, e.g. against the Cornell Box wall for that precise ColorChecker geometry.
Hope that makes sense!
from mitsuba2.
I mean, you can first generate a XML scene file for Mitsuba1 just as before.
In the past, with Mitsuba 1, I have been relying on translators to export data for me so it never has been an issue.
And then, use this Python script rm_instance to convert instance
and shapegroup
shapes in XML to non-instanced shapes, for the lack of instance in Mitsuba2.
Finally, use Mitsuba2 to render the converted scene.
This is only a workaround, which may consume more memory than using instance.
from mitsuba2.
Well, I'm generating the scene manually now! I could compute the transformations and slot them as required but it is a stretch too much for my liking and not really efficient.
Cheers,
Thomas
from mitsuba2.
I am going to close this. Instancing and shape grouping is on our roadmap.
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.