Hi,
I am trying to integrate an osg viewer into a Qt user interface. To do this I
am using the osg viewer widget from the OpenSceneGraph 3.0 Cookbook. If I set
the widget to fullscreen with the Qt method showFullScreen(). If I do this I
have a gray border around my viewport. To eliminate the
Hi,
I am using the code example from the book OpenSceneGraph 3 Cookbook to
implement an OSG application with a Qt gui.
If I set the widget which contains the viewerwideget to showFullscreen() I get
a gray border around my osg scene widget. I found a solution to set the margin
of the layout to
Hi,
i need some help to solve a problem. I tried to get the Vertexdata from my
geometry. The geometry is loaded by an osg file.
here the file:
[code]
MatrixTransform {
DataVariance DYNAMIC
name Scene Root
nodeMask 0xff
cullingActive TRUE
StateSet {
UniqueID StateSet_0
Thank you, i will try it.
Markus
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=21744#21744
___
osg-users mailing list
osg-users@lists.openscenegraph.org
Hi,
thanks for your answer, but I think i am to stupid to find the svn/trunk
version version. Can u give me a link pls. :?
Thank you!
Cheers,
Markus
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=16532#16532
Hi,
Sorry if u thinking I dont search for that. And yes I know the Downloadpage but
the version i found there doesnt work.
http://www.openscenegraph.org/svn/osg/OpenSceneGraph/trunk/examples/osgmanipulator/osgmanipulator.cpp
And I only find this and nothing else.
Thank you!
Cheers,
Markus
Ok I found what you mean. I thought the src and headers are the same like the
SDK.
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=16550#16550
___
osg-users mailing list
Hi,
thanks but for my understanding is the trunk version a other SDK as the 2.8.2
and why there are 2 different sdks?
Markus
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=16553#16553
___
Hi,
i have included the code of the osg Manipulator Example from
openscenegraph.org. But if i try to compile my code i get some errors, that
- addTransformUpdating
- setHandleEvents
- setActivationModKeyMask
- setActivationKeyEvent
are no Elements of osgManipulator::Dragger!?
Does I need an
Hello,
i tried to place some treebillboards in my Terrain, but i have problems with
the texturing.
I have two textures:
[Image: http://www.husseini.de/markus/C.jpg ]
[Image: http://www.husseini.de/markus/T.jpg ]
If I render the billboard the black color should be invisible but it doesn't
Ok thx now it works
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=15881#15881
___
osg-users mailing list
osg-users@lists.openscenegraph.org
@robertosfield: Itry to explain it but my English is not very well.
The Terrain is loadet by many heightfields. The black lines u see are the
borders form the singel heightfieldmeshes. Every Heightfield mesh has his own
texture, because i dont know how i can load a textur to the whole Terrain.
So hi again.
Now i tryed the osgTerrain Nodekit. To gernerate my Terrain. i greated 2
TerrianTiles. But now the whole Terrian is very dark. Look at the code pls and
picture:
Sorry but the code tag dont work right.
osg::ref_ptrosgTerrain::Locator Locator1
Ok i fixed it i forgett to define a color layer.
But the border ist also black between the Terraintiles.
Please help
[Image: http://www.husseini.de/markus/Terrain4.jpg ]
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=15453#15453
@robertosfield: Can i use the Imagelayer to load the heigthmaptile form an
heightmapimage too?
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=15445#15445
___
osg-users mailing list
Ok now it works. Thanks a lot.
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=15327#15327
___
osg-users mailing list
osg-users@lists.openscenegraph.org
Thanks a lot again for the answers.
@Kim Bale: Your solution voice good. But i dont understand how i can get the
pixel height infomation from an image obeject. Can You give me a example code,
it would be very helpfull. If i have the Pixelinformation i can write my own
Terrainclass too.
Hi,
i did this
Code:
osg::Image* img = osgDB::readImageFile(test.tga);
osg::ref_ptrosg::HeightField heightmap = new osg::HeightField;
for(int z=0; z256; z++)
{
for(int x=0; x256; x++)
{
heightmap-setHeight( x, z, img-data( x,z ) );
Hello,
I want to create a Terrain form a heightmap picture. Does someone know a good
tutorial or can explain me the steps to realize this problem with osg.
I am sitting here the whole day and search for tutorials or something else but
i cant find something.
I would be happy for your help.
Thanks for the answers.
@declic creation: I think this is a little bit to much for my project.
@Kim Bale: This looks nice, but my problem is that i have to use the osg API
only and there I need the opengl libs ;(. Or i must write my own Code to load
an image and get there data.
I read
20 matches
Mail list logo