View | Details | Raw Unified | Return to bug 225942 | Differences between
and this patch

Collapse All | Expand All

(-)graphics/blender/files/patch-osl110 (+168 lines)
Line 0 Link Here
1
--- intern/cycles/kernel/shaders/node_brick_texture.osl.orig	2018-12-03 16:56:43 UTC
2
+++ intern/cycles/kernel/shaders/node_brick_texture.osl
3
@@ -19,10 +19,10 @@
4
 
5
 /* Brick */
6
 
7
-float brick_noise(int n) /* fast integer noise */
8
+float brick_noise(int ns) /* fast integer noise */
9
 {
10
 	int nn;
11
-	n = (n + 1013) & 2147483647;
12
+	int n = (ns + 1013) & 2147483647;
13
 	n = (n >> 13) ^ n;
14
 	nn = (n * (n * n * 60493 + 19990303) + 1376312589) & 2147483647;
15
 	return 0.5 * ((float)nn / 1073741824.0);
16
@@ -30,7 +30,7 @@ float brick_noise(int n) /* fast integer noise */
17
 
18
 float brick(point p, float mortar_size, float mortar_smooth, float bias,
19
 	float BrickWidth, float row_height, float offset_amount, int offset_frequency,
20
-	float squash_amount, int squash_frequency, float tint)
21
+	float squash_amount, int squash_frequency, output float tint)
22
 {
23
 	int bricknum, rownum;
24
 	float offset = 0.0;
25
--- intern/cycles/kernel/shaders/node_checker_texture.osl.orig	2018-12-03 16:56:43 UTC
26
+++ intern/cycles/kernel/shaders/node_checker_texture.osl
27
@@ -19,11 +19,12 @@
28
 
29
 /* Checker */
30
 
31
-float checker(point p)
32
+float checker(point ip)
33
 {
34
-	p[0] = (p[0] + 0.000001) * 0.999999;
35
-	p[1] = (p[1] + 0.000001) * 0.999999;
36
-	p[2] = (p[2] + 0.000001) * 0.999999;
37
+	point p;
38
+	p[0] = (ip[0] + 0.000001) * 0.999999;
39
+	p[1] = (ip[1] + 0.000001) * 0.999999;
40
+	p[2] = (ip[2] + 0.000001) * 0.999999;
41
 	
42
 	int xi = (int)fabs(floor(p[0]));
43
 	int yi = (int)fabs(floor(p[1]));
44
--- intern/cycles/kernel/shaders/node_environment_texture.osl.orig	2018-12-03 16:56:43 UTC
45
+++ intern/cycles/kernel/shaders/node_environment_texture.osl
46
@@ -25,8 +25,9 @@ vector environment_texture_direction_to_equirectangular(vector dir)
47
 	return vector(u, v, 0.0);
48
 }
49
 
50
-vector environment_texture_direction_to_mirrorball(vector dir)
51
+vector environment_texture_direction_to_mirrorball(vector idir)
52
 {
53
+	vector dir = idir;
54
 	dir[1] -= 1.0;
55
 
56
 	float div = 2.0 * sqrt(max(-0.5 * dir[1], 0.0));
57
--- intern/cycles/kernel/shaders/node_musgrave_texture.osl.orig	2018-12-03 16:56:43 UTC
58
+++ intern/cycles/kernel/shaders/node_musgrave_texture.osl
59
@@ -26,13 +26,14 @@
60
  * from "Texturing and Modelling: A procedural approach"
61
  */
62
 
63
-float noise_musgrave_fBm(point p, float H, float lacunarity, float octaves)
64
+float noise_musgrave_fBm(point ip, float H, float lacunarity, float octaves)
65
 {
66
 	float rmd;
67
 	float value = 0.0;
68
 	float pwr = 1.0;
69
 	float pwHL = pow(lacunarity, -H);
70
 	int i;
71
+	point p = ip;
72
 
73
 	for (i = 0; i < (int)octaves; i++) {
74
 		value += safe_noise(p, "signed") * pwr;
75
@@ -54,13 +55,14 @@ float noise_musgrave_fBm(point p, float H, float lacunarity, float octaves)
76
  * octaves: number of frequencies in the fBm
77
  */
78
 
79
-float noise_musgrave_multi_fractal(point p, float H, float lacunarity, float octaves)
80
+float noise_musgrave_multi_fractal(point ip, float H, float lacunarity, float octaves)
81
 {
82
 	float rmd;
83
 	float value = 1.0;
84
 	float pwr = 1.0;
85
 	float pwHL = pow(lacunarity, -H);
86
 	int i;
87
+	point p = ip;
88
 
89
 	for (i = 0; i < (int)octaves; i++) {
90
 		value *= (pwr * safe_noise(p, "signed") + 1.0);
91
@@ -83,12 +85,13 @@ float noise_musgrave_multi_fractal(point p, float H, float lacunarity, float oct
92
  * offset: raises the terrain from `sea level'
93
  */
94
 
95
-float noise_musgrave_hetero_terrain(point p, float H, float lacunarity, float octaves, float offset)
96
+float noise_musgrave_hetero_terrain(point ip, float H, float lacunarity, float octaves, float offset)
97
 {
98
 	float value, increment, rmd;
99
 	float pwHL = pow(lacunarity, -H);
100
 	float pwr = pwHL;
101
 	int i;
102
+	point p = ip;
103
 
104
 	/* first unscaled octave of function; later octaves are scaled */
105
 	value = offset + safe_noise(p, "signed");
106
@@ -118,13 +121,14 @@ float noise_musgrave_hetero_terrain(point p, float H, float lacunarity, float oc
107
  * offset: raises the terrain from `sea level'
108
  */
109
 
110
-float noise_musgrave_hybrid_multi_fractal(point p, float H, float lacunarity,
111
+float noise_musgrave_hybrid_multi_fractal(point ip, float H, float lacunarity,
112
                                           float octaves, float offset, float gain)
113
 {
114
 	float result, signal, weight, rmd;
115
 	float pwHL = pow(lacunarity, -H);
116
 	float pwr = pwHL;
117
 	int i;
118
+	point p = ip;
119
 
120
 	result = safe_noise(p, "signed") + offset;
121
 	weight = gain * result;
122
@@ -156,13 +160,14 @@ float noise_musgrave_hybrid_multi_fractal(point p, float H, float lacunarity,
123
  * offset: raises the terrain from `sea level'
124
  */
125
 
126
-float noise_musgrave_ridged_multi_fractal(point p, float H, float lacunarity,
127
+float noise_musgrave_ridged_multi_fractal(point ip, float H, float lacunarity,
128
                                           float octaves, float offset, float gain)
129
 {
130
 	float result, signal, weight;
131
 	float pwHL = pow(lacunarity, -H);
132
 	float pwr = pwHL;
133
 	int i;
134
+	point p = ip;
135
 
136
 	signal = offset - fabs(safe_noise(p, "signed"));
137
 	signal *= signal;
138
--- intern/cycles/kernel/shaders/node_noise_texture.osl.orig	2018-12-03 16:56:43 UTC
139
+++ intern/cycles/kernel/shaders/node_noise_texture.osl
140
@@ -19,9 +19,10 @@
141
 
142
 /* Noise */
143
 
144
-float noise(point p, float distortion, float detail, float fac, color Color)
145
+float noise(point ip, float distortion, float detail, output color Color)
146
 {
147
 	point r;
148
+	point p = ip;
149
 	int hard = 0;
150
 
151
 	if (distortion != 0.0) {
152
@@ -32,7 +33,7 @@ float noise(point p, float distortion, float detail, float fac, color Color)
153
 		p += r;
154
 	}
155
 
156
-	fac = noise_turbulence(p, detail, hard);
157
+	float fac = noise_turbulence(p, detail, hard);
158
 	
159
 	Color = color(fac, noise_turbulence(point(p[1], p[0], p[2]), detail, hard),
160
 		noise_turbulence(point(p[1], p[2], p[0]), detail, hard));
161
@@ -55,6 +56,6 @@ shader node_noise_texture(
162
 	if (use_mapping)
163
 		p = transform(mapping, p);
164
 
165
-	Fac = noise(p * Scale, Distortion, Detail, Fac, Color);
166
+	Fac = noise(p * Scale, Distortion, Detail, Color);
167
 }
168
 
(-)graphics/blender/files/patch-source_blender_collada_DocumentImporter.cpp (+14 lines)
Line 0 Link Here
1
--- source/blender/collada/DocumentImporter.cpp.orig	2018-12-03 07:38:07 UTC
2
+++ source/blender/collada/DocumentImporter.cpp
3
@@ -1340,6 +1340,11 @@ bool DocumentImporter::writeAnimationLis
4
 	return anim_importer.write_animation_list(animationList);
5
 }
6
 
7
+bool DocumentImporter::writeAnimationClip(const COLLADAFW::AnimationClip *AnimationClip)
8
+{
9
+	return true;
10
+}
11
+
12
 /** When this method is called, the writer must write the skin controller data.
13
  * \return The writer should return true, if writing succeeded, false otherwise.*/
14
 bool DocumentImporter::writeSkinControllerData(const COLLADAFW::SkinControllerData *skin)
(-)graphics/blender/files/patch-source_blender_collada_DocumentImporter.h (+11 lines)
Line 0 Link Here
1
--- source/blender/collada/DocumentImporter.h.orig	2018-12-03 07:38:12 UTC
2
+++ source/blender/collada/DocumentImporter.h
3
@@ -107,6 +107,8 @@ public:
4
 	bool writeAnimation(const COLLADAFW::Animation*);
5
 
6
 	bool writeAnimationList(const COLLADAFW::AnimationList*);
7
+	
8
+	bool writeAnimationClip( const COLLADAFW::AnimationClip* );
9
 
10
 	bool writeGeometry(const COLLADAFW::Geometry*);
11
 
(-)graphics/blender/Makefile (-5 / +4 lines)
Lines 24-31 Link Here
24
# libraries are used, if either of the most common options in blender
24
# libraries are used, if either of the most common options in blender
25
# are set. We will pull boost in just to be on the safe side.
25
# are set. We will pull boost in just to be on the safe side.
26
26
27
# 10.4 fails to build with clang3.4 so we want to use clang50
27
# USES=compiler is needed to support gcc built archs
28
# clang50 is already in place for opengl
29
USES=		cmake:outsource compiler:c++14-lang desktop-file-utils \
28
USES=		cmake:outsource compiler:c++14-lang desktop-file-utils \
30
		jpeg python:3.5 shebangfix
29
		jpeg python:3.5 shebangfix
31
USE_XORG=	x11 xext xfixes xmu xrender
30
USE_XORG=	x11 xext xfixes xmu xrender
Lines 69-78 Link Here
69
CYCLESOSL_IMPLIES=		CYCLES
68
CYCLESOSL_IMPLIES=		CYCLES
70
CYCLESOSL_CMAKE_BOOL=		WITH_CYCLES_OSL WITH_LLVM
69
CYCLESOSL_CMAKE_BOOL=		WITH_CYCLES_OSL WITH_LLVM
71
CYCLESOSL_CMAKE_ON=		-DLLVM_STATIC:BOOL=OFF \
70
CYCLESOSL_CMAKE_ON=		-DLLVM_STATIC:BOOL=OFF \
72
				-DLLVM_CONFIG:STRING="${LOCALBASE}/bin/llvm-config40"
71
				-DLLVM_CONFIG:STRING="${LOCALBASE}/bin/llvm-config60"
73
CYCLESOSL_BUILD_DEPENDS=	llvm-config40:devel/llvm40
72
CYCLESOSL_BUILD_DEPENDS=	llvm-config60:devel/llvm60
74
CYCLESOSL_LIB_DEPENDS=		liboslcomp.so:graphics/openshadinglanguage
73
CYCLESOSL_LIB_DEPENDS=		liboslcomp.so:graphics/openshadinglanguage
75
CYCLESOSL_RUN_DEPENDS=		llvm-config40:devel/llvm40
74
CYCLESOSL_RUN_DEPENDS=		llvm-config60:devel/llvm60
76
DDS_CMAKE_BOOL=			WITH_IMAGE_DDS
75
DDS_CMAKE_BOOL=			WITH_IMAGE_DDS
77
FFMPEG_CMAKE_BOOL=		WITH_CODEC_FFMPEG
76
FFMPEG_CMAKE_BOOL=		WITH_CODEC_FFMPEG
78
FFMPEG_LIB_DEPENDS=		libavutil.so:multimedia/ffmpeg
77
FFMPEG_LIB_DEPENDS=		libavutil.so:multimedia/ffmpeg

Return to bug 225942