Re: [osg-users] RTT into a single color channel

2011-07-13 Thread J.P. Delport

Hi,

On 13/07/11 17:04, Bolstad, Mark wrote:

For an application that we are developing, I need to be able to render
three different objects into the three color channels separately, then
render to the display. I'm currently using a setup similar to
osgdistortion. The question is how to render into a single channel. My
setup looks like:

osg::Texture2D* texture = new osg::Texture2D;
texture->setTextureSize(tex_width, tex_height);
texture->setInternalFormat(GL_RGBA);
texture->setFilter(osg::Texture2D::MIN_FILTER,osg::Texture2D::LINEAR);
texture->setFilter(osg::Texture2D::MAG_FILTER,osg::Texture2D::LINEAR);

If I set the Internal format to GL_RED, GL_GREEN, ... in successive
renders, would the color data be packed? Or, do I need to use a subcopy,
or ?


you will need to combine them manually, GL_RED is like GL_LUMINANCE so 
you'll get only one output value per pixel packed. I think easiest would 
be to render to 3 luminance textures and then combine in another step 
into rgb.


rgds
jp




Thanks,

Mark

*/Mark A. Bolstad/*
Scientific Computing
Janelia Farm Research Campus
Howard Hughes Medical Institute
19700 Helix Drive, Ashburn, VA 20147
email:*bolst...@janelia.hhmi.or **g*
office: +1.571.209.4623
web: http://www.hhmi.org/janelia/








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


--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. 
The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.


This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.


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


[osg-users] osgText SCREEN_COORDS picking problem

2011-07-13 Thread Kurt Sierens
Hi,

We are using OSG 2.8, and I am currently trying to add picking to osgText 
objects.  When I use OBJECT_COORDS, it works fine, but when I use 
SCREEN_COORDS, it will only pick the text when the cursor is close to the 
position, almost like the bounding box is not scaled correctly.  Is there 
anyway to get around this? Also, the text is being displayed using SCREEN axis 
alignment and LEFT_TOP alignment.

Thank you!

Cheers,
Kurt

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





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


Re: [osg-users] Load and control multiple animations saved in a single OSG/IVE file

2011-07-13 Thread Mohamed Alji
Hi Stefanos,

Check Bignathan.osg, I think It contains multiple animations ... 

I would love to read the subject of your project and why not your paper :)

Cheers


Mohamed ALJI


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




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


Re: [osg-users] Load and control multiple animations saved in a single OSG/IVE file

2011-07-13 Thread Stefanos Kougiou
hello again,

Thank you for all the information! it is all starting to gt in place eventually 
:)

I found the examples of osgAnimation within the downloaded zip file of OSG 3.0

To be honest I haven't tested them yet, but from a quick look I think that I 
have to pass as an argument an osg file with animation, and then controll its 
animation.

Is it possible to put multiple animations in one osg file? As I stated before I 
need to play different animations when specific keyevents appear. 

If an osg file can contain only one animation, I could use multiple osg files 
-each file containing an animation clip-  and then load the specific osg when a 
specific key is pressed. 

I thought that this procedure would be pretty straight forward in 
openSceneGraph. It is just something like a plain small video game. The 
procedure should be :
design 3d models,
create animations,
export to one or many files -suitable for openSceneGraph,
Use application to load models and animation,
Controll the above in openSceneGraph viewer.

what am I missing? Should I have followed another way? it seems pretty 
complicated until now.

Thank you all for your answers
Stefanos


p.s.
Alji of course we can discuss my project, shoot your questions! :)

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





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


[osg-users] osg website down

2011-07-13 Thread David Callu
Hi all, Hi José

http://www.openscenegraph.org/projects/osg/wiki

return this :


Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/trac/web/api.py", line 339,
in send_error
'text/html')
  File "/usr/lib/python2.5/site-packages/trac/web/chrome.py", line
684, in render_template
data = self.populate_data(req, data)
  File "/usr/lib/python2.5/site-packages/trac/web/chrome.py", line
592, in populate_data
d['chrome'].update(req.chrome)
  File "/usr/lib/python2.5/site-packages/trac/web/api.py", line 168,
in __getattr__
value = self.callbacks[name](self)
  File "/usr/lib/python2.5/site-packages/trac/web/chrome.py", line
460, in prepare_request
for category, name, text in contributor.get_navigation_items(req):
  File "/usr/lib/python2.5/site-packages/trac/versioncontrol/web_ui/browser.py",
line 295, in get_navigation_items
if 'BROWSER_VIEW' in req.perm:
  File "/usr/lib/python2.5/site-packages/trac/perm.py", line 523, in
has_permission
return self._has_permission(action, resource)
  File "/usr/lib/python2.5/site-packages/trac/perm.py", line 537, in
_has_permission
check_permission(action, perm.username, resource, perm)
  File "/usr/lib/python2.5/site-packages/trac/perm.py", line 424, in
check_permission
perm)
  File "/usr/lib/python2.5/site-packages/trac/perm.py", line 282, in
check_permission
get_user_permissions(username)
  File "/usr/lib/python2.5/site-packages/trac/perm.py", line 357, in
get_user_permissions
for perm in self.store.get_user_permissions(username):
  File "/usr/lib/python2.5/site-packages/trac/perm.py", line 175, in
get_user_permissions
cursor.execute("SELECT username,action FROM permission")
  File "/usr/lib/python2.5/site-packages/trac/db/util.py", line 51, in execute
return self.cursor.execute(sql)
  File "/usr/lib/python2.5/site-packages/trac/db/sqlite_backend.py",
line 58, in execute
args or [])
  File "/usr/lib/python2.5/site-packages/trac/db/sqlite_backend.py",
line 50, in _rollback_on_error
return function(self, *args, **kwargs)
OperationalError: database is locked



Can you fix this when you have the time.

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


[osg-users] OSG web site down

2011-07-13 Thread Chris 'Xenon' Hanson
  Robert is on holiday and the web site is not responding. I believe Jose Luis 
Hidalgo is
capable of solving the web site issues.

-- 
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


[osg-users] RTT into a single color channel

2011-07-13 Thread Bolstad, Mark
For an application that we are developing, I need to be able to render three 
different objects into the three color channels separately, then render to the 
display. I'm currently using a setup similar to osgdistortion. The question is 
how to render into a single channel. My setup looks like:

osg::Texture2D* texture = new osg::Texture2D;
texture->setTextureSize(tex_width, tex_height);
texture->setInternalFormat(GL_RGBA);
texture->setFilter(osg::Texture2D::MIN_FILTER,osg::Texture2D::LINEAR);
texture->setFilter(osg::Texture2D::MAG_FILTER,osg::Texture2D::LINEAR);

If I set the Internal format to GL_RED, GL_GREEN, ... in successive renders, 
would the color data be packed? Or, do I need to use a subcopy, or ?

Thanks,

Mark

Mark A. Bolstad
Scientific Computing
Janelia Farm Research Campus
Howard Hughes Medical Institute
19700 Helix Drive, Ashburn, VA  20147
email: bolst...@janelia.hhmi.org
office: +1.571.209.4623
web: http://www.hhmi.org/janelia/






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


Re: [osg-users] 3.0 runtime loading models problem

2011-07-13 Thread Jean-Sébastien Guay

Hello Issam,


here the exact warning i have when loading any model with osgstaticviewer

Code:
Unknown Chunk: ***UNKNOWN*** (0xA08A)
Warning: Material::apply(State&) - not supported.

and it's completely white

the debug_info level didn't gave me more informations

here the complete output of staticviewer with debug notify level


What hardware / OS / compiler are you using?

Can we have a simple model that gives you this problem? You said you 
have the problem with every model you tested, but didn't say which 
models you tested... Does it happen with cow.osg?


On my side I can run osgviewer cow.osg and I don't get this problem, but 
I don't use a static build of OSG, so it may be a driver / build issue 
on your side. I'll have to let others who make static builds of OSG help 
you more...


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


Re: [osg-users] setCenterByMousePointerIntersection

2011-07-13 Thread PC John
What about:

viewer->setCameraManipulator( new OrbitManipulator( DEFAULT_SETTINGS | 
SET_CENTER_ON_WHEEL_FORWARD_MOVEMENT ) );

Cheers,
John

>  Original message 
> From:  "Joe Kilner" 
> Subject:  [osg-users] setCenterByMousePointerIntersection
> Date:  8. 7. 2011  18:31:58
> 
> Hi,
> 
> I am often loading large scenes in to a Viewer with a TrackballManipulator
> and would really like a nice way to reset the orbit point while viewing
> the model.
> 
> I had a look in the code and found something looking like what I want has
> been implemented already and can be activated by passing the flag
> SET_CENTER_ON_WHEEL_FORWARD_MOVEMENT when creating the manipulator.
> 
> However, I can't get it to work and am not really sure how (or even if) the
> feature should be used. Can anyone shed any light?
> 
> Thank you!
> 
> Joe
> 
> --
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=41275#41275
> 
> 
> 
> 
> 
> ___
> 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] [build] Dependencies in Qt examples in Debug build are sometimes wrong

2011-07-13 Thread Torben Dannhauer
Hi,

Yes the Qt build system has some issues... It also ignores the architecture and 
always uses the Qt libraries referenced by QTDIR.

in my opinion it should search..
on a 32 bit generator (e.g. VS2008) for QTDIR_X86, QTDIRX86 and QTDIR. (this 
order)
on a 64 bit generator (e.g. VS2008 64bit)  it should search for QTDIR_X64, 
QTDIRX64 and QTDIR. (this order)


Thank you!

Cheers,
Torben

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





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


[osg-users] [build] Dependencies in Qt examples in Debug build are sometimes wrong

2011-07-13 Thread Claus Scheiblauer
Hi,

There seems to be a bug in some CMake build script. I will try to describe what 
the bug produces.

I created Visual Studio projects for OpenSceneGraph with CMake (64 bit, Visual 
Studio 2010). When trying to compile the example osgqfont in debug build there 
is an error, because for 3 Qt libraries

QtCore4.lib
QtGui4.lib
QtOpenGL4.lib

the release versions of these libraries are in the list of dependencies (Linker 
> Input > Additional Dependencies). They are listed before the debug versions 
of these libraries

QtCored4.lib
QtGuid4.lib
QtOpenGLd4.lib


When I remove the release versions of these libraries from the Additional 
Dependencies, the compilation works. It was also in another Qt example (but I 
forgot, sorry... maybe osgviewerQt or so...).


Thank you!

Cheers,
Claus

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





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


[osg-users] Mail2Forum

2011-07-13 Thread Lionel Lagarde
Hi,

I have a problem with the mail list. I use thunderbird to read/write the posts. 
I don't use the forum. 

I posted a reply to the question about setCenterByMousePointerIntersection by 
Joe Kilner. I received (in thunderbird) the corresponding mail. 
But in the forum, I can't see my reply.

Actually, sometime a mail comes into my mailbox with the subject beginning by 
"Re: " and I can't find the source mail.
For example, I received this morning the mail from Torben Dannhauer (zonk in 
the forum) "Re:  [ANN] New version of 3rdParty Package" and I didn't received 
the source message.

The web site is currently down. I will unsubscribe/subscribe to the mail lists 
as soon as possible.

Thank you!

Cheers,
Lionel

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





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


Re: [osg-users] [osgPlugins] Incorrect normals calculated on 3DS import

2011-07-13 Thread Alexey Chernov
Sukender, thanks for references. I've also read that per-vertex model is more 
precise than per-face, and the result in my case is more similar to per-face 
example..

So, am I right that these problems are completely because of this exact model 
and not the algorithm?

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





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