Re: [osg-users] screen capture with multiple cameras

2007-11-23 Thread Berg, Michael
sherman wilcox wrote: > Ok. Thanks for the reply. Followup question: Is there an automagic way > to determine what this last camera is or do I need to keep track of > that myself? > > Is it reasonable to attach a camera to the scenegraph set as the > "last" camera just for capture purposes? I woul

Re: [osg-users] Proposal to change the way the Colladapluginhandlesthe DAE object

2007-11-23 Thread Gordon Tomlinson
Doh Scene units was what I thought I was typing, just bad typing and spelling ;) thanks for the tip on get units out, But I would argue that loader should have the option to scale the file to the scene units if the format being loaded supports a unit size, its very rare that you would have a sce

Re: [osg-users] Proposal to change the way the Collada pluginhandlesthe DAE object

2007-11-23 Thread Roger James
Gordon I don't quite know what you mean by screen units, I suspect it is something like "the same units as the rest of the scene graph". I think this function is best done outside the plugin. In the current SVN you can do this using the DAE object and document name returned by the plugin. Y

Re: [osg-users] small VirtualPlanetBuilder bug

2007-11-23 Thread Robert Osfield
Hi Christoph, This issue sounds odd, it shouldn't make any difference which order the command line options are given in save for the set up coordinate system info inheriting from left to right, but this isn't the case here. I'll do so testing at my end. Robert. On Nov 23, 2007 2:19 PM, Christop

Re: [osg-users] Creating shapes using Geometry

2007-11-23 Thread Jean-Sébastien Guay
Hello Renan, > Sorry that I sounded a bit desperate for quick answers, but I really > appreciate the hint you've given me. I didn't think about using vectors, > having the excuse that I haven't attended any Computer Graphics course. This > project I'm participating in is from my Research Inte

Re: [osg-users] small VirtualPlanetBuilder bug

2007-11-23 Thread Jason Beverage
Hi Christoph, Are your elevation and imagery in the same coordinate system? It's been awhile since I've looked at VPB, but if I recall correctly, the last input file on the command line is used to determine the coordinate system of the output database. So, if someGeoTiff_Height is in a geodetic

Re: [osg-users] screen capture with multiple cameras

2007-11-23 Thread sherman wilcox
Ok. Thanks for the reply. Followup question: Is there an automagic way to determine what this last camera is or do I need to keep track of that myself? Is it reasonable to attach a camera to the scenegraph set as the "last" camera just for capture purposes? I wouldn't think there would be much ove

Re: [osg-users] Proposal to change the way the Collada plugin handlesthe DAE object

2007-11-23 Thread Gordon Tomlinson
Need to add scaling the loaded model to correct screen units ;) ( worth a try ;) ) Your proposals look ok to me.. The simple fix I submitted last week allowed the use of URI to be passed through and used ( this was being rejected as the findfile func), it did not attempt to convert the path to

[osg-users] Proposal to change the way the Collada plugin handles the DAE object

2007-11-23 Thread Roger James
When the Collada plugin was first written it used to create and delete a local DAE object for each read or write operation. At SVN changeset 5572 Per Fahlberg changed the behaviour so that a single DAE object was created at first use and held onto until the plugin was unloaded. This change was

Re: [osg-users] Creating shapes using Geometry

2007-11-23 Thread Renan Mendes
Jean-Sébastien, Sorry that I sounded a bit desperate for quick answers, but I really appreciate the hint you've given me. I didn't think about using vectors, having the excuse that I haven't attended any Computer Graphics course. This project I'm participating in is from my Research Internshi

Re: [osg-users] utf-8?

2007-11-23 Thread Jean-Sébastien Guay
>> 2. Could it be that you have several copies around and your program is >> loading the one which hasn't got those characters? > > I have only one Arial file. Are you sure your program is not picking up the arial.ttf that's in OpenSceneGraph-Data/fonts? If you have OSG_FILE_PATH set, then it

[osg-users] Error handling in PNGs

2007-11-23 Thread Thibault Genessay
Hi all I had a problem reading erroneous PNG files. When libpng encounters an unrecoverable error, it forces the program to terminate. This is quite ugly and the user has 2 choices to prevent it: - we can use a sort of exception handler using setjmp() / longjmp(). This hack was probably invented t

[osg-users] small VirtualPlanetBuilder bug

2007-11-23 Thread Christoph Ehrler
Hi @ all VTP users and developers, Apparently it's not arbitrary how to arrange the data input for VirtualPlanetBuilder. The first commandline input produces a weired result with texture and heightfield matching but meshing of the heightfield corrupted. Every tile of the heightfield has only one

Re: [osg-users] CMake Search Paths ?

2007-11-23 Thread E. Wing
>> Is there a simpler way to give cmake user defined search paths? > So, telling people about the shiny world of 'ccmake' and begging for > procedures that are _highly_impractical_ on many people's setup is one > thing, This strikes me as a newbie-like question, not an automation (advanced) quest

Re: [osg-users] utf-8?

2007-11-23 Thread Johan Johnsson
Tnxc alot the problem was solved using second parameters in: text1->setText(test, osgText::String::ENCODING_UTF8); with -> osgText::String::ENCODING_UTF8 = worked without = not worked. On Fri, 23 Nov 2007 13:35:20 +0100, Thibault Genessay <[EMAIL PROTECTED]> wrote: > You might try to have a lo

Re: [osg-users] utf-8?

2007-11-23 Thread Thibault Genessay
You might try to have a look at the Character Set setting of your project (under Configuration Properties / General). If your previous project file was using the Unicode character set, while your new one the multi-byte character set, you might have a difference. I've never had a rea in-depth unders

Re: [osg-users] utf-8?

2007-11-23 Thread Johan Johnsson
I think the problem is in visual studio to be honest, i know i can save the cpp as encoded types maybe i save it to wrong unicode type? On Fri, 23 Nov 2007 12:54:41 +0100, Alberto Luaces <[EMAIL PROTECTED]> wrote: > El Friday 23 November 2007 12:29:06 Johan Johnsson escribió: >> > 1. What is t

Re: [osg-users] utf-8?

2007-11-23 Thread Alberto Luaces
El Friday 23 November 2007 12:29:06 Johan Johnsson escribió: > > 1. What is the size in bytes of the arial.ttf file you are > > using? > > 359 kb Then I think you are using the correct one, that is included with the Windows installation. Would it help to set the OSGNOTIFYLEVEL environment variabl

Re: [osg-users] utf-8?

2007-11-23 Thread Johan Johnsson
On Fri, 23 Nov 2007 11:59:44 +0100, Alberto Luaces <[EMAIL PROTECTED]> wrote: > El Friday 23 November 2007 11:20:31 Johan Johnsson escribió: >> yes i have copied them from the characther map in arial > > Out of curiosity: > > 1. What is the size in bytes of the arial.ttf file you are > using? 359

Re: [osg-users] utf-8?

2007-11-23 Thread Alberto Luaces
El Friday 23 November 2007 11:20:31 Johan Johnsson escribió: > yes i have copied them from the characther map in arial Out of curiosity: 1. What is the size in bytes of the arial.ttf file you are using? 2. Could it be that you have several copies around and your program is loading the one which

Re: [osg-users] utf-8?

2007-11-23 Thread Johan Johnsson
Yes they do and it is the same characters i represented on the display before i deleted the project. On Fri, 23 Nov 2007 11:09:52 +0100, Robert Osfield <[EMAIL PROTECTED]> wrote: > Does the font handle the characters you are interested in? > > On Nov 23, 2007 10:00 AM, Johan Johnsson <[EMAIL

Re: [osg-users] utf-8?

2007-11-23 Thread Johan Johnsson
yes i have copied them from the characther map in arial On Fri, 23 Nov 2007 11:10:28 +0100, Mario Valle <[EMAIL PROTECTED]> wrote: > Does Arial.ttf have those arabic characters? > Try change font file. > Ciao! > mario > > > Johan Johnsson wrote: >> damnit it worked , but then i incidentaly

Re: [osg-users] utf-8?

2007-11-23 Thread Mario Valle
Does Arial.ttf have those arabic characters? Try change font file. Ciao! mario Johan Johnsson wrote: > damnit it worked , but then i incidentaly removed the project, now i cant > get it to work: > > osgText::Text* text1 = new osgText::Text; > osgText::String* string = new osgText:

Re: [osg-users] utf-8?

2007-11-23 Thread Robert Osfield
Does the font handle the characters you are interested in? On Nov 23, 2007 10:00 AM, Johan Johnsson <[EMAIL PROTECTED]> wrote: > > damnit it worked , but then i incidentaly removed the project, now i cant > get it to work: > > osgText::Text* text1 = new osgText::Text; > osgText::String* strin

Re: [osg-users] utf-8?

2007-11-23 Thread Johan Johnsson
damnit it worked , but then i incidentaly removed the project, now i cant get it to work: osgText::Text* text1 = new osgText::Text; osgText::String* string = new osgText::String("لْعَرَبيّة", osgText::String::ENCODING_UTF8); std::string test = string->createUTF8EncodedString();