[osg-users] Geometry kernels?

2009-01-07 Thread Cory Riddell
I'm looking for comments and suggestions for using OSG with a geometry engine like ACIS, Parasolid, or Open Cascade. Can they work well together? Is it a useful combination? The application is CAD-like and involves interactively building up a model from discrete components. I found OSG when

[osg-users] Problem with pointlightmanip.exe example?

2009-01-07 Thread Cory Riddell
I've been running the pointlightmanip.exe example and as soon as I rotate even a tiny amount (using either the hand or the wheels), the top right sphere disappears. I've attached a screenshot but I suspect that will get filtered out by the list software. Is this an instance of

Re: [osg-users] Problem with pointlightmanip.exe example?

2009-01-07 Thread Cory Riddell
Cory Riddell wrote: I've been running the pointlightmanip.exe example and as soon as I rotate even a tiny amount (using either the hand or the wheels), the top right sphere disappears. I've attached a screenshot but I suspect that will get filtered out by the list software

Re: [osg-users] Geometry kernels?

2009-01-08 Thread Cory Riddell
features and plugins), but not a CAD/infrastructure/mining/whatever software. Please tell us if you find useful things. Sukender PVLE - Lightweight cross-platform game engine - http://pvle.sourceforge.net/ Le Wed, 07 Jan 2009 16:44:15 +0100, Cory Riddell c...@codeware.com a écrit: I'm

Re: [osg-users] Problem with pointlightmanip.exe example?

2009-01-08 Thread Cory Riddell
Ack! You're right of course, it's a Coin3D sample. I'm evaluating too many things at once... Sorry for the noise. Cory Jean-Sébastien Guay wrote: Hello Cory, I'm not sure why no one has answered you yet... I'll give it a shot. I've been running the pointlightmanip.exe example and as soon

[osg-users] Is OSG tied to OpenGL?

2009-01-13 Thread Cory Riddell
The subject line says it all- if other renderers (in my case DirectX) are available on a system, can they be used? A second question- are some of the UI toolkits better supported than others? I'm specifically thinking about comparing the wx stuff with Qt and MFC. -cr

[osg-users] VS Intellisense forOSG?

2009-01-21 Thread Cory Riddell
How do you make Visual Studio provide intellisense for OSG based apps? I'm running through the tutorials now and it would be helpful to get parameter info for the OSG API. I still have the OpenSceneGraph.ncb file that was generated when I built OSG and I presume that VS needs this file, but

Re: [osg-users] VS Intellisense forOSG?

2009-01-21 Thread Cory Riddell
it. Regards, Vincent. 2009/1/21 Cory Riddell c...@codeware.com How do you make Visual Studio provide intellisense for OSG based apps? I'm running through the tutorials now and it would be helpful to get parameter info for the OSG API. I still have the OpenSceneGraph.ncb file

[osg-users] how to do a cutting plane?

2009-01-22 Thread Cory Riddell
I've been evaluating a bunch of software and one product has cutting planes. For these, you define a plane and you can intersect it with your model and it clips the model. Follow this link for a better description:

Re: [osg-users] how to do a cutting plane?

2009-01-23 Thread Cory Riddell
Thank you! That is very close to what I need. I just didn't know where to look. I appreciate the pointer. Cory Jason Daly wrote: Cory Riddell wrote: I've been evaluating a bunch of software and one product has cutting planes. For these, you define a plane and you can intersect it with your

[osg-users] shutting down OSG

2009-01-30 Thread Cory Riddell
Is there a correct way to stop OSG and free all the resources that have been acquired by without stopping the application? I thought that when my osgViewer::Viewer instance went out of scope, everything would be released, but that doesn't seem to be the case. cory

Re: [osg-users] shutting down OSG

2009-01-30 Thread Cory Riddell
released? Robert. On Fri, Jan 30, 2009 at 2:57 PM, Cory Riddell c...@codeware.com wrote: Is there a correct way to stop OSG and free all the resources that have been acquired by without stopping the application? I thought that when my osgViewer::Viewer instance went out of scope, everything

[osg-users] CPU usage

2009-01-30 Thread Cory Riddell
When I run the osg viewer app and load just about any osg file (like cesna.osg), my CPU usage is a constant 23% - 30%. This is with no interaction, it is basically using an entire CPU core. Fortunatelly I have a 4 core machine, so it hasn't been a problem so far, but I'm wondering what this means

Re: [osg-users] CPU usage

2009-01-31 Thread Cory Riddell
at 8:36 PM, Cory Riddell c...@codeware.com wrote: When I run the osg viewer app and load just about any osg file (like cesna.osg), my CPU usage is a constant 23% - 30%. This is with no interaction, it is basically using an entire CPU core. Fortunatelly I have a 4 core machine, so it hasn't

Re: [osg-users] CPU usage

2009-02-02 Thread Cory Riddell
I'm running locally now and am seeing the same behavior. Running with --SingleThreaded makes no difference. Cory On Mon, Feb 2, 2009 at 9:53 AM, Adrian Egli OpenSceneGraph (3D) 3dh...@gmail.com wrote: Hi J-S i am working with NVidia GPU, and i have same behaviour. So there should be

Re: [osg-users] modelling geodes with children?

2009-02-03 Thread Cory Riddell
[mailto: osg-users-boun...@lists.openscenegraph.org] *On Behalf Of *Cory Riddell *Sent:* Tuesday, February 03, 2009 1:09 PM *To:* OpenSceneGraph Users *Subject:* [osg-users] modelling geodes with children? I'm looking for advice on typical patterns when modeling something that has

Re: [osg-users] modelling geodes with children?

2009-02-03 Thread Cory Riddell
On Tue, Feb 3, 2009 at 4:43 PM, Jean-Sébastien Guay jean-sebastien.g...@cm-labs.com wrote: I think the image you sent is a logical arrangement. A Group (or a Transform) does not itself have any geometry, it just specifies how it's children are arranged (in the case of a Transform). So yes,

[osg-users] modelling geodes with children?

2009-02-03 Thread Cory Riddell
I'm looking for advice on typical patterns when modeling something that has attachments (which may in turn have other attachments). I first looked for a node type that was a composition of Geode and Group but of course I didn't find anything. An example might help here. Say I want to model

Re: [osg-users] modelling geodes with children?

2009-02-04 Thread Cory Riddell
On Wed, Feb 4, 2009 at 10:48 AM, Paul Martz pma...@skew-matrix.com wrote: If your HandlebarNode will be used in many apps to render handlebars (I don't know, maybe you intend to make a series of bicycle simulators), then yes, maybe it is best to encapsulate it in its own class. But if you are

Re: [osg-users] OpenSceneGraph-2.8.0-rc1 tagged, please test

2009-02-04 Thread Cory Riddell
I built everything with Visual Studio 2005 on XP with no build problems. One minor glitch that may be my fault- when I ran the built the INSTALL target, it copied the executables to C:\Program Files\OpenSceneGraph rather than C:\Program Files\OpenSceneGraph-2.8 (I specified this in CMake). Cory

Re: [osg-users] OpenSceneGraph-2.8.0-rc1 tagged, please test

2009-02-04 Thread Cory Riddell
Yeah, I started wondering if I built the wrong source tree. I started the whole process over again and should know pretty soon. Even on a 4-core machine, it takes a while to build everything (but at least the build process can mostly run in parallel). Cory On Wed, Feb 4, 2009 at 2:21 PM,

Re: [osg-users] OpenSceneGraph-2.8.0-rc1 tagged, please test

2009-02-04 Thread Cory Riddell
Sorry for the false alarm. I rebuilt everything and and it seems to be working. Cory On Wed, Feb 4, 2009 at 2:45 PM, Cory Riddell c...@codeware.com wrote: Yeah, I started wondering if I built the wrong source tree. I started the whole process over again and should know pretty soon. Even

[osg-users] innocuous but annoying warning

2009-02-05 Thread Cory Riddell
When I compile my app (against an rc downloaded yesterday), I get a warning in uniform (line 318), geode (lines 93, 124), and lod (line 116) for the unsafe conversion of a size_t to an unsigned int: uniform(318) : warning C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible loss

Re: [osg-users] Sketchup rendering

2009-02-06 Thread Cory Riddell
Please post your results. I'm also very curious about how to achieve this affect. Thanks, Cory Serge Lages wrote: Thanks Guillaume, The page you've spotted give nearly the same result as osgFX::Cartoon, what I would like is to have all the edged (when adjacent 2 faces are not coplanar)

[osg-users] memory leak false positives on Windows

2009-02-10 Thread Cory Riddell
I (and others) have asked about apparent memory leaks reported in Visual Studio when an OSG app exits. The leak dump looks like this: Detected memory leaks! Dumping objects - {29751} normal block at 0x0293C970, 36 bytes long. Data: , E 2C 0B 45 10 00 00 00 00 01 00 00 00 01

Re: [osg-users] memory leak false positives on Windows

2009-02-10 Thread Cory Riddell
(true); You'll need to take about destruction order. Robert. On Tue, Feb 10, 2009 at 6:34 PM, Cory Riddell c...@codeware.com wrote: I (and others) have asked about apparent memory leaks reported in Visual Studio when an OSG app exits. The leak dump looks like this: Detected memory leaks

[osg-users] forcing a square aspect ratio

2009-02-10 Thread Cory Riddell
I've been playing with osgviewerMFC and I've noticed that when I open an osg file (like cow.osg), the rendering is stretched to fit the aspect ratio of the containing window. For example, if I resize the app to be wide then open the cow, I get a very long cow. If I make the window short and tall

Re: [osg-users] Memory Leak ... Windows

2009-02-10 Thread Cory Riddell
Adrian- For the record, I made my posting because I thought other Windows developers would like to know the source of at least some of the false positives. I wasn't claiming to have found a real leak. Cory Adrian Egli OpenSceneGraph (3D) wrote: Hi Robert, Since i am member of the

Re: [osg-users] forcing a square aspect ratio

2009-02-10 Thread Cory Riddell
, 1.f)); Any ideas? Cory Riddell wrote: I've been playing with osgviewerMFC and I've noticed that when I open an osg file (like cow.osg), the rendering is "stretched" to fit the aspect ratio of the containing window. For example, if I resize the app to be wide then open the cow, I

Re: [osg-users] Memory Leak ... Windows

2009-02-11 Thread Cory Riddell
It sounds questions about memory leak reports on Windows come up often. I'd like to address this in the FAQ. Any objections? Cory Robert Osfield wrote: Hi Adrian, In the early days of the OSG I wrote a few custom new/delete operators and the associated infrastructure for tracking memory,

Re: [osg-users] memory leak false positives on Windows

2009-02-11 Thread Cory Riddell
Jean-Sébastien Guay wrote: Why would perfectly good programming practices be avoided just because they cause false positives in one tool, on one platform? This is pretty much the same discussion as the one concerning warnings I had with Robert last week. The code should be a by-product of

Re: [osg-users] memory leak false positives on Windows

2009-02-11 Thread Cory Riddell
...@openscenegraph.net/msg11248.html Since then, the leak report works fine for me. If your project doesn't use MFC at all, it won't help. But if yes, it might be helpful. Jean-Claude Am 10.02.2009 um 20:02 schrieb Cory Riddell: Can anybody recommend a Windows-based memory

Re: [osg-users] forcing a square aspect ratio

2009-02-11 Thread Cory Riddell
,aspectRatio,z1,z2; camera-getProjectionMatrixAsPerspective(fovy,aspectRatio,z1,z2); aspectRatio=double(traits-width)/double(traits-height); camera-setProjectionMatrixAsPerspective(fovy,aspectRatio,z1,z2); Regards Moji the Great --- On Wed, 2/11/09, Cory Riddell c...@codeware.com wrote

Re: [osg-users] forcing a square aspect ratio

2009-02-11 Thread Cory Riddell
,aspectRatio,z1,z2); aspectRatio=double(traits-width)/double(traits-height); _viewer-getCamera()-setProjectionMatrixAsPerspective(fovy,aspectRatio,z1,z2); I'd like to update the osgviewerMFC sample app. How would I go about doing this? Cory Cory Riddell wrote: Moji the Great- I added the code

[osg-users] notify messages and console-less Windows apps

2009-02-13 Thread Cory Riddell
What happens to osg::notify() messages when the application has no console. For example, osgviewerMFC.exe. If you run it with OSG_NOTIFY_LEVEL=DEBUG set, you still don't see any messages. Any idea where they are going? Is there a way to specify a log file rather than stdout / stderr for the

Re: [osg-users] notify messages and console-less Windows apps

2009-02-13 Thread Cory Riddell
I wrote: What happens to osg::notify() messages when the application has no console. For example, osgviewerMFC.exe. If you run it with OSG_NOTIFY_LEVEL=DEBUG set, you still don't see any messages. Any idea where they are going? Is there a way to specify a log file rather than stdout / stderr

[osg-users] problem with Windows debug binaries?

2009-02-16 Thread Cory Riddell
I downloaded the debug and release binaries from http://www.openscenegraph.org/downloads/stable_releases/OpenSceneGraph-2.8/binaries/Windows/VisualStudio8/. When I try to run any of the exe's, I get a message that says: The application failed to initialize properly (0xc0022). Click on OK to

Re: [osg-users] problem with Windows debug binaries?

2009-02-16 Thread Cory Riddell
. Cory Sukender wrote: Hi Cory, I built these binaries. Do you have the SP1? If the problem is still ther, I'll may recompile entirely (who knows?)... Sukender PVLE - Lightweight cross-platform game engine - http://pvle.sourceforge.net/ Le Mon, 16 Feb 2009 17:18:36 +0100, Cory Riddell c

Re: [osg-users] problem with Windows debug binaries?

2009-02-16 Thread Cory Riddell
have the SP1? If the problem is still ther, I'll may recompile entirely (who knows?)... Sukender PVLE - Lightweight cross-platform game engine - http://pvle.sourceforge.net/ Le Mon, 16 Feb 2009 17:18:36 +0100, Cory Riddell c...@codeware.com a crit: I downloaded the debug and release

Re: [osg-users] problem with Windows debug binaries?

2009-02-16 Thread Cory Riddell
Jean-Sébastien Guay wrote: Hi Cory, 2. I untarred with cygwin's tar. Perhaps that does something funky with the permissions? Perhaps... Can you try with another tool? For example 7-zip, which is F/OSS. Wow- when I untar with 7-zip I get different results than when I untar with cygwin

Re: [osg-users] problem with Windows debug binaries?

2009-02-16 Thread Cory Riddell
I just did a little experiment with 7-Zip and ACL's. I created a file and gave it weird privileges. I tar'd it with cygwin. When I untar with cygwin, the ACL for the file is restored correctly. When I untar with 7-Zip, the ACL has been replaced with one that grants full access to everyone.

[osg-users] gradient background

2009-02-17 Thread Cory Riddell
I'd like to be able to create a color gradient background for the osg window rather than the default blue. Is the osghud example a good one to follow for this? That example draws the hud last. For a background, I think I would want to draw it first. Cory

Re: [osg-users] problem with Windows debug binaries?

2009-02-17 Thread Cory Riddell
Do end users download and install OSG? What on earth do they do with it? I believe the intent of the binary packages is to provide a shortcut for developers on Windows to get OSG and the dependencies. If that's the case, then it wouldn't make any sense to include the MSVC. The official

Re: [osg-users] problem with Windows debug binaries?

2009-02-17 Thread Cory Riddell
Luigi Calori wrote: If you are a developer and want to test OSG on different hardware platforms, then you need something that run with minimum hassle This might be a dumb question, but if you are really looking for minimal hassle, why not just statically link everything? Cory

Re: [osg-users] about the debug version of osgdemd.exe

2009-02-19 Thread Cory Riddell
Xuex- I was getting the same error message but in a different location and it turned out to be a permissions issue. Did you build the release and demo versions with the same user account? Do you get the error if you run the debug version as an administrator? Cory Robert Osfield wrote: Hi

Re: [osg-users] Packaging distribution under Windows

2009-02-24 Thread Cory Riddell
Luigi Calori wrote: I think that cpack support one windows installer (do not rimember which as I really hate installers: the best one is zip: install=unzip uninstall=remove) I agree that including dll is the bet way to go, in that case, I wouls suggest to include alsoMSVC runtime with the

Re: [osg-users] OFT: Interesting commentary of the future of OpenGL

2009-02-24 Thread Cory Riddell
I wouldn't like Microsoft to dump D3D. I think the software ecosystem is healthier if there is more than one solution. I think it would be hard to deny that the competition from D3D has helped advance OpenGL as well. Another scene graph product (HOOPS) lets you select different rendering

[osg-users] modifying the SG in another thread

2009-02-25 Thread Cory Riddell
I'm looking for some advice having OSG running in one own thread and modifying the scene graph in another. By this, I mean I've called viewer.run() in a separate thread. While it's running, I need to add, remove, and update nodes. From reading the quick start guide (a fantastic resource btw) I

Re: [osg-users] OFT: Interesting commentary of the future of OpenGL

2009-02-25 Thread Cory Riddell
Sukender wrote: There are many cons to such a competition, but I guess we all can agree with this, can't we? IMHO, neither D3D nor OpenGL should die. And finally, about having OSG to support D3D... Well I'm not *that* happy with it because D3D non-portability is an offence to the C++; but I

Re: [osg-users] OFT: Interesting commentary of the future of OpenGL

2009-02-26 Thread Cory Riddell
Everybody is talking like there aren't any high performance cross-API scene graphs nor could one be made. They do exist and they are expensive. I've also seen a bunch of messages dismissing the gamer market to make the argument that OpenGL is big everywhere else and thus D3D doesn't matter.

Re: [osg-users] OFT: Interesting commentary of the future of OpenGL

2009-02-26 Thread Cory Riddell
Robert- Robert Osfield wrote: Well the gaming market is very big, BUT the gaming market isn't just Windows/D3D, its much bigger than that. The Wii and Playstation2 have been the big consoles of the last ten years, neither of which have anything to do with D3D. MS would like to associate

[osg-users] modify children in node callback?

2009-03-02 Thread Cory Riddell
In general, is it ok to modify child nodes in a node callback method? That is, children of the node for which the callback was called? I assume it must be. If not, how do you add or remove nodes of a scene graph while running? Cory ___ osg-users

Re: [osg-users] modify children in node callback?

2009-03-02 Thread Cory Riddell
@lists.openscenegraph.org From: Cory Riddell c...@codeware.com Sent by: osg-users-boun...@lists.openscenegraph.org Date: 03/02/2009 02:45PM Subject: [osg-users] modify children in node callback? In general, is it ok to modify child nodes in a node callback method? That is, children of the node for which

[osg-users] unresolved symbol error with release mode build?

2009-03-04 Thread Cory Riddell
Today I switched my compiler settings over to test performance in release mode. For some reason, I'm getting an unresolved external symbol linker error for OpenThreads::Atomic::operator++(void). As far as I know, I'm not using any of the OpenThreads stuff explicitly, so I assume it is used

[osg-users] is osg::Referenced threadsafe by default?

2009-03-09 Thread Cory Riddell
In my app, I have the viewer running in its own thread. I only change the scene graph in a synchronized update callback (or to be more precise, I'm serializing access to the data that the callback uses). Using the default build settings, are the reference counting methods thread safe? Cory

Re: [osg-users] Simple question: How to set the icon that will be used when a viewer is realized?

2009-03-09 Thread Cory Riddell
I don't know if there is a platform independent way of setting this. What OS are you using? which icon are you talking about exactly? The one in the top right corner? Cory Matt McPheeters wrote: Hi guys, I found of an old way of doing this using Producer. I want the icon of the viewer

[osg-users] easy question on Object::setDataVariance()

2009-03-10 Thread Cory Riddell
If my app only modifies the scene graph in an update callback, is it still necessary to set the data variance to DYNAMIC on the nodes that may change? Cory ___ osg-users mailing list osg-users@lists.openscenegraph.org

[osg-users] public thanks to Paul for the quick start guide

2009-03-10 Thread Cory Riddell
Hi Paul- Just wanted to thank you for the quick start guide. It has been extremely helpful to me. Cory ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

[osg-users] stopping an asynchronous viewer

2009-03-11 Thread Cory Riddell
If I started the viewer with the run() method (in a separate thread), is it sufficient to call viewer-setDone(true) to stop it? Do I have to call viewer-stopThreading() after calling setDone? Cory ___ osg-users mailing list

[osg-users] converting mouse coordinates to model coordinates

2009-03-23 Thread Cory Riddell
display (x, y, z) coordinates in my status bar as the mouse moves (yay!). There's been a release or two since then. Is this still a decent strategy? Thanks, Cory Riddell ___ osg-users mailing list osg-users@lists.openscenegraph.org http

Re: [osg-users] [Fwd: Mesa and gldirect]

2009-03-23 Thread Cory Riddell
another layer between OSG and the hardware would result in having to chase GPU API's? Are you writing code that goes around OpenGL? Cory Riddell ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi

[osg-users] how to draw a half line?

2009-03-23 Thread Cory Riddell
in one direction? Cory Riddell ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Re: [osg-users] [Fwd: Mesa and gldirect]

2009-03-24 Thread Cory Riddell
J.P. Delport wrote: What always bothers me is the whole multiple window, multiple context thing. Correct me if I'm wrong, but I've always thought DirectX caters more for the single fullscreen 3D window case (games?). Is this not why CAD apps favour OpenGL? If DX can't do multiple

[osg-users] graph visualization tools?

2009-03-24 Thread Cory Riddell
this is something that might already be floating around out there but I haven't been able to find it. If you know of such a tool, I would appreciate a link to it. Thanks, Cory Riddell ___ osg-users mailing list osg-users@lists.openscenegraph.org http

Re: [osg-users] graph visualization tools?

2009-03-24 Thread Cory Riddell
*sigh* I found the dot plugin. Sorry for the noise. Cory Cory Riddell wrote: I am about to write a little Python tool for myself to take an osg file, extract basic node information, and create a .dot file for graphviz. I want very simple tree diagrams like Paul Martz made in the quick start

Re: [osg-users] [Fwd: Mesa and gldirect]

2009-03-25 Thread Cory Riddell
Hi Ulrich- Ulrich Hertlein wrote: On 25/3/09 1:07 AM, Paul Melis wrote: graphics performance was on very expensive Unix workstations. These days, the best performing graphics cards are for Windows and they are relatively inexpensive. I think that's why some CAD packages are dropping OpenGL

[osg-users] are bounties allowed?

2009-03-25 Thread Cory Riddell
I need a camera manipulator slightly different than the trackball manipulator. I've spent a couple of hours today on this and am now stuck. Somebody with a better grasp of quaternions could probably knock this out in 30 minutes. So... is it acceptable to post requests to the list with a bounty

Re: [osg-users] How to remove the blue background color

2009-03-25 Thread Cory Riddell
Yun's suggestion allows you to replace the blue color with another solid color. If you want an image (I want a gradient), do something similar to osgHUD, except draw first rather than last to put the image behind everything else. cory Lingyun Yu wrote: Hi dat, I think

Re: [osg-users] [build] How to open OSG in a CView MFC ?

2009-10-05 Thread Cory Riddell
Hi Nemo, Nemo Ulysse wrote: I already work on this example but the 3d model is open in full screen and I don’t manage to change that. Are you saying the example program is doing what you want, except you don't want the view to be maximized? If you click on the restore button, do you get

Re: [osg-users] Text color not what I'm expecting

2009-10-07 Thread Cory Riddell
1. Fixed the typo in the subject. (now - not) 2. I discovered that if I remove the material setting at the geode level, the material set in my osgText::Text instance takes effect. I'm still confused. Cory Cory Riddell wrote: Can somebody please take a look at the attached osg file

[osg-users] Resolved! Re: Text color not what I'm expecting

2009-10-07 Thread Cory Riddell
with the color I was expecting. One question, is the GL_LIGHTING bit the correct setting to turn off, or is there a more correct way to turn of material usage for a drawable? Thanks, cory Cory Riddell wrote: 1. Fixed the typo in the subject. (now - not) 2. I discovered that if I remove the material

[osg-users] Text::setFont() installs the Font's StateSet?

2009-10-08 Thread Cory Riddell
My app uses the same font everywhere. So, I have a global method to return a reference to a single Font instance: osg::ref_ptrosgText::Font getArialFont() { static osg::ref_ptrosgText::Font s_font = osgText::readFontFile("fonts/arial.ttf"); return s_font; } When I pass it to

[osg-users] MatrixTransform and DYNAMIC

2009-10-13 Thread Cory Riddell
Ok, stupid question. Does a MatrixTransform that will be modified in an update callback need to be declared DYNAMIC? Cory ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] Is there any examples about OpenThreads?

2009-10-13 Thread Cory Riddell
J-S' advice is right on. You also need to be careful about sharing data between threads. Multithreaded programming is a minefield of difficult to diagnose problems, most caused by locking order problems or data races. I'm still learning about this stuff too and am starting to get some really good

[osg-users] text height question

2009-10-14 Thread Cory Riddell
If I create some text using SCREEN_COORDS and a character size of 20, should I expect text 20 pixels high? Say I have three lines total (two \n characters in my text string), should it take up 60 pixels of vertical screen space? Cory ___ osg-users

Re: [osg-users] Is there any examples about OpenThreads?

2009-10-16 Thread Cory Riddell
Ulrich, Ulrich Hertlein wrote: Hi Cory, On 13/10/09 3:47 PM, Cory Riddell wrote: As I understand it, basically every core has it's own cache. So, if some data is shared between multiple threads, it may be loaded into multiple caches all at once. If one thread makes a change, the value

Re: [osg-users] OT: Re: Is there any examples about OpenThreads?

2009-10-19 Thread Cory Riddell
Hi Ulrich, Ulrich Hertlein wrote: On 16/10/09 6:37 PM, Cory Riddell wrote: Ulrich Hertlein wrote: ... Yes, CPUs usually have their own caches and data can be different in the different caches. However, this isn't what synchronization is solving. This problem (cache coherency) is handled

[osg-users] multiple root graphs?

2009-10-28 Thread Cory Riddell
I want to create a graph where some nodes have more than one parent, but every parent node doesn't necessary have a non-backtracking path back to the root node. Does this make sense? How about some bad ascii art: A | B C | / D A has been designated as the root but there is a node C that isn't a

Re: [osg-users] multiple root graphs?

2009-10-29 Thread Cory Riddell
Paul Martz wrote: Cory Riddell wrote: I want to create a graph where some nodes have more than one parent, but every parent node doesn't necessary have a non-backtracking path back to the root node. Does this make sense? How about some bad ascii art: A | B C | / D A has been

[osg-users] OpenGL error 'out of memory'

2009-11-09 Thread Cory Riddell
When I render my scene, I'm getting this in the log: Warning: detected OpenGL error 'out of memory' after RenderBin::draw(,) This is on a Windows XP machine with 4GB of RAM. I suspect it isn't complaining about running out of that memory though. Is it video RAM that I have run out of? Cory

Re: [osg-users] OpenGL error 'out of memory'

2009-11-10 Thread Cory Riddell
the osgprerender example and see if you get the same error. If you do it's a nvidia driver bug. I've come this a number of times and whilst there are legitimate reasons for getting the error in my case it's always been a driver bug. Kim. 2009/11/10 Cory Riddell c...@codeware.com: When I

[osg-users] backface culling question - black model?

2009-12-07 Thread Cory Riddell
I have an osg file that is about 50 MB (not huge but not trivial). When I load it, the model is entirely black, as if you are looking at a silhouette of it. If I press the 'b' key nothing happens. If I press it again, suddenly everything looks correct. If I keep hitting 'b', it toggles between the

Re: [osg-users] backface culling question - black model?

2010-01-05 Thread Cory Riddell
Hi Paul, Paul Martz wrote: Cory Riddell wrote: I've attached an example osg file. Load it with osgviewer and it looks black. Hit 'b' twice and suddenly it looks correct. It has something to do with the transform (to a left-handed system), but I haven't been able to track down the problem

[osg-users] monitoring OpenGL memory usage

2010-02-16 Thread Cory Riddell
I'm getting the infamous Warning: detected OpenGL error 'out of memory' after RenderBin::draw(,) message. Any advice on handling this? My scene isn't very big (maybe 150,000 vertices) and my machine has 3 GB of RAM. Do you monitor or profile memory usage to dynamically tune your application's

[osg-users] representing connected entities in a scene graph

2010-03-03 Thread Cory Riddell
How are you representing connected entities in your scene graph? For example, say you wanted to create a model of a guitar from headstock, fretboard, and body objects. I've been doing this with scene graphs that look like: Transform #1 Headstock geode Transform #2 Fretboard geode

Re: [osg-users] representing connected entities in a scene graph

2010-03-03 Thread Cory Riddell
I'm thinking about this more and I think the scene graph structure is probably solid. I'm really having problems coming up with object representations that facilitate generating the correct transforms and I that's not really an OSG issue and thus, is offtopic. Sorry. On 3/3/2010 3:57 PM, Cory

Re: [osg-users] better use smart-pointers or plain pointers in this case?

2009-03-26 Thread Cory Riddell
Christian Sam wrote: i think if i use smart-pointers, i would be able to check if the actual polygons in the scenegraph are still valid (check the ref counter) without the need of a dirty flag. but if the polygons get changed/deleted (e.g. when i want to load a new set of polygon

[osg-users] zoom and orthographic projections

2009-03-26 Thread Cory Riddell
to toggle between perspective and orthographic projections. Obviously I need to do more than just set the projection matrix, but I'm not sure where to start looking for clues. I've been searching on setProjectionMatrixAsOrtho. What should I be looking for? Thanks, Cory Riddell

Re: [osg-users] zoom and orthographic projections

2009-03-26 Thread Cory Riddell
t to this point life will be good once more. Robert. On Thu, Mar 26, 2009 at 2:35 PM, Cory Riddell c...@codeware.com wrote: I'm calling osg::Camera::setProjectionMatrixAsOrtho() and I'm getting an orthographic projection (this is, if I look directly at the face of a cube in wireframe, all I

Re: [osg-users] osganimate

2009-03-26 Thread Cory Riddell
According to this page: http://www.openscenegraph.org/projects/osg/wiki/Support/UserGuides/Examples you need to have OSG_FILE_PATH set. Then "osganimate --overlay" should work. It does for me. Cory ami guru wrote: Hello forum, I am going through the osg examples and i have an issue

Re: [osg-users] Fwd: osganimate

2009-03-26 Thread Cory Riddell
:$OSG_FILE_PATH:$FTGL_PATH: It just render the checkbox plane , but no animation But not working. -- Forwarded message -- From: Cory Riddell c...@codeware.com Date: 2009/3/26 Subject: Re: [osg-users] osganimate To: OpenSceneGraph Users osg-users@lists.openscenegraph.org

Re: [osg-users] CAD style rotation

2009-04-22 Thread Cory Riddell
I tried compiling this into the released 2.8 code and it complained about _horizontalLock and _verticalLock not being defined. Which source tree were you compiling against? Cory Martin Beckett wrote: I cleaned up the code a little to fit osg naming. Removed the Visual Studio

Re: [osg-users] CAD style rotation

2009-04-22 Thread Cory Riddell
Mojtaba and Martin, I like this manipulator and I think it is worthy of inclusion in OSG. Do you plan on submitting it to the submissions list? Cory Martin Beckett wrote: Should be bool _horizontalLock; bool _verticalLock; at the bottom of the SphericalManipulator definition.

[osg-users] preDrawCallback?

2009-05-01 Thread Cory Riddell
If I want to draw something in the client area of the window OSG is rendering into (via Windows GDI calls), would I do this in a preDrawCallback? (after setting an appropriate ClearMask in the camera) I want to have a gradient background and I'm thinking that I could do this easily with the

Re: [osg-users] preDrawCallback?

2009-05-04 Thread Cory Riddell
to accomplish a gradient background and it'll be a portable solution. Robert. On Sat, May 2, 2009 at 1:24 AM, Cory Riddell c...@codeware.com wrote: If I want to draw something in the client area of the window OSG is rendering into (via Windows GDI calls), would I do this in a preDrawCallback? (after

Re: [osg-users] preDrawCallback?

2009-05-04 Thread Cory Riddell
): camera-getProjectionMatrix() *= osg::Matrix::scale(1.0, aspectRatioChange,1.0); break; 23: default: break; 24: } 25: } 26: } Cory Robert Osfield wrote: On Mon, May 4, 2009 at 3:08 PM, Cory Riddell c...@codeware.com wrote: Thanks Robert and Paul. I just assumed that a direct GDI call

Re: [osg-users] preDrawCallback?

2009-05-04 Thread Cory Riddell
(AFAIK). I'm going to submit this change to the submissions list. Thanks for your help. Cory Cory Riddell wrote: I'm confused about the code that does the resize in GraphicsContext.cpp (part is pasted below). In my case, my background camera is a slave camera with an absolute reference frame. So

Re: [osg-users] Support becoming less and less personal

2009-05-06 Thread Cory Riddell
of people feel about mailing lists. I wouldn't consider it an insult though. You could always threaten to move everything to an nntp server :). Cory Riddell Robert Osfield wrote: Hi Art, On Wed, May 6, 2009 at 1:07 PM, Art Tevs arti_t...@yahoo.de wrote: So you think using only one n

[osg-users] osganimationtimeline question

2009-05-15 Thread Cory Riddell
When I try to run osganimationtimeline on my machine, I get an error that says: This example works only with osgAnimation/nathan.osg Does anybody have a copy of this file? I think it should probably be distributed with the example, or the example should be removed from the distribution. I'm

[osg-users] moving the camera to predefined locations smoothly

2009-05-15 Thread Cory Riddell
I'd like to add be able to move the camera to a predefined location at the click of a toolbar button (e.g. top, bottom, front, side, etc...). I don't want to change the up direction or the center (at) location, so I think all I need to do is change my eye location. I'm thinking about adding a

  1   2   >