﻿<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=%E5%88%A9%E7%94%A8%E8%80%85%3AAntoniov%2FConvert_bGPDpalettes_to_BlenderPalettes</id>
	<title>利用者:Antoniov/Convert bGPDpalettes to BlenderPalettes - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=%E5%88%A9%E7%94%A8%E8%80%85%3AAntoniov%2FConvert_bGPDpalettes_to_BlenderPalettes"/>
	<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Antoniov/Convert_bGPDpalettes_to_BlenderPalettes&amp;action=history"/>
	<updated>2026-07-26T00:16:10Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Antoniov/Convert_bGPDpalettes_to_BlenderPalettes&amp;diff=152699&amp;oldid=prev</id>
		<title>Yamyam: 1版 をインポートしました</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Antoniov/Convert_bGPDpalettes_to_BlenderPalettes&amp;diff=152699&amp;oldid=prev"/>
		<updated>2018-06-28T21:21:50Z</updated>

		<summary type="html">&lt;p&gt;1版 をインポートしました&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ja&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← 古い版&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;2018年6月28日 (木) 21:21時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ja&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(相違点なし)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Yamyam</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Antoniov/Convert_bGPDpalettes_to_BlenderPalettes&amp;diff=152698&amp;oldid=prev</id>
		<title>wiki&gt;Antoniov: /* Grease Pencil: Convert bGPDpalettes to Blender Palettes */</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Antoniov/Convert_bGPDpalettes_to_BlenderPalettes&amp;diff=152698&amp;oldid=prev"/>
		<updated>2017-07-05T09:43:37Z</updated>

		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Grease Pencil: Convert bGPDpalettes to Blender Palettes&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Grease Pencil: Convert bGPDpalettes to Blender Palettes =&lt;br /&gt;
&lt;br /&gt;
===Introduction===&lt;br /&gt;
&lt;br /&gt;
In the last grease pencil revamp that was made for 2.78 version, a new palette system was created in order to define the colors not linked to layers anymore.&lt;br /&gt;
&lt;br /&gt;
This systems works great if we work with only one bGPdata block at the same time, but as part of the changes to new Grease Pencil object, this palettes could not be the best solutions.&lt;br /&gt;
&lt;br /&gt;
As the new GP object will allow to use several GP datablock at the same time, to have a palette by GP datablock is not a practical solution, because the best would be to have a palette for all scene and share this palette with all GP datablocks.&lt;br /&gt;
&lt;br /&gt;
For info about objects: https://wiki.blender.org/index.php/User:Antoniov/Grease_Pencil_as_Object&lt;br /&gt;
&lt;br /&gt;
== Proposed change ==&lt;br /&gt;
&lt;br /&gt;
The proposed solution is to move the palette to scene level, but as Blender has already a Palette datablock and the corresponding PaletteColors, we are going to replace the '''bGPDpalette''' by '''Palette''' and '''bGPDpalettecolor''' by '''PaletteColor'''. Using this new datablock, we will have a unique palette system for all Blender, and not two different systems.&lt;br /&gt;
&lt;br /&gt;
In order to manage grease pencil requirements, a group of new fields must be added to '''PaletteColor''' struct:&lt;br /&gt;
&lt;br /&gt;
* float '''rgb[4]''';            /* color for paint and strokes (alpha included) */&lt;br /&gt;
* float '''fill[4]''';           /* color that should be used for drawing &amp;quot;fills&amp;quot; for strokes (alpha included) */&lt;br /&gt;
* char '''info[64]''';           /* color name. Must be unique. */&lt;br /&gt;
* short '''flag''';              /* settings for palette color */&lt;br /&gt;
&lt;br /&gt;
The field '''rgb''' was already in the struct, but must be redefined with a length of 4. The last value of the array will conatin the alpha value for the color.&lt;br /&gt;
&lt;br /&gt;
The '''bGPDstroke''' struct will include the pointer to the '''Palette''' datablock and the corresponding '''PaletteColor'''.&lt;br /&gt;
&lt;br /&gt;
The current Palette API is very limited, so it will be necessary to expand it in order to include the methods required by Grease Pencil including new context functions like '''active_palette''' or '''active_palettecolor'''.&lt;br /&gt;
&lt;br /&gt;
== Use the Palettes in other areas ==&lt;br /&gt;
&lt;br /&gt;
The current uses of Palettes in areas like vertex paint or texture paint will be kept as today, no changes at UI level.&lt;br /&gt;
&lt;br /&gt;
Maybe, this is a point to discuss and decide if it's better keep as today or implement a similar look and feel for all palettes in all UI panels.&lt;br /&gt;
&lt;br /&gt;
== Use of the Palettes in Grease Pencil ==&lt;br /&gt;
&lt;br /&gt;
In version 2.78 only a palette could be used at the same time, and any change in the palette selection replaced all colors in all strokes to the new selected palette. As result of the new implementation, the grease pencil strokes can use several palettes at the same time. &lt;br /&gt;
&lt;br /&gt;
The palette panels will be moved to '''Tools''' area and not at properties level, because now it's a common tool for all GP datablocks.&lt;br /&gt;
&lt;br /&gt;
[[File:Gp_palettes_in_tools.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With the new system, a new operator is used to apply the palette to the strokes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Gp_palette_apply_new_palette.jpg]]&lt;br /&gt;
&lt;br /&gt;
== New style values and pass index ==&lt;br /&gt;
&lt;br /&gt;
In order to integrate new tools as future modifiers or selection tools, a new field for pass index has been included for each color. This field is not used today, but will be handle for future developments.&lt;br /&gt;
&lt;br /&gt;
As part of the new OpenGL version and the use of shaders, there is a new style selection list for stroke color and fill color in order to select the corresponding style. These styles will be improved in the future with new modes.&lt;br /&gt;
&lt;br /&gt;
[[File:Dev_gp_palette_newfields.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The old volumetric strokes has been moved as style and now the strokes can be '''solid''' or '''volumetric'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Dev_gp_palette_style.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Animation ==&lt;br /&gt;
&lt;br /&gt;
The current Blender Palettes are not animatable, and it will be necessary to make them animatable.&lt;br /&gt;
&lt;br /&gt;
* {{done}} Add Animation data to Palette struct&lt;br /&gt;
* {{done}} Add Path function for Palettes&lt;br /&gt;
* {{done}} Write RNA animation data&lt;br /&gt;
* {{done}} Make Palettes animatable&lt;br /&gt;
* {{done}} Include keyframes in editors (timeline, dopesheet, etc)}}&lt;br /&gt;
&lt;br /&gt;
== Conversion for old files ==&lt;br /&gt;
&lt;br /&gt;
In the corresponding versioning block, the old files will be converted to new '''Palette''' and '''PaletteColors'''. As the old system only could work with one palette at the same time, the conversion will assign the first palette by default.&lt;/div&gt;</summary>
		<author><name>wiki&gt;Antoniov</name></author>
		
	</entry>
</feed>