Re: [osg-users] Problem loading IVE files

2011-11-15 Thread Christiansen, Brad
Hi,

It looks like osg can't load the ive dll. Have you checked that you have all 
the dependancies of the ive dll in your path?
From memory it has quite a few dependancies on various parts of OSG. The 
'depends.exe' tool is a great help on windows for this sort of thing (and its 
free) (http://www.dependencywalker.com/ )


Cheers,
Brad

From: osg-users-boun...@lists.openscenegraph.org 
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Héctor Martínez
Sent: Tuesday, 15 November 2011 2:55 PM
To: osg-users@lists.openscenegraph.org
Subject: [osg-users] Problem loading IVE files

Hi,

I have some problems loading IVE files. I have created a simple box with 
3DStudio and exported to IVE and is not working. If I export it to OSG format 
it works fine, but if I try with IVE or with OSGB it is not working at all.

When trying to load, the output is this:

FindFileInPath() : trying (...)\osgPlugins-3.1.0\osdb_ived.dll ...
FindFileInPath() : USING (...)\osgPlugins-3.1.0\osdb_ived.dll ...
DynamicLibrary::failed loading osgPlugins-3.1.0\osdb_ived.dll
Warning: Could not find plugin to read objects from file OSG/box.ive.
Error: Unable to load model OSG/box.ive.

Any ideas about the problem?

Thank you in advance.

Best regards


-
DISCLAIMER: This e-mail transmission and any documents, files and 
previous e-mail messages attached to it are private and confidential.  
They may contain proprietary or copyright material or information that 
is subject to legal professional privilege.  They are for the use of 
the intended recipient only.  Any unauthorised viewing, use, disclosure, 
copying, alteration, storage or distribution of, or reliance on, this 
message is strictly prohibited.  No part may be reproduced, adapted or 
transmitted without the written permission of the owner.  If you have 
received this transmission in error, or are not an authorised recipient, 
please immediately notify the sender by return email, delete this 
message and all copies from your e-mail system, and destroy any printed 
copies.  Receipt by anyone other than the intended recipient should not 
be deemed a waiver of any privilege or protection.  Thales Australia 
does not warrant or represent that this e-mail or any documents, files 
and previous e-mail messages attached are error or virus free.  

-

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Problem loading IVE files

2011-11-15 Thread Héctor Martínez
Hi Brad,

 

thank you for your reply. Yes, I forgot to mention the dependencywalker
output:

 

LoadLibraryA((…)\osgPlugins-3.1.0\osgdb_ived.dll) called from
OSG78-OSGDBD.DLL at address 0x009153F4 by thread 1.

Loaded OSGDB_IVED.DLL at address 0x0CDC by thread 1.  Successfully
hooked module.

Unloaded OSGDB_IVED.DLL at address 0x0CDC by thread 1.

LoadLibraryA((…)\osgPlugins-3.1.0\osgdb_ived.dll) returned NULL by thread
1. Error: The specified module could not be found (126).

 

But I cannot find anything missing. Just this error.

 

Cheers!

 

From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of
Christiansen, Brad
Sent: martes, 15 de noviembre de 2011 10:49
To: OpenSceneGraph Users
Subject: Re: [osg-users] Problem loading IVE files

 

Hi,

 

It looks like osg can't load the ive dll. Have you checked that you have all
the dependancies of the ive dll in your path?

From memory it has quite a few dependancies on various parts of OSG. The
'depends.exe' tool is a great help on windows for this sort of thing (and
its free) (http://www.dependencywalker.com/ )

 

 

Cheers,

Brad

 

From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Héctor
Martínez
Sent: Tuesday, 15 November 2011 2:55 PM
To: osg-users@lists.openscenegraph.org
Subject: [osg-users] Problem loading IVE files

 

Hi,

 

I have some problems loading IVE files. I have created a simple box with
3DStudio and exported to IVE and is not working. If I export it to OSG
format it works fine, but if I try with IVE or with OSGB it is not working
at all.

 

When trying to load, the output is this:

 

FindFileInPath() : trying (…)\osgPlugins-3.1.0\osdb_ived.dll …

FindFileInPath() : USING (…)\osgPlugins-3.1.0\osdb_ived.dll …

DynamicLibrary::failed loading “osgPlugins-3.1.0\osdb_ived.dll”

Warning: Could not find plugin to read objects from file “OSG/box.ive”.

Error: Unable to load model OSG/box.ive.

 

Any ideas about the problem?

 

Thank you in advance.

 

Best regards

-
DISCLAIMER: This e-mail transmission and any documents, files and previous
e-mail messages attached to it are private and confidential. They may
contain proprietary or copyright material or information that is subject to
legal professional privilege. They are for the use of the intended recipient
only. Any unauthorised viewing, use, disclosure, copying, alteration,
storage or distribution of, or reliance on, this message is strictly
prohibited. No part may be reproduced, adapted or transmitted without the
written permission of the owner. If you have received this transmission in
error, or are not an authorised recipient, please immediately notify the
sender by return email, delete this message and all copies from your e-mail
system, and destroy any printed copies. Receipt by anyone other than the
intended recipient should not be deemed a waiver of any privilege or
protection. Thales Australia does not warrant or represent that this e-mail
or any documents, files and previous e-mail messages attached are error or
virus free.
- 

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Mixing GLSL shaders and ARBv1.0 shaders

2011-11-15 Thread Christian Buchner
Sorry for reviving a dead horse (old thread).

I am having the same problem with Intel 4 Series notebook graphics
(latest drivers). As soon as anything renders GLSL prior in the scene
graph, the ARB shader based drawables disappear. This only affects
Intel, nVidia remains unaffected. I am using OSG 3.0.1.

I have tried setting the following states on any drawable that relies
on ARB shaders (hoping to remove the GLSL shader from the state set),
but the problem remained.

stateSet-setAttributeAndModes(new osg::Program,
osg::StateAttribute::OFF | osg::StateAttribute::PROTECTED);

stateSet-setAttributeAndModes(new osg::Program,
osg::StateAttribute::ON | osg::StateAttribute::PROTECTED);

stateSet-setAttributeAndModes(new osg::Program,
osg::StateAttribute::ON | osg::StateAttribute::OVERRIDE |
osg::StateAttribute::PROTECTED );

But none of these options worked.

I have been able to work around the problem by shifting the render
bins so that GLSL based drawables are drawn after ARB shader based
drawables

Intel has given me nothing but trouble with their drivers in the past.

Christian
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Problem loading IVE files

2011-11-15 Thread Torben Dannhauer
Hi,

ive support should work quite out of the box. What is your OS, compiler, OSG 
Version?

Cheers,
Torben

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=43890#43890





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] CullCallback problem

2011-11-15 Thread Filip Arlet
Hi,
I think I have similar problem. I studied osg code and find out, that 
NodeCallback set as Node-CullCallback is called only if node is not culled 
therefore (osgUtil::CullVisitor*)(nv-isCulled(node)) always return false.
I want to implement dynamic line style lod, where shoud I start ?
... 

Thank you!

Cheers,
Filip

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=43891#43891





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Problem loading IVE files

2011-11-15 Thread Héctor Martínez
Hi Torben,

thank you for your reply. I am using Windows 7, Visual Studio 2010
Professional and OSG is version 3.0.0.

Cheers

-Original Message-
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Torben
Dannhauer
Sent: martes, 15 de noviembre de 2011 12:14
To: osg-users@lists.openscenegraph.org
Subject: Re: [osg-users] Problem loading IVE files

Hi,

ive support should work quite out of the box. What is your OS, compiler, OSG
Version?

Cheers,
Torben

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=43890#43890





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] NVIDIA Driver Problem?

2011-11-15 Thread Paul Palumbo
Repeatedly calling osgviewer cow.osg is not the problem. This works just fine.

If there is a problem in OSG, it is probably in that a resource associated with 
osgViewer::Viewer isn't being freed unless the application exits. I've had this 
same problem before and Robert fixed a GL resource cleanup problem.

The probably is evident when the X server is restarted between these calls to 
create the osgViewer::Viewer.  I don't think it matters any if the restart is 
inside the program or not as long as it happens when no osgViewer::Viewer is 
active. 

No fear in restarting the X server. I do it about 20-30 times a day :-).

Paul P.

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=43893#43893





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [vpb] Terrain Height as Texture

2011-11-15 Thread Jonathan Klein
Well, the problem is, that I need the surrounding heights. It is a terrain 
visualisation project and i need to calculate things like openness (some 
Ambient Occlusion related thing) or terrain roughness, for which I need for 
example a 5x5 kernel around my pixel, so a heightmap lookup would be the 
easiest..

It seams that there is no way to extract that information just form the vertex 
data (because the vertex shader only processes one vertex at a time).

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=43894#43894





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Lighting problem

2011-11-15 Thread Hartmut Leister
Hello OSG users,

I'm having a lighting problem in my osgviewerQt (derived from [1]) application 
with a self created drawable object.
All my spheres are basically looking like this [2], with this weird spot on top 
of all spheres.

Has anybody an idea, 
a) what could be causing this or (more important)
b) how to stop it?

Has anyone stumbled upon this himself before?

Grateful for any advise
Hartmut

[1] 
http://www.openscenegraph.org/projects/osg/browser/OpenSceneGraph/trunk/examples/osgviewerQT?rev=7995
[2] http://www-user.tu-chemnitz.de/~harl/mail_halde/osg/Sphere_dots.png
-- 
frag nicht - du könntest eine antwort erhalten

Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osgviewerQt-Example

2011-11-15 Thread Patrick Buder
bump?

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=43896#43896





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [vpb] Terrain Height as Texture

2011-11-15 Thread Jean-Sébastien Guay

Hi Jonathan,


It seams that there is no way to extract that information just form the vertex 
data (because the vertex shader only processes one vertex at a time).


Yes, sounds like what you need is more than what I thought you needed :-)

I don't think VPB supports that out of the box, but others may correct 
me, I have not used VPB that much. But you can surely load the height 
map from a texture. Then it comes down to knowing what texture 
coordinates in the height map correspond to each vertex / pixel, I guess 
you'd have to modify VPB to pass this as vertex attribute data or 
something like that.


Hope this helps,

J-S
--
__
Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com
   http://www.cm-labs.com/
http://whitestar02.dyndns-web.com/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] How to: Adding blurring effect to my moving osg::Node/Geode?

2011-11-15 Thread Atilla Selem
Hi,
In osgmotionblur example, blurring effect is added to the single instance of 
osgViewer::Viewer:Windows by adding a derived MotionBlurOperation.
How can i add that blurring effect to my individual geode/Node in my scene? i 
want some of my moving objects blur so i need to set some of them with blurring 
when they move and remove blurring when they stop moving.

Can osg::Operation instances be added other than Windows or Viewers?
Should i use some other callbacks for nodes or geodes?
... 
Thx..

Atilla.

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=43898#43898





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Lighting problem

2011-11-15 Thread Chris 'Xenon' Hanson
On 11/15/2011 6:58 AM, Hartmut Leister wrote:
 Hello OSG users,
 I'm having a lighting problem in my osgviewerQt (derived from [1]) 
 application with a self created drawable object.
 All my spheres are basically looking like this [2], with this weird spot on 
 top of all spheres.

  This is normal:
http://en.wikipedia.org/wiki/Specular_highlight

 Has anybody an idea, 
 a) what could be causing this or (more important)
 b) how to stop it?

  It happens on shiny smooth curved surfaces lit by a singe point light source.

-- 
Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com 
http://www.alphapixel.com/
  Digital Imaging. OpenGL. Scene Graphs. GIS. GPS. Training. Consulting. 
Contracting.
There is no Truth. There is only Perception. To Perceive is to Exist. - 
Xen
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [vpb] osgdem: color terrain isntead of texture mapping it

2011-11-15 Thread Ethan Fahy

zonk wrote:
 
 the triangle mesh of the terrain will represent the resolution of the DEM, 
 not of the texture. Usualy texture resolution is higher than the DEM ones, 
 therefore you would reduce your image resolution if you don't use textures 
 but try to assign each vertex a color.
 
 But nevertheless you can access the color in the texture:
 Perform an intersection and you will get the vertex indices of the primitive 
 you intersect. Additionally you'll get the ratio of the intersection between 
 the vertices, then you can interpolate the coordinates of the 3 vertices and 
 you have the texture coordiante you need to lookup the color in the texture.
 


Thanks for the advice.  

To clarify, my two geotiff files that I am feeding into osgdem both have the 
same pixel resolution.  I used gdal_translate to convert dted data into one 
geotiff, and used gdal_translate to convert a 16-bit floating point raster file 
with actual temperatures into a geotiff that has had those temperatures scaled 
to 0-255.  I couldn't get osgdem to handle the original 16-bit raster file that 
hadn't had the temperatures scaled to 0-255.  The plan was to encode the 
temperatures in the rgb values in a geotiff, use osgdem to create the osg file, 
read that osg file into my osg program, then decode the rgb values in the osg 
file so that I could perform data analysis on the temperatures.  I also need to 
be able to change the colors of the primitives in the osg terrain after 
performing calculations on the temperatures.  This is what prompted my original 
question asking about how I could access the temperatures at each primitive; I 
wanted to use a node visitor, grab the rgb values from e
 ach, do some math, then recolor the primitive.  I know it's a convoluted 
solution but it's all I could think to do with my limited osg skills.  Is there 
an obvious alternative workflow that I'm missing besides doing what you say and 
finding intersections?  I am trying to add as little computational overhead as 
possible in this process so that the node recoloring process won't take 
forever.  Note: I use the --geocentric and --POLYGONAL flags with osgdem; I 
like the way it creates a geocentric database, and I need that aspect of it so 
that I can easily place objects on the terrain using lat lon values, which I'm 
already doing.  Thanks again for your support.

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=43900#43900





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Get camera X rotation angle in rads?

2011-11-15 Thread Paul Griffiths
I now wish to get the z rotation angle of the camera in degrees.

How do I do it?

ive got my :

Code:

osgGA::TrackballManipulator* man;
...



and if i go 

Code:

osg::Matrixd mat = man-getMatrix();
float angle = mat.getRotate().z();



but if i spin my camera doing a 360 the result is not in degrees.

What am I doing wrong?

Thanks.

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=43901#43901





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Get camera X rotation angle in rads?

2011-11-15 Thread Chris 'Xenon' Hanson
On 11/15/2011 2:36 PM, Paul Griffiths wrote:
 I now wish to get the z rotation angle of the camera in degrees.

http://forum.openscenegraph.org/viewtopic.php?t=9073


-- 
Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com 
http://www.alphapixel.com/
  Digital Imaging. OpenGL. Scene Graphs. GIS. GPS. Training. Consulting. 
Contracting.
There is no Truth. There is only Perception. To Perceive is to Exist. - 
Xen
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Get camera X rotation angle in degrees?

2011-11-15 Thread Paul Griffiths

Code:
void getEulerFromQuat(osg::Quat q, double heading, double attitude, double 
bank) 
{
double limit = 0.49;
double sqx = q.x()*q.x();
double sqy = q.y()*q.y();
double sqz = q.z()*q.z();
double t = q.x()*q.y() + q.z()*q.w();

if (tlimit) // gimbal lock?
{
heading = 2 * atan2(q.x(),q.w());
attitude = osg::PI_2;
bank = 0;
}
else if (t-limit) 
{
heading = -2 * atan2(q.x(),q.w());
attitude = - osg::PI_2;
bank = 0; 
}
else
{ 
heading = atan2(2*q.y()*q.w()-2*q.x()*q.z() , 1 - 2*sqy - 
2*sqz); 
attitude = asin(2*t);
bank = atan2(2*q.x()*q.w()-2*q.y()*q.z() , 1 - 2*sqx - 2*sqz);
} 
} 



--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=43903#43903





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Lighting problem

2011-11-15 Thread Ulrich Hertlein
Hi Hartmut,

On 16/11/11 0:58 , Hartmut Leister wrote:
 I'm having a lighting problem in my osgviewerQt (derived from [1]) 
 application with a self created drawable object.
 All my spheres are basically looking like this [2], with this weird spot on 
 top of all spheres.
 
 Has anybody an idea, 
 a) what could be causing this or (more important)
 b) how to stop it?
 
 Has anyone stumbled upon this himself before?

I'm not quite sure what 'weird spot' you're talking about?  The highlight?  The 
black
sphere behind the green one (that looks like another geometry to me)?

Cheers,
/ulrich
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Lighting problem

2011-11-15 Thread Shayne Tueller
Hi,

What you're seeing is the specular highlights based on your light source and 
material properties. To turn this off, set your specular material rgb and 
shininess to 0.0.

Since OSG uses OpenGL under the hood, it would be helpful to understand the 
OpenGL lighting model...:)

Shayne

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=43905#43905





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Problem loading IVE files

2011-11-15 Thread Christiansen, Brad
Hi,

Just checking you don't have multiple version of OSG in your path. You said 
bellow that you are using version 3.0.0 of OSG yet the output you posted from 
dependency walker lists OSG version 3.1.0.

If you do have both version on your path, this could be your issue.

Cheers,

Brad

-Original Message-
From: osg-users-boun...@lists.openscenegraph.org 
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Héctor Martínez
Sent: Tuesday, 15 November 2011 6:32 PM
To: osg-users@lists.openscenegraph.org
Subject: Re: [osg-users] Problem loading IVE files

Hi Torben,

thank you for your reply. I am using Windows 7, Visual Studio 2010
Professional and OSG is version 3.0.0.

Cheers

-Original Message-
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Torben
Dannhauer
Sent: martes, 15 de noviembre de 2011 12:14
To: osg-users@lists.openscenegraph.org
Subject: Re: [osg-users] Problem loading IVE files

Hi,

ive support should work quite out of the box. What is your OS, compiler, OSG
Version?

Cheers,
Torben

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=43890#43890





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


-
DISCLAIMER: This e-mail transmission and any documents, files and 
previous e-mail messages attached to it are private and confidential.  
They may contain proprietary or copyright material or information that 
is subject to legal professional privilege.  They are for the use of 
the intended recipient only.  Any unauthorised viewing, use, disclosure, 
copying, alteration, storage or distribution of, or reliance on, this 
message is strictly prohibited.  No part may be reproduced, adapted or 
transmitted without the written permission of the owner.  If you have 
received this transmission in error, or are not an authorised recipient, 
please immediately notify the sender by return email, delete this 
message and all copies from your e-mail system, and destroy any printed 
copies.  Receipt by anyone other than the intended recipient should not 
be deemed a waiver of any privilege or protection.  Thales Australia 
does not warrant or represent that this e-mail or any documents, files 
and previous e-mail messages attached are error or virus free.  

-

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org