Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
blender-vr-interactive
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
blender
blender-vr-interactive
Commits
0804a738
Commit
0804a738
authored
4 years ago
by
rabbit
Browse files
Options
Downloads
Patches
Plain Diff
fix stereo
parent
5ebfccb6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
client/blender_client/blender_client.cpp
+2
-2
2 additions, 2 deletions
client/blender_client/blender_client.cpp
client/ultragrid/ultragrid.cpp
+4
-2
4 additions, 2 deletions
client/ultragrid/ultragrid.cpp
with
6 additions
and
4 deletions
client/blender_client/blender_client.cpp
+
2
−
2
View file @
0804a738
...
...
@@ -49,7 +49,7 @@ int setenv(const char *name, const char *value, int overwrite)
int
main
(
int
argc
,
char
**
argv
)
{
/////////////////////////
/*
setenv(
"KERNEL_CUDA_CUBIN",
"c:\\work\\blender\\blender_client_build\\cycles_cuda\\kernel_sm_52.cubin",
...
...
@@ -68,7 +68,7 @@ int main(int argc, char **argv)
setenv("SOCKET_SERVER_PORT_CAM", "7000", 1);
setenv("SOCKET_SERVER_PORT_DATA", "7001", 1);
setenv("CUDA_VISIBLE_DEVICES", "0,1", 1);
*/
/*
CLIENT_FILE_KERNEL_GLOBAL=c://temp//test.kg
CLIENT_FILE_CYCLES_BUFFER=c://temp//test.bf
...
...
This diff is collapsed.
Click to expand it.
client/ultragrid/ultragrid.cpp
+
4
−
2
View file @
0804a738
...
...
@@ -144,8 +144,8 @@ void cesnet_set_camera_data(cyclesphi::cyclesphi_data *cdata)
{
// printf("get_camera_matrices\n");
g_cdata
.
step_samples
=
1
;
g_cdata
.
width
=
8
;
g_cdata
.
height
=
8
;
g_cdata
.
width
=
512
;
g_cdata
.
height
=
512
;
g_cdata
.
cam
.
transform_inverse_view_matrix
[
0
]
=
-
0.437973917
;
g_cdata
.
cam
.
transform_inverse_view_matrix
[
1
]
=
-
0.267504632
;
...
...
@@ -237,6 +237,8 @@ void cesnet_set_render_buffer_yuv_i420(
if
(
width
==
0
||
height
==
0
)
{
return
;
}
cudaSetDevice
(
0
);
int
id
=
shmget
(
SHM_KEY
,
sizeof
(
cesnet_shm
),
0
);
if
(
id
==
-
1
)
{
perror
(
"shmget"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment