Samples for Light Controls

Hi ,

Trying to develop some “Light Controls” (intensity, range etc) . Any samples that I should look at. I have reviewed the controls in

gltf-viewer.donmccurdy and Google’s “model-viewer” where they manipulate the scene-graph directly.

Would be nice to have a robust api as in glTF-Transform that supports glTF lights.

ps : Wondering why url’s not allowed in these forum, posts ?.

Regards
/rk

What you’ll want to do is to pick a 3D library (on the web, consider: three.js, babylon, etc.) and load the glTF file there. Once you’ve loaded the model into the engine, the engine would have its own API for changing lights and so on.

ps : Wondering why url’s not allowed in these forum, posts ?.

I think the forum software allows new users to post URLs only after a certain amount of usage, to prevent spam? I’m not sure exactly how that works.

1 Like

Thx again Don. I will pursue that.

Regards
/rk

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.