bugGNU Octave - Bugs: bug #48701, Lighting is not implemented for...

 
 

bug #48701: Lighting is not implemented for gnuplot

Submitter:  Markus Mützel <mmuetzel>
Submitted:  Thu 04 Aug 2016 07:21:35 PM UTC
   
 
Category:  Plotting with gnuplot Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  None Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 04 Aug 2016 07:46:42 PM UTC, comment #2: 

Just run 'gnuplot' at the terminal window and copy the code next to the examples in

http://gnuplot.sourceforge.net/demo_5.1/pm3d_lighting.html

Rotating those demos suggests to me the light is fixed with respect to the view, not the spatial axes.

Dan Sebald <sebald>
Thu 04 Aug 2016 07:41:15 PM UTC, comment #1: 

I'm very familiar with gnuplot, but I can't recall much support for lighting.  The list of demo topics is here:

http://gnuplot.sourceforge.net/demo_5.1/

and in particular for lighting

http://gnuplot.sourceforge.net/demo_5.1/pm3d_lighting.html

Is it worth pursuing?

Dan Sebald <sebald>
Thu 04 Aug 2016 07:21:35 PM UTC, original submission:  

Lighting does currently not work in gnuplot.

I experimented with lighting for patches by using only existing Octave functions. At the moment, lighting support is quite limited in this way: Only one light, no support for "unlit", only "gouraud" lighting, only patches, ... But at least it is working for basic lighting and it can probably be extented without too much problems.

However, I am not familiar enough with the gnuplot functions in Octave to get it to work correctly. So I am leaving my current state of work here. Maybe someone interested who is more familiar with the gnuplot code can pick up from here.

"update_lighting.m" contains the lighting calculations.
Run "test_update_lighting.m" for a demo.

Markus Mützel <mmuetzel>
Group administrator

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #38110:  update_lighting.m added by mmuetzel (4KiB - text/x-objcsrc)
file #38111:  test_update_lighting.m added by mmuetzel (1KiB - text/x-objcsrc)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by sebald (Posted a comment)
  • -email is unavailable- added by mmuetzel (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-08-04 mmuetzel Attached File- Added update_lighting.m, #38110
        Attached File- Added test_update_lighting.m, #38111

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code