gazebosim / gazebosim/sdformat

Spec for Fog type incorrect

Open
#191 1 comment 0 reactions 0 assignees View on GitHub
1.5 bug minor
Dominant language
C++
Stars
216
Forks
125
Avg merge
1d 14h
Merged PRs (30d)
14

Description

**Original report ([archived issue](https://osrf-migration.github.io/sdformat-gh-pages/#!/osrf/sdformat/issues/191)) by Anonymous.**

----------------------------------------
Hey guys,

I've recently been playing around with the fog setting and it seems like the SDF spec is incorrect. Right now, the types of fog are listed as linear, quadratic, and exponential, but I was getting an error. I looked at the gazebo source though for scenes and it looks like the Fog types from OGRE were just carried over:

```
#!c++

/// \brief Set the fog parameters.
/// \param[in] _type Type of fog: "linear", "exp", or "exp2".
/// \param[in] _color Color of the fog.
/// \param[in] _density Fog density.
/// \param[in] _start Distance from camera to start the fog.
/// \param[in] _end Distance from camera at which the fog is at max
/// density.
public: void SetFog(const std::string &_type,
const ignition::math::Color &_color,
const double _density, const double _start,
const double _end);
```
I think it would best to update the latest SDF spec to reflect this.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.