Page MenuHome

Texture Marks from blender textures
Closed, ResolvedPublic

Description

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.

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:

  1. internally there is only one material for all strokes, wich means all linesets will have the same textures, I need to fix this immediately!
  2. Copy/Paste Texture button does not work.
  3. Textures are not linked.
  4. BlenderTextureShader takes a pointer as argument, would be nice to give a texture_slot instead.
  5. A material is created for each strokerep, I suppose we should reuse existing materials from a list.
  6. Texture Coordinates are always computed, despite weather they are used or not
  7. Texture preview does not update properly.
  8. New Image button creates a new image but does not assign it (probably related to the previous bug).
  9. BlenderTextureShader accepts LinestyleTextureSlot type only.
  10. 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

Details

Differential Revisions
D246: Texture Marks for freestyle strokes
Type
Design

Event Timeline

Paolo Acampora (pkrime) set Type to Design.
Paolo Acampora (pkrime) created this task.
Paolo Acampora (pkrime) claimed this task.
Paolo Acampora (pkrime) raised the priority of this task from to Normal.

@Paolo Acampora (pkrime), could you please double check the latest diff? It looks like everything was reverted.

Tamito Kajiyama (kjym3) closed this task as Resolved.May 3 2014, 12:03 PM

Closed by commit rBb7f085d9c128.