[osg-users] osgSim::DOFTransform pivot point

2019-04-09 Thread Bruce Clay
I am working on a model viewer that has portions based on the osgsidebyside example. I can load a tank model that has both DOFTransforms and Multiswitches then rotate the turret and elevate the gun and everything works correctly. I loaded an aircraft model with 15 DOFTransforms and no

[osg-users] Really basic question light/material on surface

2019-04-09 Thread Diego Mancilla
Hello, I've playing aorund with some examples on the "OpenSceneGraph 3 Cookbook" by Wang and Quian. Specifically, with Chapter 10's "Playing with delaunay triangulator". Here is the official repository code (with one small modification -commented-) Code: int main(int argc, char** argv) {

Re: [osg-users] Clip planes and instanced rendering

2019-04-09 Thread Alberto Luaces
Wojciech Lewandowski writes: > Hi Alberto, > > You may need to add support for clip planes via gl_ClipVertex or > gl_ClipDistance to your shaders (which one depends on GLSL version used -see > https://stackoverflow.com/questions/19125628/how-does-gl-clipvertex-work-relative-to-gl-clipdistance).

Re: [osg-users] Clip planes and instanced rendering

2019-04-09 Thread Wojciech Lewandowski
Hi Alberto, You may need to add support for clip planes via gl_ClipVertex or gl_ClipDistance to your shaders (which one depends on GLSL version used -see https://stackoverflow.com/questions/19125628/how-does-gl-clipvertex-work-relative-to-gl-clipdistance). My experience with these vars was not

[osg-users] Clip planes and instanced rendering

2019-04-09 Thread Alberto Luaces
Hi, I want to set a clipping plane for my scene, but it is not working for instanced geometries. I have not found any resource telling that clipping planes are ignored by GLSL. Simple test: if I make the following modifications to osgforest, diff --git a/examples/osgforest/osgforest.cpp