360 by 180 degree IES files don't work. #112201

Open
opened 2023-09-10 12:36:57 +02:00 by Sarah-Cartwright · 5 comments

System Information
Operating system: Windows-10-10.0.19042-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 2060/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 527.37

Blender Version
Broken: version: 3.6.1, branch: blender-v3.6-release, commit date: 2023-07-17 12:50, hash: 8bda729ef4dc
Worked: Never

Short description of error
Blender's IES file processor does not cover the full specification for IES files.

Exact steps for others to reproduce the error
1: In a new scene add a light that uses an external IES file.
2: Add a node to link to a 360 x 180 degree IES file. Two are included in my attachments.

What happens:
Blender renders the IES light as a simple point light.

What should happen:
A full spherical light should be rendered.

Blender does not follow the following stipulation about over 90 degree samples:
The set of vertical angles, listed in increasing order. If the distribution lies completely in the bottom hemisphere, the first and last angles must be 0° and 90°, respectively. If the distribution lies completely in the top hemisphere, the first and last angles must be 90° and 180°, respectively. Otherwise, they must be 0° and 180°, respectively.

Spec:
https://store.ies.org/product/lm-63-19-approved-method-ies-standard-file-format-for-the-electronic-transfer-of-photometric-data-and-related-information/

http://docs.autodesk.com/ACD/2011/ENU/filesAUG/WS73099cc142f48755f058a10f71c104f3-3b1a.htm

**System Information** Operating system: Windows-10-10.0.19042-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 2060/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 527.37 **Blender Version** Broken: version: 3.6.1, branch: blender-v3.6-release, commit date: 2023-07-17 12:50, hash: `8bda729ef4dc` Worked: Never **Short description of error** Blender's IES file processor does not cover the full specification for IES files. **Exact steps for others to reproduce the error** 1: In a new scene add a light that uses an external IES file. 2: Add a node to link to a 360 x 180 degree IES file. Two are included in my attachments. What happens: Blender renders the IES light as a simple point light. What should happen: A full spherical light should be rendered. Blender does not follow the following stipulation about over 90 degree samples: The set of vertical angles, listed in increasing order. If the distribution lies completely in the bottom hemisphere, the first and last angles must be 0° and 90°, respectively. If the distribution lies completely in the top hemisphere, the first and last angles must be 90° and 180°, respectively. Otherwise, they must be 0° and 180°, respectively. Spec: https://store.ies.org/product/lm-63-19-approved-method-ies-standard-file-format-for-the-electronic-transfer-of-photometric-data-and-related-information/ http://docs.autodesk.com/ACD/2011/ENU/filesAUG/WS73099cc142f48755f058a10f71c104f3-3b1a.htm
Sarah-Cartwright added the
Priority
Normal
Type
Report
Status
Needs Triage
labels 2023-09-10 12:36:58 +02:00

Our IES parsing code detects 2 problems with your files:

  • The golfballLight.ies file only has 359 horizontal angles defined, not 360 like it says in the file. It leads to our code rejecting the file as invalid.
  • The golfballHighRes.ies file only has 359 vertical angles defined, not 360 like it says in the file. It leads to our code rejecting the file as invalid.

Addressing those 2 issues leads to the following render in Cycles:
image

The high-res version looks "off" but it's difficult to tell what's going on since the file is so large.

Our IES parsing code detects 2 problems with your files: - The `golfballLight.ies` file only has 359 horizontal angles defined, not 360 like it says in the file. It leads to our code rejecting the file as invalid. - The `golfballHighRes.ies` file only has 359 vertical angles defined, not 360 like it says in the file. It leads to our code rejecting the file as invalid. Addressing those 2 issues leads to the following render in Cycles: ![image](/attachments/197dd656-4d05-4a54-b9d3-03ba83a96736) The high-res version looks "off" but it's difficult to tell what's going on since the file is so large.
315 KiB
Member

file only has 359 horizontal angles defined, not 360 like it says in the file... addressing those 2 issues leads to the following render in Cycles

@deadpin hi, curious to know how you fixed this file.

The high-res version looks "off" but it's difficult to tell what's going on since the file is so large.

Maybe we can forward the report to cycles devs?

> file only has 359 horizontal angles defined, not 360 like it says in the file... addressing those 2 issues leads to the following render in Cycles @deadpin hi, curious to know how you fixed this file. > The high-res version looks "off" but it's difficult to tell what's going on since the file is so large. Maybe we can forward the report to cycles devs?
Pratik Borhade added
Status
Needs Information from User
and removed
Status
Needs Triage
labels 2023-09-11 09:06:59 +02:00

Number of vertical angles specified in yellow. Number of horizontal angles specified in blue -- original file had 360 on line 9.
image

Number of vertical angles specified in yellow. Number of horizontal angles specified in blue -- original file had `360` on line 9. ![image](/attachments/b9a40c1a-47c7-4ebd-8260-9d594ad33ed8)
Member

Thanks @deadpin, worked :D

Thanks @deadpin, worked :D
Pratik Borhade added
Status
Needs Info from Developers
and removed
Status
Needs Information from User
labels 2023-09-13 11:32:42 +02:00

@deadpin , is your IES parsing code open source? It would be very useful for me.

@deadpin , is your IES parsing code open source? It would be very useful for me.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#112201
No description provided.