Re: [osg-users] Intersection with a ray
Hi, I know this is old, but I was wondering what your solution was? I need to do a similar task. ... Thank you! Cheers, Geoff -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=36571#36571 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] File Size Limit on OSG::Image?
Hi, Thanks for the response. For some reason I never thought about running out of memory, and I am only catching a general exception. I've been playing around with Photoshop, and just assumed that since it could open the image of that size, that it should be fine. Guess it uses a lot of the scratch disk for loading it since i just have an XP machine with 4gb. Looks like I'll have to try and locate a machine with more memory and Windows 7 then... ... Thank you! Cheers, Geoff -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=35042#35042 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] File Size Limit on OSG::Image?
Hi, I am currently working on creating a poster image from several images and the file size is pretty large. Currently the one I am trying to create is 65250 wide x 22500 pixels in height (Image needs to be large) Currently I am doing the following: Code: posterImage = new osg::Image; posterImage->allocateImage( (mHeight), (mWidth), 1, GL_RGBA, GL_UNSIGNED_BYTE ); Right now it is giving me an exception when trying to allocate that image. Is there a size limit on it, or am I doing something wrong? ... Thank you! Cheers, Geoff -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=35036#35036 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Creating Image from Openflight file
Hi, Unfortunately, I cannot as the only one I have is our proprietary one, and it is rather large. I am also not really a modeler, and don't have the tools easily accessable to create one. I did try an IVE file, which shows up properly in the viewer, but when I use my test program, it is missing a large portion of it, as well as some smaller pieces. Is it a correct assumption that the IVE contains all the data necessary, and doesn't need any external references? Again, this one is proprietary, but I can see if it happens with one that is freely available to use as an example. I will also work on piecing together a cleaned version of my test code, but it is very similar to the OSGPoster example in function (which also doesn't give me the correct output) Thank you! Cheers, Geoff -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=32563#32563 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Creating Image from Openflight file
Hi, In looking into this a little bit more, it appears that it is not picking up a lot of the externally referenced textures and flt files. When i load the main FLT file, it will load in OSGViewer and show properly, but when I load it with my program, it seems to only load the the last referenced FLT file. The structure of the file is this: Main | +--+---+---+--+ #1 #2 #3 #4 #5 Each number is translated to it's proper position in the main file Another thing I noticed is that the FLT files are all built with the same origin, Meaning #1 through #5 are all built at origin 100,100 for X,Y. Not sure if this has anything to do with my issue, where they might be getting overlapped by each subsequent one when being built. Thank you! Cheers, Geoff -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=32424#32424 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Creating Image from Openflight file
Hi, Ok, I need a small program to go through an openflight database and produce tile images of the database at a specified size of 2250x2250. Each pixel will correspond to 1ft in my database. I have an example program that I made that will run with a small FLT file that is less than a tile size. It will also work when loading in a larger FLT file, but will only show one of the parts of the file, and will not show the other referenced files. Is there a setting I need to change inorder for it to go through the other referenced files to get it to work? I can open this in OSGViewer and it will load the whole image without issue from the references. I am also looking at the OSGPoster example submission, as it is similar to what I need to do, but can't seem to get it to function properly. Also, I am fairly new at OSG and graphics programming. Thank you! Cheers, Geoff -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=32378#32378 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Working without PATH variables
Just to confirm, OSG does appear to look in the current directory. I created a very basic test case. My folder contains the EXE, each of the required OSG dlls, and the one image plugin I am using (bmp). I then have a subdirectory, which I access in code via relative directory structures "media/file.bmp". Thanks for all the help. I look forward to testing the workings of this code on linux as soon as I get my laptop back :). - Geoffrey. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=10130#10130 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Working without PATH variables
Thankyou for the quick replies guys, I'll try those suggestions. As for what I'm working with, I usually develop on Windows, simply because I like VisualStudio as an IDE. My software is generally designed to work "anywhere" if I can wrangle it. Thanks again, - Geoffrey. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=10071#10071 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Working without PATH variables
Hi guys, I've been spending a few days playing around with OSG in my spare time, and I'm wanting to try to put together a small project using it. I was just wondering, how would I go about creating a project that does -not- use PATH variables to find information? For example, to find the compiled DLLs or to find a media folder under the executable's current directory. Sorry for this being a bit of a newbie question, it just seems like the project relies quiet heavily on these path variables in order to find any files, and I'd prefer not to require people using my software to have to create such. Thank you for your time, - Geoffrey. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=10061#10061 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Units in an IVE File
I am having a little bit of an issue with some of my files. I have a database that is in FLT format. I can load it into my program, and it takes a while, but when I query the height at a given x,y location, I get the proper values. Now, i have taken this file and converted it using the osgconv.exe into an IVE file for better performance. This works well when loading it into my viewer, but when I try and query the height at a given x,y, the values I get back are erratic and not remotely close to what i am looking for. is there some way that the units in the ive could be getting messed up (or does it even have a notion of units) and if not, what do I need to do to make sure the number that I get returned is in Feet? Thanks. Geoff ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Issue creating a stand alone DLL
I haven't tried it with the redistributable package, but both machines have VS2005 on them, the only difference is that I did not compile and install OSG on the laptop, which is where it isn't working. This is my first DLL project, and one of the first few I am doing on VS2005, so I am not 100% up to speed with the IDE. I was able to get my DLL to register on the laptop after I copied a bunch of the OSG .DLL's onto it, but when i went to use it in my program, CoCreateInstance was returning an error of 8007007E. I am not sure what this means. Any help is appritiated. The project just going into OSG and retrieds all the z values it intersects with at a given X and Y location. Nothing fancy, just easier than trying to compile OSG with Borland C++Builder. Geoff On Wed, Nov 26, 2008 at 1:52 PM, Cole, Charles E. (LARC-B702)[GENEX SYSTEMS] <[EMAIL PROTECTED]> wrote: > Hi Geoff, > > Not sure of your particular use, but I have written COM components for > Windows that use the OSG components, and have deployed those on other > machines without issues. These were all developed using VS2005. > > There's no real magic as far as I know. I did have to install the > Visual C++ 2005 Redistributable Package that's available from Microsoft > (this installs the runtime libraries). I also had to register the > components (for DLL's using regsvr32.exe and for EXE's using the EXE > name with "/regserver" appended). > > Have you tried installing the redistributable package? > > Chuck > >> -----Original Message- >> From: [EMAIL PROTECTED] [mailto:osg-users- >> [EMAIL PROTECTED] On Behalf Of Geoff >> Sent: Wednesday, November 26, 2008 10:42 AM >> To: OpenSceneGraph Users >> Subject: [osg-users] Issue creating a stand alone DLL >> >> Ok, I am having a problem creating a stand alone DLL that wraps some >> functionality of OpenSceneGraph so that I can use it via COM in my >> CodeGear C++ Builder app. >> >> I have created the dll, and have been successful in using it on my >> development machine, but only in debug mode and only on that machine. >> >> My question is, is there a proper way to create a DLL in Visual Studio >> 2005, using C++, and encapsulating it so that it can be deployed onto >> other machines? Any help would be greatly appretiated as I have >> exhausted my knowledge and the deadline is fast approaching. >> ___ >> osg-users mailing list >> osg-users@lists.openscenegraph.org >> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or > g > ___ > 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] Issue creating a stand alone DLL
Ok, I am having a problem creating a stand alone DLL that wraps some functionality of OpenSceneGraph so that I can use it via COM in my CodeGear C++ Builder app. I have created the dll, and have been successful in using it on my development machine, but only in debug mode and only on that machine. My question is, is there a proper way to create a DLL in Visual Studio 2005, using C++, and encapsulating it so that it can be deployed onto other machines? Any help would be greatly appretiated as I have exhausted my knowledge and the deadline is fast approaching. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Turn off Automatic Units to Meter convertsion
Ok, I checked my modal, and it is set to feet. I was able to explicitly state noUnitConversion as the first responses stated and I was able to get it to work. This appears to tell me that the default FLT loader actually does a conversion to meters. Thanks for the help. Geoff On Mon, Oct 20, 2008 at 1:02 PM, Paul Martz <[EMAIL PROTECTED]> wrote: > By default, the FLT loader does not convert. So, if you are expecting feet > but appear to be getting meters (everything is about 1/3 the size you > expect) then the header of your FLT file probably has an incorrect value in > the "units" field. If true, this is a problem with your model and not a > problem with OSG. > > More information on options to control the FLT plugin can be found here: > http://www.openscenegraph.org/projects/osg/wiki/Support/KnowledgeBase/OpenFl > ight > -Paul > > > >> >> I am wondering how I can turn off the automatic Units to >> Meters conversion that is taking place when I load my >> OpenFlight file into a osg:::Node. My file is in Feet, which >> is what my program uses, and I would like to use some of my >> old code that uses feet without having to do the conversion myself. >> >> Thanks >> ___ >> osg-users mailing list >> osg-users@lists.openscenegraph.org >> http://lists.openscenegraph.org/listinfo.cgi/osg-users-opensce > negraph.org >> > > ___ > 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] Turn off Automatic Units to Meter convertsion
I am wondering how I can turn off the automatic Units to Meters conversion that is taking place when I load my OpenFlight file into a osg:::Node. My file is in Feet, which is what my program uses, and I would like to use some of my old code that uses feet without having to do the conversion myself. Thanks ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osgViewer::Viewer question
Ok, I am looking at the example, but since this is new to me, some of it isn't exactly clear. It looks like it is running things a couple times. When I run the project with my .FLT file, it doesn't give me any intersections either. Is there something special I should be doing? Also, since there appears to be two types, Which method would be the best to use, Intersection Group or Line of Sight? The ZValue I am looking for will not necessarily be the first ZValue that I find (going top to bottom) as I have some objects that I want to move under. Sorry for being a pain, and thanks for the help again. Geoff On Fri, Oct 10, 2008 at 10:02 AM, Robert Osfield <[EMAIL PROTECTED]> wrote: > Hi Geoff, > > Have a look at the osgintersection example for the range of utils for > doing intersections. > > Robert. > > On Fri, Oct 10, 2008 at 2:55 PM, Geoff <[EMAIL PROTECTED]> wrote: >> Ok, how would I do the geometry queries without it? The only reason I >> am using the Viewer is because I was given this project that does what >> I need, just on the commandline for a single X,Y, whereas I need to do >> it for a bunch of X,Y's in the same database. >> >> Basically, for my project, I need to create a DLL that loads a >> specified OpenFlight database file, then allows me to query ZValues >> based on given X,Y coordinates repeatedly. I have the DLL outline >> created, and am now just working on moving the code from the >> commandline project over into it. If there is a better way to go about >> getting the information out of it, I am all ears and eager to learn. >> >> Thanks for all the help so far. I am trying to read all the messages I >> can, and wish I had figured out this message list sooner. >> >> Geoff >> >> On Fri, Oct 10, 2008 at 9:47 AM, Robert Osfield >> <[EMAIL PROTECTED]> wrote: >>> Hi Geoff, >>> >>> osgViewer::Viewer has a default constructor and will work just fine >>> without the command line arguments. In fact most of the OSG examples >>> don't use ArgumentParser at all. So just remove the ArgumentParser >>> bits and you'll get on just fine. >>> >>> If all your need to do is geometry queries then you don't even need a >>> Viewer at all, you only use the Viewer if you actually need one. >>> >>> Robert. >>> >>> On Fri, Oct 10, 2008 at 1:43 PM, Geoff <[EMAIL PROTECTED]> wrote: >>>> Ok, forgive me if this is a basic question, as I am just starting out with >>>> OSG. >>>> >>>> I have a project that I was given that runs via the commandline, >>>> creates a osgViewer::Viewer based on the arguments passed via the >>>> command line and then retrieves all Z values at a given x,y location. >>>> Right now I have an osg::ArgumentParser that handles the incoming >>>> arguments, but then that gets passed to the viewer. >>>> >>>> What I am looking to do is remove the commandline arguments as I am >>>> trying to make this project into a DLL library to use with another >>>> application. Is there a way to create the viewer without passing in >>>> the osg::ArgumentParser object, and if so, could someone point me to >>>> the documentation on it, or an example? >>>> >>>> Thanks again. >>>> >>>> Geoff >>>> ___ >>>> 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 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 mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osgViewer::Viewer question
Ok, how would I do the geometry queries without it? The only reason I am using the Viewer is because I was given this project that does what I need, just on the commandline for a single X,Y, whereas I need to do it for a bunch of X,Y's in the same database. Basically, for my project, I need to create a DLL that loads a specified OpenFlight database file, then allows me to query ZValues based on given X,Y coordinates repeatedly. I have the DLL outline created, and am now just working on moving the code from the commandline project over into it. If there is a better way to go about getting the information out of it, I am all ears and eager to learn. Thanks for all the help so far. I am trying to read all the messages I can, and wish I had figured out this message list sooner. Geoff On Fri, Oct 10, 2008 at 9:47 AM, Robert Osfield <[EMAIL PROTECTED]> wrote: > Hi Geoff, > > osgViewer::Viewer has a default constructor and will work just fine > without the command line arguments. In fact most of the OSG examples > don't use ArgumentParser at all. So just remove the ArgumentParser > bits and you'll get on just fine. > > If all your need to do is geometry queries then you don't even need a > Viewer at all, you only use the Viewer if you actually need one. > > Robert. > > On Fri, Oct 10, 2008 at 1:43 PM, Geoff <[EMAIL PROTECTED]> wrote: >> Ok, forgive me if this is a basic question, as I am just starting out with >> OSG. >> >> I have a project that I was given that runs via the commandline, >> creates a osgViewer::Viewer based on the arguments passed via the >> command line and then retrieves all Z values at a given x,y location. >> Right now I have an osg::ArgumentParser that handles the incoming >> arguments, but then that gets passed to the viewer. >> >> What I am looking to do is remove the commandline arguments as I am >> trying to make this project into a DLL library to use with another >> application. Is there a way to create the viewer without passing in >> the osg::ArgumentParser object, and if so, could someone point me to >> the documentation on it, or an example? >> >> Thanks again. >> >> Geoff >> ___ >> 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 mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] osgViewer::Viewer question
Ok, forgive me if this is a basic question, as I am just starting out with OSG. I have a project that I was given that runs via the commandline, creates a osgViewer::Viewer based on the arguments passed via the command line and then retrieves all Z values at a given x,y location. Right now I have an osg::ArgumentParser that handles the incoming arguments, but then that gets passed to the viewer. What I am looking to do is remove the commandline arguments as I am trying to make this project into a DLL library to use with another application. Is there a way to create the viewer without passing in the osg::ArgumentParser object, and if so, could someone point me to the documentation on it, or an example? Thanks again. Geoff ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Using OSG with Borland C++ Builder 2007
Right now I am using XP Pro, OSG 2.6.0, CMake 2.6 path 2. The error I was getting is listed exactly as I had it in the first message. I did read that there is a Borland tag for the CMake, but couldn't find a whole lot of documentation on it. Right now I am trying to create a COM DLL with VS2005 that I can use in Borland, but that's slow going as it's my first VS project. Geoff On Tue, Oct 7, 2008 at 3:58 PM, Robert Osfield <[EMAIL PROTECTED]> wrote: > Hi Geoff, > > Borland C++ isn't a compiler that others use in the OSG community, or > at least not publicly so I'm afraid you are probably on your own with > the need, and the ability to fix problems. The OSG is written is > pretty clean C++ and compiles with a range of compilers so if Borland > C++ is up to scratch as a Standard C++ compiler then you could > probably get things to compile. > > For others to help guide you/help you out you'll need to provide more > information about the OS version, the OSG version, CMake version, as > well as more details about the specific compiler errors - for instance > copy the exact compiler error you get and we'll be able to help > dissect, without this info all we can is shrug our shoulders and move > on. > > Robert. > > On Tue, Oct 7, 2008 at 8:32 PM, Geoff <[EMAIL PROTECTED]> wrote: >> Ok, I just recently got tasked with getting some information out of an >> OpenFlight database for use in our current program, which is written >> in Borland C++ Builder 2007 (BCB2007). I tried to open up a sample >> application, and got errors with some of the math functions, which I >> was able to resolve, but now I am getting an error with DatabasePager: >> >> [BCC32 Error] DatabasePager(375): E2247 >> 'DatabasePager::_databasePagerThreadPaused' is not accessible >> >> I was wondering if there was anything special that needed to be done >> to use OSG with BCB2007? I read that I may need to compile it with >> BCB2007 before I can use it, but haven't found anything conclusive >> yet. Could someone point me in the right direction with this? >> >> >> 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 > ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Using OSG with Borland C++ Builder 2007
Ok, I just recently got tasked with getting some information out of an OpenFlight database for use in our current program, which is written in Borland C++ Builder 2007 (BCB2007). I tried to open up a sample application, and got errors with some of the math functions, which I was able to resolve, but now I am getting an error with DatabasePager: [BCC32 Error] DatabasePager(375): E2247 'DatabasePager::_databasePagerThreadPaused' is not accessible I was wondering if there was anything special that needed to be done to use OSG with BCB2007? I read that I may need to compile it with BCB2007 before I can use it, but haven't found anything conclusive yet. Could someone point me in the right direction with this? Thanks ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org