[osg-users] [3rdparty] WireFrame display for 3d model using c++ code
Hi, I am new to OSG. Can somebody tell me how to view wireframe of 3d model using c++ code. I am able to view wireframe , points,texture etc using osgviewer(with help of 'w' key ) only when I open the 3d model using the "osgviewer <3dmodel_name>" in cmd prompt. ... Thank you! Cheers, Uma -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=68720#68720 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] [3rdparty] Viewing Image in osgviewer using c++ code.
Hi, I am new to OSG ,Can Somebody tell me how to view image(.jpeg,.png,geotiff etc..) in osgviewer using c++ code . I am able to read image using osg::Image and osg::DB class. I don't how to display it in osgviewer. ... Thank you! Cheers, Uma -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=68722#68722 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Vector script out of range
Hi, I have tried a simple program in C++ to render 3d model using Osg Viewer. When I am trying to run the code I am getting "vector script out of range error " for some 3d model. This is my code. /*osg header files */ int main(int argc,char**argv) { /*using ref_ptr*/ osg::ref_ptr root = osgDB::readNodeFile("bunny.ply"); osgViewer::Viewer viewer; viewer.setSceneData(root.get()); return viewer.run(); } can some body tell me what is the problem. but it is working for some models. I have attached the 3d model file. I have loaded 2963 KB file Thank you! Cheers, Uma -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=68842#68842 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Vector script out of range
Hi Sebastain, I have executed my code in both debug and release mode. I am not able to render the model using code. I have attached call stack of my program(scree shot). ... Thank you! Cheers, Uma -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=68890#68890 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Vector script out of range
Hi , I have cloned osg repo and checked out to the branch 3.4.0. I am facing same problem for bunny.ply model (Smooth Triangle).Hope Laurens changes are merged. ... Thank you! Cheers, Uma -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=68988#68988 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Vector script out of range
Hai Robert, Yeah I am using same project setting. I am trying this simple code in windows 8 system. robertosfield wrote: > Hi Uma, > > I have load the h.obj and trail.3ds files under linux without problems > using OSG git master. > > As Laurens suggestions it may be making sure that you are building > your own application with the same setting settings a the OSG version > you are linking to. When setting paths to the plugins it's also worth > setting the path to the parent directory of the plugins other than the > plugin directory itself as the OSG appends a version number to the > plugin directory so when you link to different versions of the OSG it > can choose the correct plugins directory to avoid problems with mixing > dll's. > > Robert. > > On 7 October 2016 at 05:21, Uma Devi Selvaraj <> wrote: > > > Hi all, > > > > Thanks for the reply.I am facing error not only for .ply models. For other > > models like .obj, .dxf and .3ds. I have attached both the call stack of my > > program and one of the model I used.(call stack for all models are same) > > > > > > > > ... > > > > Thank you! > > > > Cheers, > > Uma > > > > -- > > Read this topic online here: > > http://forum.openscenegraph.org/viewtopic.php?p=68898#68898 > > > > > > > > > > ___ > > osg-users mailing list > > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > > > ___ > osg-users mailing list > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > -- > Post generated by Mail2Forum -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=68990#68990 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Issue in Rendering Obj model using c++ code .
Hi all, I have build osg version 3.4.0 in windows 8. I am able to render 3D models using the command "osgviewer ". I have tried a simple c++ code to render 3D model. I gave .obj model as input. For small files (say file size of 577 KB) my code renders the given model successfully, whereas when my input obj model is of size 46,927 KB it takes long time (more than hours & not renders the model). I am facing this problem in debug mode. But in Release Mode I am facing error. My code is ... osg::ref_ptr root; root = osgDB::readNodeFile("D:\\3D_Models\\Concert Stage.obj"); osgViewer::Viewer viewer; viewer.setSceneData(root.get()); return viewer.run(); I have attached the screenshot of error message. Thank you! Cheers, Uma -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=68996#68996 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Issue in Rendering Obj model using c++ code .
Hi, Yeah I have changed that. But In debug mode it is taking too much of time. ... Thank you! Cheers, Uma -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=68998#68998 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Issue in Rendering Obj model using c++ code .
Hi all , Thanks for the reply. I will try with ReleaseWithDebug-Build. Thanks Sebastian ... Thank you! Cheers, Uma -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69000#69000 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Issue in Rendering Obj model using c++ code .
Hi Sebastian, Do I need to build my code with release mode and linking it with releasewithdebuginfo library or do I need to create new configuration for my code in VS2013? ... Thank you! Cheers, Uma -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69001#69001 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] ot20-Openthreads.dll access violation
Hi all, I am trying to create GUI which renders 3D model using OSG and Qt in VS2013. I am able render 3D model successfully in Debug mode. but In release mode i am not able to render 3D model. I am getting access violation error in OpenThreads and symbol not loaded message. I have attached screen shots for both.I have used the example code which uses qtwidget to render the model. ... Thank you! Cheers, Uma -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69021#69021 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Qt version for OSG3.4.0
Hi all, Can somebody tell me which version of Qt does OSG 3.4.0 supports.?? ... Thank you! Cheers, Uma -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69024#69024 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] ot20-Openthreads.dll access violation
Hi Robert, Just now I have installed stable release of OSG 3.4.0. I have tried with both Debug and Release mode. I am getting error message. I have attached it. robertosfield wrote: > Hi Uma, > > The stack trace you have provide doesn't really give us any clues to > what might be amiss. Form the OT version it's clear you use a dev > version of the OSG/OT, there is chance that there is bug lurking in > the recent OT changes. I would have expected this to be to appear in > the debug version. As the stack trace doesn't tell us which bit of > code causes the seg fault we don't have a means of working out what > might be wrong. Could you do a release build with debug info, you'll > need to rebuild OT and OSG with this setting, and then your own > application. > > Robert. > > On 17 October 2016 at 07:08, Uma Devi Selvaraj <> wrote: > > > Hi all, > > > > I am trying to create GUI which renders 3D model using OSG and Qt in > > VS2013. I am able render 3D model successfully in Debug mode. but In > > release mode i am not able to render 3D model. I am getting access > > violation error in OpenThreads and symbol not loaded message. I have > > attached screen shots for both.I have used the example code which uses > > qtwidget to render the model. > > > > ... > > > > Thank you! > > > > Cheers, > > Uma > > > > -- > > Read this topic online here: > > http://forum.openscenegraph.org/viewtopic.php?p=69021#69021 > > > > > > > > > > ___ > > osg-users mailing list > > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > > > ___ > osg-users mailing list > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > -- > Post generated by Mail2Forum -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69029#69029 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] ot20-Openthreads.dll access violation
Hi Robert, Thanks for the reply. Shall I post it in some other forums like (osgPlugin,etc) so that I can get any idea ..? ... Thank you! Cheers, Uma -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69032#69032 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] ot20-Openthreads.dll access violation
Hi Robert, I have used the example code.I have attached code.Yeah I am building OpenThreads with QT in cmake. Yes I am using in single threaded mode since "Qt5 is currently crashing and reporting "Cannot make QOpenGLContext current in a different thread" ". ... Thank you! Cheers, Uma -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69035#69035 examplecode.rar Description: Binary data ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] ot20-Openthreads.dll access violation
Hi , Thanks for the reply sebastain and robert. Hope I will get help from osg forum to fix this . ... Thank you! Cheers, Uma -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69039#69039 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] ot20-Openthreads.dll access violation
Hi all, Is there any problem in any my example code.?? ... Thank you! Cheers, Uma -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69048#69048 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] ot20-Openthreads.dll access violation
Hi all, Regarding openthreads access violation issue,today I tried to build osg without(BUILD_OPENTHREADS_WITH_QT) cmake options. And I tired to use those exe and dll files to run my example code. I am able to render 3D model Successfully in both debug and release mode, the problem is it is taking too mush of time to render. Is there any to way to render the model quickly. And I just want to know use of BUILD_OPENTHREADS_WITH_QT option.? Will it create any issue if I build OSG without this option.? ... Thank you! Cheers, Uma -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69050#69050 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] ot20-Openthreads.dll access violation
Hi Robert, The size of the model I used is 49675 K. And it is taking more than one hour to render in debug mode and in release mode it is taking 5 mins. ... Thank you! Cheers, Uma -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69053#69053 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] ot20-Openthreads.dll access violation
Hi Sebastain, Sorry I am unable to load the model, because it is too big for attachment(only 10 MB are allowed). ... Thank you! Cheers, Uma -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69055#69055 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Qt version for OSG3.4.0
Hi all, Thanks for the reply :) ... Thank you! Cheers, Uma -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69057#69057 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] ot20-Openthreads.dll access violation
Hi Sebastain, Thank you so much for the reply. Yeah I have tried in osgviewer and it took 10-15 seconds. I have a doubt , does converting .obj or any other models to .osg will result in any loss of information.? ... Thank you! Cheers, Uma -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69062#69062 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] converting any 3d models to osg,osgb or osgt
Hi all, I need to convert 3d Models(.3ds,.ply,.obj,.. ) to osg or osgb or osgt using code. I know that by running "osgconv input output" command in console will do conversion. Is there any option using osgconv in c++ code. If so how to use osgconv in code ..?? ... Thank you! Cheers, Uma -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69125#69125 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] converting any 3d models to osg,osgb or osgt
Hi Trajce, Thanks for the reply :). ... Thank you! Cheers, Uma -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69127#69127 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Converting 3d Models to OSG type
Hi all, I tried simple program to do conversion from 3d model to osg type. I tried to call osgconv using system() method. Here is my code. Generalized one: char *src = "D:/3D_Models/3D Model.obj"; char *dest = "D:/converted_Models/3D Model.osg"; std::cout << "converting " << std::endl; system("osgconv src dest"); std::cout << "Completed Conversion :)" << std::endl; Have i done any mistake in my code. Because I am getting message saying that no plug in to read "src" and "dest". If I do like this, system("osgconv D:/3D_Models/3D_Model.obj D:/converted_Models/3D_Model.osg"); I am able to convert. How will I change my code to generalize the conversion (like first method) so that i can get input and output from user ?. ... Thank you! Cheers, Uma -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69132#69132 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Converting 3d Models to OSG type
Hi, Thanks Sebastain :) ... Thank you! Cheers, Uma -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69139#69139 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Rendering Model in color
Hi, I have installed OSG in my system(windows 10, 64 bit). When I tried to render colored model , the model is not rendering in color. I have installed OSG in another system(windows 8 , 64 bit) and tried to render same model in that system, where I am able to render the model in color. I have read the system requirements in OSG User Guide. Should I need to install latest OpenGL.? or What could be the problem? ... Thank you! Cheers, Uma -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69212#69212 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Warning: Failed grabbing the focus and invalid enumerant
Hi, I have rendered the some models using osgviewer. I am getting following two Warnings . Warning: GraphicsWindowWin32::grabFocus() - Failed grabbing the focus Warning: detected OpenGL error 'invalid enumerant' at Before Renderer::compile I have build 32 bit osgviewer. May I know reason for this one.? Is this warning related to the input model I gave or realted to hardware. Is this known one.? ... Thank you! Cheers, Uma -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69319#69319 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Warnings: Failed grabbing the focus and invalid enumerant
Hi Sebastain, Thanks for the reply ... Thank you! Cheers, Uma -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69355#69355 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Rendering Model in color
Hi, Thanks for reply. ... Thank you! Cheers, Uma -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69356#69356 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] calculating area of the 3d model.
Hi all, I would like to know some information. I need to calculate area , perimeter & volume of a selected part or area in 3d model. For example after rendering 3d model, if I select some area(cloased area) , say point1 point2 point3. Point1 connected to point2 point2 to point3, point3 connected to point1. Is it possible to do it with the help of OSG.? And how can I get longitude,latitude and altitude for the points(say point1).? Is there any example for this.? So that it can be helpful for me. Do I need to build any other OSG application for this task.? Where does the longitude,latitude and altitude informations are stored in 3d models (.3ds,.osg,.osgt)? ... Thank you! Cheers, Uma -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69400#69400 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] calculating area of the 3d model.
Hi, Thanks for the reply robert and sebastain :) ... Thank you! Cheers, Uma -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69412#69412 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Display Geotiff image in OSG
Hi, How can I display Geotiff image in osg . Is there any example.? I have installed GDAL in my system. ... 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
Re: [osg-users] Display Geotiff image in OSG
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] Display Geotiff image in OSG
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
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] calculating area of the 3d model.
Hi, Thanks paul. I will look into it. :) ... Thank you! Cheers, Uma -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69455#69455 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Rendering 3d Model using osgEarth.
Hi all, I have installed osgEarth 2.8 in my system. Now I want to display 3d Model using osgEarth. Do in need to create earth file for that model. How to display the model without "earth" in center.? ... Thank you! Cheers, Uma -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69456#69456 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Rendering 3d Model using osgEarth.
Hi, Thanks robert ... Thank you! Cheers, Uma -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69460#69460 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] How to render the image without reducing its size.?
Hi, I have simple code that renders image using osgviewer. I am able to render the image successfully with the code. My problem now is the size of the image is reduced. for example the original size of the image is 4683 * 3035, the image is reduced to 4096 * 3035. Is this expected behaviour or is there anything I need to add in my code. I have added my code. //required header files int main(int argc,char**argv) { osg::ref_ptr image; image = osgDB::readImageFile("C:\\Users\\mcw\\Desktop\\DemModel.tif.gdal"); std::cout << "Image info are " << image->s() << "\n"setFilter(osg::Texture::MIN_FILTER, osg::Texture::LINEAR); texture->setFilter(osg::Texture::MAG_FILTER, osg::Texture::LINEAR); texture->setWrap(osg::Texture::WRAP_R, osg::Texture::REPEAT); texture->setResizeNonPowerOfTwoHint(false); texture->setImage(image); texture->setBorderColor(osg::Vec4d(0.4f, 0.5f, 0.6f, 1.0f)); osg::StateSet* stateset = new osg::StateSet; stateset->setTextureAttributeAndModes(0, texture, osg::StateAttribute::ON); geode->setStateSet(stateset); osgViewer::Viewer viewer; viewer.setSceneData(geode.get()); getchar(); return viewer.run(); } ... Thank you! Cheers, Uma -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69470#69470 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] How to render the image without reducing its size.?
Hi, Thank you all for the reply. ... Thank you! Cheers, Uma -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69474#69474 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] how to get pixel value using X and Y coordinates
Hi , I have rendered image using osgviewer. I have added pickhandler to get x and y coordinates by clicking mouse left button. Is it possible to get pixel value corresponding to that X and Y coordinates.Is there any example related to that.? ... Thank you! Cheers, Uma -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69696#69696 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] how to get pixel value using X and Y coordinates
Hi, Can somebody tell me is it possible to get pixel value from x and y co-ordinates? ... Thank you! Cheers, Uma -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69705#69705 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] how to get pixel value using X and Y coordinates
Hi, Thanks Robert ... Thank you! Cheers, Uma -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69714#69714 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Collada and OSG
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 symbol "char const * const ColladaDOM141::COMMON_PROFILE_INPUT_JOINT" (?COMMON_PROFILE_INPUT_JOINT@ColladaDOM141@@3PEBDEB) referenced in function "private: bool __cdecl osgDAE::daeReader::processDocument(class std::basic_string,class std::allocator > const &)" (?processDocument@daeReader@osgDAE@@AEAA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) 1>daeRSkinning.obj : error LNK2001: unresolved external symbol "char const * const ColladaDOM141::COMMON_PROFILE_INPUT_JOINT" (?COMMON_PROFILE_INPUT_JOINT@ColladaDOM141@@3PEBDEB) 1>daeWGeometry.obj : error LNK2001: unresolved external symbol "char const * const ColladaDOM141::COMMON_PROFILE_INPUT_JOINT" (?COMMON_PROFILE_INPUT_JOINT@ColladaDOM141@@3PEBDEB) 1>daeReader.obj : error LNK2019: unresolved external symbol "char const * const ColladaDOM141::COLLADA_TYPE_CHANNEL" (?COLLADA_TYPE_CHANNEL@ColladaDOM141@@3PEBDEB) referenced in function "private: bool __cdecl osgDAE::daeReader::processDocument(class std::basic_string,class std::allocator > const &)" (?processDocument@daeReader@osgDAE@@AEAA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) 1>daeReader.obj : error LNK2019: unresolved external symbol "char const * const ColladaDOM141::COLLADA_TYPE_INSTANCE_RIGID_BODY" (?COLLADA_TYPE_INSTANCE_RIGID_BODY@ColladaDOM141@@3PEBDEB) referenced in function "private: bool __cdecl osgDAE::daeReader::processDocument(class std::basic_string,class std::allocator > const &)" (?processDocument@daeReader@osgDAE@@AEAA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) 1>daeRAnimations.obj : error LNK2019: unresolved external symbol "char const * const ColladaDOM141::COMMON_PROFILE_INPUT_IN_TANGENT" (?COMMON_PROFILE_INPUT_IN_TANGENT@ColladaDOM141@@3PEBDEB) referenced in function "private: class osgDAE::daeReader::ChannelPart * __cdecl osgDAE::daeReader::processSampler(class ColladaDOM141::domChannel *,class std::map,class std::allocator > > &)" (?processSampler@daeReader@osgDAE@@AEAAPEAVChannelPart@12@PEAVdomChannel@ColladaDOM141@@AEAV?$map@PEAVdaeElement@@VdomSourceReader@osgDAE@@U?$less@PEAVdaeElement@@@std@@V?$allocator@U?$pair@QEAVdaeElement@@VdomSourceReader@osgDAE@@@std@@@5@@std@@@Z) 1>daeRAnimations.obj : error LNK2019: unresolved external symbol "char const * const ColladaDOM141::COMMON_PROFILE_INPUT_INPUT" (?COMMON_PROFILE_INPUT_INPUT@ColladaDOM141@@3PEBDEB) referenced in function "private: class osgDAE::daeReader::ChannelPart * __cdecl osgDAE::daeReader::processSampler(class ColladaDOM141::domChannel *,class std::map,class std::allocator > > &)" (?processSampler@daeReader@osgDAE@@AEAAPEAVChannelPart@12@PEAVdomChannel@ColladaDOM141@@AEAV?$map@PEAVdaeElement@@VdomSourceReader@osgDAE@@U?$less@PEAVdaeElement@@@std@@V?$allocator@U?$pair@QEAVdaeElement@@VdomSourceReader@osgDAE@@@std@@@5@@std@@@Z) 1>daeWAnimations.obj : error LNK2001: unresolved external symbol "char const * const ColladaDOM141::COMMON_PROFILE_INPUT_INPUT" (?COMMON_PROFILE_INPUT_INPUT@ColladaDOM141@@3PEBDEB) 1>daeRAnimations.obj : error LNK2019: unresolved external symbol "char const * const ColladaDOM141::COMMON_PROFILE_INPUT_INTERPOLATION" (?COMMON_PROFILE_INPUT_INTERPOLATION@ColladaDOM141@@3PEBDEB) referenced in function "private: class osgDAE::daeReader::ChannelPart * __cdecl osgDAE::daeReader::processSampler(class ColladaDOM141::domChannel *,class std::map,class std::allocator > > &)" (?processSampler@daeReader@osgDAE@@AEAAPEAVChannelPart@12@PEAVdomChannel@ColladaDOM141@@AEAV?$map@PEAVdaeElement@@VdomSourceReader@osgDAE@@U?$less@PEAVdaeElement@@@std@@V?$allocator@U?$pair@QEAVdaeElement@@VdomSourceReader@osgDAE@@@std@@@5@@std@@@Z) 1>daeWAnimations.obj : error LNK2001: unresolved external symbol "char const * const ColladaDOM141::COMMON_PROFILE_INPUT_INTERPOLATION" (?COMMON_PROFILE_INPUT_INTERPOLATION@ColladaDOM141@@3PEBDEB) 1>daeRAnimations.obj : error LNK2019: unresolved external symbol "char const * const ColladaDOM141::COMMON_PROFILE_INPUT_OUTPUT" (?COMMON_PROFILE_INPUT_OUTPUT@ColladaDOM141@@3PEBDEB) referenced in function "private: class osgDAE::daeReader::ChannelPart * __cdecl osgDAE::daeReader::processSampler(class ColladaDOM141::domChannel *,class std::map,class std::allocator > > &)" (?processSampler@daeReader@osgDAE@@AEAAPEAVChannelPart@12@PEAVdomChannel@ColladaDOM141@@AEAV?$map@PEAVdaeElement@@VdomSourceReader@osgDAE@@U?$less@PEAVdaeElement@@@std@@V?$allocator@U?$pair@QEAVdaeElement@@VdomSourceReader@osgDAE@@@std@@@5@@std@@@Z) 1>daeWAnimations.obj : error LNK2001: unresolved external symbol "char const * const ColladaDOM141::COMMON_PROFILE_INPUT_OUTPUT" (?COMMON_PROFILE_INPUT_OUTPUT@ColladaDOM1
Re: [osg-users] Collada and OSG
Hi, I am using OSG 3.4.0 in windows 10 (VS2015). ... Thank you! Cheers, Uma -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69895#69895 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org