1 |
sping 11/04/28 13:51:08 |
2 |
|
3 |
Added: artwork.xml |
4 |
Log: |
5 |
Add initial version of article on Gentoo artwork, todos left |
6 |
|
7 |
Revision Changes Path |
8 |
1.1 xml/htdocs/proj/en/desktop/artwork/artwork.xml |
9 |
|
10 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/proj/en/desktop/artwork/artwork.xml?rev=1.1&view=markup |
11 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/proj/en/desktop/artwork/artwork.xml?rev=1.1&content-type=text/plain |
12 |
|
13 |
Index: artwork.xml |
14 |
=================================================================== |
15 |
<?xml version="1.0" encoding="UTF-8"?> |
16 |
<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
17 |
|
18 |
<guide> |
19 |
<title>Gentoo Artwork</title> |
20 |
|
21 |
<author title="Author"> |
22 |
<mail>sping</mail> |
23 |
</author> |
24 |
|
25 |
<abstract> |
26 |
Collection of information about available artwork and its usage. |
27 |
</abstract> |
28 |
|
29 |
<!-- The *textual* content of this document is licensed under the CC-BY-SA license --> |
30 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
31 |
<!-- <license/> --> |
32 |
|
33 |
<version>1</version> |
34 |
<date>2011-04-28</date> |
35 |
|
36 |
|
37 |
<chapter> |
38 |
<title>Gentoo Mascots</title> |
39 |
|
40 |
<section> |
41 |
<title>Larry the Cow</title> |
42 |
<body> |
43 |
<fig link="/images/icon-cow.png" /> |
44 |
|
45 |
<p> |
46 |
Larry the cow originates from letter <e>s</e> of the font |
47 |
<uri link="http://www.fonthead.com/fonts/Font-Heads">Font Heads</uri>. |
48 |
Therefore, usage of Larry the cow needs to respect the |
49 |
<uri link=" http://www.fonthead.com/license">End User License Agreement (EULA)</uri> |
50 |
of <uri link="http://www.fonthead.com/">Fonthead Design Inc.</uri>. |
51 |
</p> |
52 |
|
53 |
<p> |
54 |
TODO |
55 |
</p> |
56 |
</body> |
57 |
</section> |
58 |
|
59 |
|
60 |
<section> |
61 |
<title>Znurt and his shadow</title> |
62 |
<body> |
63 |
<p> |
64 |
While Znurt also appears on the Gentoo <uri link="/">main page</uri>, |
65 |
his shadow is known from a previous design of Gentoo's <uri link="https://bugs.gentoo.org/">bugzilla instance</uri> only. |
66 |
</p> |
67 |
<fig link="/images/bugzilla.png" /> |
68 |
<p> |
69 |
Separate graphics for each of them are available. Click the respective image below to get to its vector sources. |
70 |
</p> |
71 |
<fig link="/images/artwork/znurt.png" linkto="/images/artwork/znurt.svg" /> |
72 |
<fig link="/images/artwork/black-gentoo-thing.png" linkto="/images/artwork/black-gentoo-thing.svg" /> |
73 |
<p> |
74 |
Both SVGs and PNGs are licensed under |
75 |
<uri link="http://creativecommons.org/licenses/by-sa/2.5">Creative Commons - Attribution / Share Alike</uri>. |
76 |
</p> |
77 |
</body> |
78 |
</section> |
79 |
|
80 |
</chapter> |
81 |
|
82 |
|
83 |
|
84 |
<chapter> |
85 |
<title>Rendering the offical "g" logo</title> |
86 |
|
87 |
<section> |
88 |
<title>The blue "g" logo</title> |
89 |
<body> |
90 |
<p> |
91 |
TODO |
92 |
</p> |
93 |
</body> |
94 |
</section> |
95 |
|
96 |
<section> |
97 |
<title>The red "gentoo" logo</title> |
98 |
<body> |
99 |
<fig link="/images/gentoo-new.gif" /> |
100 |
<p> |
101 |
It is possible to render this logo as a transparent PNG with custom resolution. |
102 |
</p> |
103 |
|
104 |
<dl> |
105 |
<dt><b>Procedure:</b></dt> |
106 |
<dd> |
107 |
<ol> |
108 |
<li>Get a copy of <uri link="http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-src/gentoo-web/blend/blend-archive/gentoo3.blend.bz2">gentoo3.blend.bz2</uri></li> |
109 |
<li>Unpack it using bunzip2</li> |
110 |
<li>Pass it to Blender (package <c>media-gfx/blender</c>) for rendering</li> |
111 |
</ol> |
112 |
</dd> |
113 |
</dl> |
114 |
|
115 |
<p> |
116 |
Blender can be made to render from the command line as following. |
117 |
</p> |
118 |
|
119 |
<pre caption="Invocation of Blender 2.49b"> |
120 |
# <i>blender -b gentoo3.blend -P gentoo3.py</i> |
121 |
Compiled with Python version 2.6.6. |
122 |
Checking for installed Python... got it! |
123 |
Fra:1 Mem:0.20M | Preparing Scene data |
124 |
Fra:1 Mem:2.94M | Preparing Scene data |
125 |
Fra:1 Mem:2.94M | Creating Shadowbuffers |
126 |
Fra:1 Mem:2.94M | Creating Environment maps |
127 |
Fra:1 Mem:2.94M | SSS preprocessing |
128 |
Fra:1 Mem:2.94M Sce: 1 Ve:15590 Fa:11616 La:5 |
129 |
Fra:1 Mem:13.24M | Part 1-16 |
130 |
Fra:1 Mem:12.67M | Part 2-16 |
131 |
Fra:1 Mem:14.82M | Part 3-16 |
132 |
Fra:1 Mem:13.24M | Part 5-16 |
133 |
Fra:1 Mem:12.67M | Part 4-16 |
134 |
Fra:1 Mem:13.24M | Part 6-16 |
135 |
Fra:1 Mem:12.67M | Part 7-16 |
136 |
Fra:1 Mem:13.24M | Part 8-16 |
137 |
Fra:1 Mem:12.67M | Part 9-16 |
138 |
Fra:1 Mem:13.24M | Part 11-16 |
139 |
Fra:1 Mem:12.67M | Part 10-16 |
140 |
Fra:1 Mem:13.24M | Part 13-16 |
141 |
Fra:1 Mem:12.67M | Part 12-16 |
142 |
Fra:1 Mem:13.24M | Part 15-16 |
143 |
Fra:1 Mem:12.67M | Part 14-16 |
144 |
Fra:1 Mem:12.67M | Part 16-16 |
145 |
Fra:1 Mem:9.90M Sce: 1 Ve:15590 Fa:11616 La:5 |
146 |
Save to: littletoo.png -> littletoo.png |
147 |
|
148 |
Blender quit |
149 |
</pre> |
150 |
|
151 |
<p> |
152 |
The script <path>gentoo3.py</path> is used to customize rendering parameters. |
153 |
We are using a hard-coded resolution of 800x600 in this guide. |
154 |
</p> |
155 |
|
156 |
<pre caption="gentoo3.py"> |
157 |
<comment>#!BPY |
158 |
# Copyright (C) 2011 Gentoo Foundation, Inc. |
159 |
# Written by Sebastian Pipping <sping@g.o> |
160 |
# Licensed under GPL v2 or later</comment> |
161 |
|
162 |
<keyword>import</keyword> <var>Blender</var> |
163 |
|
164 |
<var>scn</var> = <var>Blender</var>.Scene.GetCurrent() |
165 |
<var>context</var> = <var>scn</var>.getRenderingContext() |
166 |
|
167 |
<comment># Dimensions</comment> |
168 |
<var>context</var>.imageSizeX(<const>800</const>) |
169 |
<var>context</var>.imageSizeY(<const>600</const>) |
170 |
<var>context</var>.setRenderWinSize(<const>100</const>) |
171 |
|
172 |
<comment># Transparent PNG</comment> |
173 |
<var>context</var>.enableRGBAColor() |
174 |
<var>context</var>.imageType = <var>Blender</var>.Scene.Render.PNG |
175 |
<var>context</var>.enablePremultiply() |
176 |
|
177 |
<comment># Render</comment> |
178 |
<var>context</var>.render() |
179 |
<var>context</var>.saveRenderedImage(<const>'.png'</const>, <const>1</const>) |
180 |
</pre> |
181 |
|
182 |
</body> |
183 |
</section> |
184 |
|
185 |
</chapter> |
186 |
|
187 |
|
188 |
</guide> |