Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
imagej-elphel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
imagej-elphel
Commits
5764ddb9
Commit
5764ddb9
authored
Aug 28, 2017
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed obj normals
parent
77c78973
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
TileProcessor.java
src/main/java/TileProcessor.java
+1
-1
WavefrontExport.java
src/main/java/WavefrontExport.java
+7
-3
No files found.
src/main/java/TileProcessor.java
View file @
5764ddb9
...
...
@@ -1562,7 +1562,7 @@ public class TileProcessor {
// scan.restoreKeepTileOpDisparity();// it is not used from this scan, but from last_scan
continue
;
}
if
(
debugLevel
>
-
2
){
if
(
debugLevel
>
-
10
){
System
.
out
.
println
(
"prepareExpandVariants(): remaining "
+
num_left
+
" tiles to be processed, used variant "
+
num_var
+
" ("
+
num_left
+
")"
);
}
int
[]
rslt
=
{
num_left
,
num_var
};
...
...
src/main/java/WavefrontExport.java
View file @
5764ddb9
...
...
@@ -133,9 +133,13 @@ map_Kd 1488240527_408296-img2-texture.png
// output all triangles (faces)
for
(
int
i
=
0
;
i
<
triangles
.
length
;
i
++){
obj_writer
.
write
(
String
.
format
(
"f %d/%d %d/%d %d/%d\n"
,
triangles
[
i
][
0
]+
v_index
,
triangles
[
i
][
0
]+
vt_index
,
// actually v_index and vt_index should =be the same
triangles
[
i
][
1
]+
v_index
,
triangles
[
i
][
1
]+
vt_index
,
triangles
[
i
][
2
]+
v_index
,
triangles
[
i
][
2
]+
vt_index
));
/// triangles[i][0]+v_index,triangles[i][0]+vt_index, // actually v_index and vt_index should =be the same
/// triangles[i][1]+v_index,triangles[i][1]+vt_index,
/// triangles[i][2]+v_index,triangles[i][2]+vt_index));
// wrong normals
triangles
[
i
][
2
]+
v_index
,
triangles
[
i
][
2
]+
vt_index
,
// actually v_index and vt_index should =be the same
triangles
[
i
][
1
]+
v_index
,
triangles
[
i
][
1
]+
vt_index
,
triangles
[
i
][
0
]+
v_index
,
triangles
[
i
][
0
]+
vt_index
));
}
obj_writer
.
write
(
"# end of material "
+
material_id
+
"\n"
);
obj_writer
.
write
(
"# vertices: "
+
coordinate
.
length
+
"\n"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment