JPEG 2000 Images rendering pink on macOS - Cycles #52845

Closed
opened 2017-09-20 12:01:18 +02:00 by stephen thomas · 15 comments

System Information
macOS Sierra 10.12.4
Intel HD Graphics 4600 1536 MB
NVIDIA GeForce GTX 570

Blender Version
Broken: 2.79 bb4a12914f
Worked: (optional)

Short description of error
JPEG 2000 image planes (Cycles) are rendering as pink. Project was originally created on a Ubuntu machine and worked perfectly. Packing the image seems to fix the problem, but changing the image texture node to image sequence seems to break it again (the frames aren't being flagged as missing/not can't be loaded). Attached are details from a Hackintosh machine, but I verified the problem on a 2016 iMac too.

Exact steps for others to reproduce the error
Open the blend file attached on macOS. Switch to rendered view. It should be pink, indicating a missing texture.

jp2-mac.blend

system-info.txt

05_3c_00002.jp2

05_3c_00003.jp2

Screen Shot 2017-09-20 at 10.51.54.png

05_3c_00000.jp2

05_3c_00001.jp2

**System Information** macOS Sierra 10.12.4 Intel HD Graphics 4600 1536 MB NVIDIA GeForce GTX 570 **Blender Version** Broken: 2.79 bb4a12914fa Worked: (optional) **Short description of error** JPEG 2000 image planes (Cycles) are rendering as pink. Project was originally created on a Ubuntu machine and worked perfectly. Packing the image seems to fix the problem, but changing the image texture node to image sequence seems to break it again (the frames aren't being flagged as missing/not can't be loaded). Attached are details from a Hackintosh machine, but I verified the problem on a 2016 iMac too. **Exact steps for others to reproduce the error** Open the blend file attached on macOS. Switch to rendered view. It should be pink, indicating a missing texture. [jp2-mac.blend](https://archive.blender.org/developer/F835600/jp2-mac.blend) [system-info.txt](https://archive.blender.org/developer/F835607/system-info.txt) ![05_3c_00002.jp2](https://archive.blender.org/developer/F835609/05_3c_00002.jp2) ![05_3c_00003.jp2](https://archive.blender.org/developer/F835610/05_3c_00003.jp2) ![Screen Shot 2017-09-20 at 10.51.54.png](https://archive.blender.org/developer/F835611/Screen_Shot_2017-09-20_at_10.51.54.png) ![05_3c_00000.jp2](https://archive.blender.org/developer/F835613/05_3c_00000.jp2) ![05_3c_00001.jp2](https://archive.blender.org/developer/F835614/05_3c_00001.jp2)
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @stephenthomas

Added subscriber: @stephenthomas

Added subscriber: @Sergey

Added subscriber: @Sergey
Arto Kitula was assigned by Sergey Sharybin 2017-09-21 09:59:52 +02:00

Works on Linux. Wondering whether macOS version of OIIO is compiled with OpenJpeg2000 support?

Works on Linux. Wondering whether macOS version of OIIO is compiled with OpenJpeg2000 support?

As in screenshot, image that is tried to read is : 05_3c_00000.jp2.001 , if you select 05_3c_00000.jp2, you'll get the texture correctly. So problem is not OIIO OpenJpeg2000 support. Something else is going on. Image sequence trying to increment the extension? (wild guess)

As in screenshot, image that is tried to read is : 05_3c_00000.jp2.001 , if you select 05_3c_00000.jp2, you'll get the texture correctly. So problem is not OIIO OpenJpeg2000 support. Something else is going on. Image sequence trying to increment the extension? (wild guess)

OIIO doesn't do image sequence manipulation, it's operating on file paht given to it as-is. Can you verify whether image_user_file_path() is giving a correct file name?

OIIO doesn't do image sequence manipulation, it's operating on file paht given to it as-is. Can you verify whether `image_user_file_path()` is giving a correct file name?
Author

Yes, sounds plausable. The project was originally made on a Ubuntu machine, no problems. The image texture node was referencing an image sequence. Opening on macOS, without any changes (I was going to set it rendering), it was pink. Importing a single JP2000 image on macOS worked ok...

Yes, sounds plausable. The project was originally made on a Ubuntu machine, no problems. The image texture node was referencing an image sequence. Opening on macOS, without any changes (I was going to set it rendering), it was pink. Importing a single JP2000 image on macOS worked ok...

The BKE_image_user_file_path() gives:

//textures/05_3c_00000.jp2

For that .001 version, and it's not packed so it can't be found.

Remember that image sequences/movies can't be packed.

The BKE_image_user_file_path() gives: ``` //textures/05_3c_00000.jp2 ``` For that .001 version, and it's not packed so it can't be found. Remember that image sequences/movies can't be packed.
Author

Apologies, I was trying lots of different things (packing/unpacking) to figure out what specifically was causing the problem, so the .001 may be a bit of a red herring...

I've just created a clean version with the following steps:

  • Set render engine to Cycles
  • Add image as plane
  • Select all of the images in the sequence, checking 'Animate Image Sequences' in the left side panel.
  • Set Material Settings to 'Shadeless' in the left side panel.
  • Click 'Import Images as Planes'
  • Set viewport to rendered view

I've zipped the Blender project together with the four images in the image sequence. Should be as simple as unzipping, opening Blender on macOS and switching the viewport to rendered view to see the bug.

With a bit more testing (since zipping the attached zip), it doesn't seem to make a difference if it's an image sequence or not...... Really really odd......

test.zip

Apologies, I was trying lots of different things (packing/unpacking) to figure out what specifically was causing the problem, so the .001 may be a bit of a red herring... I've just created a clean version with the following steps: - Set render engine to Cycles - Add image as plane - Select all of the images in the sequence, checking 'Animate Image Sequences' in the left side panel. - Set Material Settings to 'Shadeless' in the left side panel. - Click 'Import Images as Planes' - Set viewport to rendered view I've zipped the Blender project together with the four images in the image sequence. Should be as simple as unzipping, opening Blender on macOS and switching the viewport to rendered view to see the bug. With a bit more testing (since zipping the attached zip), it doesn't seem to make a difference if it's an image sequence or not...... Really really odd...... [test.zip](https://archive.blender.org/developer/F847788/test.zip)

Yeah, now confirmed.
Textures are found, you can see them in textured/material viewport, but moment you hit cycles on, you can see nothing but pink panther's back.

Yeah, now confirmed. Textures are found, you can see them in textured/material viewport, but moment you hit cycles on, you can see nothing but pink panther's back.

It is OIIO thing. For now, you need now to use other format for the images, sorry for inconvenience caused.

It is OIIO thing. For now, you need now to use other format for the images, sorry for inconvenience caused.
Author

No problem at all, I'd already converted the image sequence into a ProRes clip to finish off the shot, just wanted to report the bug ?

No problem at all, I'd already converted the image sequence into a ProRes clip to finish off the shot, just wanted to report the bug ?

This issue was referenced by None@61950

This issue was referenced by None@61950

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

This issue was referenced by None@61951

This issue was referenced by None@61951
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
4 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#52845
No description provided.