Re: [osg-users] Caching images

2012-06-28 Thread He, Yefei
Hi, Doug,

Thanks very much for the tips. I will give it a try. After I sent my last 
email, I also noticed that the option for caching was handled at the registry 
level, before it got down to the functions in the reader plugins that actually 
read the image files.

Best Regards,

Yefei

-Original Message-
From: osg-users-boun...@lists.openscenegraph.org 
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Doug McCorkle
Sent: Wednesday, June 27, 2012 9:35 PM
To: OpenSceneGraph Users
Subject: Re: [osg-users] Caching images

Hi Yefei,

I do this in my code:

osgDB::ReaderWriter::Options* opt = new osgDB::ReaderWriter::Options;
opt-setObjectCacheHint( osgDB::ReaderWriter::Options::CACHE_IMAGES );
osgDB::Registry::instance()-setOptions( opt );

which seems to solve the problem you describe. I am not sure why your method 
would not work.

Doug

On Jun 27, 2012, at 7:03 PM, He, Yefei wrote:

 Hi, Robert,
  
 I’m working on an application that loads multiple ive files and the memory 
 usage gets quite high. A lot of these ive files share textures. It appears 
 that the image files for these textures gets loaded multiple times. For 
 example, if I just run “osgviewer cow.osg cow.osg”, the reflect.rgb file gets 
 loaded twice. Is there any consideration to cache the images to reduce memory 
 usage? There is a ReaderWriter option  CACHE_IMAGES. However, I don’t think 
 it is actually being recognized by any of the image reader plugins. At least 
 not by the jpeg or rgb plugins, I believe. Is the mechanism in place to 
 actually cache images? Any examples I can refer to?
  
 Thanks,
  
 Yefei
  
 ___
 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
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Author permissions on openscenegraph.com

2012-06-28 Thread Jordi Torres
Hi Bryan,

Thanks for your help, you are very wellcome :). The author guidelines is in
its first stage, I'll try to finish it as soon as possible and let the
community know about it. So if you have any doubt don't hesitate to ask.

Cheers.


2012/6/27 Thrall, Bryan bryan.thr...@flightsafety.com

 Robert Osfield wrote on 2012-06-27:
  I have just updated your permissions to publisher, editor and author
  so you'll be able to write a page and then publish it directly without
  requiring publishes to review your work.

 Thanks!

  On 27 June 2012 18:01, Thrall, Bryan bryan.thr...@flightsafety.com
 wrote:
  I'd like to help migrate the OpenSceneGraph.org website over to the
 new
  OpenSceneGraph.com, but I'm having a bit of trouble:
 
  I have a login at OpenSceneGraph.com but I think I don't have author
  permissions because I don't see a button or link anywhere allowing me
 to
  submit new pages or edit existing ones. The Migration Tasks and Author
  Guidelines pages mention contacting the website admins about getting
  author permissions, but I don't see anywhere that actually lists who
 those
  people are or how to contact them.
 
  Now, from the mailing list, I know Jordi Torres is the person to talk
 to :)
 
  So, I have two questions:
 
  Jordi, would you give me the permissions I need to help with the
  migration?
 
  Can we add a page to OpenSceneGraph.com describing who the website
  admins are and how to contact them?

 --
 Bryan Thrall
 Principal Software Engineer
 FlightSafety International
 bryan.thr...@flightsafety.com


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




-- 
Jordi Torres Fabra

gvSIG 3D blog
http://gvsig3d.blogspot.com
Instituto de Automática e Informática Industrial
http://www.ai2.upv.es
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [Off Topic] General OpenGL / DirectX/3D troubleshooting strategy for virtual machines

2012-06-28 Thread Martin Naylor
Hi,

OSG is OpenGL only so it won't work with DirectX particularly on an VMware
machine unless it support OpenGL, virtual box DOES support OpenGL that
allows you to bang the hardware direct if you want to change!

I don't believe VMware supports direct OpenGL but may support DirectX, but
of course OpenGL wont work

Try Virtual box?Unless I am missing the point?

 

Kind Regards

 

Martin

 

From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of John
Richardson
Sent: 28 June 2012 00:43
To: 'OpenSceneGraph Users'
Subject: [osg-users] [Off Topic] General OpenGL / DirectX/3D troubleshooting
strategy for virtual machines

 

Hello,

 

Apologies for the general off topic question but this is the only Linux 3-D
list I lurk on.

 

Configuration is a Windows XP box with 3 virtual Machines [1 Windows XP VM,
2 Linux VM's]. Google Earth works on the VM using OpenGL but I need it to
work using DirectX/3D. DirectX is installed but the VM reports that it
cannot be found. VMware Vsphere is most likely the VM generator. The goal is
for the VM to get access to the graphics card on the bare metal.

 

Any thoughts? Troubleshooting strategies?

 

John F. Richardson

 

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


Re: [osg-users] Ubuntu insensitive to middle-click, extending SphericalManipulator as workaround

2012-06-28 Thread Alberto Luaces
Matthew Grimes writes:

 Hi Robert, thanks for the reply.

 I am using the OSG 3.01 that is part of Ubuntu 12.04's repositories
 (libopenscenegraph-dev 3.0.1-2). I did make-clean and rebuild my
 project after upgrading to Ubuntu 12.04.

Hi Matthew,

in Debian, with libopenscenegraph-dev 3.0.1-3+b2, which is where
Ubuntu's OSG is based, I have no problems with osgviewer and the
middle-click event.  However I will try your manipulator in order to see
if I can reproduce the problem.

-- 
Alberto

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


Re: [osg-users] Caching images

2012-06-28 Thread Robert Osfield
Hi Yefei,

On 28 June 2012 07:12, He, Yefei yefei...@uiowa.edu wrote:
    Thanks very much for the tips. I will give it a try. After I sent my last 
 email, I also noticed that the option for caching was handled at the registry 
 level, before it got down to the functions in the reader plugins that 
 actually read the image files.

Doug's pointed you in the right direction already so I don't need to
add much.  All I would say extra is that .ive files by default store
the image within the file itself so there isn't any external read call
for the images so the Registry cache of loading images won't be looked
at, so won't automatically share images in the cache.  Images files
externally referenced will use the cache if it's enabled.

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


Re: [osg-users] [Off Topic] General OpenGL / DirectX/3D troubleshooting strategy for virtual machines

2012-06-28 Thread Torben Dannhauer
Hi,

you could also use Xen as Virt technology. There you can pass through hardware 
devices and also graphics adapter for exclusive usage in a VM. But If you want 
to virtualize Windows you need a VT/Pacifica enabled CPU, because Xen is a 
paravirt solution.

Cheers,
Torben

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





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


Re: [osg-users] Manipulating a loaded 3D model

2012-06-28 Thread Praveena Sara

robertosfield wrote:
 
 
 Create a static cylindrical geometry and decorate this subgrpah with a 
 transform node that you update dynamically to align the cylinder with the 
 points your want.
 
 


Hi Roberto,
Thanks for the reply. I want to load a .OSG model which is a cylinder, but not 
a osg::Cylinder. I wonder if it is possible.

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





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


Re: [osg-users] Manipulating a loaded 3D model

2012-06-28 Thread Robert Osfield
Hi Praveena,

On 28 June 2012 10:42, Praveena Sara pravee...@gmail.com wrote:
 Thanks for the reply. I want to load a .OSG model which is a cylinder, but 
 not a osg::Cylinder. I wonder if it is possible.

It makes no difference what the subgraph below the transform node is,
it could be an osg::ShadeDrawable+osg::Cylinder or a whole city model
it makes no difference.  The only thing you need to do is compute the
transform to move the two end up points of interest to where you want
to put them.  There is plenty of articles on the web about matrix
maths so go have fun learning ;-)

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


Re: [osg-users] Creating flare or shining star with osg

2012-06-28 Thread Tolga Yilmaz
Do not really tell me that nobody has needed such a thing in its entire life in 
with its graphics projects... :(
Tolga

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





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


Re: [osg-users] Creating flare or shining star with osg

2012-06-28 Thread Alberto Luaces
Tolga Yilmaz writes:

 Do not really tell me that nobody has needed such a thing in its
 entire life in with its graphics projects... :( 

Hi Tolga,

what about this proposal?

http://osdir.com/ml/OpenSceneGraph-Users/2012-01/msg00088.html

-- 
Alberto

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


Re: [osg-users] How to create osg::Texture2D from osg::Vec3Array...?

2012-06-28 Thread Filip Arlet
Hi,

simplest technique is creating osg::Image, then assigning it to texture like 
this:

Code:

osg::Image* image = new osg::Image;
image-allocateImage(16, 1, 1, GL_RGBA, GL_FLOAT);
image-setInternalTextureFormat(GL_RGBA);

osg::Vec4* dataPtr = reinterpret_castosg::Vec4*(image-data());
memcpy(); // copy your array Vec4Array

osg::Texture2D* texture = new osg::Texture2D;
texture-setImage(image);




Cheers,
Filip

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





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


[osg-users] Build V8 for osgEarth

2012-06-28 Thread caijun
I am using osgEarth2.2 now.I get to know osgEarth can use V8 library which 
support for embed javascript into osgEarth program. I've downloaded V8 and it's 
third-party package which includes python.

When I use python26 to generate sln project by the command python26 
build/gyp_V8,I got the errors like this:

Traceback (most recent call last):
  File E:\3D\osgearth\V8\build\gyp_v8, line 50, in module
import gyp
ImportError: No module named gyp

  Waiting for ur helps.

  Thank you very much!___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Build V8 for osgEarth

2012-06-28 Thread Glenn Waldron
caijun,

You don't need to do that; just uses scons:

http://code.google.com/p/v8/wiki/BuildingOnWindows


Glenn Waldron / @glennwaldron


On Thu, Jun 28, 2012 at 9:16 AM, caijun caijun2002...@126.com wrote:

 I am using osgEarth2.2 now.I get to know osgEarth can use V8 library which
 support for embed javascript into osgEarth program. I've downloaded V8 and
 it's third-party package which includes python.

 When I use python26 to generate sln project by the command python26
 build/gyp_V8,I got the errors like this:

 Traceback (most recent call last):
   File E:\3D\osgearth\V8\build\gyp_v8, line 50, in module
 import gyp
 ImportError: No module named gyp

   Waiting for ur helps.

   Thank you very much!



 ___
 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


[osg-users] [osgPlugins] Qt OpenSceneGraph 2.8.2

2012-06-28 Thread Antonio De Giorgio
Hi,
could anyone tell me what's the better version of Qt to use in OSG 2.8.2

Thank you!

Cheers,
Antonio

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





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


Re: [osg-users] If anyone knows please explain about GL_LIGHT0

2012-06-28 Thread Thrall, Bryan
YoungStone, Jeong wrote on 2012-06-27: 
 Hi,
 
 I'm studying OSG with Beginner's Guide Book.
 But I did not learn about OpenGL.
 
snip
 In the code, GL_LIGHT0 and GL_LIGHT1 is being used.
 
 I know there are from GL_LIGHT0 to GL_LIGHT7.
 
 In my opinion GL_LIGHT0 features seems to be different from others.
 
 Who can you explain GL_LIGHT0 is this?

I'm not sure what you're asking exactly but maybe this will help:

In OpenGL, there is nothing special about GL_LIGHT0.  However,
osgViewer::Viewer by default uses GL_LIGHT0 as a headlight. You can
change this behavior by setting the OSG_DEFAULT_LIGHTING environment
variable (see 'osgviewer --help-env') or by calling setLightingMode() on
your osgViewer::Viewer.

Hope this helps!
--
Bryan Thrall
Principal Software Engineer
FlightSafety International
bryan.thr...@flightsafety.com


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


Re: [osg-users] [Off Topic] General OpenGL / DirectX/3D troubleshooting strategy for virtual machines

2012-06-28 Thread John Richardson
Martin / Torben,

Thanks. I'll pass the advice on.

John F. Richardson

-Original Message-
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Torben
Dannhauer
Sent: Thursday, June 28, 2012 1:08 AM
To: osg-users@lists.openscenegraph.org
Subject: Re: [osg-users] [Off Topic] General OpenGL / DirectX/3D
troubleshooting strategy for virtual machines

Hi,

you could also use Xen as Virt technology. There you can pass through
hardware devices and also graphics adapter for exclusive usage in a VM. But
If you want to virtualize Windows you need a VT/Pacifica enabled CPU,
because Xen is a paravirt solution.

Cheers,
Torben

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





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


smime.p7s
Description: S/MIME cryptographic signature
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Caching images

2012-06-28 Thread Doug McCorkle

On Jun 28, 2012, at 3:06 AM, Robert Osfield wrote:

 Hi Yefei,
 
 On 28 June 2012 07:12, He, Yefei yefei...@uiowa.edu wrote:
Thanks very much for the tips. I will give it a try. After I sent my last 
 email, I also noticed that the option for caching was handled at the 
 registry level, before it got down to the functions in the reader plugins 
 that actually read the image files.
 
 Doug's pointed you in the right direction already so I don't need to
 add much.  All I would say extra is that .ive files by default store
 the image within the file itself so there isn't any external read call
 for the images so the Registry cache of loading images won't be looked
 at, so won't automatically share images in the cache.  Images files
 externally referenced will use the cache if it's enabled.


...unless you setup your ive file to load the image files externally instead of 
encoding the image file into the ive file.

Doug

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


[osg-users] Away for a week!

2012-06-28 Thread Robert Osfield
Hi All,

I am am just heading off for a week, and will be back online on Monday 8th July.

Have fun in my absence ;-)

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