Re: [osg-users] Strange osgText::Text problem while moving from OSG2.9.8 to OSG 3.0.0

2011-07-04 Thread Sergey Polischuk
Hi

There are bounding box margin value in osgText::TextBase. I wonder if we should 
use it to fix problem?
It does basically the same thing as Terry done, just without expanding bbox on 
z coord.

01.07.2011, 23:45, Terry Welsh mogu...@gmail.com:
 I think JS is talking about the problem I was having.  Here's a hacky
 fix that worked for me.  I probably should have already sent this to
 osg-submissions, but maybe you can validate it first or think of
 something better.  Try changing this one line in TextBase.cpp:

 http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/2011-June/052479.html
 --
 Terry Welsh
 mogumbo 'at' gmail.com
 www.reallyslick.com

  Message: 11
  Date: Fri, 01 Jul 2011 11:31:00 -0400
  From: Jean-S?bastien Guay       jean-sebastien.g...@cm-labs.com;
  To: OpenSceneGraph Users osg-users@lists.openscenegraph.org;
  Subject: Re: [osg-users] Strange osgText::Text problem while moving
         from    OSG2.9.8 to OSG 3.0.0
  Message-ID: 4e0de834.40...@cm-labs.com;
  Content-Type: text/plain; charset=UTF-8; format=flowed

  Hi George, Sergey,
  We run into same issue yesterday, and as far as i can tell, this changed 
 between osg 2.9.9 (all works ok) and 2.9.10(nothing visible). osgText is 
 culled when it shouldnt for some reason. For temporary solution you can 
 turn off culling on geode with text or add some other drawable as u did.
  I seem to remember people talking about a bug in the osgText bounds
  computation that causes it to never calculate its bounds, so they always
  stay at the initial value (which is an invalid bounds) and so the text
  is always culled (and thus it can never calculate its bounds, and so on).

  Not much to go on but it might be the hint that helps you to fix this...

  J-S

 ___
 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] osgAnimation::MorphGeometry problem

2011-07-04 Thread Aitor Ardanza
Hi,

I have a problem with the geometry to make morphing with osgAnimation: 
MorphGeometry. I have a head with different facial expressions and I want to 
apply the method of morphing.
The original geometry is as follows:
[Image: http://img35.imageshack.us/img35/8458/origha.jpg ]

And this one as is applying the morphing:
[Image: http://img189.imageshack.us/img189/3159/morphg.jpg ]

The teeth or tongue are not visible... for the morphing consider these two 
parts would have to be attached to the geometry of the head?
The head, teeth and tongue are in the same geometry object...

Thank you!

Cheers,
Aitor

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





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


Re: [osg-users] [osgPlugins] readNodeFile() with OBJ files is extremely slow when used in Qt4 app

2011-07-04 Thread Alexey Chernov

Ulrich Hertlein wrote:
 
 Rather than setting the global locale, maybe we set the 'C' locale on the I/O 
 streams only:
 
 ios_base::imbue(locale::classic())

Yes, I think it's more sensible, but will it affect also C-style functions? 
There's main part of input using sscanf() there. Perhaps, 
ios::sync_with_stdio() would be necessary?

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





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


Re: [osg-users] ANN: osgText::TextNode API

2011-07-04 Thread Serge Lages
Hi,

Just a quick message to say that osgPango is great, it's so powerfull ! I
dream of seeing it in the core OSG with a plugin system. ;)

Cheers,

On Fri, Jul 1, 2011 at 7:22 PM, Jeremy Moles jer...@emperorlinux.comwrote:

 I would also like to quickly top-post myself and say that I see A LOT of
 posts on the lists lately about osgText, and the next few months might
 be a great time for people to pitch in with TextNode and get their stuff
 working. :)

 On Fri, 2011-07-01 at 13:19 -0400, Jeremy Moles wrote:
  Hello all! In just a few days (I will finish the code over the holidays)
  I'm going to be submitting a bit of code to Robert to evaluate for
  inclusion into OSG proper. It is a continuation of his experimentation
  with a new text interface called TextNode.
 
  TextNode diverges a great deal from what you might be used to with Text
  and Text3D objects, but in the end the transition (if Robert accepts
  it :)) will be worth it. The API has been cleaned up, internal data is
  much easier to get at, and the rendering and layout backends have become
  pluggable.
 
  Before I finish up the last bits so that a first beta version can be
  submitted and people can begin experimenting with it, I'd like to
  solicit some input.
 
  1) I'm dropping all support for the FFP. I mean, c'mon. It makes the
  code substantially harder to maintain and understand. If this causes the
  code to be rejected (or perhaps results in Text and Text3D staying
  around for a bit longer to support FFP), then so be it. :) In lieu of
  this, however, I'd like some opinions on which version of GLSL I should
  target and how well that version is currently supported by OSG.
 
  2) TextNode (3D) glyph support is working quite well; it wasn't hard,
  since most of the code was already there in the backend. Each glyph is
  cached based on its Style and Font, put into a PAT, and then finally all
  of the text is squished into a top-level MatrixTransform. I continue to
  use the setAlignment() and setAxisAlignment() API, but obviously you're
  free to do whatever you like. How does this sound to everyone?
 
  3) TextNode (2D) is still going to require a bit of work at the time of
  the first submission. In the new API, osg::Geometry objects are
  constructed using quads textured with the 2D glyphs and, again, packaged
  into a top-level MatrixTransform. A remaining (serious) question is how
  to do drop-shadows and outlines?
 
  4) As some of you may know, I am also the author of osgCairo and
  osgPango. Both of these nodekits came to be as I was working on
  osgWidget, which--combined with getting sick--seriously sidetracked that
  project. :) (I haven't forgot about osgWidget though--hang in there!)
  This isn't an attempt to plug that software, but rather me posing a
  question I've asked before:
 
4.a) The 2D quality provided by osgPango simply cannot be
matched by anything any of us could do by hand. This is
partly due to osgPango's massive user base and its main
developers, but it is also due to the fact that the Glyph
rasterizer is Cairo. Now, I won't be so bold as to ask OSG
to accept osgPango (yet :)), but what I would like to do is
provide a way for Cairo to do the glyph rasterization instead of
doing it manually with Freetype. This is the approach osgPango
takes, and it lets osgPango provide a very powerful glyph
effect API. Let me elaborate below...
 
In current 2D OSG, you request a string of text. Each
character is iterated over and the backend calls FT_Load_Char
to render each glyph at a particular resolution, at which
point that glyph is put into a texture atlas to be reused
later.
 
If we supported Cairo as a rasterizing backend, we would instead
be given the glyph information for each character as a vector
path and would have the freedom to do whatever Cairo's drawing
API allows with it. In the most basic case, this would be a
simple fill() operation, but as you can see from the osgPango
screenshots: http://www.jeremymoles.com/osgPango , a lot of
interesting things can be done when you have a vectorized
path of a glyph. :)
 
  Don't misunderstand me though: osgPango isn't going anywhere! The layout
  support alone provided by osgPango is incredible, and it is able to
  provide additional information to the rasterizer for higher quality
  fonts (it also supports more than just Freetype; Atsui and the Windows
  font backend, for example). It also understands just about every
  language and locale out there, so text is always positioned properly.
  But I would like to at least like to pose the idea of using Cairo as the
  rasterizer, or at least providing a plugin (since it is the freetype
  plugin in the osgPlugins directory that actually is responsible for
  building the glyph atlas) to do this.
 
  

Re: [osg-users] Strange osgText::Text problem while moving from OSG2.9.8 to OSG 3.0.0

2011-07-04 Thread George Bekos
Thanks for your replies guys.
In order to solve it I did the quick hack with the extra drawable (and setting 
color/depth/stencil writes/tests off), so I won't have to recompile osg or 
extend any class. Thanks again for your help.

Cheers,
George

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





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


[osg-users] Invitation to connect on LinkedIn

2011-07-04 Thread Carlos Sanches via LinkedIn
LinkedIn





Carlos Sanches requested to add you as a connection on LinkedIn:
  
--

mingyue,

I'd like to add you to my professional network on LinkedIn.

- Carlos

Accept invitation from Carlos Sanches
http://www.linkedin.com/e/-qywqtf-gppgdmgp-3g/ki9l5dc0WBU2jCm_-ENl0WSMUV6C2kw9fBND0WJWSkAnjfMIiTR/blk/I49312073_125/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYRcz5vcPsMcz4Pejh9bQRGe6xColxUbPARdPkQdP8Od3cLrCBxbOYWrSlI/EML_comm_afe/

View invitation from Carlos Sanches
http://www.linkedin.com/e/-qywqtf-gppgdmgp-3g/ki9l5dc0WBU2jCm_-ENl0WSMUV6C2kw9fBND0WJWSkAnjfMIiTR/blk/I49312073_125/3kOclYPdP0OcjcVd4ALqnpPbOYWrSlI/svi/

--

Why might connecting with Carlos Sanches be a good idea?

Carlos Sanches's connections could be useful to you:
After accepting Carlos Sanches's invitation, check Carlos Sanches's connections 
to see who else you may know and who you might want an introduction to. 
Building these connections can create opportunities in the future.

 
-- 
(c) 2011, LinkedIn Corporation___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Problems Reading PNG Files

2011-07-04 Thread abdelrahman . salah . cs

Hi

i'm having problem reading PNG files.. the program crash or print 'could  
not find plugin to read objects from file directory/file.png '
i have the osgdb_png in the right directory,. and i have the libpng13.dll  
in the right directory..

i need some pointers plz.

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


Re: [osg-users] Problems Reading PNG Files

2011-07-04 Thread Paul Martz
If you set OSG_NOTIFY_LEVEL=DEBUG_FP in your environment, you can see each 
directory that OSG searches when attempting to lead the plugin.

   -Paul


On 7/4/2011 8:41 AM, abdelrahman.salah...@gmail.com wrote:

Hi

i'm having problem reading PNG files.. the program crash or print 'could not
find plugin to read objects from file directory/file.png '
i have the osgdb_png in the right directory,. and i have the libpng13.dll in the
right directory..
i need some pointers plz.

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


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

2011-07-04 Thread Alexey Chernov
Hi,

I tried to load a model from 3DS file and found that it has some strange 
lighting effect both in osgviewer and in my application: on model's borders 
there're dark areas and it seems as if there're low of polygons (a screenshot 
and model are attached). I was suggested that the problem is with normals which 
are inverted to inside the model.

So, I've got 2 questions:
1. Is it right that the problem is caused by normals (as I found in 3ds plugin 
code, they are calculated on the fly)?
2. Can I fix them somehow after the model is loaded? For example, is there an 
easy way to perform something like Recalculate Normal Outside in Blender?

Thanks in advance for any information!

Regards,
Alexey

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




Attachments: 
http://forum.openscenegraph.org//files/can_172.zip


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


Re: [osg-users] Problems Reading PNG Files

2011-07-04 Thread Raymond de Vries

Hi,

Fyi: (most of the times) libpng depends on libz too. Do you have that 
one in your path as well?


hth
Raymond


On 7/4/2011 4:49 PM, Paul Martz wrote:
If you set OSG_NOTIFY_LEVEL=DEBUG_FP in your environment, you can see 
each directory that OSG searches when attempting to lead the plugin.

   -Paul


On 7/4/2011 8:41 AM, abdelrahman.salah...@gmail.com wrote:

Hi

i'm having problem reading PNG files.. the program crash or print 
'could not

find plugin to read objects from file directory/file.png '
i have the osgdb_png in the right directory,. and i have the 
libpng13.dll in the

right directory..
i need some pointers plz.

___
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] Problems Reading PNG Files

2011-07-04 Thread abdelrahman . salah . cs

Hi

@ Paul, i have already done this,. and still no clue.

@ Raymond, yes i have that one too.

any pointers ?



On , Raymond de Vries ree...@xs4all.nl wrote:

Hi,




Fyi: (most of the times) libpng depends on libz too. Do you have that one  
in your path as well?





hth



Raymond







On 7/4/2011 4:49 PM, Paul Martz wrote:



If you set OSG_NOTIFY_LEVEL=DEBUG_FP in your environment, you can see  
each directory that OSG searches when attempting to lead the plugin.



-Paul







On 7/4/2011 8:41 AM, abdelrahman.salah...@gmail.com wrote:




Hi




i'm having problem reading PNG files.. the program crash or print 'could  
not



find plugin to read objects from file directory/file.png '


i have the osgdb_png in the right directory,. and i have the libpng13.dll  
in the



right directory..



i need some pointers plz.




___



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] Problems Reading PNG Files

2011-07-04 Thread Paul Martz

On 7/4/2011 9:20 AM, abdelrahman.salah...@gmail.com wrote:

Hi

@ Paul, i have already done this,. and still no clue.

@ Raymond, yes i have that one too.

any pointers ?


Do you see the same problem when you run:
  osgviewer --image file.png

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


[osg-users] Hello OSG

2011-07-04 Thread Donn Washburn

This is my first time to join in on OSGs email.

The main purpose was to notify of a error I am getting on a SVN version 
on two different OS versions.  It shows up on ffmpeg/FFmpegDecoder.cpp 
which is at about 99% and states depreciated causing OSG to fail.  I do 
have it saved so if this is the correct place to ask I can send it.

--
73 de Donn Washburn
307 Savoy StreetEmail: n5...@comcast.net 
Sugar Land, TX 77478 LL# 1.281.242.3256
Ham Callsign N5XWB   HAMs :  n5...@arrl.net 
VoIP via Skype:n5xwbg  BMWMOA #:4146 Ambassador
   http://counter.li.org  #279316
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Problems Reading PNG Files

2011-07-04 Thread abdelrahman . salah . cs
thanks everyone, i was using incompatible version of the dlls,. it works  
fine now ,.
there is no transparency.!! is that how it is supposed to be?! or am i  
still doing something wrong.


regards
abdo


On , Paul Martz pma...@skew-matrix.com wrote:

On 7/4/2011 9:20 AM, abdelrahman.salah...@gmail.com wrote:




Hi





@ Paul, i have already done this,. and still no clue.





@ Raymond, yes i have that one too.





any pointers ?






Do you see the same problem when you run:



osgviewer --image file.png





-Paul



___



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] Problems Reading PNG Files

2011-07-04 Thread Paul MARTZ
Again I ask does it display correctly with osgviewer? If not it's a problem 
with your image. 

Paul Martz
Skew Matrix Software
Http://www.skew-matrix.com


On Jul 4, 2011, at 11:22, abdelrahman.salah...@gmail.com wrote:

 thanks everyone, i was using incompatible version of the dlls,. it works fine 
 now ,. 
 there is no transparency.!! is that how it is supposed to be?! or am i still 
 doing something wrong.
 
 regards 
 abdo
 
 
 On , Paul Martz pma...@skew-matrix.com wrote:
  On 7/4/2011 9:20 AM, abdelrahman.salah...@gmail.com wrote:
  
  
  Hi
  
  
  
  @ Paul, i have already done this,. and still no clue.
  
  
  
  @ Raymond, yes i have that one too.
  
  
  
  any pointers ?
  
  
  
  
  Do you see the same problem when you run:
  
   osgviewer --image file.png
  
  
  
-Paul
  
  ___
  
  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] How to get the listof supported file formats

2011-07-04 Thread 未完成
Hi, 
 
 
Everybody,I cannot post new topic,it always shows Topic is awaiting approval 
,so I'm forced to find help here,sorry for distracting your attention!
 
I got some problem in the terrainmodeling by VPB.
 
1,I find many code likelog(osg::INFO,SourceData::readShapeFile) in the 
VPB's source,I wonder if i can output the log's data into a file when I use the 
osgDEM,so I can track what's done during the modeling process.
 
2,If I want to get the terrain model of just exactly the area in a polygon,for 
example,300m within the centerline of a highway,while the part that is outside 
of the polygon is not generated to improve the rendering performance. How can I 
achieve it,just set the DEM value to NoData for the useless area,or rewrite 
some important function in the DestinationTile or somewhere.
 
 
 
3,are them compatible between the VPB's latest version and OSG3.0.
 
 
 
 
 
Thank you All!Any suggestion is appreciated!
 
 
 
Cheers,
 
Lei

  
   
  
  -- Original --
  From:  Daniel Perazadanielper...@gmail.com;
 Date:  Fri, Jul 1, 2011 00:17 AM
 To:  osg-usersosg-users@lists.openscenegraph.org; 
 
 Subject:  Re: [osg-users] How to get the listof supported file formats

  
No, sorry. Quick Start Guide is great, but it was too dense for me given that 
I'm a newbie looking for a way to make progress quickly. So I preferred to look 
at the new OSG 3.0 book and the doxygen docs. (The doxygen docs has much 
classes/methods documentation missing).

Anyway, thanks a lot everybody, I think I've found my way to do what I wanted.

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





___
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] Problems Reading PNG Files

2011-07-04 Thread Torben Dannhauer
Hi abdelrahman,

yes, DLL versioning in windows is a bit akward, but thats not an OSG specific 
issue. The basic rule is: Know what kind of compiler you use and use only 
binaries which were compiled with exact that compiler.

That's the reason why you can find compiled binaries for VS 2005 Sp1, VS2008 
Sp1 and VS2010 Sp1.

Cheers,
Torben

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





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