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
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
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
_
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
__
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 cam
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 that,
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
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
osg-users@lists.openscen
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
http://lists.openscenegraph.org/listinfo.cgi/os
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?
T
Thanks, Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Hi,
I am using these two methods: setViewMatrixAsLookAt(eye, center, up)
and getViewMatrixAsLookAt(&eye, ¢er, &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 retur
Thanks, Paul and Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
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 direc
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?
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.
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 wit
>
> 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
_
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 =
a
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
(valu
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,
OK, thanks.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
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?
Th
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
osg-users@lists.
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
Thanks.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
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,
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
>
> 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.
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
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
osg-users@l
Well, this is simple. Thanks!
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Thanks, Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
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:
Thanks, J-S.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
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 is
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
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.
Th
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
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@lists.
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 mail
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@lists.openscenegra
Hi, everyone.
I have a class called Point that is derived from MatrixTransform. An
instance of this class always has a Geode child, which has a Drawable, which
is a ShapeDrawable. For better understanding of things, I'll use a simple
shape for a drawable, let's say a sphere.
Let's suppos
Hi, Robert.
I'm sorry, Robert, but would you mind explaining a little bit more on how do
I get access to this list? And from this, how do I choose specifically the
Drawable leaf?
Thanks,
Renan
___
osg-users mailing list
osg-users@lists.openscenegraph.o
Hello, Jean-Sébastien.
Although it didn't seem so, I have looked through the doxygen
documentation. The thing is that they aren't good enough for someone who
hasn't any experience what so ever with this kind of programming. Some of
the methods aren't fully explained, at least to my understa
Hi, Jean-Sébastien.
I'm gonna take advantage of the fact you are there and ask you one
thing. I tried using that last part of code you've given me, but my compiler
acused an error:
1>.\Classe Pick Handler.cpp(23) : error C2682: cannot use 'dynamic_cast' to
convert from 'osg::ref_ptr' to 'osg
Hey, don`t you ever worry about it! I'm lucky enough you do answer my
questions.
Thanks again,
Renan M Z Mendes
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
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
awable.valid()) nest and I saw that it never entered the 'for'...
Just in case you've erased my previous messages, I'm copying the new code
with the appear-if-worked messages (that didn't appear).
Thanks
Renan Mendes
bool PickHandler::handle(const osgGA::GUIE
There was a mistake in my previous message. I was testing the code after
subtle changes but I forgot to change it back to normal... (But it doesn't
work all the same...)
bool PickHandler::handle(const osgGA::GUIEventAdapter& ea,
osgGA::GUIActionAdapter& aa)
{
osgViewer::Viewer* viewer = dynami
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 th
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.
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 = dyn
Hi, Paul.
What I really want to do is to be able to deal with the instance of
the class created by me, which has a drawable part that is selectes on the
screen. All the methods return the parents in the form of osg::Node, but
what I want is to be able to deal with that instance of the class
Hi, Paul.
I've managed to do it on my own. Thanks anyway.
Renan M Z Mendes
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
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::vector MyVector)' that calls another method 'void
AnotherMethod()' that makes a simple check on a variable inherent to every
instance of MyClass.
How do I writ
Thanks, Gordon.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
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()) //
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,
Hi, Rafa.
I'll try and do that. Thanks.
Renan M Z Mendes
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
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?
Th
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. Bu
No need. Solved.
Thanks,
Renan
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
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 th
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
In 3d coordinates... I know, we'll have to do something about the depth.
Renan M Z Mendes
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Oh, that is already done, but thanks for the advice.
Renan M Z Mendes
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> 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 comp
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 repre
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
http://lists.openscenegraph.org/listinfo.cgi/osg-user
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 mou
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 lines
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
ht
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?
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 compute
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 stereoscopi
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 Mend
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
http://lists.openscenegraph.org/listinfo.cgi/osg-users-
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 i
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. W
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
exa
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
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
http://lists.openscenegraph.org/listinfo.cgi/osg-use
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
osg-use
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 beg
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
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
___
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 didn't
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
ins
Robert,
Sorry it took me forever to reply. The getCoefficients was just an
example. The point was just to be able to change OSG's source code when I
felt the need. Sorry if it was a bad example...
Renan M Z Mendes
___
osg-users mailin
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
Hi, everyone.
I wrote the following code:
case(osgGA::GUIEventAdapter::KEYDOWN):
{
if(ea.getKey() == ea.KEY_Delete)
{
if(!vprim.empty())
{
vprim_itr = vprim.begin();
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 mailing
OK, thank you.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Hi,
I'd like to know if there is some way of making the LINE that is used to
draw geometry based on OpenGL primitives a little bit thicker.
Renan M Z Mendes
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://list
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
Hi, everyone.
I'd like to know how to create highlights around drawables. In my case
I'm using ShapeDrawables, I don't know if that changes anything.
Thanks,
Renan M Z Mendes
___
osg-users mailing list
o
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) Thi
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 n
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
1 - 100 of 155 matches
Mail list logo