Re: [osg-users] OpenGL ES 2.0 and LIGHTING

2018-11-16 Thread Grigoriy Mylnikov
Sorry for delayed reply. My goal is to open and display .osgt files on android the same way they can be opened on desktop. This includes using several lights inside a model, both directional and point lights. I have some progress with writing shaders, but I have troubles with understanding

Re: [osg-users] OpenGL ES 2.0 and LIGHTING

2018-11-16 Thread Werner Modenbach
Hi Grigoriy, why don't you do the multiply in the shader like you do with gl_vertex? - Werner - Am 16.11.2018 um 12:29 schrieb Grigoriy Mylnikov: > Sorry for delayed reply. > > My goal is to open and display .osgt files on android the same way they can > be opened on desktop. This includes

Re: [osg-users] OpenGL ES 2.0 and LIGHTING

2018-11-16 Thread Grigoriy Mylnikov
After some trial and errors, I managed to do it in shader. But this means one redundant matrix multiplication per each vertex. Isn't it more effective to compute it once per frame on cpu side? What's the purpose of state.getModelViewMatrix()? I expected to get a camera*model matrix there. Or

Re: [osg-users] osg-users Digest, Vol 137, Issue 14

2018-11-16 Thread A Z
Is there someone here who delete my entire osf forum login account? http://forum.openscenegraph.org/viewtopic.php?p=75088#75088 My email address with that account is powerus...@live.com.au. ? From: osg-users on behalf of