[osg-users] Deprecating vertex indices in osg::Geometry

2013-06-04 Thread Robert Osfield
Hi All, One of the changes I've discussed before, but as yet no made, is to simplify osg::Geometry so that it drops the index arrays that you can currently associated for vertex, normal, colour, texcoord arrays. These index arrays aren't supported by OpenGL, instead have to be emulated by

Re: [osg-users] Deprecating vertex indices in osg::Geometry

2013-06-04 Thread Robert Osfield
I have now started looking into what changes would be required to osg::Geometry and have decided to make a copy of Geometry called GoemetryNew and cut this down to see how easy it will be clean this class up and what the knock on effects might be. Now I have dived in and begun the process one

Re: [osg-users] Deprecating vertex indices in osg::Geometry

2013-06-04 Thread Robert Osfield
On 4 June 2013 09:42, Robert Osfield robert.osfi...@gmail.com wrote: My current action plan is to get GeometryNew.cpp to build and run with the osggeometry example I have now got my quick clean up of Geometry as GeometryNew class with osgeometry compiling and running correctly. My GeometryNew

Re: [osg-users] Deprecating vertex indices in osg::Geometry

2013-06-04 Thread Torben Dannhauer
Robert, I think it's better to check it in.. Others would have the opportunity to participate or evely siltently read the code and learn. Maybe there aer others out there reading changes and try to learn as I do it usually ( If time permits). Regards, Torben -- Read this

Re: [osg-users] Saving a screenshot as a scaled up image

2013-06-04 Thread Torben Dannhauer
Hi, Have you looked at osgPoster? thanks, Torben -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=54421#54421 ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] Deprecating vertex indices in osg::Geometry

2013-06-04 Thread Robert Osfield
On 4 June 2013 10:21, Torben Dannhauer tor...@dannhauer.info wrote: I think it's better to check it in.. Others would have the opportunity to participate or evely siltently read the code and learn. Maybe there aer others out there reading changes and try to learn as I do it usually ( If

[osg-users] Question about OSG for Android

2013-06-04 Thread Mahmoud Hossam
Dear Ladies and Gentlemen, I am currently working on developing a visualization tool using OpenSceneGraph. I am supposed to develop a branch for the tool to work on Android. I am having some problems and my experience with OSG cannot really help me pass it. In few Words - - My

Re: [osg-users] Question about OSG for Android

2013-06-04 Thread Robert Osfield
HI Mohmoud, I haven't programmed on Android yet, but as CompositeViewer can be made to work with a single GraphicsContext I see no reason why you can't just create a GraphicsWindowEmbedded and assign this to each of your View's Camera, with a separate Viewport selecting the part of the window you

Re: [osg-users] Deprecating vertex indices in osg::Geometry

2013-06-04 Thread Mathias Fröhlich
Hi Robert, On Tuesday, June 04, 2013 09:42:10 Robert Osfield wrote: Thoughts? Great idea! I see that the GeometryDeprecated is still needed. ... that means we will need this at least. The begin/end emulation code could then probably move to wherever you move the GeometryDeprecated class.

Re: [osg-users] Deprecating vertex indices in osg::Geometry

2013-06-04 Thread Robert Osfield
HI Mathias, On 4 June 2013 13:53, Mathias Fröhlich mathias.froehl...@gmx.net wrote: I see that the GeometryDeprecated is still needed. ... that means we will need this at least. I don't think it'll be too difficult to maintain, and it'll be really useful to old Geometry held in the existing

Re: [osg-users] Deprecating vertex indices in osg::Geometry

2013-06-04 Thread Mathias Fröhlich
Hi, On Tuesday, June 04, 2013 14:12:21 Robert Osfield wrote: May be this is also an opportunity to throw out the deprecated dlists? I don't reason a need to drop display lists in osg::Geometry, at least at this point. Display lists are rather orthogonal to the rest of the API. One

Re: [osg-users] Deprecating vertex indices in osg::Geometry

2013-06-04 Thread Peter Amstutz
Hi Robert, Would you consider changing BIND_PER_PRIMITIVE code to do some kind of internal conversion to fast path rendering, such as expanding the arrays by 3x (duplicating the color or normal for each vertex) so that it can use the per-vertex rendering path? I have certainly written code

Re: [osg-users] File comment blocks conflict with OSGPL licensing, geo plugin

2013-06-04 Thread Robert Osfield
Hi David, On 22 May 2013 20:55, Robert Osfield robert.osfi...@gmail.com wrote: I'm inclined to think it's safe to remove it as it's for a defunct product and likely to mostly out of use now. As there was no response in support for maintaining the .geo plugin, and Carbon Graphics has long been

Re: [osg-users] Deprecating vertex indices in osg::Geometry

2013-06-04 Thread Robert Osfield
Hi Peter, On 4 June 2013 14:29, Peter Amstutz peter.amst...@tseboston.com wrote: Would you consider changing BIND_PER_PRIMITIVE code to do some kind of internal conversion to fast path rendering, such as expanding the arrays by 3x (duplicating the color or normal for each vertex) so that it

[osg-users] Fwd: Question about OSG for Android

2013-06-04 Thread Mahmoud Hossam
Hi, I tried changing this method [code]_viewer-setUpViewerAsEmbeddedInWindow(x, y, width, height); [/code] by creating my own GraphicsWindowEmbedded and assigning it to the camera [code]osgViewer::GraphicsWindowEmbedded* _gwe = new osgViewer::GraphicsWindowEmbedded(x,y,width,height);

Re: [osg-users] Deprecating vertex indices in osg::Geometry

2013-06-04 Thread Peter Amstutz
Hi Robert, This is totally reasonable and on balance I agree with your reasoning. I thought the feature deserved a little discussion before being sent quietly into the night :-) On 6/4/2013 9:44 AM, Robert Osfield wrote: I believe that a fast path only osg::Geometry is worthy enough goal to

Re: [osg-users] Deprecating vertex indices in osg::Geometry

2013-06-04 Thread Robert Osfield
Hi Peter, On 4 June 2013 15:34, Peter Amstutz peter.amst...@tseboston.com wrote: This is totally reasonable and on balance I agree with your reasoning. I thought the feature deserved a little discussion before being sent quietly into the night :-) ;-) The reason for me to raise this topic

Re: [osg-users] Deprecating vertex indices in osg::Geometry

2013-06-04 Thread Robert Osfield
Hi All, I have now taken the next step and added the following methods to osg::Array: /** Specify whether the array data should be normalized by OpenGL.*/ void setNormalize(bool normalize) { _normalize = normalize; } /** Get whether the array data should be normalized

Re: [osg-users] Modern OSG vs. OSG 2.8.5; also a question about word splitting in osgText

2013-06-04 Thread Eric Sokolowsky
Thanks Robert. I'll spend some time getting the newest OSG working here, and then try applying my patch, and submit it for your perusal. Eric On Mon, Jun 3, 2013 at 7:26 AM, Robert Osfield robert.osfi...@gmail.comwrote: Hi Eric, On 3 June 2013 11:42, Eric Sokolowsky esok@gmail.com

Re: [osg-users] Deprecating vertex indices in osg::Geometry

2013-06-04 Thread Jordi Torres
Hi, Just a coment. Deprecate inmediate mode is also and advantage w.r.t. mobile devices. OpenGL_ES does not implement inmediate mode since its first version, and display lists are no supported since OpenGL_ES 1.1. So it will be good for those starting with ES and OpenSceneGraph. Cheers.

Re: [osg-users] Deprecating vertex indices in osg::Geometry

2013-06-04 Thread Robert Osfield
On 4 June 2013 17:56, Jordi Torres jtorresfa...@gmail.com wrote: Just a coment. Deprecate inmediate mode is also and advantage w.r.t. mobile devices. OpenGL_ES does not implement inmediate mode since its first version, and display lists are no supported since OpenGL_ES 1.1. So it will be good

Re: [osg-users] Deprecating vertex indices in osg::Geometry

2013-06-04 Thread Farshid Lashkari
Hi Robert, These changes sound good. I'm all for cleaning up the Geometry class. You mentioned implementing some sort of backwards compatibility for the serialization plugins. Does that mean existing osg files (osg, ive, osgb, etc...) that use indices will automatically fall back to the

Re: [osg-users] [osgCompute] Find statistics (min, max, mean, stddev) using NPP or alternative of RTT/FBO

2013-06-04 Thread Jens Orthmann
Hi creature, yes, the launch function is exactly where you should call those npp-functions. You get the device pointer by calling myBuffer-map(osgCompute::MAP_DEVICE). If you want to get access to the internal texture memory, call myBuffer-map(osgCompute::MAP_DEVICE_ARRAY) and cast the void*

Re: [osg-users] [osgCompute] osgCompute restrictions

2013-06-04 Thread Jens Orthmann
Hi sajis997, CUDA comes with two programing interfaces: a Driver API and a Runtime API. We currently only support the built in Runtime API with our osgCuda implementation. However it has nothing to do with the display driver or the compute capability. Thus, a gtx 560m and cuda tool-kit 4.2

Re: [osg-users] Deprecating vertex indices in osg::Geometry

2013-06-04 Thread Robert Osfield
Hi Farshid, On 4 June 2013 18:27, Farshid Lashkari fla...@gmail.com wrote: You mentioned implementing some sort of backwards compatibility for the serialization plugins. Does that mean existing osg files (osg, ive, osgb, etc...) that use indices will automatically fall back to the

Re: [osg-users] [osgCompute] Export in osgCuda

2013-06-04 Thread Jens Orthmann
Hi sajis997, The export file defines EXPORT/IMPORT macros for all functions in our osgCuda library in case you are using dynamic libraries (i.e. you have set the DYNAMIC_LINKING flag to true in CMake). Nice to hear that you are going to extend osgCompute to OpenCL. I am also in E-Mail contact

Re: [osg-users] [osgCompute] documentation

2013-06-04 Thread Jens Orthmann
Hi sajis997, You are right. osgCuda::Buffer is not documented yet. I am on it! Regards, Jens -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=54452#54452 ___ osg-users mailing list

Re: [osg-users] [osgCompute] osgTraceDemo

2013-06-04 Thread Jens Orthmann
Hi sajis997, You have to install the dynamic libraries first. Otherwise he can't find the libraries. After installing the trace demo should work perfectly. Cheers, Jens -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=54453#54453

Re: [osg-users] Deprecating vertex indices in osg::Geometry

2013-06-04 Thread Robert Osfield
Hi All, I have now completed the removal of ArrayData container and all slow path support from GeometryNew. The size is now down to less than 2/3rd the size of the original Geometry.cpp. The largest bloat left is with helper functions for verifying and correcting bindings, but I now believe

[osg-users] Edge artifacts with multiple render targets

2013-06-04 Thread Bram Vaessen
Hi, I have switched my rendering stuff to deferred rendering, and I noticed some problems around the edges of the hills in the terrain (see attached picture) I write 3 buffers: -color -normal -position (fragment position in world coordinates) I tried finding a problem in the buffers around the

Re: [osg-users] Deprecating vertex indices in osg::Geometry

2013-06-04 Thread Aurelien Albert
robertosfield wrote: The PreserveDataType and AttribDivisor are entirely new and are intended to support new extensions being added to the OSG - but their implementation will have to wait till the GeometryNew refactor is further down the road. This is great ! robertosfield wrote:

Re: [osg-users] Edge artifacts with multiple render targets

2013-06-04 Thread Bram Vaessen
Does anyone know: what is the default texture filter mode (for 3d textures) when you do not explicitly set it? -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=54457#54457 ___ osg-users mailing list

Re: [osg-users] Edge artifacts with multiple render targets

2013-06-04 Thread Robert Osfield
On 4 June 2013 22:49, Bram Vaessen bram.vaes...@gmail.com wrote: Does anyone know: what is the default texture filter mode (for 3d textures) when you do not explicitly set it? The default filtering for a texture objects is defined in the Texture::Texture() default constructor and is (from

Re: [osg-users] Deprecating vertex indices in osg::Geometry

2013-06-04 Thread Robert Osfield
Hi Aurelien, On 4 June 2013 21:33, Aurelien Albert aurelien.alb...@alyotech.fr wrote: robertosfield wrote: The naming of Binding is something I'm note yet sure of, with the introduction of AttribDivisor the binding becomes a bit less clearly defined as well. Not sure what to make of this