Giter Site home page Giter Site logo

Comments (10)

chaosink avatar chaosink commented on August 16, 2024

Maybe you can try my script: rm_instance.
It can convert instance and shapegroup shapes into non-instanced shapes.
Maybe buggy... : )

from mitsuba2.

wjakob avatar wjakob commented on August 16, 2024

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.

KelSolaar avatar KelSolaar commented on August 16, 2024

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.

chaosink avatar chaosink commented on August 16, 2024

@KelSolaar Try searching shapegroup instead.

from mitsuba2.

KelSolaar avatar KelSolaar commented on August 16, 2024

Unless I missed something super obvious (and as I stated it earlier), nothing like that in Mitsuba 2!

image

from mitsuba2.

chaosink avatar chaosink commented on August 16, 2024

@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.

KelSolaar avatar KelSolaar commented on August 16, 2024

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.

chaosink avatar chaosink commented on August 16, 2024

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.

KelSolaar avatar KelSolaar commented on August 16, 2024

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.

Speierers avatar Speierers commented on August 16, 2024

I am going to close this. Instancing and shape grouping is on our roadmap.

from mitsuba2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.