Hi,
I just tested osg_ViewMatrix on OSG 2.2 win32 binaries using
glsl_dataflag.osg and drawtext4.frag from osgToy, and yes it does continue
to work.
While osg_ViewMatrix is preset by OSG, you do still have to declare it in
your shader (eg uniform mat4 osg_ViewMatrix), unlike the gl_* presets.
Hi,
As I recall, shader detachment is not fully implemented in OSG. GL has
its own reference-counting and garbage-collection of attachments between
glShaders and glPrograms, and putting a robust OSG wrapper around that
revealed several tedious corner cases that seemed a bit too
If I recall correctly, you can have as many CompositeViewers as you like/need.
Alberto
El Friday 26 October 2007 00:19:25 Emmanuel Roche escribió:
Still on the issue of multi-windows, I guess it's totally unsafe to use
multiple CompositeViewer at the same time, isn't it ?
For exemple doing
Hi Guys
I am setting my camera in perspective projection by specifying vertical
angle, aspect ratio and near, far plane. but it is resizing the cow
geometry such that the cow should come inside that view frustum. but I
want the actual view that is coming inside view frustum and that should
VisualStudio has a pragma for diabling warnings:
#pragma warning( disable : 4512 )
A code tweak might solve it too.
On 10/26/07, Cysneros, Nelson SPAWAR [EMAIL PROTECTED] wrote:
I'm getting these warning also.
Can I do anything to get rid of them?
Thanks
Yes Alberto, you're right, and I noticed this also, that's why my
GraphicsWindowWX class inherits from both wxGLCanvas and
osgViewer::GraphicsWindow as you can see in the files I joined... [this
solution comes from the osgviewerWX example].
And in addition to this you will notice that I'm not
On 10/25/07, Emmanuel Roche [EMAIL PROTECTED] wrote:
well hello again
Before I start making thousands of tests again, maybe this is a simple
question:
I read I just have to do view-getCamera()-setNodeMask
(0x0) if I want to disable the view but what's really happening when
each
Indeed, we are in a situation where the CompositeViewers don't share the
GraphicsWindows and everything happen in the same thread... yet, it's
currently not working for me:
as soon as I had a second tab only the last compositeviewer gets updated and
drawn, the others are frozen... :-(...
I keep
On 10/26/07, santosh [EMAIL PROTECTED] wrote:
Hi Guys
I am setting my camera in perspective projection by specifying vertical
angle, aspect ratio and near, far plane. but it is resizing the cow
geometry such that the cow should come inside that view frustum. but I
want the actual view that
On 10/26/07, Alberto Luaces [EMAIL PROTECTED] wrote:
If I recall correctly, you can have as many CompositeViewers as you like/need.
If the different viewers don't share any GaphicsWindows then it should
be fine to have multiple Viewer/CompositeViewers.
However, If all the viewers run in
Thanks for your prompt reply on this, I hadn't realized that I have to
declare the uniform. Works a treat now.
Regards,
Kim.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike
Weiblen
Sent: 26 October 2007 08:07
To: OpenSceneGraph Users
Subject: Re:
Hi,
does anybody already got some of the new geometry shader extension
EXT_geometry_shader4 working with OSG?
see tutorial at http://appsrv.cse.cuhk.edu.hk/~ymxie/Geometry_Shader/
Seems it should be possible to implement it straight forward in the OSG
core.
Regards Ralph
Okay, with this version joined, we have two tabs (not added dynamically,
sure, but it's a beginning...) with animation rendered correctly...
The only issue left is the mouse handling problem:
I added a trackballmanipulator on the view1 on each tab, assigned an
handling function to the
Hi Robert,
A first class top tip! osg::ClusterCullingCallback does exactly what I
was trying to do.
Thanks very much.
Chris.
Date: Thu, 25 Oct 2007 19:20:15 +0100
From: Robert Osfield [EMAIL PROTECTED]
Subject: Re: [osg-users] Backface culling for a group containing a
plane of
Hi Emmanuel
I have made a sample that demonstrate the integration of the OSG in
wxWidgets. It is a simple frame with a wxAUINotebook containing OSG
views. You can download source and binaries at
http://ips-dil.unil.ch/osg
Could you have a look at these and see if this suits your needs ?
I am
n 10/26/07, GuiYe [EMAIL PROTECTED] wrote:
There are two function in VirtualPlaneBuilder:
void DataSet::SourceData::readImage(DestinationData destination)
void DataSet::SourceData::readHeightField(DestinationData
destination)
In the two functions , what method do them use ?
Hi Chris,
I did something similar once, I am not totally sure but I think that the
vector should be multiplied before the matrix and that you need to multiply
only the direction component without the position. Once you have the
direction transformed in camera space to see if it faces the camera
Hello, I want ask the question about a function in
VirtualPlanetBuilder0.91.The function is : void
setGeoTransformFromRange(double xMin, double xMax, double yMin, double yMax)
{
_geoTransform.makeIdentity();
_geoTransform(0,0) =
Great !!
Indeed using the return value of makeCurrent() is exactly what I was looking
for :-D...
I'm testing your application right now !
cheers,
Emmanuel.
2007/10/26, Thibault Genessay [EMAIL PROTECTED]:
Hi Emmanuel
I have made a sample that demonstrate the integration of the OSG in
Whaooo !
Thanks ! thanks ! thanks !...
That's exactly what I was looking for... it's really great ! :-)
just a small point : you're binary distribution is not working : at least
osg24-osgUtil.dll is missing for me :-)
I have osg25-*** on my computer Could someone tell me what this means
On 10/26/07, Emmanuel Roche [EMAIL PROTECTED] wrote:
just a small point : you're binary distribution is not working : at least
osg24-osgUtil.dll is missing for me :-)
I have osg25-*** on my computer Could someone tell me what this means by
the way ? why this prefix on the dll files ?
Okay :-) this seems fair enough :-)
2007/10/26, Robert Osfield [EMAIL PROTECTED]:
On 10/26/07, Emmanuel Roche [EMAIL PROTECTED] wrote:
just a small point : you're binary distribution is not working : at
least
osg24-osgUtil.dll is missing for me :-)
I have osg25-*** on my computer
Hello Robert,
I was wondering about something. I find the nesting of node callbacks
a bit less intuitive and transparent than it could be, and I was
wondering if there would be interest in a small class I made called
CompositeNodeCallback. It's simply a vector of NodeCallbacks where the
Hello Robert,
You can nested callbacks within each other right now. It's a bit
awkward but does work for doing multiple callbacks.
Yes, as I said I find the current nested callback mechanism less
intuitive. It would be better if it were transparent to users of the
class, which is what I
Hi Michele,
Thanks for this. You're probably right, I was floundering about a bit
in that snippet of code I sent. Robert's suggestion contained a much
neater solution - using the sign of the dot product of the vectors
between eye point and face normal. i.e. cull when this is negative.
We have a waving flag in a pole on our virtual university campus.. I modeled
it in max, using the cloth system, and exported with a sequence helper, it´s
working fine in our simulation. We are working on animating crowds now,
using osgCal. If you need any specific help, I´ll be glad to be useful.
Hello Robert,
All present NodeCallbacks are effectively traversal callbacks - all
require you to call traverse.
Yes, but most NodeCallbacks will be standalone (i.e. no dependency
between callbacks), so calling them in series shouldn't be a problem,
or am I missing something?
Anyways,
Sorry about the late response here. My gmail filters decided to trash this
convo. I thought it was strange that no one responded so I dug on the lists
archive this morning and saw that you responded. Anyway...
Ok.
I'll give this a try. Yeah this is strange because my initial checkout and
build
Nice example, thanks!
I had to make some addition to have it compiling under VS 7.1 (and my wx and osg
libraries). But beside this, I noticed a strange thing:
load spaceship.osg (or fountain.osg) and you notice the motor plumes does not
animate. If
you make the model rotate, they start animate
Robert,
If I want to project textures onto a PagedLOD globe, can I do so from
inside the globe using a texgennode? It would be easiest to do if I
could set the texgennode's matrices to look out at the surface of the
earth from the origin.
Would the fact that this is a paged database screw
Hi
I am trying a static build os osg 2.2 with Visual Studio. I set the
cmake options, generated the solution files and started the build inside
VS. The linker could not link the applications (osgviewer etc) because
it could not find the lib OpenThreadsd.lib (I can only found a
Can someone post a simple CMakeFile.txt
for just compiling one .cpp outside the OSG 2 src
tree?
Or are we supposed to add our own apps at
OpenSceneGraph*/applications and
hack the supplied CMakefiles?
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail
Robert,
My images are in a lat/long coordinate system. How can I project them
onto a globe in spherical coordinates?
John
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert
Osfield
Sent: Friday, October 26, 2007 1:57 PM
To: OpenSceneGraph Users
Where in the cull traversal is an object tested to determine if it is on screen
and needs to be drawn? Is this automatic, or is this something we need to turn
on? Thanks.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
Hello Robert,
I'm open to having better support for multiple callbacks, I'm not at
point in dev work where its easy for me to dive in to what can be a
complicated topic, nor review submissiosns. Once things free up a bit
I get the backlong of submissions merged I'll add a few more comments
Use the TexGenNode with eye linear coordinates.
On 10/26/07, Argentieri, John-P63223 [EMAIL PROTECTED] wrote:
Robert,
If I want to project textures onto a PagedLOD globe, can I do so from inside
the globe using a texgennode? It would be easiest to do if I could set the
texgennode's
For an example of CMake bulid have a look at Present3Do or
VirtualPlanetBuidler as they both use CMake and build ontop of the
OSG.
http://present3d.osgforge.org/
http://virtualplanetbuilder.osgforge.org/
On 10/26/07, Nathan Bates [EMAIL PROTECTED] wrote:
Can someone post a simple
Past the first hurdle -- compiling!
I modified the CMake files in your zip file
and successfully compiled my OSG .cpp on Linux Ubuntu.
Thanks much!
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
Hello Nathan,
Past the first hurdle -- compiling!
I modified the CMake files in your zip file
and successfully compiled my OSG .cpp on Linux Ubuntu.
Glad I could help.
Don't be afraid to customize that setup too. Once you get to know the
syntax, it isn't that bad.
On 10/26/07, Argentieri, John-P63223 [EMAIL PROTECTED] wrote:
Robert,
My images are in a lat/long coordinate system. How can I project them
onto a globe in spherical coordinates?
There is no OpenGL texgen support for this type of mapping. You could
possible use a vertex program to do it, but
This is done automatically by osgUtil::CullVisitor. If you're using
osgProducer, SceneView, or osgViewer, it happens automatically.
-Paul
Where in the cull traversal is an object tested to determine
if it is on screen and needs to be drawn? Is this automatic,
or is this something we
Hi, I'm back to whine about my performance issues in OpenSceneGraph. Look at
this main loop:
while( !viewer.done() !timeToDie)
{
//*** SLOW CODE ***
osg::Vec3Array *vecs = dynamic_castosg::Vec3Array* (geom-getVertexArray());
if( vecs ) {
for(int i=0; itest_load_resolution; i++ ){
for(int
Hello,
I am curious as to why OSG never resets glActiveTexture or
glClientActiveTexture back to GL_TEXTURE0 after usage. In my opinion, this
should always be done. Specifically since glClientActiveTexture is set quite
often in display lists.
As a test, I modified osg and osgUtil to reset
Question for anyone who can help:
I am trying to compile OSG on Leopard and I get this error message,
has anyone else seen this?
Scanning dependencies of target osgDB
[ 99%] Building CXX object src/osgDB/CMakeFiles/osgDB.dir/FileUtils.o
/System/Library/Frameworks/IOKit.framework/Headers/
Not really enough information.
When SLOW CODE is enabled, did you run a profiler to determine whether the
bulk of your time is being spent in SLOW CODE or elsewhere in OSG? If
elsewhere in OSG, did you determine where? What kind of stats output did you
get when you enable the osgviewer
Hi All,
Sorry if the question is too vague.We're a bit perplexed about depth sorting
of polygons in OSG.
We've been trying to get some vis working that uses Geometry (display lists
or vbo's) where the primitives in
Geometry need to be blended back to front and we're seeing strange results.
The
Hi Gerrick,
This class works well for us:
http://cadkit.svn.sourceforge.net/viewvc/cadkit/trunk/OsgTools/Callbacks/SortBackToFront.h?view=markup
http://cadkit.svn.sourceforge.net/viewvc/cadkit/trunk/OsgTools/Callbacks/SortBackToFront.cpp?view=markup
BSD license. Hope it helps.
Per
On
47 matches
Mail list logo