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

Ambient light is not taken into account in Ogre1 #1015

Open
azeey opened this issue Jul 9, 2024 · 0 comments
Open

Ambient light is not taken into account in Ogre1 #1015

azeey opened this issue Jul 9, 2024 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@azeey
Copy link
Contributor

azeey commented Jul 9, 2024

Environment

  • OS Version: Ubuntu 22.04
  • Source or binary build? binary gz-rendering 8.2.0

Description

  • Expected behavior: Ambient light to affect scne
  • Actual behavior: Changing ambient colors in the <scene> tag or in MinimalScene's <ambient_light> seems to have no effect.

Steps to reproduce

  1. Run the following SDF file
<?xml version="1.0" ?>
<sdf version="1.9">
  <world name="default">
    <scene>
      <ambient>1 1 1 1</ambient>
    </scene>
    <gui>
      <plugin filename="MinimalScene" name="3D View">
        <engine>ogre</engine>
        <scene>scene</scene>
        <ambient_light>1 1 1 1</ambient_light>
        <camera_pose>-6 0 6 0 0.5 0</camera_pose>
      </plugin>
      <plugin filename="GzSceneManager" name="Scene Manager"/>
      <plugin filename="InteractiveViewControl" name="Interactive view control"/>
    </gui>
    <model name="test_gradient">
      <link name="base">
        <visual name="v1">
          <geometry>
            <box>
              <size>2 2 2</size>
            </box>
          </geometry>
          <material>
            <diffuse>1 1 1 1</diffuse>
          </material>
        </visual>
      </link>
    </model>
  </world>
</sdf>
  1. You should see a black box, but it should be grey or white
  2. Try changing <ambient> or <ambient_light> and run again to see any change.

Output

This is what it looks like locally.
image

Running it with ogre2 shows:
image

@azeey azeey added the bug Something isn't working label Jul 9, 2024
@azeey azeey added the help wanted Extra attention is needed label Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
Status: To do
Development

No branches or pull requests

1 participant