bugpyFormex - Bugs: bug #37899, Lighting initially wrong in smooth...


bug #37899: Lighting initially wrong in smooth modes

Submitted by:  Benedict Verhegghe <bverheg>
Submitted on:  Tue Dec 11 10:30:29 2012  
Category: RenderingSeverity: 3 - Normal
Item Group: Functionality errorStatus: Wont Fix
Privacy: PublicAssigned to: Benedict Verhegghe <bverheg>
Open/Closed: Closed

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Mon Feb 10 11:22:35 2014, comment #2:

This problem does not occur in the new opengl engine.

Benedict Verhegghe <bverheg>
Project AdministratorIn charge of this item.
Wed Jan 16 10:12:36 2013, comment #1:

This problem seems to occur only if you have a smooth mode set in your configuration settings as the initial mode. Drawing is still done in wireframe though, and switching to a smooth mode does not set the normals. Obviously, the mode from the configuration is not
properly initialized.

As a work around, you can use a startup script to set the initial mode. Put the following line in your ~/.pyformex/startup.py (if the file does not exist, just create it):


Benedict Verhegghe <bverheg>
Project AdministratorIn charge of this item.
Tue Dec 11 10:30:29 2012, original submission:

In the smooth rendering modes, lighting of feshly drawn objects often is initially incorrect. Switching to wireframe mode and back to smooth mode fixes the incorrect lighting.

Presumably the computation of the normals is done incorrectly or not at all on first drawing. Redrawing then computes the normals correctly.

Benedict Verhegghe <bverheg>
Project AdministratorIn charge of this item.


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by bverheg (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon Feb 10 11:22:35 2014bverhegStatusConfirmed=>Wont Fix
    Wed Jan 16 10:12:36 2013bverhegStatusNone=>Confirmed
      Assigned toNone=>bverheg

    Back to the top

    Powered by Savane 3.1-cleanup1