yokewang Posted February 16, 2018 Share Posted February 16, 2018 Hi, Is it possible to run babylonjs and nodejs on server side(without a window) to draw RenderTargetTexture? I notice there is NullEngine for server side scenario and headless-gl in npm for OpenGL binding. Thanks. Quote Link to comment Share on other sites More sharing options...
Guest Posted February 16, 2018 Share Posted February 16, 2018 If you need to render you have to use Engine with headless-gl. If you need to not do any rendering then NullEngine alone is fine Quote Link to comment Share on other sites More sharing options...
yokewang Posted February 17, 2018 Author Share Posted February 17, 2018 @Deltakosh. Can you give me some hints to new an Engine with headless-gl? Many thanks. Quote Link to comment Share on other sites More sharing options...
yokewang Posted February 17, 2018 Author Share Posted February 17, 2018 I made it by writing a new class named HeadlessEngine, which accepts the headless-gl as param and inits some necessary resources. Quote Link to comment Share on other sites More sharing options...
Guest Posted February 20, 2018 Share Posted February 20, 2018 exactly Quote Link to comment Share on other sites More sharing options...
Jeedy Posted April 13, 2018 Share Posted April 13, 2018 Hi guys, how do you create the HeadlessEngine with headless-gl? All my attempts gave me the error "Unable to compile effect" tks! Quote Link to comment Share on other sites More sharing options...
Guest Posted April 13, 2018 Share Posted April 13, 2018 You have an example here: http://doc.babylonjs.com/features/nullengine Quote Link to comment Share on other sites More sharing options...
Jeedy Posted April 14, 2018 Share Posted April 14, 2018 I tried this with headless-gl but I always obtain an empty image. How the nullEngine use the headless-gl, how can we give him an headless-gl canvas/context? Quote Link to comment Share on other sites More sharing options...
Guest Posted April 16, 2018 Share Posted April 16, 2018 Oh sorry I did not get your question The nullEngine does not provide rendering. It is for server side purpose (like testing or synchro) You should just be able to use regular engine but I have no experience with headless-gl Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.