Skip to content

Commit 75b2301

Browse files
committed
Merge branch 'master' of opentoonz
2 parents 53fb3db + 89a2819 commit 75b2301

File tree

20 files changed

+1064
-212
lines changed

20 files changed

+1064
-212
lines changed

stuff/config/current.txt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -832,6 +832,9 @@
832832
<item>"STD_inoAddFx" "Add Ino" </item>
833833
<item>"STD_inoAddFx.opacity" "Opacity" </item>
834834
<item>"STD_inoAddFx.clipping_mask" "Clipping Mask" </item>
835+
<item>"STD_inoAddFx.linear" "Linear Color Space" </item>
836+
<item>"STD_inoAddFx.gamma" "Gamma" </item>
837+
<item>"STD_inoAddFx.premultiplied" "Source is Premultiplied" </item>
835838
<item>"STD_inoColorBurnFx" "Color Burn Ino" </item>
836839
<item>"STD_inoColorBurnFx.opacity" "Opacity" </item>
837840
<item>"STD_inoColorBurnFx.clipping_mask" "Clipping Mask" </item>
@@ -1316,6 +1319,28 @@
13161319
<item>"STD_iwa_GlareFx.noise_evolution" "Noise Evolution" </item>
13171320
<item>"STD_iwa_GlareFx.noise_offset" "Noise Offset" </item>
13181321

1322+
<item>"STD_iwa_FractalNoiseFx" "Fractal Noise Iwa" </item>
1323+
<item>"STD_iwa_FractalNoiseFx.fractalType" "Fractal Type" </item>
1324+
<item>"STD_iwa_FractalNoiseFx.noiseType" "Noise Type" </item>
1325+
<item>"STD_iwa_FractalNoiseFx.invert" "Invert" </item>
1326+
<item>"STD_iwa_FractalNoiseFx.rotation" "Rotation" </item>
1327+
<item>"STD_iwa_FractalNoiseFx.uniformScaling" "Uniform Scaling" </item>
1328+
<item>"STD_iwa_FractalNoiseFx.scale" "Scale" </item>
1329+
<item>"STD_iwa_FractalNoiseFx.scaleW" "Scale W" </item>
1330+
<item>"STD_iwa_FractalNoiseFx.scaleH" "Scale H" </item>
1331+
<item>"STD_iwa_FractalNoiseFx.offsetTurbulence" "Offset Turbulence" </item>
1332+
<item>"STD_iwa_FractalNoiseFx.perspectiveOffset" "Perspective Offset" </item>
1333+
<item>"STD_iwa_FractalNoiseFx.complexity" "Complexity" </item>
1334+
<item>"STD_iwa_FractalNoiseFx.subInfluence" "Sub Influence" </item>
1335+
<item>"STD_iwa_FractalNoiseFx.subScaling" "Sub Scaling" </item>
1336+
<item>"STD_iwa_FractalNoiseFx.subRotation" "Sub Rotation" </item>
1337+
<item>"STD_iwa_FractalNoiseFx.subOffset" "Sub Offset" </item>
1338+
<item>"STD_iwa_FractalNoiseFx.evolution" "Evolution" </item>
1339+
<item>"STD_iwa_FractalNoiseFx.cycleEvolution" "Cycle Evolution" </item>
1340+
<item>"STD_iwa_FractalNoiseFx.cycleEvolutionRange" "Cycle (in Evolution)" </item>
1341+
<item>"STD_iwa_FractalNoiseFx.dynamicIntensity" "Dynamic Intensity" </item>
1342+
<item>"STD_iwa_FractalNoiseFx.alphaRendering" "Alpha Rendering" </item>
1343+
13191344
<!------------------------------ Tiled Particles Iwa ------------------------------------------->
13201345

13211346
<item>STD_iwa_TiledParticlesFx "Tiled Particles Iwa" </item>

stuff/doc/AddIno.pdf

50.6 KB
Binary file not shown.
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
Following licenses are for source code ported from other open-source software authored by DWANGO Co., Ltd.
2+
3+
- DWANGO OpenToonz Plugins [https://github.com/opentoonz/dwango_opentoonz_plugins]
4+
- OpenToonz Plugin Utility [https://github.com/opentoonz/opentoonz_plugin_utility]
5+
6+
- - - - - - - - - - - - - - - -
7+
8+
DWANGO OpenToonz Plugins
9+
10+
Copyright (c) 2016, DWANGO Co., Ltd.
11+
All rights reserved.
12+
13+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
14+
15+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
16+
17+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
18+
19+
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
20+
21+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
22+
23+
- - - - - - - - - - - - - - - -
24+
25+
OpenToonz Plugin Utility
26+
27+
Copyright (c) 2016, DWANGO Co., Ltd.
28+
All rights reserved.
29+
30+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
31+
32+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
33+
34+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
35+
36+
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
37+
38+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39+
40+
- - - - - - - - - - - - - - - -

stuff/doc/日本語/AddIno.pdf

49.7 KB
Binary file not shown.

stuff/profiles/layouts/fxs/STD_inoAddFx.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,11 @@
22
<page name="Add Ino">
33
<control>opacity</control>
44
<control>clipping_mask</control>
5+
<separator/>
6+
<control>linear</control>
7+
<vbox modeSensitive="linear" mode="1">
8+
<control>gamma</control>
9+
<control>premultiplied</control>
10+
</vbox>
511
</page>
612
</fxlayout>
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<fxlayout>
2+
<page name="Fractal Noise Iwa">
3+
<control>fractalType</control>
4+
<control>noiseType</control>
5+
<control>invert</control>
6+
<separator label="Transform"/>
7+
<control>rotation</control>
8+
<control>uniformScaling</control>
9+
<vbox modeSensitive="uniformScaling" mode="1">
10+
<control>scale</control>
11+
</vbox>
12+
<vbox modeSensitive="uniformScaling" mode="0">
13+
<control>scaleW</control>
14+
<control>scaleH</control>
15+
</vbox>
16+
<control>offsetTurbulence</control>
17+
<control>perspectiveOffset</control>
18+
<separator/>
19+
<control>complexity</control>
20+
<separator label="Sub Settings"/>
21+
<control>subInfluence</control>
22+
<control>subScaling</control>
23+
<control>subRotation</control>
24+
<control>subOffset</control>
25+
<control>centerSubscale</control>
26+
<separator label="Evolution Options"/>
27+
<control>evolution</control>
28+
<control>cycleEvolution</control>
29+
<vbox modeSensitive="cycleEvolution" mode="1">
30+
<control>cycleEvolutionRange</control>
31+
</vbox>
32+
<separator/>
33+
<vbox modeSensitive="fractalType" mode="4,5">
34+
<control>dynamicIntensity</control>
35+
</vbox>
36+
<control>alphaRendering</control>
37+
</page>
38+
</fxlayout>

stuff/profiles/layouts/fxs/fxs.lst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@
143143
STD_noiseFx
144144
STD_iwa_PNPerspectiveFx
145145
STD_saltpepperNoiseFx
146+
STD_iwa_FractalNoiseFx
146147
</Noise>
147148
<Render>
148149
STD_cloudsFx

toonz/cmake/FindSuperLU.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ if(WITH_SYSTEM_SUPERLU)
44
set(_header_hints)
55
set(_header_suffixes
66
superlu
7+
SuperLU
78
)
89
set(_lib_suffixes)
910
else()

toonz/sources/common/tvrender/tsimplecolorstyles.cpp

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -391,8 +391,8 @@ class DisplayListManager // singleton
391391
void recordList(GLuint listId, TVectorImage *image,
392392
const TVectorRenderData &rd) {
393393
QMutexLocker sl(&m_mutex);
394-
TRectD bbox = image->getBBox();
395-
double ry = bbox.getLy() * 0.5;
394+
TRectD bbox = image->getBBox();
395+
double ry = bbox.getLy() * 0.5;
396396
if (ry < 1e-5) ry = 1e-5;
397397
TAffine identity;
398398
TRect rect;
@@ -623,7 +623,7 @@ void TSolidColorStyle::drawStroke(const TColorFunction *cf,
623623
}; // locals
624624

625625
TPixel32 color = m_color;
626-
if (cf) color = (*cf)(color);
626+
if (cf) color = (*cf)(color);
627627

628628
if (color.m == 0) return;
629629

@@ -740,7 +740,7 @@ void TCenterLineStrokeStyle::drawStroke(const TColorFunction *cf,
740740
int i, n = stroke->getChunkCount();
741741
if (n == 0) return;
742742
TPixel32 color = m_color;
743-
if (cf) color = (*cf)(m_color);
743+
if (cf) color = (*cf)(m_color);
744744
if (color.m == 0) return;
745745
tglColor(color);
746746
double pixelSize = sqrt(tglGetPixelSize2());
@@ -1485,21 +1485,21 @@ void TVectorImagePatternStrokeStyle::computeTransformations(
14851485
double s = 0;
14861486

14871487
while (s < length) {
1488-
TFrameId fid = lit->first;
1489-
TVectorImageP img = m_level->frame(fid);
1488+
TFrameId fid = lit->first;
1489+
TVectorImageP img = m_level->frame(fid);
14901490
if (++lit == m_level->end()) lit = m_level->begin();
14911491
assert(img);
14921492
if (img->getType() != TImage::VECTOR) return;
1493-
double t = stroke->getParameterAtLength(s);
1494-
TThickPoint p = stroke->getThickPoint(t);
1495-
TPointD v = stroke->getSpeed(t);
1496-
double ang = rad2degree(atan(v)) + m_rotation;
1497-
TRectD bbox = img->getBBox();
1498-
TPointD center = 0.5 * (bbox.getP00() + bbox.getP11());
1499-
double ry = bbox.getLy() * 0.5;
1493+
double t = stroke->getParameterAtLength(s);
1494+
TThickPoint p = stroke->getThickPoint(t);
1495+
TPointD v = stroke->getSpeed(t);
1496+
double ang = rad2degree(atan(v)) + m_rotation;
1497+
TRectD bbox = img->getBBox();
1498+
TPointD center = 0.5 * (bbox.getP00() + bbox.getP11());
1499+
double ry = bbox.getLy() * 0.5;
15001500
if (ry * ry < 1e-5) ry = p.thick;
1501-
double sc = p.thick / ry;
1502-
if (sc < 0.0001) sc = 0.0001;
1501+
double sc = p.thick / ry;
1502+
if (sc < 0.0001) sc = 0.0001;
15031503
TAffine aff =
15041504
TTranslation(p) * TRotation(ang) * TScale(sc) * TTranslation(-center);
15051505
transformations.push_back(aff);
@@ -1618,8 +1618,8 @@ void TVectorImagePatternStrokeStyle::drawStroke(
16181618
UINT i, size = transformations.size();
16191619

16201620
for (i = 0; i < size; i++) {
1621-
TFrameId fid = lit->first;
1622-
TVectorImageP img = m_level->frame(fid);
1621+
TFrameId fid = lit->first;
1622+
TVectorImageP img = m_level->frame(fid);
16231623
if (++lit == m_level->end()) lit = m_level->begin();
16241624
assert(img);
16251625
if (!img) continue;
@@ -1641,14 +1641,15 @@ void TVectorImagePatternStrokeStyle::drawStroke(
16411641

16421642
CHECK_GL_ERROR
16431643
#ifdef _WIN32
1644-
1645-
GLuint listId = DisplayListManager::instance()->getDisplayListId(
1646-
imgPointer, m_name, fid, rd);
1647-
if (listId != 0) {
1648-
CHECK_GL_ERROR
1649-
glCallList(listId);
1650-
CHECK_GL_ERROR
1651-
} else
1644+
// currently drawing with the display list doesn't work properly
1645+
1646+
// GLuint listId = DisplayListManager::instance()->getDisplayListId(
1647+
// imgPointer, m_name, fid, rd);
1648+
// if (listId != 0) {
1649+
// CHECK_GL_ERROR
1650+
// glCallList(listId);
1651+
// CHECK_GL_ERROR
1652+
//} else
16521653
#endif
16531654

16541655
{
@@ -1737,4 +1738,4 @@ TColorStyle::Declaration s0(new TCenterLineStrokeStyle());
17371738
TColorStyle::Declaration s1(new TSolidColorStyle());
17381739
TColorStyle::Declaration s3(new TRasterImagePatternStrokeStyle());
17391740
TColorStyle::Declaration s4(new TVectorImagePatternStrokeStyle());
1740-
}
1741+
} // namespace

toonz/sources/stdfx/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ set(HEADERS
8080
iwa_spingradientfx.h
8181
iwa_lineargradientfx.h
8282
iwa_glarefx.h
83+
iwa_fractalnoisefx.h
8384
)
8485

8586
set(SOURCES
@@ -266,6 +267,7 @@ set(SOURCES
266267
iwa_spingradientfx.cpp
267268
iwa_lineargradientfx.cpp
268269
iwa_glarefx.cpp
270+
iwa_fractalnoisefx.cpp
269271
)
270272

271273
set(OBJCSOURCES

0 commit comments

Comments
 (0)