Ive seen other people add additional effects and capabilities in threejs…but cant that just be done in regular javascript inside gdevelop too? if so, how? what is the javascript/event setup to add such effects? such as tonemapping, light probes, ambient occlusion?
If I remember correctly you have to get the PIXI renderer from either the scene or the object and apply you’re effect, there. Maybe use a filter.
…but pixi is the 2d renderer
Oh my bad seems I skipped that detail. I have never touched Gdevelop 3D in javascript so I don’t have an idea. You can see the GDevelop JavaScript game engine to see how to access the Three.js.
that is the gdevelop javascript API, which is an abstraction or only handles the gdevelop part of things. not three.js or pixi.js or electron api
But in 2d I use Gdevelop API to get the renderer (pixi) so I think it also applies of 3d
que? you mean…like, getting the context? yeah, that might be helpful. but i only see references to pixi.js in the documentation for gdjs. im not sure anyone has done this before
Hey I saw here:
- getRenderer(): CustomRuntimeObject2DPixiRenderer | CustomRuntimeObject3DRenderer
That if the object is a 2D it returns CustomRuntimeObject2DPixiRenderer but if 3d it returns CustomRuntimeObject3DRenderer.
And I still see some LayerPixiRenderer | GDevelop JavaScript game engine having methods like getThreeScene(), getThreeGroup() and even getThreeEffectComposer().
oh…thanks. it doesnt really make it make more sense, but…