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

Set background color #152

Open
SoftologyPro opened this issue Nov 10, 2021 · 0 comments
Open

Set background color #152

SoftologyPro opened this issue Nov 10, 2021 · 0 comments

Comments

@SoftologyPro
Copy link

How can I change or set the background color? When I render to an EXR file the background is black and when I open the XML in the mtsgui.exe the background is white. How do I set the background to any other color?

Here is the simplest example scene I could create. How do I set the background color behind the single yellow cube?

<?xml version="1.0" encoding="utf-8"?>
<scene version="0.5.0">

<sensor type="perspective">
<transform name="toWorld">
<lookat origin="0,0,25" target="0,1,0" up="0, -1, 0"/>
<rotate x="1" angle="25"/>
<rotate y="1" angle="50"/>
<rotate z="1" angle="180"/>
</transform>
<float name="fov" value="35"/>
<string name="fovAxis" value="y"/>

<film type="hdrfilm">
<boolean name="banner" value="false"/>
<integer name="width" value="640"/>
<integer name="height" value="360"/>
<rfilter type="gaussian"/>
</film>
</sensor>

<emitter type="constant">
</emitter>

<shape type="cube">
<transform name="toWorld">
<scale x="0.5"/>
<scale y="0.5"/>
<scale z="0.5"/>
<translate x="-5"/>
<translate y="-5"/>
<translate z="-5"/>
</transform>
<bsdf type="diffuse">
<srgb name="reflectance" value="#FEFE00"/>
</bsdf>
</shape>

<integrator type="direct">
<boolean name="hideEmitters" value="true"/>
<integer name="shadingSamples" value="15"/>
</integrator>

</scene>
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

1 participant