Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

about lighting used to make dataset #17

Closed
yl949 opened this issue Jul 22, 2021 · 4 comments
Closed

about lighting used to make dataset #17

yl949 opened this issue Jul 22, 2021 · 4 comments

Comments

@yl949
Copy link

yl949 commented Jul 22, 2021

@guanyingc Hello, thanks you for sharing the synthetic data.
I have some questions about the dataset:

  1. what type emitter did you use to generate the data? Is the point light far from the object to mimic the effect of parallel light?
  2. what sensor do you used to mimic the orthogonal camera? In the document of Mitsuba2, I don't find the orthographic type sensor.
  3. Mitsuba2 use xml file to create the scene. How do you use python to dynamically edit scene and render all result?
    Thanks again!
@guanyingc
Copy link
Owner

guanyingc commented Jul 22, 2021

Hi, please kindly refer to #15
The follow is the xml we used in Mitsuba.

<integrator type="multichannel">
    <integrator type="field">
        <string name ="field" value="shNormal" />
        <spectrum name="undefined" value="0" />
        <!--Occlusion-->
    </integrator>
</integrator>

<shape type="sphere" id="obj1">
    <point name="center" x="$tx" y="$ty" z="$tz" />
    <float name="radius" value="$scale" />
</shape>

<sensor type="orthographic">
    <float name="farClip" value="55.864"/>
	<float name="nearClip" value="0.10864"/>
	<transform name="toWorld">
        <lookat target="0, 0, -14" origin="0, 0, -15" up="0, 1, 0"/>
	</transform>

	<sampler type="ldsampler">
		<integer name="sampleCount" value="64"/>
	</sampler>

	<film type="hdrfilm">
		<integer name="height" value="$h"/>
		<integer name="width" value="$w"/>

        <string  name="pixelFormat"  value="rgb"/>
        <string  name="channelNames" value="normal"/>
		<rfilter type="gaussian"/>
        <boolean name="banner" value="false"/>
	</film>
</sensor>

@yl949
Copy link
Author

yl949 commented Jul 23, 2021

Thank you for you reply. I have read the #15 before ask the question above.
Could you give me the version of mitsuba you used? I use <scene version='2.0.0'>, but there is no orthogonal cammera.
What's more, there is no emitter in your xml. So how do you know the intensity (irradiance) and direction of the light?

@guanyingc
Copy link
Owner

Oh, sorry. It seems that the Github markdown cannot display the whole xml file. Please kindly see example xml in this link.

We use scene version 0.5.0.

image

render_single_obj_img.txt

@yl949
Copy link
Author

yl949 commented Jul 28, 2021

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants