OBJ Exporter does not save the interpolation used in a texture #101182

Closed
opened 2022-09-19 07:39:12 +02:00 by Arsen · 15 comments

System Information
Operating system: Win.10
Graphics card:RTX 3070 TI

Blender Version
Broken: 3.2.1
Worked: N/A

Short description of error
Coloring does not work right after exporting from blender.

tree blender.PNG tree studio.PNG
This is because the texture used in the UV map loses the Closest interpolation.

Exact steps for others to reproduce the error

  • Download attached .blend file and .png image to the same directory
  • Export the Object to .obj
  • Reimport in Blender or any other application

issue thing.blend
ImphenziaPalette01.png

**System Information** Operating system: Win.10 Graphics card:RTX 3070 TI **Blender Version** Broken: 3.2.1 Worked: N/A **Short description of error** Coloring does not work right after exporting from blender. |![tree blender.PNG](https://archive.blender.org/developer/F13512143/tree_blender.PNG)|![tree studio.PNG](https://archive.blender.org/developer/F13512142/tree_studio.PNG) | -- | -- | This is because the texture used in the UV map loses the `Closest` interpolation. **Exact steps for others to reproduce the error** - Download attached .blend file and .png image to the same directory - Export the Object to .obj - Reimport in Blender or any other application [issue thing.blend](https://archive.blender.org/developer/F13519147/issue_thing.blend) ![ImphenziaPalette01.png](https://archive.blender.org/developer/F13519148/ImphenziaPalette01.png)
Author

Added subscriber: @ArsenHere

Added subscriber: @ArsenHere

Added subscriber: @mano-wii

Added subscriber: @mano-wii

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'

Could you provide a simple .blend file that has the problem?

Could you provide a simple .blend file that has the problem?
Author

issue thing.blend

ImphenziaPalette01.png

I got the blend file and the texture.

[issue thing.blend](https://archive.blender.org/developer/F13519147/issue_thing.blend) ![ImphenziaPalette01.png](https://archive.blender.org/developer/F13519148/ImphenziaPalette01.png) I got the blend file and the texture.
Author

do you also need the OBJ file?

do you also need the OBJ file?
Germano Cavalcante changed title from Wierd Coloring. I'm not sure whether this is blender or roblox studio... to OBJ Exporter does not save the interpolation used in a texture 2022-09-20 15:34:18 +02:00

Changed status from 'Needs User Info' to: 'Needs Developer To Reproduce'

Changed status from 'Needs User Info' to: 'Needs Developer To Reproduce'

Added subscriber: @aras_p

Added subscriber: @aras_p

@ArsenHere, what is happening is that the image used to define the object's colors has very low resolution (only a few pixels) and the roblox material is reading this texture with interpolation.

It's like you're changing the interpolation type in Blender's texture node to something other than Closest.

I'm not sure if Wavefront .obj supports different texture interpolation filters. (Could it be these blendu and blendv options?)
https://en.wikipedia.org/wiki/Wavefront_.obj_file#Texture_options

@aras_p, as the obj expert, can you tell if this is something that can be supported?

@ArsenHere, what is happening is that the image used to define the object's colors has very low resolution (only a few pixels) and the roblox material is reading this texture with interpolation. It's like you're changing the interpolation type in Blender's texture node to something other than `Closest`. I'm not sure if `Wavefront .obj` supports different texture interpolation filters. (Could it be these `blendu` and `blendv` options?) https://en.wikipedia.org/wiki/Wavefront_.obj_file#Texture_options @aras_p, as the obj expert, can you tell if this is something that can be supported?

@mano-wii all I can find is that blendu/blendv control "texture blending", but nothing in the whole internet explains what it means by that lol :) So yeah I've no idea if 1) it's possible to indicate that texture needs to be Point/Nearest sampled in the .obj files, and 2) whether (ab)using blendu/blendv syntax for that would even be understood by any other software.

@mano-wii all I can find is that `blendu/blendv` control "texture blending", but nothing in the whole internet explains what it means by that lol :) So yeah I've no idea if 1) it's possible to indicate that texture needs to be Point/Nearest sampled in the .obj files, and 2) whether (ab)using blendu/blendv syntax for that would even be understood by any other software.

Changed status from 'Needs Developer To Reproduce' to: 'Archived'

Changed status from 'Needs Developer To Reproduce' to: 'Archived'

It doesn't seem to be supported then.
I'm closing it since it's not really a bug.

It doesn't seem to be supported then. I'm closing it since it's not really a bug.
Author

oh so what you're saying is that since the resolution is too small, roblox studio uses the blurred version of the image. and that this causes some colors to blend causing the weird hue?

oh so what you're saying is that since the resolution is too small, roblox studio uses the blurred version of the image. and that this causes some colors to blend causing the weird hue?

In Blender, the interpolation values for the texture have been set to Closest and this option is not supported in obj files.
See https:*docs.blender.org/manual/en/latest/render/shader_nodes/textures/image.html#properties and https:*en.wikipedia.org/wiki/Texture_filtering for more details about interpolation.

In Blender, the interpolation values for the texture have been set to `Closest` and this option is not supported in obj files. See https:*docs.blender.org/manual/en/latest/render/shader_nodes/textures/image.html#properties and https:*en.wikipedia.org/wiki/Texture_filtering for more details about interpolation.
Author

ohhhhhhhhhh that makes sense thank you

ohhhhhhhhhh that makes sense thank you
Bastien Montagne added this to the Pipeline, Assets & IO project 2023-02-09 15:40:02 +01:00
Bastien Montagne removed this from the Pipeline, Assets & IO project 2023-02-10 12:49:18 +01:00
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#101182
No description provided.