~j-rivero/+junk/ignition-gazebo

« back to all changes in this revision

Viewing changes to test/worlds/lights.sdf

  • Committer: Jose Luis Rivero
  • Date: 2022-02-15 17:35:59 UTC
  • Revision ID: jrivero@osrfoundation.org-20220215173559-qyu3wjmqnrby30k7
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" ?>
 
2
<sdf version="1.6">
 
3
  <world name="lights">
 
4
    <physics name="1ms" type="ode">
 
5
      <max_step_size>0.001</max_step_size>
 
6
      <real_time_factor>0</real_time_factor>
 
7
    </physics>
 
8
    <plugin
 
9
      filename="ignition-gazebo-physics-system"
 
10
      name="ignition::gazebo::systems::Physics">
 
11
    </plugin>
 
12
    <plugin
 
13
      filename="ignition-gazebo-scene-broadcaster-system"
 
14
      name="ignition::gazebo::systems::SceneBroadcaster">
 
15
    </plugin>
 
16
    <light type="directional" name="directional">
 
17
      <cast_shadows>true</cast_shadows>
 
18
      <pose>0 0 10 0 0 0</pose>
 
19
      <diffuse>0.8 0.8 0.8 1</diffuse>
 
20
      <specular>0.2 0.2 0.2 1</specular>
 
21
      <attenuation>
 
22
        <range>100</range>
 
23
        <constant>0.9</constant>
 
24
        <linear>0.01</linear>
 
25
        <quadratic>0.001</quadratic>
 
26
      </attenuation>
 
27
      <direction>0.5 0.2 -0.9</direction>
 
28
    </light>
 
29
 
 
30
    <light type="point" name="point">
 
31
      <pose>0 -1.5 3 0 0 0</pose>
 
32
      <diffuse>1 0 0 1</diffuse>
 
33
      <specular>.1 .1 .1 1</specular>
 
34
      <attenuation>
 
35
        <range>4</range>
 
36
        <constant>0.2</constant>
 
37
        <linear>0.5</linear>
 
38
        <quadratic>0.01</quadratic>
 
39
      </attenuation>
 
40
      <cast_shadows>false</cast_shadows>
 
41
    </light>
 
42
 
 
43
    <light type="spot" name="spot">
 
44
      <pose>0 1.5 3 0 0 0</pose>
 
45
      <diffuse>0 1 0 1</diffuse>
 
46
      <specular>.2 .2 .2 1</specular>
 
47
      <attenuation>
 
48
        <range>5</range>
 
49
        <constant>0.3</constant>
 
50
        <linear>0.4</linear>
 
51
        <quadratic>0.001</quadratic>
 
52
      </attenuation>
 
53
      <direction>0 0 -1</direction>
 
54
      <spot>
 
55
        <inner_angle>0.1</inner_angle>
 
56
        <outer_angle>0.5</outer_angle>
 
57
        <falloff>0.8</falloff>
 
58
      </spot>
 
59
      <cast_shadows>false</cast_shadows>
 
60
    </light>
 
61
 
 
62
    <model name="sphere">
 
63
      <pose>0 0.0 0.0 0 0 0</pose>
 
64
      <link name="sphere_link">
 
65
        <visual name="sphere_visual">
 
66
          <geometry>
 
67
            <sphere>
 
68
              <radius>0.5</radius>
 
69
            </sphere>
 
70
          </geometry>
 
71
          <material>
 
72
            <ambient>0.3 0.3 0.3 1</ambient>
 
73
            <diffuse>0.3 0.3 0.3 1</diffuse>
 
74
            <specular>0.3 0.3 0.3 1</specular>
 
75
          </material>
 
76
        </visual>
 
77
        <light type="point" name="link_light_point">
 
78
          <pose>0 0 1.0 0 0 0</pose>
 
79
          <diffuse>0 0 1 1</diffuse>
 
80
          <specular>.1 .1 .1 1</specular>
 
81
          <attenuation>
 
82
            <range>2</range>
 
83
            <constant>0.05</constant>
 
84
            <linear>0.02</linear>
 
85
            <quadratic>0.01</quadratic>
 
86
          </attenuation>
 
87
          <cast_shadows>false</cast_shadows>
 
88
        </light>
 
89
      </link>
 
90
    </model>
 
91
  </world>
 
92
</sdf>