rohit.gonsalves_ Posted August 1, 2016 Share Posted August 1, 2016 Our engine is DirectX 11 based rendering. Now I need to integrate the headless rendering to this engine without breaking the architecture of existing engine. So the workflow is quite like this Directx 11 is initialised in our application (Device and Context) After initialisation of DirectX 11, Init the Unigine using same device and context (Same thread, Same process) Our engine will prepare few textures on GPU Share textures with Ungine material Render Unigine on texture Share back the rendered textured to our engine Our engine processes the data and throws back output If I just share the adapter, device and context with initd311; in same process and thread... Will it be OK? I have tried this way just the engine initialisation. It works without problem. I hope to see some rendering now. I just wanna know if I am going right? Or there are any other directions I should look for. Link to comment
rohit.gonsalves_ Posted August 4, 2016 Author Share Posted August 4, 2016 It works... Nicely. Now I am taking Unigine output from this approach and pushing to Our engine. It is a charm... Link to comment
rohit.gonsalves_ Posted August 5, 2016 Author Share Posted August 5, 2016 I have Used above approach; the first world loads correctly. In the same render loop if at some place I use following Unigine::Console* console = Unigine::Console::get(); if( iLoadNewWorld) { console->run("world_load samples/players/actor_00"); console->flush(); } Everything is loaded, I can see in console. UI is visible, FPS is running but things are rendering black. What could be the issue? Rohit Link to comment
silent Posted August 5, 2016 Share Posted August 5, 2016 Hi Rohit, Without a small test sample it's hard to say what is going on, sorry. If there any chance to get a stable repro without integrating our engine into yours - it will be very helpful. Thanks! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Recommended Posts