https://cycling74.com/tutorials/jitter-recipes-book-four/5/ helped me finally.
But I'd like to make this using ... JS or Java.
Maybe, it isn't relevant to do this inside Java/JS, but I have to build a system able to use my future objects library and some would have that glowing fx, some other not ..
This is the idea of glowing object I have in mind for my system.
From performance perspective, I can almost 100% guarantee that Java will be less efficient than max native. Java vm is an additional layer between the processor and the os, where as afaik gen is a way of manipulating machine code directly.
additional means probably more members in the chain meaning as you wrote it would be as fast :-/
the problematic is elsewhere for me: I need to create a bunch of objects in my 3D space.
I don't see any other way to create/handle a lot of object using Max native stuff .. easily.
My creation process doesn't have to involve copy/pasting max objects on a 3 m2 patcher :p
The idea is : I would move in this space amongst objects.
I already have setup a routine using JAVA which check the distance between the (only one) cam and objects and which disable from the OpenGL context those too far, saving CPU work.