You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is done 32 time with that view_index going from 0 to 31 …
Finally …
void LS_Display_Compositor::EndFrame(int frameindex)
{
if (g_Neon_Device) g_Neon_Device->EndFrame(0);
#ifdef USING_HOLOPLAY
hp_drawLightfield();
#endif
return;
}
I tried to move the Present(1); before to call the hp_drawLightfield(); ( tried also with present(0), no vsynch ) …
Fundamentally … nothing happens … the display just displays the desktop background, it’s like it does not get addressed at all …
What am I missing here ?
I linked with the HoloPlayApi.lib, put the DLL in the correct path … all ‘seems ok’ except the display seems not to give any sign of life.
Suggestions ?
Also I found out that despite the #pragma once and such it appears holoplay.h can be included only one in one source, otherwise it complains all time of ‘duplicated/already defined things’.
Anyway any suggestions to debug what’s going on ??
Cheers.
The text was updated successfully, but these errors were encountered:
Ok more, I found out that ‘ok first of all need to find that monitor’, so nothing works unless I do this -
int count;
GLFWmonitor** monitors = glfwGetMonitors(&count);
if (count > 1)
{
PRINTF("Monitor name : %s\n", glfwGetMonitorName(monitors[1]));
}
// Open a window and create its OpenGL context
window = glfwCreateWindow(vp.w / sizeDivisor, vp.h / sizeDivisor, "CubeWorld GL", monitors[1], NULL);
if (window == NULL) {
fprintf(stderr, "Failed to open GLFW window. If you have an Intel GPU, they are not 3.3 compatible. Try the 2.1 version of the tutorials.\n");
getchar();
glfwTerminate();
return NULL;
}
On the top of that if I don’t set precisely the resoultion of -
wp.w = 2560; wp.h = 1600;
The monitor refuses to work.
Finally when I run the code, I get a thing like two views of some cubes translated ( I will upload the pic later ) .
I got like the feeling that hp_copyViewToQuilt(view_index); and hp_drawLightfield(); are doing nothing …
Something is not quite going right here, it’s like the stuff never been correctly initialised ??
alxdncn
changed the title
Trouble getting API to display my scene
Trouble getting API to display my scene - from GilesGoat on the forum (https://forum.lookingglassfactory.com/t/opengl-bugs-and-issues/1225/4)
Feb 26, 2019
Hi,
Ok … ‘what am I doing wtong ?’
So … my code goes along those lines , first -
Then in my ‘begin view’ …
Then it draw some cubes
the_Neon_Device->setWorld();
the_Neon_Device->scale(0.3, 0.3, 0.3);
the_Neon_Device->translate(0, 0.5, 0);
the_Neon_Device->UpdateWvpMatrix(NULL);
the_cube->draw(0);
Then my 'end-view' calls -
void LS_Display_Compositor::EndView(int view_index, void *graphic_context)
{
#ifdef USING_HOLOPLAY
hp_copyViewToQuilt(view_index);
#endif
return;
}
This is done 32 time with that view_index going from 0 to 31 …
Finally …
void LS_Display_Compositor::EndFrame(int frameindex)
{
if (g_Neon_Device) g_Neon_Device->EndFrame(0);
#ifdef USING_HOLOPLAY
hp_drawLightfield();
#endif
return;
}
I tried to move the Present(1); before to call the hp_drawLightfield(); ( tried also with present(0), no vsynch ) …
Fundamentally … nothing happens … the display just displays the desktop background, it’s like it does not get addressed at all …
What am I missing here ?
I linked with the HoloPlayApi.lib, put the DLL in the correct path … all ‘seems ok’ except the display seems not to give any sign of life.
Suggestions ?
Also I found out that despite the #pragma once and such it appears holoplay.h can be included only one in one source, otherwise it complains all time of ‘duplicated/already defined things’.
Anyway any suggestions to debug what’s going on ??
Cheers.
The text was updated successfully, but these errors were encountered: