Skip to content

How do I add lights to an XML scene? #12

Open
@ohmaya

Description

@ohmaya

Yeah, it might be a Mitsuba question.

I took scenes/classroom/scene.xml and added the following:

	<emitter type="point">
		<point name="position" value="-3.7, 5.0, 1.0"/>
		<rgb name="intensity" value="123456789.0"/>
	</emitter>
	<shape type="rectangle">
		<transform name="toWorld">
			<matrix value="0.53241 0 0 -1.47544 0 0.907794 1.78252e-008 1.18968 0 1.78252e-008 0.5 -1.26735 0 0 0 1"/>
		</transform>
		<bsdf type="twosided">
			<bsdf type="diffuse">
				<rgb name="reflectance" value="0, 0, 0"/>
			</bsdf>
		</bsdf>
		<emitter type="area">
			<rgb name="radiance" value="123456789.0, 123456789.0, 123456789.0"/>
		</emitter>
	</shape>

There didn't seem to be new lights in the rendering.

scenes\bedroom\scene.xml contains 2 area emitters, which do not seem to appear in renderings.

Also didn't see sphere:

	<shape type="sphere">
		<float name="radius" value="10"/>
		<transform name="toWorld">
			<translate x="-3.6" y="5.0" z="1.4"/>
		</transform>
		<ref id="Walls" />
	</shape>

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions