Re: [osg-users] Skybox example problem

2009-04-16 Thread Großer Martin
Hello Robert, I'm sorry, thats right. I mean the osgvertexprogram. This example use a Skybox. When I zoom out or when I use a bigger scene then I get artefacts in the Skybox. When I change the following line from ... clearNode-setRequiresClear(false); ... in ...

[osg-users] stateset, culling

2009-04-16 Thread petr srom
Hi, I need to render back face of .ive models, in open GL is the syntax: glEnable(GL_CULL_FACE); glCullFace(GL_FRONT); Is the syntax in OSG these way? osg::StateSet *myst = new osg::StateSet(); myst-setMode(GL_CULL_FACE, osg::StateAttribute::ON); myst-setMode(GL_FRONT,

Re: [osg-users] stateset, culling

2009-04-16 Thread Ulrich Hertlein
On 16/4/09 8:47 AM, petr srom wrote: I need to render back face of .ive models, in open GL is the syntax: glEnable(GL_CULL_FACE); glCullFace(GL_FRONT); Is the syntax in OSG these way? osg::StateSet *myst = new osg::StateSet(); myst-setMode(GL_CULL_FACE, osg::StateAttribute::ON);

Re: [osg-users] Can not create OpenGL texture in OSG

2009-04-16 Thread Ulrich Hertlein
The reason for this is that you don't have a valid OpenGL context. But apart from that is there a reason why you're trying to create the texture yourself? Instead of using, say, OSG for that? /ulrich On 16/4/09 6:58 AM, su hu wrote: After glGenTextures, I use glGetError to get the error. The

Re: [osg-users] Can not create OpenGL texture in OSG

2009-04-16 Thread su hu
Thank you, ulrich. Now I load texture files in camera callback and solve the problem. I use ms3d models and render them by OpenGL. So I have to load model and texture files by myself. Thanks for your help. Su Hu 2009/4/16 Ulrich Hertlein u.hertl...@sandbox.de The reason for this is that

Re: [osg-users] stateset, culling

2009-04-16 Thread petr srom
thanks, but it still doesn't work : / myst was renamed by stateset void Environment::set_fog(osg::Group* root) { fog-setMode(osg::Fog::LINEAR); fog-setDensity(0.1f); fog-setColor(osg::Vec4f(0.8f,0.8f,0.8f,1.0f)); fog-setStart(-20.0f);

Re: [osg-users] terrain database popping...

2009-04-16 Thread Stefan Roettger
On Apr 15, 2009, at 11:44 PM, Tueller, Shayne R Civ USAF AFMC 519 SMXS/ MXDEC wrote: I think it would be good to fold libmini (or something equivalent) into OSG. That way you can use the databases built with VPB. I don't know much about VTP but using VPB databases are nice... Yes. I have

[osg-users] osgdem write permission error

2009-04-16 Thread Yurii Monakov
Hi All! I have a problem generating whole planet elevation database from SRTM 1 km source ( 43200x21600 ) and custom *.vrt file: VRTDataset rasterXSize=43200 rasterYSize=21600 VRTRasterBand dataType=Int16 band=1 subClass=VRTRawRasterBand ColorInterpGray/ColorInterp ByteOrderMSB/ByteOrder

Re: [osg-users] OsgSwig on mac osx 10.5.6 (xcode 3.1)

2009-04-16 Thread Massimo Di Stefano
Following the suggestion i find here : http://code.google.com/p/osgswig/wiki/BuildInstructions i compiled osg 2.4 version using xcode, the build produced the osg framewrok, i copied them in the /Library/Framework directory. then i downloaded osgswig, cd osgswig mkdir build cd build ccmake

[osg-users] OsgSwig on mac osx 10.5.6 (xcode 3.1)

2009-04-16 Thread massimo di stefano
Following the suggestion i find here : http://code.google.com/p/osgswig/wiki/BuildInstructions i compiled osg 2.4 version using xcode, the build produced the osg framewrok, i copied them in the /Library/Framework directory. then i downloaded osgswig, cd osgswig mkdir build cd build ccmake

[osg-users] Crash when osgstaticviewer example exit with static lib

2009-04-16 Thread heishuijing_2000
hello everyone, Recently,i had a problem with Osg 2.8 static lib in VS2008. My test example is osgstaticviewer.When the program exit,there is a crash. The stack trace is below: MyTest.exe!OpenThreads::Mutex::lock() + 0xa 字节 C++ MyTest.exe!osg::StateSet::removeParent() + 0x1f 字节

Re: [osg-users] OsgSwig on mac osx 10.5.6 (xcode 3.1)

2009-04-16 Thread Ismail Pazarbasi
Hi Massimo, I am not on my Mac right now, but I can quickly suggest you to add osg, osgText, osgIntrospection (and few more) frameworks to your executable to get you started as quick as possible. I may not recall all dependencies' names, as I am not on my development Mac; sorry! Adding frameworks

Re: [osg-users] OsgSwig on mac osx 10.5.6 (xcode 3.1)

2009-04-16 Thread Massimo Di Stefano
Ismail Pazarbasi wrote: Hi Massimo, I am not on my Mac right now, but I can quickly suggest you to add osg, osgText, osgIntrospection (and few more) frameworks to your executable to get you started as quick as possible. I tried to build osg2.4 using cmake, without the xcode support, but

Re: [osg-users] OsgSwig on mac osx 10.5.6 (xcode 3.1)

2009-04-16 Thread Ismail Pazarbasi
Hi Massimo, I thought you tried to build with Xcode. Since you didn't do so, you can ignore external framework suggestion. Adding those path values in your profile, IMO, shouldn't have any effect at all, because they are examples. I am not sure, but it may help; you may need to change cmake

Re: [osg-users] how to convert DDB bitmap to osg::Image?

2009-04-16 Thread Can T. Oguz
Hi Glenn, I do have some code to convert the DIB to an image if you need help on that end of it. I need to convert a device independent bitmap to osg::Image. Do you still have that DIB to osg::Image stuff? Regards, Can 2008/5/14 Glenn Waldron gwald...@gmail.com Forest, You may need to

[osg-users] Ask for osgProducer pagkage

2009-04-16 Thread Duong
Hi, I am a beginner, I look at some tutorials and see that they require osgProducer in their included files, but i can not find where the folder lies on OSG. Anyone please sends me a osgProducer pakage which I can add into include folder of my OSG. Thanks in advance! Regards! Duong

Re: [osg-users] OsgSwig on mac osx 10.5.6 (xcode 3.1)

2009-04-16 Thread massimo di stefano
Adding -losg .. etc, do not works with frameworks give me the error : ld: library not found for -losg ... erc I modified my cmake settings adding : -framework framewor_name to CMAKE_MODULE_LINKER_FLAGS and CMAKE_SHARED_LINKER_FLAGS as follow :

Re: [osg-users] Dinamic Line Drawing

2009-04-16 Thread Allen Saucier
Wow, that easy? ha, ha... Paul, how does the system know when to redraw after I've added to the vertices? Don't I have to tell it to redraw after I've added a vertex and up'ed the vertex counter? -vertex counter == osg::DrawArrays *vad; -new vertices added to *vad w/ push_back() cmd Paul

Re: [osg-users] OsgSwig on mac osx 10.5.6 (xcode 3.1)

2009-04-16 Thread massimo di stefano
apologize me, wrong path in the links : actually these is my cmake setting : http://www.geofemengineering.it/data/CMakeCache2.txt http://www.geofemengineering.it/data/CMakeCache2.txt i can see now in the log that the framework are linked in the c++ instruction, but the error log

Re: [osg-users] how to convert DDB bitmap to osg::Image?

2009-04-16 Thread Glenn Waldron
Can, I'll see if I can dig it up. Glenn Waldron : Pelican Mapping : http://pelicanmapping.com : +1.703.652.4791 2009/4/16 Can T. Oguz cto...@gmail.com Hi Glenn, I do have some code to convert the DIB to an image if you need help on that end of it. I need to convert a device independent

Re: [osg-users] [vpb] Building a geocentric database with heigh data

2009-04-16 Thread Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC
I'm having a hard time reading the text in your attachment (maybe I'm going blind) but it looks like there may be some info missing in the tif files. Can you do a gdalinfo on the tif files and send us the output? Either that or you could just attach the actual tif files and we can look at them

[osg-users] multiple paging contexts...

2009-04-16 Thread Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC
Does anyone know if OSG supports multiple paging contexts into the same database? For example let's say I have two different viewpoints (cameras) positioned in a VPB database. Will each camera page in its own LOD which is independent of the other even though they're accessing the same terrain

Re: [osg-users] Dinamic Line Drawing

2009-04-16 Thread Paul Martz
If you use osgViewer::Viewer::run(), then you're rendering constantly and don't need to do anything else to tell it to redraw. If you're using osgViewer::Viewer::frame(), then you need to call that function. Paul Martz Skew Matrix Software LLC http://www.skew-matrix.com +1 303 859 9466

Re: [osg-users] Ask for osgProducer pagkage

2009-04-16 Thread Paul Martz
This comes up from time to time, and a search of the mailing list archives should reveal that osgProducer is deprecated and has been removed from the core OSG distribution. I'm not sure where the svn repo for osgProducer is, but a search of the mailing list archives or maybe the web page should

Re: [osg-users] Dinamic Line Drawing

2009-04-16 Thread Allen Saucier
WOW! so simple. Excellent! Thxs Paul!:D Allen -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=10313#10313 ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] Dinamic Line Drawing

2009-04-16 Thread Allen Saucier
Well, it didntt work for me. :-( I'm actaully calling osg::viewer::frame() a few 100x / ms, I turned off DisplayLists for the geometry, did not call setVertexArray(vad), did not call dirtyDisplayList() and the line is not being drawn at all now. I've tried leaving setDisplayList (true) and

Re: [osg-users] Dinamic Line Drawing

2009-04-16 Thread Paul Martz
What type of primitive (mode) is in your DrawArrays? If it's GL_LINES then obviously you'll need to add 2 vertices to draw an additional line segment. Other than that I don't know what the problem is. Paul Martz Skew Matrix Software LLC http://www.skew-matrix.com +1 303 859 9466 -Original

[osg-users] 1D texture loading by model loading plugins

2009-04-16 Thread Eduardo Alberto Hernández Muñoz
Hi list, it seems that currently none of the model loading plugins can load a 1D texture( did a quick grep for Texture1D ), except the .osg and .ive formats. If you try loading a .png file with a height and depth of 1, loading fails( as it probably tries to load it as a Texture2D ), and , and I'm

Re: [osg-users] Dinamic Line Drawing

2009-04-16 Thread Allen Saucier
Thx everyone!! for the help. :D :D You've given me a lot to think about. I really appreciate your time. J-S, here's my code that now works but still drags a little after a few thousand iterations. I found that setVertexArray is (I believe, but could be totally wrong) actually copying the

[osg-users] [build] osgText crashes win32 w/ certain link orders

2009-04-16 Thread Aron
Hello, Many thanks to the community for a great scenegraph! I'm a new user but hope to contribute someday... Anyway, I found this out the hard way on OSG 2.8.0... Take any program w/ osgText (examples/osgtext in the distro works fine). Change link options to link with these OSG libs, in this

Re: [osg-users] Initial cut at CMake support + branch of osgEphemeris

2009-04-16 Thread Mattias Helsing
Hi Robert, Philip was right on track and attached is the proof. I tried to build it on WinXP some days ago and succeeded with a few tweaks to the cmake files. Not sure if you are interested or where you are going with osgEphemeris in svn but will submit the changes and let you decide. cheers

[osg-users] Changing OSG License to GPL

2009-04-16 Thread Eduardo Alberto Hernández Muñoz
Hi list, I'm interested in taking some code from osgFX( particulary cartoon and bump mapping ), modifying it, and putting the result under the GPL. Since the OpenSceneGraph Public License is based on the LGPL, and the LGPL permits switching to the GPL, you would think I just have to change any

[osg-users] Changing OSG License to GPL

2009-04-16 Thread Sergey Kurdakov
Hi Eduardo, sorry but it is really not clear why LGPL prohibits you to it's to separate them from osgFX:: Effect class( maybe subclass from osg:: Group ), allow them to be mixed with the ambient color, allow the Cartoon effect to select the texture unit and remove the outline( and possibly

Re: [osg-users] Changing OSG License to GPL

2009-04-16 Thread Chris 'Xenon' Hanson
Eduardo Alberto Hernández Muñoz wrote: Hi list, I'm interested in taking some code from osgFX( particulary cartoon and bump mapping ), modifying it, and putting the result under the GPL. What exactly, is your goal in putting it under the GPL? The OSGPL is designed so that OSG can be used