Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
masterarbeit-kai
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Philipp Adolf
masterarbeit-kai
Commits
57c12821
Commit
57c12821
authored
Jul 14, 2017
by
wester
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sizes
parent
650619c3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
main.cpp
3_PointCloud/main.cpp
+10
-4
size.png
Halterungen/size.png
+0
-0
No files found.
3_PointCloud/main.cpp
View file @
57c12821
...
@@ -498,17 +498,17 @@ int main(int argc, char* argv[]) {
...
@@ -498,17 +498,17 @@ int main(int argc, char* argv[]) {
float
dx
=
KinectOriginOffsetX
-
KinectSizeX
/
2
;
float
dx
=
KinectOriginOffsetX
-
KinectSizeX
/
2
;
float
dy
=
KinectSizeY
/
2
+
0.008
;
// dicke Halterung;
float
dy
=
KinectSizeY
/
2
+
0.008
;
// dicke Halterung;
float
dz
=
0.0
90
f
;
//TODO - offset nach hinten;
float
dz
=
0.0
5
f
;
//TODO - offset nach hinten;
controlerToKinect
=
glm
::
translate
(
glm
::
mat4x4
(),
(
glm
::
vec3
(
0.0
f
,
0.0
f
,
0.24
f
)));
controlerToKinect
=
glm
::
translate
(
glm
::
mat4x4
(),
(
glm
::
vec3
(
0.0
f
,
0.0
f
,
0.173
/*controller*/
+
0.03
)));
//TODO -controller gre + halterung
controlerToKinect
=
glm
::
rotate
(
controlerToKinect
,
degreeToRadioan
(
1
35.0
f
),
glm
::
vec3
(
1.0
f
,
0.0
f
,
0.0
f
));
controlerToKinect
=
glm
::
rotate
(
controlerToKinect
,
degreeToRadioan
(
1
80
-
64
/*63,9...*/
),
glm
::
vec3
(
1.0
f
,
0.0
f
,
0.0
f
));
controlerToKinect
=
glm
::
rotate
(
controlerToKinect
,
degreeToRadioan
(
180.0
f
),
glm
::
vec3
(
0.0
f
,
0.0
f
,
1.0
f
));
controlerToKinect
=
glm
::
rotate
(
controlerToKinect
,
degreeToRadioan
(
180.0
f
),
glm
::
vec3
(
0.0
f
,
0.0
f
,
1.0
f
));
controlerToKinect
=
glm
::
translate
(
controlerToKinect
,
(
glm
::
vec3
(
dx
,
-
dy
,
dz
)));
controlerToKinect
=
glm
::
translate
(
controlerToKinect
,
(
glm
::
vec3
(
dx
,
-
dy
,
dz
)));
std
::
cout
<<
"Kinect to center: "
<<
dx
<<
" "
<<
dy
<<
" "
<<
dz
;
std
::
cout
<<
"Kinect to center: "
<<
dx
<<
" "
<<
dy
<<
" "
<<
dz
<<
std
::
endl
;
// x kinect mitte =
// x kinect mitte =
...
@@ -523,6 +523,12 @@ int main(int argc, char* argv[]) {
...
@@ -523,6 +523,12 @@ int main(int argc, char* argv[]) {
loadAssImp
(
"C:
\\
Program Files (x86)
\\
Steam
\\
steamapps
\\
common
\\
SteamVR
\\
resources
\\
rendermodels
\\
vr_controller_vive_1_5
\\
vr_controller_vive_1_5.obj"
,
indices
,
out_vertices
,
out_uvs
,
out_normals
);
loadAssImp
(
"C:
\\
Program Files (x86)
\\
Steam
\\
steamapps
\\
common
\\
SteamVR
\\
resources
\\
rendermodels
\\
vr_controller_vive_1_5
\\
vr_controller_vive_1_5.obj"
,
indices
,
out_vertices
,
out_uvs
,
out_normals
);
float
max
=
0.0
;
for
(
size_t
i
=
0
;
i
<
out_vertices
.
size
();
i
++
)
{
max
=
std
::
fmax
(
out_vertices
[
i
].
z
,
max
);
}
std
::
cout
<<
"max "
<<
max
<<
std
::
endl
;
glGenBuffers
(
1
,
&
controllerData
.
vboID
);
glGenBuffers
(
1
,
&
controllerData
.
vboID
);
glBindBuffer
(
GL_ARRAY_BUFFER
,
controllerData
.
vboID
);
glBindBuffer
(
GL_ARRAY_BUFFER
,
controllerData
.
vboID
);
...
...
Halterungen/size.png
0 → 100644
View file @
57c12821
111 KB
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