background color in the world in Fortress/Citadel

asked 2021-10-15 18:28:25 -0500

kakcalu13 gravatar image

So, I've been trying to put color in this circle.

image description

I wanted to test color.

So, I wrote a simple sdf

 <?xml version="1.0" ?>
<sdf version="1.9">
  <world name="smol_worl">

      <ambient>0.2 0.2 0.2 1.0</ambient>
      <background>1 1 1 1.0</background>

      <!-- 3D scene -->
      <plugin filename="GzScene3D" name="3D View">
          <title>3D View</title>
          <property type="bool" key="showTitleBar">false</property>
          <property type="string" key="state">docked</property>

        <ambient_light>0.4 0.4 0.4</ambient_light>
        <background_color>0.18 0.85 0.07 0.8</background_color>
        <camera_pose>-6 0 6 0 0.5 0</camera_pose>


I learned that So, I changed the color. I wanted to test on neon green which is rgba(46, 218, 22, 0.8)

So obviously, background_color is between 0 to 1 so I divide each value by 255

which is <background_color>0.18 0.85 0.07 0.8</background_color>

the color of background is same as the screenshot.

I changed <background> inside the <scene> as well too.

The color is remain same. What did I miss?

Also could this be because of this? image description

edit retag flag offensive close merge delete