Texture Marks from blender textures #38327

Closed
opened 2014-01-23 00:55:16 +01:00 by Paolo Acampora · 7 comments
Member

This project is about adding texture support for freestyle in blender. The design consists of two steps:

  • Adding a BlenderTextureShader to the freestyle module taking a blender mtex as argument
  • Adding a texture_slot type to linestyle
  • I'm also adding a StrokeTextureStep(float) shader to affect the spacing of texture coordinates along the stroke.

The goal is being able to use more textures stacked one on the other, like blender classic shading system, and being able to map them with different coordinates (Generated, View, Along Stroke), map to color or alpha (or both), and use different blending options. Each texture mapped along stroke can be either a freestyle brush texture, like corpus, tip, tail, or just plain left to right texture.

linestyle_tex_slot.jpg

We would also benefit a "texture step" parameter to control the span of the texture along the stroke, it will be available soon. Unfortunately this is not going to be a per-texture attribute as coordinates are computed globally. It's an easy feature and will be likely be in the next patch. Procedural textures are also supported, their properties are found in the other textures tab.

Current issues are:

  • internally there is only one material for all strokes, wich means all linesets will have the same textures, I need to fix this immediately!
  • Copy/Paste Texture button does not work.
  • Textures are not linked.
  • BlenderTextureShader takes a pointer as argument, would be nice to give a texture_slot instead.
  • A material is created for each strokerep, I suppose we should reuse existing materials from a list.
  • Texture Coordinates are always computed, despite weather they are used or not
  • Texture preview does not update properly.
  • New Image button creates a new image but does not assign it (probably related to the previous bug).
  • BlenderTextureShader accepts LinestyleTextureSlot type only.
  • Texture Spacing is LineStyle global, it would be nice having it as a per-texture parameter

Of course there's more, I hope we will find (and fix) most of the bugs.

Here's the diff
D246: Texture Marks for freestyle strokes

Ongoing Documentation
Thread on blenderartists

This project is about adding texture support for freestyle in blender. The design consists of two steps: - Adding a BlenderTextureShader to the freestyle module taking a blender mtex as argument - Adding a texture_slot type to linestyle - I'm also adding a StrokeTextureStep(float) shader to affect the spacing of texture coordinates along the stroke. The goal is being able to use more textures stacked one on the other, like blender classic shading system, and being able to map them with different coordinates (Generated, View, Along Stroke), map to color or alpha (or both), and use different blending options. Each texture mapped along stroke can be either a freestyle brush texture, like corpus, tip, tail, or just plain left to right texture. ![linestyle_tex_slot.jpg](https://archive.blender.org/developer/F72983/linestyle_tex_slot.jpg) We would also benefit a "texture step" parameter to control the span of the texture along the stroke, ~~it will be available soon. Unfortunately this is not going to be a per-texture attribute as coordinates are computed globally. It's an easy feature and will be likely be in the next patch~~. Procedural textures are also supported, their properties are found in the other textures tab. Current issues are: - ~~internally there is only one material for all strokes, wich means all linesets will have the same textures, I need to fix this immediately!~~ - ~~Copy/Paste Texture button does not work.~~ - ~~Textures are not linked.~~ - ~~BlenderTextureShader takes a pointer as argument, would be nice to give a texture_slot instead.~~ - ~~A material is created for each strokerep, I suppose we should reuse existing materials from a list.~~ - ~~Texture Coordinates are always computed, despite weather they are used or not~~ - ~~Texture preview does not update properly.~~ - ~~New Image button creates a new image but does not assign it (probably related to the previous bug).~~ - BlenderTextureShader accepts LinestyleTextureSlot type only. - Texture Spacing is LineStyle global, it would be nice having it as a per-texture parameter Of course there's more, I hope we will find (and fix) most of the bugs. Here's the diff [D246: Texture Marks for freestyle strokes](https://archive.blender.org/developer/D246) [Ongoing Documentation](http://wiki.blender.org/index.php/User:Pkrime/TexturedStrokes) [Thread on blenderartists ](http://blenderartists.org/forum/showthread.php?323841-Coding-Freestyle-textured-strokes-results-and-ideas)
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'
Paolo Acampora self-assigned this 2014-01-23 00:55:16 +01:00
Author
Member

Added subscribers: @PaoloAcampora, @kjym3

Added subscribers: @PaoloAcampora, @kjym3

Added subscriber: @flokkievids

Added subscriber: @flokkievids

Added subscriber: @jasperge-2

Added subscriber: @jasperge-2

@PaoloAcampora, could you please double check the latest diff? It looks like everything was reverted.

@PaoloAcampora, could you please double check the latest diff? It looks like everything was reverted.

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

Closed by commit b7f085d9c1.

Closed by commit b7f085d9c1.
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#38327
No description provided.