octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #42006] set (h, "facelighting", "flat") render


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #42006] set (h, "facelighting", "flat") renders dark surfaces/patches
Date: Mon, 14 Mar 2016 17:47:46 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:45.0) Gecko/20100101 Firefox/45.0

Follow-up Comment #5, bug #42006 (project octave):

While working on a patch to implement lighting in Octave (please see patch
#8943), I encountered the same problem.

It looks like "glEnable (LIGHTING)" should only be called for patches and
surfaces if a light object is present in the axes. Otherwise, the objects are
"rendered in the dark", hence black.

The attached patch checks the "Parent" of the "patch" or "surface" objects for
"Children" of "Type" "light". Is this the correct way to check for other
objects of a certain type in the same axes?
Only if a light object is present, lighting is activated.

As I am neither an expert in C++ nor OpenGL programming, I would appreciate
any help, tips, info and opinions. 

This change reflects the behavior of Matlab when "FaceLighting" is set to a
value other than "none" and no light object is present.

The link in comment #4 gives an error 404 for me. Is there a newer link?

(file #36635)
    _______________________________________________________

Additional Item Attachment:

File name: bug42006.patch                 Size:4 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?42006>

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]