Viewport preview for Cycles 'Generated' texture coordinates fails for Bezier Curve Objects #51886

Closed
opened 2017-06-23 23:08:28 +02:00 by Duarte Farrajota Ramos · 10 comments

System Information
Windows 7 64 Bits, Intel Core i7 2600K, GTX 580 + GTX980Ti

Blender Version
Broken: 2.77, 279
Worked: Never as far as I noticed

Short description of error
Viewport preview for 'Generated' type of texture coordinates seems broken for Bezier curve objects only
This may well be a limitation of the current system and not a bug per-se

Exact steps for others to reproduce the error
Create a new Cycles node material and assign it to both any bezier curve and mesh object simultaneously
Add a new Input >Z Texture Coodinates node and any type of texture (procedural or image based)
Connect the Generated output socket of the Texture Coodinates either directly to the shader color or feed it as texture coodinates to the texture.
Both will preview fine in the viewport for the mesh object, but fail on the bezier curve

Note that both render fine with cycles, this is only a OpenGL viewport issue, and might as well just be a limitation of the current system, rather than a bug, I don't know enough to tell.
DBO_GeneratedTextureCoordinates_Curves.gif

**System Information** Windows 7 64 Bits, Intel Core i7 2600K, GTX 580 + GTX980Ti **Blender Version** Broken: 2.77, 279 Worked: Never as far as I noticed **Short description of error** Viewport preview for 'Generated' type of texture coordinates seems broken for Bezier curve objects only *This may well be a limitation of the current system and not a bug per-se* **Exact steps for others to reproduce the error** Create a new Cycles node material and assign it to both any bezier curve and mesh object simultaneously Add a new *Input >Z Texture Coodinates* node and any type of texture (procedural or image based) Connect the *Generated* output socket of the *Texture Coodinates* either directly to the shader color or feed it as texture coodinates to the texture. Both will preview fine in the viewport for the mesh object, but fail on the bezier curve Note that both render fine with cycles, this is only a OpenGL viewport issue, and might as well just be a limitation of the current system, rather than a bug, I don't know enough to tell. ![DBO_GeneratedTextureCoordinates_Curves.gif](https://archive.blender.org/developer/F640427/DBO_GeneratedTextureCoordinates_Curves.gif)

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @DuarteRamos

Added subscriber: @DuarteRamos

Added subscriber: @matali23

Added subscriber: @matali23

please attach a blend

please attach a blend

Oh, sorry, here you go. BezierCurve_GeneratedTextureCoordinates.blend

To reproduce the issue just set the Viewport Shading Mode to Material you will notice the only object in the scene has this pink-ish hue.
If you select the Bezier Curve and convert it to mesh with Alt+C > Mesh From Curve, the coordinates will display correctly as a gradient.

Let me know if you need anything else.

Oh, sorry, here you go. [BezierCurve_GeneratedTextureCoordinates.blend](https://archive.blender.org/developer/F645459/BezierCurve_GeneratedTextureCoordinates.blend) To reproduce the issue just set the *Viewport Shading Mode* to *Material* you will notice the only object in the scene has this pink-ish hue. If you select the Bezier Curve and convert it to mesh with `Alt`+`C` > *Mesh From Curve*, the coordinates will display correctly as a gradient. Let me know if you need anything else.

Added subscribers: @Sergey, @mont29

Added subscribers: @Sergey, @mont29

@Sergey might want to have a look at this one?

@Sergey might want to have a look at this one?

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Sergey Sharybin self-assigned this 2017-08-23 16:10:36 +02:00

The issue here is that Generated coordinates for curves are stored differently than for meshes and currently drawing is mainly built around meshes. It might be possible to extend existing GPU drawing or to add same CustomData layers support for display-lists used by curves, but this isn't really considered a bug but rather a design limitation.

Keep in mind, whole drawing system is being changed in Blender 2.8, so rather solve that in there.

I've added a not in our TODO list about this issue: https://wiki.blender.org/index.php/Dev:Source/Development/Todo/Editors#3D_View:_Drawing

So thanks for the report, but you'd need to give us some time to make it a really nice viewport in 2.8!

The issue here is that Generated coordinates for curves are stored differently than for meshes and currently drawing is mainly built around meshes. It might be possible to extend existing GPU drawing or to add same CustomData layers support for display-lists used by curves, but this isn't really considered a bug but rather a design limitation. Keep in mind, whole drawing system is being changed in Blender 2.8, so rather solve that in there. I've added a not in our TODO list about this issue: https://wiki.blender.org/index.php/Dev:Source/Development/Todo/Editors#3D_View:_Drawing So thanks for the report, but you'd need to give us some time to make it a really nice viewport in 2.8!

Yes I understand, I feared as much. May this eventually work well for 2.8 then.

Thanks for the enlightening response.

Yes I understand, I feared as much. May this eventually work well for 2.8 then. Thanks for the enlightening response.
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#51886
No description provided.