[osg-users] Conical and Parallel Projections

2009-01-13 Thread Renan Mendes
Hi, I'd like to know if there was a way to change the default projection in OSG. By default the view uses conical projection, but in some situations I'd need a parallel projection. How can I do that? Thanks, Renan ___ osg-users

Re: [osg-users] Conical and Parallel Projections

2009-01-13 Thread Renan Mendes
Thanks J-S and Gordon, that was exactly what I wanted. I'm sorry about the terminology, I was just translating literally from Portuguese, since I'm not familiarised with the terms in English. Renan ___ osg-users mailing list

[osg-users] World to Local Coordinates

2008-12-22 Thread Renan Mendes
Hi, I wanted to have the position of a certain shape of my scene in relation to another shape's coordinate system. As I read in the documentation, there is a member function of MatrixTransform that computes WorldToLocalMatrix, but I'm not sure on how to use it properly. This function has two

Re: [osg-users] World to Local Coordinates

2008-12-22 Thread Renan Mendes
Vincent, Thanks for your help, but what I want is exactly the opposite. To transform from world to local... Does anybody know the answer to my last email? Thank you. Renan M Z Mendes ___ osg-users mailing list

[osg-users] Problem with moving a group

2008-12-13 Thread Renan Mendes
Hi, everyone. In my application the user is suuposed to be able to select several shapes (cylinders, boxes and spheres) and move them altogether as if they were one. The obvious solution would be to attach this group of shapes to a matrixtransform node, and only change the matrix of this node.

[osg-users] Using OSG on Windows on Bootcamp

2008-12-11 Thread Renan Mendes
Hi, I have a MacBook and I'm using OSG on Windows, installed with bootcamp. My application doesn't detect the right mouse button even though I am using a regular two-button mouse (Microsoft's). I was wondering if anyone stumbled upon anything of the kind and could tell me wether the problem

Re: [osg-users] Using OSG on Windows on Bootcamp

2008-12-11 Thread Renan Mendes
Thanks, Robert, that really helped. Renan ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

[osg-users] Creating window

2008-12-10 Thread Renan Mendes
Hi, I'm currently running my application on full screen mode, because that's the default configuration. I wanted to know how to change this configuration to a true window. Thanks, Renan M Z Mendes ___ osg-users mailing list

Re: [osg-users] Creating window

2008-12-10 Thread Renan Mendes
Well, this is simple. Thanks! ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Re: [osg-users] Creating window

2008-12-10 Thread Renan Mendes
Thanks, Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

[osg-users] Picking

2008-12-10 Thread Renan Mendes
Hi, My question is regarding picking using LineSegmentIntersector. Based on what I have seen at the osg documentation, the following steps are required to get the coordinates of the intersection between a drawable at the scene and a line segment: 1) Create a LineSegmentIntersector:

Re: [osg-users] Picking

2008-12-10 Thread Renan Mendes
Thanks, J-S. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Re: [osg-users] Text at fixed position on screen

2008-12-09 Thread Renan Mendes
Hi, Dusten. I've looked at the osgtext example, but I couldn't figure out one thing (perhaps because I didn't know what to look for). There is one piece of text that says: text-setFontResolution(10,10); // blocky but small texture memory usage and it is displayed on the top left corner. No matter

Re: [osg-users] Text at fixed position on screen

2008-12-09 Thread Renan Mendes
What you need are multiple cameras. One moves when navigating in the scene, the other doesn´t. This is done in osgHud. But why does it work on osgText? I'm not sure I understand. Renan ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] Text at fixed position on screen

2008-12-09 Thread Renan Mendes
It works. Thank you Sukender and Andreas. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

[osg-users] Text at fixed position on screen

2008-12-08 Thread Renan Mendes
Hi, everyone. I'm using the osgText::Text class to create texts that are always parallel to the screen. In addition to that, I would like to fix them at a certain position of the screen, say on given coordinates (x,y). Any suggestion on how to do it? Thanks,

Re: [osg-users] osgViewer osgCool

2008-12-04 Thread Renan Mendes
Thanks. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

[osg-users] osgViewer osgCool

2008-11-27 Thread Renan Mendes
Hi, everyone. I was looking through the examples and found an effect that can be useful to my application. It is in osgviewer osgcool, but I can't find the code neither in the examples I've download with the osg package nor at the osg website... Does anyone have it and can send it to me?

Re: [osg-users] osgViewer osgCool

2008-11-27 Thread Renan Mendes
My mistake, I thought it was an example but it is only an argument for the application. Either way, I really wanted to learn how that particular particle effect was generated... How can I do it? Thanks, Renan ___ osg-users mailing list

Re: [osg-users] osgViewer osgCool

2008-11-27 Thread Renan Mendes
I will look into that. Thanks J-S. Renan ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Re: [osg-users] Pergunta

2008-11-04 Thread Renan Mendes
Hi, In my application, I'm trying to create a point (a small sphere) and alter its properties, like shininess and transparency. When I execute the following method, the point is created with shininess effects alright. However, no matter how much I change the values related to transparency

Re: [osg-users] Pergunta

2008-11-04 Thread Renan Mendes
Hi, Can. The stateSet whose mode you are setting is from the drawable or the geode? And how exactly can I do that without destroying my previous settings? (geode - getOrCreateStateSet() - setAttributeAndModes(this-material.get(), osg::StateAttribute::ON);) Thanks again,

Re: [osg-users] osg::Plane

2008-11-04 Thread Renan Mendes
OK, thanks. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

[osg-users] osg::Plane

2008-11-03 Thread Renan Mendes
Stupid but fast question. Just want to make sure I'm getting it right, as notations can vary and there is no explanation at the reference docs. Let's say I have an osg::Plane that can be represented as ax + by + cz + d = 0. The method asVec4() from that class gives me an osg::Vec4 object with x =

Re: [osg-users] Debugging using Visual Studio

2008-11-02 Thread Renan Mendes
If you get more crashes when doing that, you'll need to be more specific and provide for example a stack trace for us to help you find out what's going on. I've realized I wasn't too specific... Next time I'll come with details. But thanks, anyway. Renan

[osg-users] Debugging using Visual Studio

2008-10-31 Thread Renan Mendes
Hi, Until the present date, I've been using cout's to debug my application, which is really annoying, for I didn't know how to configure Visual Studio to be able to debug running a OSG application. At one time I've read how to do it, but I lost that source... Can anyone teach me how? Thanks.

Re: [osg-users] Debugging using Visual Studio

2008-10-31 Thread Renan Mendes
Hi, J-S. You've said that: If you want to debug into OSG itself, you'll need to have compiled OSG with debug symbols too (i.e. in Debug configuration), and link to that. I didn't understand this... What does it mean to debug into OSG itself? Another remark: You can debug your application

[osg-users] Callbacks: operator() call

2008-10-29 Thread Renan Mendes
Hi, I'm having some trouble when using a whole lot of callbacks at the same time... Apparently it has something to do with the order that they're being called. I want to know how is it done. Are the operator()'s executed one by one in a given order or are they executed in a parallel manner?

[osg-users] setViewMatrixAsLook at and getViewMatrixAsLookAt

2008-10-27 Thread Renan Mendes
Hi, I am using these two methods: setViewMatrixAsLookAt(eye, center, up) and getViewMatrixAsLookAt(eye, center, up) with the viewer's camera in this order and WITHOUT manipulating the camera elsewhere in my code. I don't have much experience with OSG but isn't the last method supposed to

Re: [osg-users] setViewMatrixAsLook at and getViewMatrixAsLookAt

2008-10-27 Thread Renan Mendes
Thanks, Paul and Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Re: [osg-users] setViewMatrixAsLook at and getViewMatrixAsLookAt

2008-10-27 Thread Renan Mendes
Now that you have explained to me how it works, maybe you could give me an idea on how to solve a small problem I have. In my application, the user can move the camera freely (all directions and eye positions), but when the camera's direction is close to a given one, it snaps into that given

[osg-users] Events and Key Detection

2008-10-08 Thread Renan Mendes
Hi, everyone. My messages have been kind of ignored these days, but I'll give it another try with a different problem: In my GUIEventHandler derived class, I'm doing the usual override of the osgGA::GUIEventHandler::handle() function. Well, I made that whole switch-case structure and I would like

Re: [osg-users] Events and Key Detection

2008-10-08 Thread Renan Mendes
Sorry, Robert, I think I wasn't very clear. What I meant was: when I detect a drag event, I'd like to also detect a keydown event. It would be like testing for simultaneity of events... Renan M Z Mendes ___ osg-users mailing list

Re: [osg-users] Events and Key Detection

2008-10-08 Thread Renan Mendes
Yeah, that was the kind of approach I was thinking in the beginning. I thought there would be something else. OK, then. Thanks, Jean and Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] Events and Key Detection

2008-10-08 Thread Renan Mendes
Thanks, Robert, that' s some useful information. Another thing: when is the handle method called exactly? My point is: If I want some other function to be called continuously, do I have to put it on the FRAME event, or if I only put it inside the handle method my objectives will be accomplished?

Re: [osg-users] Events and Key Detection

2008-10-08 Thread Renan Mendes
Thanks, Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

[osg-users] Linear Systems Solvers

2008-10-02 Thread Renan Mendes
Hi, there. I was wondering if there were any preexisting member functions that solve linear systems of 2 and 3 variables, already considering cases of numerical instability. I could create my own method, but I would be a little insecure about these particular situations... If anyone know

Re: [osg-users] Camera control and view matrix

2008-09-18 Thread Renan Mendes
Robert, The page I'm talking about that still references osg::Producer is http://www.openscenegraph.org/projects/osg/wiki/Support/Tutorials/CameraControl. Basically, all pages related to camera control tutorials. It even has a wiki editing note about this. Renan M Z Mendes

Re: [osg-users] Camera control and view matrix

2008-09-18 Thread Renan Mendes
Hi, Robert. You've said: As for examples of manage the view matrix, there should be examples in the archives, but in the end it all boils down to not using a CameraManipulator and instead calling on each frame: viewer.getCamera()-setViewMatrix(viewMatrix); How do I stop using the default

[osg-users] Camera control and view matrix

2008-09-17 Thread Renan Mendes
Hi, I need some references on camera control and view matrices. The tutorial in OSG's website is outdated, for it still makes use of osg::Producer. Can anyone send me a few suggestions? Thanks, Renan M Z Mendes

Re: [osg-users] Texture, Materials and Effects

2008-08-03 Thread Renan Mendes
Thanks, Robert. I'll have a look. Renan ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

[osg-users] Texture, Materials and Effects

2008-08-01 Thread Renan Mendes
Hi, Is there any example that deals with simple-to-use effects, change of texture, etc, so I can make my scene a little bit more attractive? Like making drawables have a metallic appearance. Thanks, Renan M

Re: [osg-users] MultiThreads in OSG

2008-05-07 Thread Renan Mendes
Thanks, Robert, for the tips. My intention when using multithreading is to try and solve a problem about an input device (I don't know if you remember me posting it). Well, the thing is, I'm putting the function that gets my device's output in the FRAME loop. But it locks the normal execution of

[osg-users] Using OSG NodeKits

2008-05-07 Thread Renan Mendes
Hi, everyone. I'm new to OSG and would like to know how to use the available nodekits, specially osgVRPN. I've learned from Mike Weiblen that osgVRPN supports my SpaceNavigator, an input device, but I don't know what are the necessary steps for that to work. Can anyone explain to me what to

[osg-users] MultiThreads in OSG

2008-05-06 Thread Renan Mendes
Hi, everyone. I've tried creating another thread in my application using the windows API (CreateThread, etc), but it seems that this thread has become a main thread, i.e, my program is not working as a multithreaded application. In my case, this means that I'm not even displaying the OSG

[osg-users] Adding input device Part 2

2008-04-22 Thread Renan Mendes
Hi, As some of you may remember, i was trying to add a new input device to my OSG application. This device was the SpaceNavigator. I had access to the code that gets the 3D coordinates from it any time it is activated. But, when it is idle, that code makes my application stop and wait for

Re: [osg-users] Adding input device Part 2

2008-04-22 Thread Renan Mendes
The best sollution you think, then, is using multithreads? ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

[osg-users] Disabling mouse cursor

2008-04-15 Thread Renan Mendes
Hi, everyone. I begun reading a thread by Guy in which he talked about disabling mouse cursor, and so I did it: I've instantiated an osgViewer::GraphicsWindow object, gw, and used gw.useCursor(false), but nothing happened. I've also tried some other operations, like resizing the window,

Re: [osg-users] Disabling mouse cursor

2008-04-15 Thread Renan Mendes
Yeah, I hadn't done that. But I've got one question still: My prototype was based on mouse events. If I keep the code to handle these last ones, is my application supposed to crash? Thanks, Renan ___ osg-users mailing list

Re: [osg-users] Directory not found

2008-04-10 Thread Renan Mendes
Thanks, Mattias. I have it all working, I just wanted to know why I had to add those paths in two different locations. I think I have it all figured out. Thanks again, Renan M Z Mendes ___ osg-users mailing

[osg-users] Directory not found

2008-04-08 Thread Renan Mendes
Hi, everyone. I've opened the examples that came with OSG and, after correctly configuring VS2005 (following step-by-step the installation process), I was able to compile them. I've tried then, to create a new and very simple project (with the same paths already configured), with the

Re: [osg-users] Directory not found

2008-04-08 Thread Renan Mendes
Sorry to ask you this, but is it in Project-Properties-References-Add Path? Renan ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Re: [osg-users] Directory not found

2008-04-08 Thread Renan Mendes
Hi, Mattias. Thanks for the information. Before that, I was having to use the examples' projects to create my own project, for I didn't know the whole configuration process. I've got one simple question, tough. You've said in your last email that: The paths can also be added

Re: [osg-users] Dark Side of The Moon

2008-04-06 Thread Renan Mendes
Hi, Paul. I've done what you've told me. I've made some tests which led me into thinking one thing, which I'd like you to correct me if I'm wrong and give me some further explanations: when I select ROTATE_TO_SCREEN, it looks like the image chosen as 'front' - the side displayed on the screen

Re: [osg-users] Dark Side of The Moon

2008-04-06 Thread Renan Mendes
Thanks, Paul, for everything. Renan ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

[osg-users] Dark Side of The Moon

2008-04-05 Thread Renan Mendes
Hi, I'm trying to do a dark-side-of-the-moon effect (nothing to do with Pink Floyd), i.e., I'm trying to have the same view of a certain object independently of how my camera is oriented, never showing it's 'dark side'. I thought of updating this object with some variation or component of my

Re: [osg-users] Dark Side of The Moon

2008-04-05 Thread Renan Mendes
Hi, Paul. Thanks for the tip about the AutoTransform. I'm not being able though to initialize the object I'm attaching to this node in the expected position... It's a 3D mouse arrow, composed of a cone and a cylinder at the bottom - very simple. When I do the following:

[osg-users] New Device Input

2008-04-03 Thread Renan Mendes
Hi, I'm working on a project that requires the use of a new input device, called space navigator. I have the method that gets the 6 coordinates from it. I'd like to know how to get it at every frame. I thought of using a callback, but it doesn't seem right, for the object from that class is

Re: [osg-users] New Device Input

2008-04-03 Thread Renan Mendes
Thank you, all. Very good ideas. I'll check into what you've said. Once again, thanks. Renan M Z Mendes ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Re: [osg-users] New Device Input

2008-04-03 Thread Renan Mendes
Thanks for everyone's advice. Renan M Z Mendes ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

[osg-users] Colors and Lighting

2008-03-28 Thread Renan Mendes
Hi, I'm new at OSG and computer graphics in general, so I'd like to ask a few very simple questions: 1) When I use an osg::Vec4 for setting the clear color, I have, of course, 4 parameters. The first three are the proportion of red, green and blue. But what does the last one do? 2)

Re: [osg-users] LINE

2008-03-27 Thread Renan Mendes
Thank you all, for the help provided. Renan M Z Mendes ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

[osg-users] Callbacks

2008-03-20 Thread Renan Mendes
Hi, I'm new in OSG and when I was reading about callbacks and how to implement them, I couldn't understand one thing: for every different callback you need a different class? Thanks, Renan M Z Mendes ___ osg-users

[osg-users] Assertion failure - using removeChild

2008-03-12 Thread Renan Mendes
Hi, everyone. I wrote the following code: case(osgGA::GUIEventAdapter::KEYDOWN): { if(ea.getKey() == ea.KEY_Delete) { if(!vprim.empty()) { vprim_itr = vprim.begin();

Re: [osg-users] get function in osg::Matrixf

2008-03-11 Thread Renan Mendes
Thanks, Gordon. I'll keep that in mind when I manage to change OSG's code. Renan M Z Mendes ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

[osg-users] get function in osg::Matrixf

2008-03-09 Thread Renan Mendes
Hi, I'm new in using open source software. Because of that I don't know how to modify the library's code according to my needs. For instance, I'd like to create a getCoefficients() function in osg::Matrix, but I don't know where to make that change. I'm using windows and I've followed the

[osg-users] Saving and Loading Scenes

2008-03-08 Thread Renan Mendes
Hi, I need some help on saving and loading scenegraphs. Reading the OSG documentation, specifically the osgDB namespace, I saw that I have no idea where to begin! Can someone give me a reference? Thanks, Renan M Z Mendes

Re: [osg-users] Saving and Loading Scenes

2008-03-08 Thread Renan Mendes
Benjamin, I've used this function (it compiled alright), but when running my aplication, there was an error message, saying that I didn't have the plugin for reading and writing files... I went to the OSG website and searched for reading and writing plugins, but there were so many, I

[osg-users] SpaceNavigator

2008-03-07 Thread Renan Mendes
Hi, Has anyone used the 3Dconnexion SpaceNavigator in an OSG application? I'm intending on using it as a mouse substitute (somehow create a mouse-like cursor to be displayed), and use its 3D direction signals to rotate and translate my shapes, and also my viewer. I don't know where to

Re: [osg-users] SpaceNavigator

2008-03-07 Thread Renan Mendes
OK, Mike. I'll have a look and come back with my questions. Thanks, Renan M Z Mendes ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

[osg-users] Transforms

2008-03-06 Thread Renan Mendes
Quick notation question: When I have a MatrixTransform* mt and a Matrix m and I do this: mt-postMult(m), which of the following am I mathematically doing? mt = mt * m; or mt = m * mt Thanks, Renan M Z Mendes ___ osg-users mailing list

Re: [osg-users] Stereoscopy, part 2

2008-02-24 Thread Renan Mendes
Thanks for your help. everyone. I haven't tested your suggestion yet, but when I do (probably Tuesday), I'll let you know. Renan M Z Mendes ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] Setting BoundingBox

2008-02-23 Thread Renan Mendes
Hi, Ulrich. This is what I've said in my first email: I am currently trying to implement 'snaps' in my application. I don't know if that's the standard nomenclature, so I'll explain briefly what I mean with that. A snap is basically a sudden transformation of the shape on the screen

[osg-users] Stereoscopy, part 2

2008-02-22 Thread Renan Mendes
Hi, It's been a couple of weeks since I first asked about stereoscopy in OSG. I've had an answer from Rémy (which I forgot to thank for, sorry), but I still have some questions on the subject. I've managed to use the stereoscopy option, which provided me with a split image of my scene.

[osg-users] Representing projections

2008-02-22 Thread Renan Mendes
Hi, In my application, I need to represent simple shapes' projections. For instance, project a line on a plane. I was thinking about using textures, but my problem is that my projection will have to be to be rotated and translated all the time, which, according to what I've noticed in some

[osg-users] Setting BoundingBox

2008-02-21 Thread Renan Mendes
Hi, everyone. I am currently trying to implement 'snaps' in my application. I don't know if that's the standard nomenclature, so I'll explain briefly what I mean with that. A snap is basically a sudden transformation of the shape on the screen to a certain orientation and position

Re: [osg-users] LineSegment and Plane Intersection

2008-02-18 Thread Renan Mendes
Hi, Robert. I am aware of the analytical way of solving my problems. Thanks, anyway. Renan M Z Mendes ___ osg-users mailing list osg-users@lists.openscenegraph.org

[osg-users] LineSegment and Plane Intersection

2008-02-17 Thread Renan Mendes
Hi, everyone. I'm having some trouble with computing the coordinates of the intersection between a osg::Plane and an osg::LineSegment. In addition, I'd like to be able to compute only the intersection with the plane, and forget about the rest of my scene... Is it possible? Thanks, Renan M Z

[osg-users] Stereoscopy in OSG

2008-02-12 Thread Renan Mendes
Hi, everyone. What is OSG's support on stereoscopy? I have a dual-head video card and I needed that the images shown in the two monitors were slightly different in terms of view angle (my final objective, of course, is to project these two images on a screen making use of the

[osg-users] Shape Intersection

2008-01-31 Thread Renan Mendes
Hi everyone, I need to detect when two shapes intersect and I need to know the point (or set of points) where it happens. I'm using shape drawables and I've been told that OSG doesn't have any support in that case. I was suggested, then, to fit a polytope around my shapedrawables and

Re: [osg-users] ShapeDrawables intersection

2008-01-24 Thread Renan Mendes
Hi, Robert. I think I really need a tutorial on intersections. How to compute them, how to locate it in my world coordinates, etc. I don't really know what Polytopes are, let alone deal with them... Could you give me a reference (or several) on the subject?

[osg-users] ShapeDrawables intersection

2008-01-23 Thread Renan Mendes
Hi, everyone. I'd like to know a way to detect intersection between two ShapeDrawables and its position. Thanks, Renan M Z Mendes ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] Creating shapes under mouse cursor

2008-01-11 Thread Renan Mendes
Hi, Jean-Sébastien. Andreas told me that I needed to create a method to compute the intersection of the line and plane. I was searching for a way reading the doxygen documentation and expecting something similar to what I had done with shapedrawable picking when I realised that neither

Re: [osg-users] decompose and osg::Quat

2008-01-08 Thread Renan Mendes
Hi, Jean-Sébastien. Thanks for the interest, I'll check into that link you gave me. Renan M Z Mendes ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] Creating shapes under mouse cursor

2008-01-08 Thread Renan Mendes
Hi, Andreas here a bit of code, which you will have to adjust to your setup (meaning that I use a GUI and you use a Viewer, where Functions for retrieving the mouse are different): // //Here you get the

Re: [osg-users] Creating shapes under mouse cursor

2008-01-07 Thread Renan Mendes
Hi Renan, what I do for this is the following: - compute the line behind the mouse cursor perpendicular to the screen. You will ned the transformation and view matrices for this - intersect this line with a plane parallel to the screen through the origin. You can use the line computed

[osg-users] decompose and osg::Quat

2008-01-07 Thread Renan Mendes
Hi, everyone. I've got a simple question that I'm sure everyone will be able to answer. When I have a matrix and use it in matrix.decompose (osg::Vec3 translation, osg::Quat rotation, osg::Vec3 scale, osg::Quat so), my second argument will be filled with numbers that are supposed to

[osg-users] Creating shapes under mouse cursor

2008-01-06 Thread Renan Mendes
Hi everyone. In my application, when I press the 'p' key, when no shape is selected, I create a small ShapeDrawable sphere and add it to the root node. I'd like to be able to create that shape right under the mouse cursor. I've tried using the coordinates from ea.getX() and ea.getY(), but

[osg-users] Mathematical foundations

2008-01-06 Thread Renan Mendes
Hi everyone, Since I'm new on the whole computer graphics world, I don't have the mathematical foundations needed to fully comprehend the geometric transformations involved in a scene graph and used by OSG in its methods. I'd like to ask anybody who knows about a good website that deals with

[osg-users] Bizarre crash

2008-01-04 Thread Renan Mendes
Hi, The most bizarre happened in my application during tests. When I open the prompt window to check some printed data, the program crashes and Windows closes it automatically. The most weird thing is that when I don't select the prompt window on the task bar, my application runs perfectly.

Re: [osg-users] Bizarre crash

2008-01-04 Thread Renan Mendes
No need. Solved. Thanks, Renan ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Re: [osg-users] Error: 'Debug Assertion Failure!'

2008-01-03 Thread Renan Mendes
Hi, Gordon. I've looked up the doxygen documentation, and the second argument of removeChild is numChildrenToRemove, which I thought stood for 'number of children to remove'. If so, wouldn't I want 1 child to be removed? Isn't my index correct? Thanks,

Re: [osg-users] Error: 'Debug Assertion Failure!'

2008-01-03 Thread Renan Mendes
Hi, Rafa, I've tried doing something like what you've said before: every time before I checked for selections with verifySelection(), I searched for a NULL member and erased it, like it's done below. Can you tell me why it still isn't working? Is there a logical flaw in my code?

[osg-users] Error: 'Debug Assertion Failure!'

2008-01-02 Thread Renan Mendes
Hi, everyone. When testing my application, an error message appeared saying: 'Debug Assertion Failure' and 'vector subscription out of range'. This error occured when: 1) I wrote the following code: case(osgGA::GUIEventAdapter::KEYDOWN): { if(!ponto.empty()) //

[osg-users] STL vectors and function calls

2007-12-29 Thread Renan Mendes
Hi, everyone. I've got quick question on STL vectors. I've created a class (let's call it MyClass) with the method 'bool MyMethod(std::vectorMyClass MyVector)' that calls another method 'void AnotherMethod()' that makes a simple check on a variable inherent to every instance of MyClass. How

Re: [osg-users] STL vectors and function calls

2007-12-29 Thread Renan Mendes
Thanks, Gordon. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

[osg-users] Path from ShapeDrawable to Parents above...

2007-12-24 Thread Renan Mendes
Hello, everyone. In my application, I use ShapeDrawables, which are selected by the user by mouse picking. An extract of the code concerning the picking is as follows: bool PickHandler::handle(const osgGA::GUIEventAdapter ea, osgGA::GUIActionAdapter aa) { osgViewer::Viewer* viewer =

Re: [osg-users] Traversing

2007-12-21 Thread Renan Mendes
Hi, Jean-Sébastien. OK, I've had some trouble with the first bug, but the second one I've corrected. I've sent you two messages. The last one got rid that ! problem. I was just testing the program in various manners to see where was the mistake. About the first error: I was told

Re: [osg-users] Traversing

2007-12-21 Thread Renan Mendes
Hi, Jean-Sébastien. I agree with you on the read more the provided documentation part. My last message was just so you knew I'm not completely idiot on the subject, although I recognise I need a lot of learning to do. Well, I thank you for this good lesson you've given me on picking.

Re: [osg-users] Traversing

2007-12-20 Thread Renan Mendes
Hi, Jean-Sébastien. When you've given me that code I've rearranged it in a way that would be more intuitive to me and it turned out to be this one below. Nothing much really. Just some methods calls,... well, see for yourself - nothing really changed. But I'm worried about something, since

  1   2   >