Re: [osg-users] [build] Executable for debug prompt

2009-06-02 Thread Thibault Genessay
Hi Karl, When you compile the OSG with Visual Studio, you compile the core DLLs that constitute the OSG API. They are named osgXXX.dll and are indeed not standalone executables. The OSG comes with a lot of I/O plugins, named osgdb_XXX.dll, which are also shared libraries - not executables. Now th

Re: [osg-users] Restarting a canceled thread

2009-09-08 Thread Thibault Genessay
Hi folks I've tested the code (latest SVN) and get also get a crash when start() is called the scond time. Recreating the thread object indeed solves the problem, so it looks like there is actually something going wrong when a cancelled thread is restarted. Slightly OT w.r.t. Paul's remark, I fai

Re: [osg-users] [osgPlugins] Freetype and JPG plugins problems

2009-10-16 Thread Thibault Genessay
Hi Alessandro, On Fri, Oct 16, 2009 at 11:30 AM, Alessandro Terenzi wrote: > 1) if I put the plugins in osgPlugins-2.9.6, then the loading of > osgdb_osg.dll fails, don't know why... Have you tried to set OSG_NOTIFY_LEVEL to DEBUG_INFO to check the paths the OSG tries before it gives up ? > 2)

Re: [osg-users] Openthread ?

2008-05-22 Thread Thibault Genessay
Hi Vincent On Wed, May 21, 2008 at 5:38 PM, Vincent Bourdier <[EMAIL PROTECTED]> wrote: > I'm searching on OSG website but I didn't found something like the Reference > documentation or guide of OpenThread... Yup, it looks like there is no online documentation for OpenThreads ... Maybe people kno

[osg-users] Can't post to osg-submissions

2008-05-27 Thread Thibault Genessay
Hi all Yesterday I've been sending a fix to the osg-submissions list but the message did not seem to reach its destination. I've had no failure notification but the message is not in the archive - Gmane shows messages that were sent after, but not mine. Is anyone here having the same problem ? I h

Re: [osg-users] Can't post to osg-submissions

2008-05-28 Thread Thibault Genessay
Hi Paul, Robert > Well, you posted a few responses to osg-submissions regarding my osgviewerWX > example tweaks about 2 weeks ago, so you could definitely post at that time. Yes, I can remember that. Plus I have done all necessary checking that I am a registered subscriber of the list. > Can't s

Re: [osg-users] Plugin problems with Visual Studio 2008

2008-05-28 Thread Thibault Genessay
Hi On Wed, May 28, 2008 at 4:15 PM, lucas Grijander <[EMAIL PROTECTED]> wrote: > I just upgrade my Visual Studio 2005 to 2008 and now I get always the same > warning: > > "could not find plugin to read object..." You should first make sure you have compiled everything with the same compiler, i.e.

Re: [osg-users] Line curve

2008-06-02 Thread Thibault Genessay
Hi Johan On Mon, Jun 2, 2008 at 7:59 AM, Johan Johnsson <[EMAIL PROTECTED]> wrote: > Which is the easiest way to draw line curves i osgviewer. > > Im developing a function that draw a function from startPos to endPos (vec3) > both. With a math function. > > Any hints? .. about functions available

Re: [osg-users] How to byte-align Vec4Array

2008-07-08 Thread Thibault Genessay
Hi David On Tue, Jul 8, 2008 at 11:57 AM, David Spilling <[EMAIL PROTECTED]> wrote: > Dear All, > > Can I also guarantee that each std::vector entry will be > contiguous in memory? Yes, provided that your compiler follows the C++ standard. See http://www.parashift.com/c++-faq-lite/containers.html

Re: [osg-users] About sort geometry

2008-08-06 Thread Thibault Genessay
Hi, On Wed, Aug 6, 2008 at 4:48 PM, Robert Osfield <[EMAIL PROTECTED]> wrote: > On Wed, Aug 6, 2008 at 3:40 PM, hesicong2006 <[EMAIL PROTECTED]> wrote: >> Hi, Robert, >> Is there a way to visually see the render order of geometry or the console >> output of current rendering geometry? Give gDEBug

Re: [osg-users] Profiler with OSG

2008-09-19 Thread Thibault Genessay
Hi Vincent On Fri, Sep 19, 2008 at 1:12 PM, Vincent Bourdier <[EMAIL PROTECTED]> wrote: > I know... but I am under windows... and so I have to forget this one... :'( > No one under windows ? You could try IBM Rational Purify. It's quite a nice tool and you can download a trial version. (You can a

Re: [osg-users] Profiler with OSG

2008-09-19 Thread Thibault Genessay
ult > I just need the line code where to find the leak but I am not able to do > it... I added #define _CRTDBG_MAP_ALLOC but nothing appear... > Any suggestion to get the file and line number ? > > thanks a lot. > Regards, > Vincent. > > 2008/9/19 Thibault Genessay

Re: [osg-users] Ref_ptr question : argument and return

2008-09-23 Thread Thibault Genessay
Hi Vincent On Mon, Sep 22, 2008 at 5:23 PM, Vincent Bourdier <[EMAIL PROTECTED]> wrote: > Hi all, > > I read that all the objects that inherit from Referenced need to be in a > ref_ptr. They don't _need_ to. You can perfectly use a raw pointer to an osg::Referenced instance, e.g. create a new nod

Re: [osg-users] VBO

2008-01-07 Thread Thibault Genessay
Hi all, I know this is slightly off-topic, but if some of you have 5 minutes to waste, please read on :) I just take the occasion to ask a question regarding Robert's latest comment: > So if you want fast paths absolutely never ever ever used vertex > indices. Vertex indices are there in the OS

Re: [osg-users] preload textures

2008-01-14 Thread Thibault Genessay
Hi Charles On Jan 15, 2008 3:30 AM, Charles Han <[EMAIL PROTECTED]> wrote: > I want to preload models' textures before the models are visible in my > application because when loading these textures, even though i enabled NPOT, > the application freezes for a while. You can try a very simple appro

Re: [osg-users] wx with OSG canvas resize bug

2008-01-20 Thread Thibault Genessay
Hi Tamer, Have you tried to pass the new graphics window size to the OSG when it changes ? Your canvas should intercept the resize events and send the updated sizes to all OSG views, e.g. myView->getEventQueue()->windowResize(0, 0, width, height); Thibault On Jan 20, 2008 1:37 AM, Tamer El Nasha

Re: [osg-users] Win32 VS8.0 crash on exit in debugger, related to freetype

2008-02-07 Thread Thibault Genessay
Hi guys I've updated this morning to the latest SVN, and I get an error that looks the same as yours. I am using VS 2008 and Mike's DLL compiled for 7.1. I have had no problem so far, so I guess the problem is inside the OSG, and not exactly related to FreeType. I have tried with a very minimal p

Re: [osg-users] Win32 VS8.0 crash on exit in debugger, related to freetype

2008-02-07 Thread Thibault Genessay
Hi there, Good news, it seems :) On December 16, Robert committed a patch that included the following lines in FreeTypeLibrary.cpp if (font) font->setImplementation(0); fontImplementation->_facade = 0; However, they are clearly wrong (at least, when the program exits) because afte

Re: [osg-users] about Plugins freetype

2008-02-21 Thread Thibault Genessay
Hi On Thu, Feb 21, 2008 at 9:43 AM, IceSharK <[EMAIL PROTECTED]> wrote: > Hi,all > > osg 2.3.4 > osgdb_freetype.dll exist , when the app exit , vs2005 out : > > HEAP[osglogo.exe]: HEAP: Free Heap block 1e7b558 modified at 1e7e320 after > it was freed > > Plugins freetype's bug ? Yes. It was fixed

[osg-users] osg::Image: inconsistencies with internalTextureFormat

2008-02-27 Thread Thibault Genessay
Hi all While writing an image conversion routine (OSG -> wxWidgets) I have noticed something that I'd qualify as an inconsistency: the meaning of the _internalTextureFormat member of osg::Image is different from plugin to plugin. For 24 and 32 bpp images, it is sometimes 3 or 4 (i.e. 3 or 4 bytes

Re: [osg-users] Create new Image

2008-04-11 Thread Thibault Genessay
HI Vincent On Fri, Apr 11, 2008 at 9:04 AM, Vincent Bourdier <[EMAIL PROTECTED]> wrote: > I have a VS bug : > > Windows a déclenché un point d'arrêt dans 3DEM.exe. > Cela peut être dû à une défaillance du tas et indique un bogue dans 3DEM.exe > ou l'une des DLL chargées. > La fenêtre Sortie peut

Re: [osg-users] warning when creating image

2008-04-16 Thread Thibault Genessay
Hi Erlend > image->setImage(width, height, 0, GL_RGBA, GL_RGBA, GL_UNSIGNED_BYTE, > pixels, osg::Image::AllocationMode::USE_NEW_DELETE); > causes the warning: > Warning 4 warning C4482: nonstandard extension used: enum > 'osg::Image::AllocationMode' used in qualified name ... This is a C++ langua

Re: [osg-users] What's the mpr.dll ?

2008-04-21 Thread Thibault Genessay
Hi Donlin > Yes,it's really the mpr.dll problem.I notice that on all installed .Net > Framework cann't run my osg app,on all no-installed .Net Framework can run > my osg app freely. > > It may be that the two mpr.dll is different. is it really the problem of > .Net Framework? The mpr.dll library

Re: [osg-users] Adding input device Part 2

2008-04-22 Thread Thibault Genessay
Hi Renan On Tue, Apr 22, 2008 at 2:36 PM, Renan Mendes <[EMAIL PROTECTED]> wrote: > Hi, > > As some of you may remember, i was trying to add a new input device to > my OSG application. This device was the SpaceNavigator. I had access to the > code that gets the 3D coordinates from it any time

Re: [osg-users] Adding input device Part 2

2008-04-23 Thread Thibault Genessay
Hi Renan On Tue, Apr 22, 2008 at 3:12 PM, Renan Mendes <[EMAIL PROTECTED]> wrote: > The best sollution you think, then, is using multithreads? > I don't know if it is the "best" solution. I've had a look at the first thread in the archive and saw that people here know far better than me the speci

Re: [osg-users] osgWidget 0.1.8 (pre-merge)

2008-05-13 Thread Thibault Genessay
Hi Jeremy I've just tried to compile your code using Visual Studio 9.0 and got lots of errors that are almost all related to 'const' usage. I am sometime suspicious about Redmond compilers so I also tried to compile the code on Debian 4.0, and the errors are (hopefully) similar. Here is the outpu

Re: [osg-users] osgWidget 0.1.8 (pre-merge)

2008-05-13 Thread Thibault Genessay
Hi Jeremy On Tue, May 13, 2008 at 6:16 PM, Jeremy Moles <[EMAIL PROTECTED]> wrote: > > > On Tue, 2008-05-13 at 17:49 +0200, Thibault Genessay wrote: > > Hi Jeremy > > > > I've just tried to compile your code using Visual Studio 9.0 and got > > l

Re: [osg-users] osgWidget 0.1.8 (pre-merge)

2008-05-13 Thread Thibault Genessay
Hi Jeremy > > Window* parent = wl->back()->getParent(); // wl is declared as 'const > > WidgetList* wl' > > Was this the only line you needed to change? Were there others? :)> If it had only been as easy as modifying 1 line, I would have sent you a patch rather than complaining :) I could not

Re: [osg-users] wxWidgets onKeyDown Event not called

2008-05-14 Thread Thibault Genessay
Hi Steven On Wed, May 14, 2008 at 3:42 PM, Steven Powers <[EMAIL PROTECTED]> wrote: > > Still having the problem... > > The problem I am having is that OnKeyDown and OnKeyUp methods are never > called when I press a key. The mouse handler functions work fine so I > can control the camera with the

Re: [osg-users] osgWidget 0.1.8 (pre-merge)

2008-05-14 Thread Thibault Genessay
Jeremy, Just to keep you informed: the code compiles well for the 0.1.7 tag on both machines, but fails for both on the trunk. > The prototype for ref_ptr::get looks like this: > >T* get() const { return _ptr; } > After reviewing the 0.1.7 code, this makes perfect sense. It is legal to g

Re: [osg-users] osgWidget 0.1.8 (pre-merge)

2008-05-14 Thread Thibault Genessay
. I am sorry for the noise. Thank you Robert for the little lesson :) Regards Thibault On Wed, May 14, 2008 at 5:19 PM, Robert Osfield <[EMAIL PROTECTED]> wrote: > Hi Thibault, > > On Wed, May 14, 2008 at 4:02 PM, Thibault Genessay <[EMAIL PROTECTED]> wrote: >> I really

Re: [osg-users] start/stop viewer

2009-04-07 Thread Thibault Genessay
Hi Bob I have used such a design in wxWidgets. I guess you could adopt the same strategy for MFC. I have an instance of osgViewer::CompositeViewer in a global singleton. When I need a 3D view: - I create a canvas (in your case, an MFC window that derives from or has a osg::GraphicsContext). - I a

Re: [osg-users] Feedback request: New browser plugin allow you to run 3D .exe embedded in webpage

2009-05-01 Thread Thibault Genessay
Hi FYI I've tried the plugin on my laptop (nVidia NVS 110) with Firefox and WinXP, single-screen, and the samples ran in fullscreen mode - the browser window would show only the loading gauge, even after exiting the sample. Thibault On Fri, May 1, 2009 at 10:49 AM, Serge Lages wrote: > Hi, > >

Re: [osg-users] Stupid VC warning message

2009-05-12 Thread Thibault Genessay
Hi Keith You probably overlooked the error message from the compiler, which is quite clear (and not stupid at all). You should not use the enumerated type name in the qualified name, i.e. instead of tex->setWrap(osg::Texture::WRAP_S, osg::Texture::WrapMode::REPEAT); write tex->setWrap(osg::Texture

[osg-users] Bug? CompositeViewer, Views and EventQueues, multiple windows

2009-05-18 Thread Thibault Genessay
Hi all There is something strange (feature or bug?) in the way the osgViewer::CompositeViewer dispatches events to the windows. When there are multiple windows, each containing a single view to a single scene, the events do not seem to be routed to the proper view. I found what I guess is the guil

Re: [osg-users] Bug? CompositeViewer, Views and EventQueues, multiple windows

2009-05-20 Thread Thibault Genessay
Replying to myself ... I've also tried the sample program attached to the previous email on Linux and get the same problem, so this is not Windows-specific. Any lights on this issue ? Cheers Thibault On Mon, May 18, 2009 at 3:51 PM, Thibault Genessay wrote: > Hi all > > Ther

Re: [osg-users] Error in OpenThreads::ReentrantLock ???

2007-07-27 Thread Thibault Genessay
Hi guys, On 7/27/07, Schmidt, Richard, SDGE1 <[EMAIL PROTECTED]> wrote: > > Introduce a > > static int Thread::getCurrentThreadId() which is implemented on Win32 > with > >inline static DWORD getCurrentThreadId () { > return GetCurrentThreadId(); > } > > On other systems, i don't kno

Re: [osg-users] parse 3d model not storaged in local file

2007-08-29 Thread Thibault Genessay
Hi On 8/28/07, 赵明伟 <[EMAIL PROTECTED]> wrote: > > I find the ReadWriter's virtual function read/write Object/Image/Node from > file and also from the memory by istream. I think That's what I want. But It > seems to only the osg plugin implement the function completely. > I think we kinda float th

Re: [osg-users] parse 3d model not storaged in local file

2007-08-30 Thread Thibault Genessay
MAIL PROTECTED]> 写道: > > > Thank you very much. That's just what I meed. > Thanks again for your help. > > ---MingWei--- > > > > 在2007-08-29,"Thibault Genessay" <[EMAIL PROTECTED]> 写道: > > Hi > > On 8/28/07, 赵明伟 <[EMAIL PROTECTED]&

Re: [osg-users] STL problem

2007-08-30 Thread Thibault Genessay
Hi Matthias On 8/30/07, Matthias Weigand <[EMAIL PROTECTED]> wrote: > > Hi again, > > I'm using Microsoft Visual Studio 2005 Professional (which is 8.0) with > Service Pack 1 installed. > > I used prebuilt osg binaries, may this be an issue? Maybe these were > built with another version of STL, wh

Re: [osg-users] more on Windows debugging

2007-09-27 Thread Thibault Genessay
Hi guys Just my 2 cents: have you tried to put the pdb files along with the DLLs ? My post-build step copies all the DLLs and the PDBs and stores them in the same folder (say 'c:\libs\bin' - must be in %PATH%), and I've never experienced any problems, except when a PDB does not match a DLL - which

Re: [osg-users] Subversion Installation Step-Step manual

2007-10-03 Thread Thibault Genessay
Hi Adrian Here's how I installed and configured apache for svn + dav + ssl on our SVN server. It has not been hacked so far, but who knows, my configuration might also be breakable. I'm not running svnserve at all, and got no problem accessing my repo from tortoise svn on windows, and the command

Re: [osg-users] osgviewerWX race condition.

2007-10-24 Thread Thibault Genessay
Hi Robert On 10/24/07, Robert Osfield <[EMAIL PROTECTED]> wrote: > > I don't know about the WxWidgets issue, but the ascii loading issue is > a known issue, attempts have been made at fixing it, but alas its a > bit more awkward than one at first would expect - its related to the > C/C++ libs chan

Re: [osg-users] multiple windows

2007-10-26 Thread Thibault Genessay
Hi Emmanuel I have made a sample that demonstrate the integration of the OSG in wxWidgets. It is a simple frame with a wxAUINotebook containing OSG views. You can download source and binaries at http://ips-dil.unil.ch/osg Could you have a look at these and see if this suits your needs ? I am pla

Re: [osg-users] multiple windows

2007-10-28 Thread Thibault Genessay
the update is not continuous). > It is something related to your OnIdle optimization. If you comment the if > line, then > everything animates as usual. > Hope it helps. Glad to see if compiles under 7.1 Thanks for testing Thibault > Ciao! > mario > > > Thibault

Re: [osg-users] multiple windows

2007-10-29 Thread Thibault Genessay
to switch to VS 2005 as the compiler (and the C++ runtime) contains much less bugs than VS 7.x series. Cheers Thibault > regards, > Manu. > > > 2007/10/29, Thibault Genessay <[EMAIL PROTECTED]>: > > Hi Mario > > > > > > On 10/26/07, Mario Valle <[EMAIL

Re: [osg-users] The Next-Gen Game Engine Creature3D

2007-11-15 Thread Thibault Genessay
Hi WuCaihua I've tried to download and launch your demo and I get the same error as Jean Sébastien. I am using WinXP SP2 EN. It seems that at at least 1 DLL is not found (dwmapi.dll, saw that with the dependency walker) and also that this DLL is part of windows Vista. Are you running vista? If so,

Re: [osg-users] The Next-Gen Game Engine Creature3D

2007-11-16 Thread Thibault Genessay
Hi WuCaihua I have just tested your app on my Dell D820 Laptop (NVIDIA Quadro NVS 110 M) and it went further than previously, but still crashed at some point. The graphics window showed up, but when the progress bar finished, the whole system crashed. I suspect a video driver problem as those are

Re: [osg-users] OSG CPU usage

2007-11-16 Thread Thibault Genessay
Hi Akos The Canvas class derives from wxGLCanvas, and is the glue between the OSG and wxWidgets. It defines two child classes: View and GraphicsContext. Canvas::GraphicsContext derives from osgViewer::GraphicsWindow (pure virtual). The OSG uses the GraphicsWindow to actually create the window, sh

Re: [osg-users] utf-8?

2007-11-21 Thread Thibault Genessay
Hi Johan, Did you check that the font file itself does include the glyphs that you try to display ? Also, try to pass your input data as a wide character string, i.e. L"لْعَرَبيّة" I have a similar problem in the past and solved it using wchar_t strings in my source files, and using a different f

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

[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

Re: [osg-users] CompositeViewer and MatrixManipulators

2007-11-28 Thread Thibault Genessay
Hi Till Did you try to pass the window size to the manipulators? Depending on your window setup (the way you create your graphics context and your views) and the underlying windowing toolkit (native, Qt, wxWidgets, ...) there may be instances where the manipulators do not know the actual window si

Re: [osg-users] osgText quality

2007-12-06 Thread Thibault Genessay
Hi FYI I guess JP was talking about this thread http://thread.gmane.org/gmane.comp.graphics.openscenegraph.user/9932/focus=9937 Using two equal values for the resolution worked for me too. You have to try various values because some rounding is performed in background and you won't necessarily no

[osg-users] osgText::Text aspect ratio using SCREEN_COORDS

2007-12-10 Thread Thibault Genessay
Hi Robert, This august, Martin Prosicky posted a patch to work around a longstanding bug in osgText::Text using the SCREEN_COORDS mode. I came across this bug and noticed your discussion (http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/2007-August/001607.html). I applied Mar

Re: [osg-users] Convert wxImage to osg:Image

2010-09-27 Thread Thibault Genessay
Hi Lahiru I use the attached code when converting from wxImage to osg::Image. The code is slightly modified to be independent from my project, but should be a good starting point. You might very well rethink how wxImageHandlers are created (i.e. if you call wxInitAllImageHandlers() at the beginni

Re: [osg-users] Integrating OSG into a window (OSG Beginner book Ch9)

2014-08-18 Thread Thibault Genessay
Hi Sonya, I tried your example with MSVC 2013, 64bit, OSG 3.2.1 and I get the Cessna. Its appearance is weird (see attachment), but still, I get more than a blue screen. However, I tried to modify your example using code from the OSG FAQ ( http://trac.openscenegraph.org/projects/osg//wiki/Support

[osg-users] OSG plugin for browsers

2011-04-07 Thread Thibault Genessay
Hi folks, I have been looking for quite a long time for a way to integrate OpenSceneGraph applications in web browsers. Several plugins seem to have emerged in the past years: - osg4web (project created on Google code, nothing to download) - gvsig3d (http://gvsig3d.blogspot.com/2010/02/opensceneg

Re: [osg-users] OSG plugin for browsers

2011-04-07 Thread Thibault Genessay
d lock us into Chrome, which was something I wanted to avoid in the first place. Decisions, decisions. Thank you for the pointer Thibault > Cheers, > On Thu, Apr 7, 2011 at 11:30 AM, Thibault Genessay > wrote: >> >> Hi folks, >> >> I have been looking fo

Re: [osg-users] OSG plugin for browsers

2011-04-09 Thread Thibault Genessay
Hi all, First, thanks Chris, Peter, Luigi and Leo for the replies. I now have a better overview of the problem. I had not noticed that FireBreath was cross-platform, and will give your source code links a shot as soon as I have time. In the meantime, I am trying FireBreath, and will post my progr