Re: [osg-users] Triton Ocean

2016-12-14 Thread Rambabu Repaka
Hi,Chris hanson where we find the headers in the forum.

... 

Thank you!

Cheers,
Rambabu

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=69686#69686





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [osgPlugins] AC3D Loader

2016-12-14 Thread Chris Hanson
On Mon, Dec 12, 2016 at 10:48 PM, Nikolai Christensen <
emptyyetf...@gmail.com> wrote:

> Secondly, what about lines after:
> else if (objectType == ObjectTypeLight) { // add a light source to the
> scene 1 Nov 2003
> Why add a lightsource (if thats whats happening)? Isn't this loader used
> by many projects just to load fragments of a larger scene, will each
> fragment then get a lightsource?
> Notice AC3D does not support lights in the fileformat to my knowledge.
>

  If you look at the code here:
http://trac.openscenegraph.org/projects/osg//browser/OpenSceneGraph/branches/OpenSceneGraph-3.0/src/osgPlugins/ac/ac3d.cpp#L1157

 it appears that the light being added IS specified in the AC3D file, so
OSG is adding the light, as directed.


> Lastly, why tesselate geometry at all? Does OSG only handle triangles?
>

  Well, OSG does handle more than triangles (QUADS, TRISTRIPS, etc) but
modern OpenGL actually only handle triangles internally and trianlges is
what it renders best. Are you asking if OSG supports pure CSG primitives?
it does not, because OpenGL does not.

-- 
Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com
http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 •
GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Legal/IP • Code Forensics • Digital Imaging • GIS • GPS •
osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile •
iPhone/iPad/iOS • Android
@alphapixel  facebook.com/alphapixel (775)
623-PIXL [7495]
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Triton Ocean

2016-12-14 Thread Chris Hanson
You should be able to see my email address in the headers.
xe...@alphapixel.com.

In order to have breaking shore waves in Triton, you need to supply it with
a raster image of the bathymetry (sea floor) underneath the water surface,
as well as a texture matrix that allows for transformation of a world
coordinate into the texture space of that raster. Triton will then use this
information to modify the waves as they approach the shallow shore areas to
make them larger, and break on the shoreline.

http://www.sundog-soft.com/docs/triton/terrain.html

"OpenSceneGraph users may refer to the OSGDynamicHeightMap sample included
with the SDK. This sample generates a height map from the scene surrounding
the camera automatically, and feeds it to Triton for smooth coastline
blending. This sample also includes code for a vertex program that can
compute accurate height map data for geocentric or ECEF terrains."
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] compositeviewer, close and remove view

2016-12-14 Thread Sebastian Schmidt
Hi,

I have a compositeviewer with multiple views. 
One of them has a windowmanager with canvas window.
My problem is that after i closed the window, 
the view is still present (getNumViews() was not decreased).
And even if i call removeView() the canvas reference is not deleted.

I want to close and readd the same window/view during runtime.
Maybe i can catch the CLOSE event, call removeView + set my canvas reference to 
null.

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=69683#69683





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org