Commit 6172c29a authored by sumpfralle's avatar sumpfralle

spelling: "lightning" -> "lighting"


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@541 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 879b4b17
...@@ -3,7 +3,7 @@ Version 0.3.0 - UNRELEASED ...@@ -3,7 +3,7 @@ Version 0.3.0 - UNRELEASED
* added basic support for importing simple DXF contour files * added basic support for importing simple DXF contour files
* added support for engravings * added support for engravings
* integrated "help" links pointing to the wiki * integrated "help" links pointing to the wiki
* improved OpenGL lightning (contributed by imyrek) * improved OpenGL lighting (contributed by imyrek)
* allow non-square profiles for the support grid * allow non-square profiles for the support grid
* added ability to create support grids with different x/y grid distance * added ability to create support grids with different x/y grid distance
* added x/y offsets to support grid options * added x/y offsets to support grid options
...@@ -74,7 +74,7 @@ Version 0.2 - 2010-03-04 ...@@ -74,7 +74,7 @@ Version 0.2 - 2010-03-04
* configure "overlap" instead of "lines" and "samples" * configure "overlap" instead of "lines" and "samples"
* configure "maximum step down" instead of "layers" * configure "maximum step down" instead of "layers"
* show a progress bar during calculations * show a progress bar during calculations
* basic lightning for the OpenGL view * basic lighting for the OpenGL view
* improved performance by (optionally) using the "Open Dynamics Engine" (ODE) for * improved performance by (optionally) using the "Open Dynamics Engine" (ODE) for
collision detection collision detection
......
...@@ -100,7 +100,7 @@ class Triangle(TransformableContainer): ...@@ -100,7 +100,7 @@ class Triangle(TransformableContainer):
if not GL_enabled: if not GL_enabled:
return return
GL.glBegin(GL.GL_TRIANGLES) GL.glBegin(GL.GL_TRIANGLES)
# use normals to improve lightning (contributed by imyrek) # use normals to improve lighting (contributed by imyrek)
normal_t = self.normal() normal_t = self.normal()
GL.glNormal3f(normal_t.x, normal_t.y, normal_t.z) GL.glNormal3f(normal_t.x, normal_t.y, normal_t.z)
GL.glVertex3f(self.p1.x, self.p1.y, self.p1.z) GL.glVertex3f(self.p1.x, self.p1.y, self.p1.z)
......
...@@ -445,7 +445,7 @@ class ModelViewWindowGL: ...@@ -445,7 +445,7 @@ class ModelViewWindowGL:
GL.glLoadIdentity() GL.glLoadIdentity()
GL.glViewport(0, 0, self.area.allocation.width, GL.glViewport(0, 0, self.area.allocation.width,
self.area.allocation.height) self.area.allocation.height)
# lightning # lighting
# Setup The Ambient Light # Setup The Ambient Light
GL.glLightfv(GL.GL_LIGHT0, GL.GL_AMBIENT, (0.3, 0.3, 0.3, 3.)) GL.glLightfv(GL.GL_LIGHT0, GL.GL_AMBIENT, (0.3, 0.3, 0.3, 3.))
# Setup The Diffuse Light # Setup The Diffuse Light
......
...@@ -5286,7 +5286,7 @@ It is significantly faster, but the current release of ODE contains a nasty bug ...@@ -5286,7 +5286,7 @@ It is significantly faster, but the current release of ODE contains a nasty bug
</child> </child>
<child> <child>
<object class="GtkCheckButton" id="OpenGLLight"> <object class="GtkCheckButton" id="OpenGLLight">
<property name="label" translatable="yes">Lightning</property> <property name="label" translatable="yes">Lighting</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="receives_default">False</property> <property name="receives_default">False</property>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment