Re: [osg-users] osgconv.exe textures getting mangled

2017-01-03 Thread Rambabu Repaka
Hi,How to avoid the Fatal nb colors error in texture images. ... Thank you! Cheers, Rambabu -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69851#69851 ___ osg-users mailing list

Re: [osg-users] osgconv.exe textures getting mangled

2017-01-03 Thread Rambabu Repaka
Hi,4 Texture images are loading remaining texture images are not loading to the model what i have to do ? ... Thank you! Cheers, Rambabu -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69849#69849

[osg-users] How to draw 3D cylinder and 3D band?

2017-01-03 Thread Daven Hem
Happy New Year, everybody! I’m Daven Hem, OSG beginner in Cambodia. I want to draw 3D cylinder and 3D band which is made from centered line. I have two problems I have to solve with OpenSceneGraph. Create a 3D line which is defined by N vertices. - Create a 3D cylinder which is

Re: [osg-users] Draw vertex as Circle with color given by some Vec4 array

2017-01-03 Thread Trajce Nikolov NICK
Hi Bruno, As I am recalling how this is to be done is something like this: Let say you want to pass colors as vertex attributes: const size_t vertexAttribLocation = 5; osg::Vec4Array* colors = new ... osg::Geometry* geometry = new ... geometry->setVertexAttribArray(vertexAttribLocation

Re: [osg-users] Check if sampler2D is valid in fragment shader

2017-01-03 Thread Alberto Luaces
"Rômulo Cerqueira" writes: > Hi Sebastian, > > I have used the last openscenegraph stable package in ubuntu (version > 3.2.3 - https://launchpad.net/ubuntu/+source/openscenegraph), and > there is no setDefine() method in osg::StateSet (only for 2.4 and > newer). There is a different way? > Hi

Re: [osg-users] Check if sampler2D is valid in fragment shader

2017-01-03 Thread Rômulo Cerqueira
Hi, > > I can create a minimal example if you're stuck with this. > I will appreciate this, please. ... Thank you! Cheers, Rômulo -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69845#69845

Re: [osg-users] osgconv.exe textures getting mangled

2017-01-03 Thread Jan Ciger
On Tue, Jan 3, 2017 at 1:49 PM, Rambabu Repaka wrote: > Hi,Iam using osg 3.5.1 version Textures are not loading to the model it is > showing Warning: [ReaderWriterOBJ::convertElementListToGeometry] Some > faces from geometry '' were reversed by the plugin.I converted the

Re: [osg-users] About raining

2017-01-03 Thread Jan Ciger
On Tue, Jan 3, 2017 at 1:57 PM, Rambabu Repaka wrote: > Hi,How to do Wet on the ground when raining in osg ? > Ehm, I am not quite sure what do you mean, but I assume that you want to render wet ground. A big of googling would find this, for example:

Re: [osg-users] Check if sampler2D is valid in fragment shader

2017-01-03 Thread Sebastian Messerschmidt
Hi, yes there is: Simply assign one Program with shaders handling texturing and the non-texturing variant at the appropriate state-sets. Be sure to share the programs (don't create a new one per instance) to keep performance up. I can create a minimal example if you're stuck with this.

Re: [osg-users] Check if sampler2D is valid in fragment shader

2017-01-03 Thread Christian Buchner
Pragmatic shader composition was added to the repository around Feb 13, 2015, and most likely into OSG 3.4 and newer only. A link to the relevant thread started by Robert Osfield is here: http://markmail.org/message/mjxjn4vujpvz3wfz#query:+page:1+mid:vogwv7uwhoefcln6+state:results 2017-01-03

Re: [osg-users] Check if sampler2D is valid in fragment shader

2017-01-03 Thread Rômulo Cerqueira
Hi Sebastian, I have used the last openscenegraph stable package in ubuntu (version 3.2.3 - https://launchpad.net/ubuntu/+source/openscenegraph), and there is no setDefine() method in osg::StateSet (only for 2.4 and newer). There is a different way? Cheers, Rômulo -- Read

[osg-users] About raining

2017-01-03 Thread Rambabu Repaka
Hi,How to do Wet on the ground when raining in osg ? ... Thank you! Cheers, Rambabu -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69839#69839 ___ osg-users mailing list

Re: [osg-users] osgconv.exe textures getting mangled

2017-01-03 Thread Rambabu Repaka
Hi,My Texture image files are in .png and .jpeg format. ... Thank you! Cheers, Rambabu -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69838#69838 ___ osg-users mailing list

Re: [osg-users] osgconv.exe textures getting mangled

2017-01-03 Thread Rambabu Repaka
Hi,Iam using osg 3.5.1 version Textures are not loading to the model it is showing Warning: [ReaderWriterOBJ::convertElementListToGeometry] Some faces from geometry '' were reversed by the plugin.I converted the model into .osgb format but textures are not adding to the model. ... Thank

[osg-users] code for merging tri strips in a cache friendly way

2017-01-03 Thread Christian Buchner
When loading .obj files (e.g. exported from Blender) into OSG - especially those that are exported with the "group by material" option - you might find a lot of individual tri strips in the resulting OSG geometry. Here is a piece of code (a node visitor) that will join these tri strips into a

[osg-users] Collada and OSG

2017-01-03 Thread Uma Devi Selvaraj
Hi, I would like to know which version of collada need to be integrate with OSG. I have installed collada 2.4.4. I tried to integrate osg and collada. I am getting linking issue. I have provided necessary cmake option. I am using vs2015. daeReader.obj : error LNK2019: unresolved external

Re: [osg-users] Draw Instanced intersections

2017-01-03 Thread Sebastian Messerschmidt
Hi Bruno, There is simply no geometry in the scenegraph to intersect (or strictly speaking there is only one drawable) Instancing takes away the load from the CPU to the GPU,which on the OSG-side means to put the instanced geometries into one drawable containing the instancing information.

Re: [osg-users] Draw Instanced intersections

2017-01-03 Thread tianzjyh
Hi, Oliveira, there maybe many reasons that why no intersection. I cannot give you advise without more information. u can check about examples within OSG source code, e.g. "osgintersection". -- Cheers, --- TianZJ At 2017-01-03 17:55:02, "Bruno Oliveira"

Re: [osg-users] Draw Instanced intersections

2017-01-03 Thread Bruno Oliveira
Hi TianZJ, Thanks for the quick answer. I checked the intersector, but intersector->getIntersections() returns no intersections at all. 2017-01-03 9:32 GMT+00:00 tianzjyh : > Hi, Oliveira, > You can check the intersections of your intersector(e.g. >

Re: [osg-users] Draw Instanced intersections

2017-01-03 Thread tianzjyh
Hi, Oliveira, You can check the intersections of your intersector(e.g. LineSegmentIntersector::Intersection), and you will find they contain an "osg::NodePath", which means the whole path of the node(e.g. matrix transform nodes upon the drawable instance). -- Cheers, --- TianZJ At

[osg-users] Draw Instanced intersections

2017-01-03 Thread Bruno Oliveira
Hello, I'm implementing a draw instanced optimized scene. This is for drawing a set of polygons. Previously I was creating a drawable for each polygon, but now I am using draw instancing. With one drawable per polygon I can easily use osg intersectors for computing scene intersections. But how