Skip to content
Discussion options

You must be logged in to vote

Hi @xacond00 ,

I realised it's a bit more involved so I had a quick go at implementing what I had suggested:

src/sensors/repeater.cpp

#include <mitsuba/core/fwd.h>
#include <mitsuba/core/spectrum.h>
#include <mitsuba/core/properties.h>
#include <mitsuba/core/plugin.h>
#include <mitsuba/render/sensor.h>

NAMESPACE_BEGIN(mitsuba)
template <typename Float, typename Spectrum>
class RepeatedSensor final : public Sensor<Float, Spectrum> {
public:
    MI_IMPORT_BASE(Sensor)
    MI_IMPORT_TYPES()

    RepeatedSensor(const Properties &props) : Base(props), m_props(props) {
        // You might want to add more stricter error checking here. e.g. the user has to specify copies
        m_copies = props.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@xacond00
Comment options

@rtabbara
Comment options

@xacond00
Comment options

@rtabbara
Comment options

Answer selected by rtabbara
@xacond00
Comment options

@rtabbara
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants