Re: [osg-users] slice Geometry with plane

2016-11-17 Thread Trajce Nikolov NICK
Hi Sebastian,

it is not only for display, I need handle of the sliced Geometry, something
like what DBGS are doing, to cut triangulated cultural features on tile
boundaries.

But thank you anyway

On Fri, Nov 18, 2016 at 8:39 AM, Sebastian Messerschmidt <
sebastian.messerschm...@gmx.de> wrote:

> Hi Trajce,
>
> If you only need to display it, maybe clipplanes is what you are after.
> They also work fine with modern shader pipelines, where you can transform
> them inside the vertex shader to your liking.
>
> Cheers
> Sebastian
>
>
> Hi Community,
>>
>> is something like this available in OSG?
>>
>> Thanks as always!
>>
>> Cheers,
>> Nick
>>
>> --
>> trajce nikolov nick
>>
>>
>> ___
>> osg-users mailing list
>> osg-users@lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



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


Re: [osg-users] Rotation of a node starts clockwise and ends counter-clockwise.

2016-11-17 Thread Sebastian Messerschmidt


Hi,



Hi,Can anyone provide the link for the download of t72-tank_des textures.


Are you seriously asking people to use a search engine for you?
...

http://lmgtfy.com/?q=t72-tank_des

First!!! hit

Cheers
Sebastian



...

Thank you!

Cheers,
Rambabu

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





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


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


Re: [osg-users] Migrate shaders to glsl 4.1

2016-11-17 Thread Sebastian Messerschmidt


Hi Bruno,


In order to use core-profile you need to setup the aliasing:

viewer->getCamera()->getGraphicsContext()->getState()->setUseModelViewAndProjectionUniforms(true);
		 
viewer->getCamera()->getGraphicsContext()->getState()->setUseVertexAttributeAliasing(true);


After this you'll have all matrices and vertex attributes with an osg_ 
instead of gl_ available. There is even some automatic replacement 
happening, so basically the gl_ are replaced by OSG.


If I understood Robert correctly he is currently working on advanced 
mechanisms to transport the osg::Material ect. values automatically via 
Uniforms. If you cannot wait, you might want to consider writing some 
visitors translating fixed function data into uniforms on your own.


The osgsimplegl3 is btw. a good starting point.


Cheers
Sebastian





I've been trying to migrate my shaders to OpenGL 4.1.

What is the alternative to the fixed pipeline code, of the vertex shader:

gl_TexCoord[0] = gl_TextureMatrix[0] * gl_MultiTexCoord0;
gl_Position = ftransform();


I know I have ot create my own out vector, like "out vec4 texcoord", but
where do I get OSG's View, Model, etc matrices?

Thanks


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


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


Re: [osg-users] slice Geometry with plane

2016-11-17 Thread Sebastian Messerschmidt

Hi Trajce,

If you only need to display it, maybe clipplanes is what you are after.
They also work fine with modern shader pipelines, where you can 
transform them inside the vertex shader to your liking.


Cheers
Sebastian



Hi Community,

is something like this available in OSG?

Thanks as always!

Cheers,
Nick

--
trajce nikolov nick


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


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


Re: [osg-users] Rotation of a node starts clockwise and ends counter-clockwise.

2016-11-17 Thread Rambabu Repaka
Hi,Can anyone provide the link for the download of t72-tank_des textures.

... 

Thank you!

Cheers,
Rambabu

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





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


Re: [osg-users] Draw open polygon

2016-11-17 Thread Bruno Oliveira
Thank you Robert, that's perfect!

2016-11-17 10:24 GMT+00:00 Robert Osfield :

> Hi Bruno,
>
> On 17 November 2016 at 10:11, Bruno Oliveira
>  wrote:
> > How does one draw an open polygon using whether OSG API's or OpenGL
> > primitives?
> > I know how to draw, for instance, a filled rectangle, but how do I draw a
> > filled rectangle with a hole inside?
> >
> > My data structures are stored as follows: a vector of the outward
> polygon's
> > vertices in clockwise order (e.g. filled rectangle), and then a vector of
> > "holes" stored as a vector of vertices in counter-clockwise order
>
> The osgUtil::Tessellator will be able to take these polygons and
> generate an osg::Geometry for you.  See the osgtessellate example.
>
> Robert.
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Migrate shaders to glsl 4.1

2016-11-17 Thread Bruno Oliveira
I've been trying to migrate my shaders to OpenGL 4.1.

What is the alternative to the fixed pipeline code, of the vertex shader:

gl_TexCoord[0] = gl_TextureMatrix[0] * gl_MultiTexCoord0;
gl_Position = ftransform();


I know I have ot create my own out vector, like "out vec4 texcoord", but
where do I get OSG's View, Model, etc matrices?

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


[osg-users] slice Geometry with plane

2016-11-17 Thread Trajce Nikolov NICK
Hi Community,

is something like this available in OSG?

Thanks as always!

Cheers,
Nick

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


Re: [osg-users] OSG 3.4 + FFmpeg

2016-11-17 Thread sam
Hi Gianni,

Does 3.0.2 still have the deprecated functions that are used in OSG 3.4? I
check against 2.8.6 and I don't get any unidentified function errors. I
will try 3.0.2 and give an update.

Thanks, Sam

On Wed, Nov 16, 2016 at 11:51 PM, Gianni Ambrosio 
wrote:

> Hi Sam,
> if you don't have a pre-built libraries than you can choose the FFmpeg
> version you like since you have to build them on your own.
> With OSG 3.4 now I build ffmpeg 3.0.2.
>
> Cheers,
> Gianni
>
> --
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=69413#69413
>
>
>
>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Display Geotiff image in OSG

2016-11-17 Thread Chris Hanson
It really sounds like what you're doing is going to require geospatial
integration, and for that, you'd be much further ahead using osgEarth,
which has all sorts of geospatial features built in.

Can you describe the bigger picture of what you're actually trying to
_accomplish_ in the end, so we can make more informed suggestions about
technique?

On Thu, Nov 17, 2016 at 5:31 AM, Robert Osfield 
wrote:

> On 17 November 2016 at 12:13, Uma Devi Selvaraj 
> wrote:
> > Hi,
> >
> > "osgviewer -e gdal --image "geotiff_file" " using this command I am able
> to display the file. will this command retains geographic information. Is
> this correct command?
>
>
> It's fine to use the preload the plugin using the -e extension option.
> but this is just an example application that puts an image on a quad
> to render it, it won't retain anything about the coordinate
> transformation.
>
> I have just had a quick scan of the GDAL plugin and it doesn't process
> and or pass back the GeoTransform of the loaded GDALDataset so it's
> just the image data that is passed back, the transform it lost.
> Potentially this could be assign as user data to the Image, but this
> will required modifications to the plugin.
>
> The alternative is to just use GDAL directly.  This is what tools like
> VirtualPlanetBuilder do, VirtualPlanetBuilder builds OSG paged
> databases from geospatial imagery and DEMs.
>
> Robert.
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



-- 
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] Rotation of a node starts clockwise and ends counter-clockwise.

2016-11-17 Thread Christian Buchner
It would appear the original source of the tank is the Naval Postgraduate
School tutorials page:

http://trac.openscenegraph.org/documentation/NPSTutorials/

This is from 2004. 12 years go. Man, time flies.

Christian


2016-11-17 15:25 GMT+01:00 Christian Buchner :

> As for an "osgtank" model, I have no idea what you are talking about,
>> it's not anything to do with the core OpenSceneGraph source code
>> distribution or the OpenSceneGraph-Data distribution.  Again this is
>> an issue of just throwing out a question without any proper context.
>>
>
> I suspect OP is looking at some older Wiki examples for OSG like this
>
> http://trac.openscenegraph.org/projects/osg//wiki/Support/Tutorials/
> FileLoadingAndTransforms
> http://trac.openscenegraph.org/projects/osg//wiki/
> Support/Tutorials/FindingNodes
>
> This (and related) pages talk about a tank model. Some of the given code
> contains a file name
> t72-tank_des.flt
>
> which according to Google can be found e.g. on github here:
> https://github.com/petercheng00/Indoor-Modeling/
> blob/master/NPS_Tutorials_src/NPS_Data/Models/t72-tank/t72-
> tank_des.flt?raw=true
>
> Also I did find some rather dated code that generates a tank model
> procedurally as a Geode
>
> http://trac.openscenegraph.org/projects/osg/browser/
> OpenSceneGraph/trunk/examples/osghangglide/tank.cpp?rev=1697
>
> Christian
>
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Rotation of a node starts clockwise and ends counter-clockwise.

2016-11-17 Thread Christian Buchner
>
> As for an "osgtank" model, I have no idea what you are talking about,
> it's not anything to do with the core OpenSceneGraph source code
> distribution or the OpenSceneGraph-Data distribution.  Again this is
> an issue of just throwing out a question without any proper context.
>

I suspect OP is looking at some older Wiki examples for OSG like this

http://trac.openscenegraph.org/projects/osg//wiki/Support/Tutorials/FileLoadingAndTransforms
http://trac.openscenegraph.org/projects/osg//wiki/Support/Tutorials/FindingNodes

This (and related) pages talk about a tank model. Some of the given code
contains a file name
t72-tank_des.flt

which according to Google can be found e.g. on github here:
https://github.com/petercheng00/Indoor-Modeling/blob/master/NPS_Tutorials_src/NPS_Data/Models/t72-tank/t72-tank_des.flt?raw=true

Also I did find some rather dated code that generates a tank model
procedurally as a Geode

http://trac.openscenegraph.org/projects/osg/browser/OpenSceneGraph/trunk/examples/osghangglide/tank.cpp?rev=1697

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


Re: [osg-users] Rotation of a node starts clockwise and ends counter-clockwise.

2016-11-17 Thread Robert Osfield
On 17 November 2016 at 12:21, Rambabu Repaka  wrote:
> Hi,Iam not asking about model rotation.Iam asking about how to rotate the 
> nodes in a model.Like in cessna left and right fans rotation.

This demonstrates that you should have explained this properly in your
first post, this is much better than waste peoples time with ambiguous
questions that have any number of possible answers most of which have
no relevance to the problem you want to tackle...

In the case of the cessna model, it's just a simple mesh model, the
propellers don't have any transform above them so you can't animate
them.

As for an "osgtank" model, I have no idea what you are talking about,
it's not anything to do with the core OpenSceneGraph source code
distribution or the OpenSceneGraph-Data distribution.  Again this is
an issue of just throwing out a question without any proper context.

Please realise that the rest of the community are omiponent beings
that divine meaning from the etha.  You *have* to give context. You
have to tell us what specifically you are having problem with and what
you are struggling to understand.

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


Re: [osg-users] Rotation of a node starts clockwise and ends counter-clockwise.

2016-11-17 Thread Sebastian Messerschmidt


Hi Rambabu,



Hi,Iam not asking about model rotation.Iam asking about how to rotate the nodes 
in a model.Like in cessna left and right fans rotation.


In this case, again: think about the perception of your questions before 
shooting them out.


Depending on the model and its structure you have 3 options:
1.) The model has osgSim::DOFTransform/osg::Transform-based-nodes with 
geometry below it. You can use a visitor to find the respective nodes 
and apply any transform you like (scale, rotate, translate)


2.) The model doesn't have the above, but geometry is separated for 
parts that could be transformed: Use a visitor to find the appropriate 
nodes and insert some transform above those geometries to manipulate them.


3.) The model has external references which form the (articulated) 
parts. In this case they are decorated with a transform in most cases, 
so simply modify those or use the pattern at 2).


I'm not sure about the cessna however, I don't think it has any parts 
that you could manipulate. I'd need to take a look into the model.


Cheers
Sebastian



...

Thank you!

Cheers,
Rambabu

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





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


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


Re: [osg-users] Display Geotiff image in OSG

2016-11-17 Thread Robert Osfield
On 17 November 2016 at 12:13, Uma Devi Selvaraj  wrote:
> Hi,
>
> "osgviewer -e gdal --image "geotiff_file" " using this command I am able to 
> display the file. will this command retains geographic information. Is this 
> correct command?


It's fine to use the preload the plugin using the -e extension option.
but this is just an example application that puts an image on a quad
to render it, it won't retain anything about the coordinate
transformation.

I have just had a quick scan of the GDAL plugin and it doesn't process
and or pass back the GeoTransform of the loaded GDALDataset so it's
just the image data that is passed back, the transform it lost.
Potentially this could be assign as user data to the Image, but this
will required modifications to the plugin.

The alternative is to just use GDAL directly.  This is what tools like
VirtualPlanetBuilder do, VirtualPlanetBuilder builds OSG paged
databases from geospatial imagery and DEMs.

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


Re: [osg-users] Rotation of a node starts clockwise and ends counter-clockwise.

2016-11-17 Thread Rambabu Repaka
Hi,Iam not asking about model rotation.Iam asking about how to rotate the nodes 
in a model.Like in cessna left and right fans rotation. 

... 

Thank you!

Cheers,
Rambabu

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





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


Re: [osg-users] Display Geotiff image in OSG

2016-11-17 Thread Uma Devi Selvaraj
Hi,

"osgviewer -e gdal --image "geotiff_file" " using this command I am able to 
display the file. will this command retains geographic information. Is this 
correct command?
 

... 

Thank you!

Cheers,
Uma

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





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


Re: [osg-users] Display Geotiff image in OSG

2016-11-17 Thread Uma Devi Selvaraj
Hi Sebastain,

   I am sorry image size too big to upload. It is 36 MB

... 

Thank you!

Cheers,
Uma

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





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


Re: [osg-users] Display Geotiff image in OSG

2016-11-17 Thread Robert Osfield
Hi Uma,

The tiff plugin uses libtiff 3rd party library that doesn't support
geotiff.  The OSG's gdal plugin does support geotiff but isn't loaded
by default as the .tif extension will be mapped to the tiff plugin.

To get the OSG to use the gdal plugin add a .gdal to the image
filename, the gdal plugin will then strip this and then load the image
i.e.

  osgviewer --image myfile.tif.gdal

Robert.

On 17 November 2016 at 11:51, Uma Devi Selvaraj  wrote:
> Hi Sebastain,
>
>   Thanks. As of now I just want to create appliaction that will render 
> Geotiff file using OSG. I tried to display using osgviewer I am getting 
> following message.
>
> I used the following command " osgviewer --image "geotiff_file" "
>
> TIFF rader: Unknown field with tag 33550 (0x830e) encountered
> TIFF rader: Unknown field with tag 33922 (0x8482) encountered
> TIFF rader: Unknown field with tag 34735 (0x87af) encountered
> TIFF rader: Unknown field with tag 34736 (0x87b0) encountered
> TIFF rader: Unknown field with tag 34737 (0x87b1) encountered
> TIFF rader: Can not read scanlines from a tiled image
> TIFF loader: Error reading/decoding file
> osgviewer: No data loaded
> ...
>
> Thank you!
>
> Cheers,
> Uma
>
> --
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=69421#69421
>
>
>
>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Display Geotiff image in OSG

2016-11-17 Thread Sebastian Messerschmidt



Hi,

That is strange. Can you supply the image for investigation?
It is either broken, non-standard or your tiff-lib is not up to date.

Cheers
Sebastian

Hi Sebastain,

  Thanks. As of now I just want to create appliaction that will render 
Geotiff file using OSG. I tried to display using osgviewer I am getting 
following message.

I used the following command " osgviewer --image "geotiff_file" "

TIFF rader: Unknown field with tag 33550 (0x830e) encountered
TIFF rader: Unknown field with tag 33922 (0x8482) encountered
TIFF rader: Unknown field with tag 34735 (0x87af) encountered
TIFF rader: Unknown field with tag 34736 (0x87b0) encountered
TIFF rader: Unknown field with tag 34737 (0x87b1) encountered
TIFF rader: Can not read scanlines from a tiled image
TIFF loader: Error reading/decoding file
osgviewer: No data loaded
...

Thank you!

Cheers,
Uma

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





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


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


Re: [osg-users] Display Geotiff image in OSG

2016-11-17 Thread Uma Devi Selvaraj
Hi Sebastain,

  Thanks. As of now I just want to create appliaction that will render 
Geotiff file using OSG. I tried to display using osgviewer I am getting 
following message.

I used the following command " osgviewer --image "geotiff_file" "

TIFF rader: Unknown field with tag 33550 (0x830e) encountered
TIFF rader: Unknown field with tag 33922 (0x8482) encountered
TIFF rader: Unknown field with tag 34735 (0x87af) encountered
TIFF rader: Unknown field with tag 34736 (0x87b0) encountered
TIFF rader: Unknown field with tag 34737 (0x87b1) encountered
TIFF rader: Can not read scanlines from a tiled image
TIFF loader: Error reading/decoding file
osgviewer: No data loaded 
... 

Thank you!

Cheers,
Uma

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





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


Re: [osg-users] Rotation of a node starts clockwise and ends counter-clockwise.

2016-11-17 Thread Voerman, L.
Hi Rambabu,
you can rotate with the rot pseudoloader like this:

osgviewer cessna.osg.0,20,0.rot

Regards, Laurens.

On Thu, Nov 17, 2016 at 12:41 PM, Rambabu Repaka 
wrote:

> Hi,Can anyone tell how to do the nodes rotation for the osg model like
> cessna.
>
> ...
>
> Thank you!
>
> Cheers,
> Rambabu
>
> --
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=69418#69418
>
>
>
>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Rotation of a node starts clockwise and ends counter-clockwise.

2016-11-17 Thread Rambabu Repaka
Hi,Where i can get osgtank model for download.If anyone having a model share 
the link down.

... 

Thank you!

Cheers,
Rambabu

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





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


Re: [osg-users] Rotation of a node starts clockwise and ends counter-clockwise.

2016-11-17 Thread Rambabu Repaka
Hi,Can anyone tell how to do the nodes rotation for the osg model like cessna. 

... 

Thank you!

Cheers,
Rambabu

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





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


Re: [osg-users] Display Geotiff image in OSG

2016-11-17 Thread Sebastian Messerschmidt


Hi Uma,


Hi,

   How can I display Geotiff image in osg . Is there any example.?
I have installed GDAL in my system.


A geotiff essentially is a normal tif with geo-reference information.
To simply display it you can use the osgviewer with the --image.

If you need to display it at it geographic position on an earth-model 
you might consider osgEarth or VirtualPlanetBuilder.


Maybe you need to describe in detail what you are after.

Cheers
Sebastian



...

Thank you!

Cheers,
Uma

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





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


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


Re: [osg-users] Draw open polygon

2016-11-17 Thread Robert Osfield
Hi Bruno,

On 17 November 2016 at 10:11, Bruno Oliveira
 wrote:
> How does one draw an open polygon using whether OSG API's or OpenGL
> primitives?
> I know how to draw, for instance, a filled rectangle, but how do I draw a
> filled rectangle with a hole inside?
>
> My data structures are stored as follows: a vector of the outward polygon's
> vertices in clockwise order (e.g. filled rectangle), and then a vector of
> "holes" stored as a vector of vertices in counter-clockwise order

The osgUtil::Tessellator will be able to take these polygons and
generate an osg::Geometry for you.  See the osgtessellate example.

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


[osg-users] Draw open polygon

2016-11-17 Thread Bruno Oliveira
Hello,

How does one draw an open polygon using whether OSG API's or OpenGL
primitives?
I know how to draw, for instance, a filled rectangle, but how do I draw a
filled rectangle with a hole inside?

My data structures are stored as follows: a vector of the outward polygon's
vertices in clockwise order (e.g. filled rectangle), and then a vector of
"holes" stored as a vector of vertices in counter-clockwise order
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org