Lars Henning Wendt | 6 Jan 2012 12:06
Picon
Picon
Picon
Favicon

PCRE support lib build problem with OpenSG2.0

Hi Gerrit,

I have problems building the PCRE SupportLib with Visual Studio 2008.
I've recently upgraded from version 7.9 to 8.12. Version 8.12 doesn't 
build because it is configured in a way that it depends on stdint.h.
Microsoft doesn't deliver this header, until Visual Studio 2010.

The reason why it is used anyway is that the 
OpenSG/support/pcre/config.h (which is the current version from the 
OpenSG git repro) make the following definitions.

#define HAVE_STDINT_H 1
#define HAVE_INTTYPES_H 1

What solution would you recommend?
- stick with 7.9
- get stdint.h from web (maybe add it to OpenSG/support/pcre)
- modify OpenSG/support/pcre/config.h

BTW: There are further weird definitions in the config.h file e.g.
#define VERSION "7.6". So I'm not sure if the usage of this file is 
still intended?

best
Lars

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
(Continue reading)

Gerrit Voß | 9 Jan 2012 12:04

Re: PCRE support lib build problem with OpenSG2.0


Hi,

On Fri, 2012-01-06 at 12:06 +0100, Lars Henning Wendt wrote:
> Hi Gerrit,
> 
> I have problems building the PCRE SupportLib with Visual Studio 2008.
> I've recently upgraded from version 7.9 to 8.12. Version 8.12 doesn't 
> build because it is configured in a way that it depends on stdint.h.
> Microsoft doesn't deliver this header, until Visual Studio 2010.
> 
> The reason why it is used anyway is that the 
> OpenSG/support/pcre/config.h (which is the current version from the 
> OpenSG git repro) make the following definitions.
> 
> #define HAVE_STDINT_H 1
> #define HAVE_INTTYPES_H 1
> 
> What solution would you recommend?
> - stick with 7.9
> - get stdint.h from web (maybe add it to OpenSG/support/pcre)
> - modify OpenSG/support/pcre/config.h
> 
> BTW: There are further weird definitions in the config.h file e.g.
> #define VERSION "7.6". So I'm not sure if the usage of this file is 
> still intended?

I'll have a look, but I have to find a VS2008 installation ;). The
VERSION part is most likely just a leftover as I often transition the
generated files to new versions instead of trying to recreate them, so
(Continue reading)

Christoph Fünfzig | 11 Jan 2012 13:49
Picon
Picon

Re: Multi-Threaded Render (OpenSG 2.0)

Hi,

coming back to this in the new year ..
My application is running just fine, changing the camera (via Navigators)
and changing the matrix field of some transforms.
But I see inbetween states during changes in dependent aspects
(which synchronize with the application aspect performing them):

   OSG::commitChanges();
   // do camera changes and model transform changes
   performNavigation();
   OSG::commitChanges();
   // synchronize with renderer
   tile->syncBarrier->enter(config.numPipes()+1);
   // sync to renderers
   tile->syncBarrier->enter(config.numPipes()+1);

Could someone hint me to documentation on OSG::commitChanges?
What does it do exactly?

Thanks,
Christoph

On 21.12.2011 05:32, Gerrit Voß wrote:
>
> Hi,
>
> On Tue, 2011-12-20 at 11:24 +0100, "Christoph Fünfzig" wrote:
>> Hi Gerrit,
>>
(Continue reading)

Gerrit Voß | 12 Jan 2012 00:16

Re: Multi-Threaded Render (OpenSG 2.0)


Hi,

On Wed, 2012-01-11 at 13:49 +0100, "Christoph Fünfzig" wrote:
> Hi,
> 
> coming back to this in the new year ..
> My application is running just fine, changing the camera (via Navigators)
> and changing the matrix field of some transforms.
> But I see inbetween states during changes in dependent aspects
> (which synchronize with the application aspect performing them):
> 
>    OSG::commitChanges();
>    // do camera changes and model transform changes
>    performNavigation();
>    OSG::commitChanges();
>    // synchronize with renderer
>    tile->syncBarrier->enter(config.numPipes()+1);
>    // sync to renderers
>    tile->syncBarrier->enter(config.numPipes()+1);
> 
> Could someone hint me to documentation on OSG::commitChanges?
> What does it do exactly?

calls changed on the containers that changed since the last 
commitChanges. It is basically the replacement for the old endEdit, as
this was removed for OpenSG 2. The only main difference is that while
endEdit worked directly on one container at a time and relied on the 
user to provide the correct FieldMasks, commitChanges walks through 
the ChangeList and calls changed on all containers changed since the
(Continue reading)

Gerrit Voß | 13 Jan 2012 08:46

Re: PCRE support lib build problem with OpenSG2.0


Hi,

On Mon, 2012-01-09 at 19:04 +0800, Gerrit Voß wrote:
> Hi,
> 
> On Fri, 2012-01-06 at 12:06 +0100, Lars Henning Wendt wrote:
> > Hi Gerrit,
> > 
> I'll have a look, but I have to find a VS2008 installation ;). The
> VERSION part is most likely just a leftover as I often transition the
> generated files to new versions instead of trying to recreate them, so
> there might be some leftovers in there. I'll check this one too.

sorry took a second to get a VS2008 running again. I fixed the config.h
file so that it checks the compiler version and uses the correct 8.12
version strings. It should build now. If there are more problems with
VS 2008 let me know, I will try a full build myself.

kind regards
 gerrit

------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
Opensg-users mailing list
(Continue reading)

Michael Raab | 13 Jan 2012 13:06
Picon
Picon

OpenSG1.8 - Changing OpenGL context

Hi all,

I'm trying to change the pixel format of our application during runtime.
To achieve this I need to recreate our drawing surface (device context) and as an implication the opengl
context. Up to this all went well.
After that OpenSG leaves the frame buffer completely black. How is the relation of OpenSG to the current GL
context? What do I need to do to use a new context?

Thanks,
Michael
--

-- 
NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie!		
Jetzt informieren: http://www.gmx.net/de/go/freephone

------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
Opensg-users mailing list
Opensg-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users
Carsten Neumann | 13 Jan 2012 16:02
Picon

Re: OpenSG1.8 - Changing OpenGL context

	Hello Michael,

On 01/13/2012 06:06 AM, Michael Raab wrote:
> I'm trying to change the pixel format of our application during runtime.
> To achieve this I need to recreate our drawing surface (device context) and as an implication the opengl
context. Up to this all went well.
> After that OpenSG leaves the frame buffer completely black. How is the relation of OpenSG to the current GL
context? What do I need to do to use a new context?

a GL context is represented as a Window in OpenSG. Depending on the type 
of window you use they either create the context themselves or use an 
existing one (PassiveWindow).
I'm guessing you'll have to create a new window to use the new context.

	Cheers,
		Carsten

------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
Michael Raab | 13 Jan 2012 16:20
Picon
Picon

Re: OpenSG1.8 - Changing OpenGL context

Hi Carsten,

I think I solved the issue. I called reinitializeAllGLObjects() on my current window after activating the
new context. The results look fine up to now. Does it sound resonable to you?

Thanks,
Michael

-------- Original-Nachricht --------
> Datum: Fri, 13 Jan 2012 09:02:10 -0600
> Von: Carsten Neumann <carsten_neumann <at> gmx.net>
> An: opensg-users <at> lists.sourceforge.net
> Betreff: Re: [Opensg-users] OpenSG1.8 - Changing OpenGL context

> 	Hello Michael,
> 
> On 01/13/2012 06:06 AM, Michael Raab wrote:
> > I'm trying to change the pixel format of our application during runtime.
> > To achieve this I need to recreate our drawing surface (device context)
> and as an implication the opengl context. Up to this all went well.
> > After that OpenSG leaves the frame buffer completely black. How is the
> relation of OpenSG to the current GL context? What do I need to do to use a
> new context?
> 
> a GL context is represented as a Window in OpenSG. Depending on the type 
> of window you use they either create the context themselves or use an 
> existing one (PassiveWindow).
> I'm guessing you'll have to create a new window to use the new context.
> 
> 	Cheers,
(Continue reading)

Carsten Neumann | 13 Jan 2012 16:31
Picon

Re: OpenSG1.8 - Changing OpenGL context

	Hello Michael,

On 01/13/2012 09:20 AM, Michael Raab wrote:
> I think I solved the issue. I called reinitializeAllGLObjects() on my current window after activating
the new context. The results look fine up to now. Does it sound resonable to you?

yes, that should recreate all OpenGL objects in the new context.

	Cheers,
		Carsten

------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
Lars Henning Wendt | 16 Jan 2012 09:02
Picon
Favicon

Re: PCRE support lib build problem with OpenSG2.0

thx, it builds now without problems.

best
Lars

On 13.01.2012 08:46, Gerrit Voß wrote:
>
> Hi,
>
> On Mon, 2012-01-09 at 19:04 +0800, Gerrit Voß wrote:
>> Hi,
>>
>> On Fri, 2012-01-06 at 12:06 +0100, Lars Henning Wendt wrote:
>>> Hi Gerrit,
>>>
>> I'll have a look, but I have to find a VS2008 installation ;). The
>> VERSION part is most likely just a leftover as I often transition the
>> generated files to new versions instead of trying to recreate them, so
>> there might be some leftovers in there. I'll check this one too.
>
> sorry took a second to get a VS2008 running again. I fixed the config.h
> file so that it checks the compiler version and uses the correct 8.12
> version strings. It should build now. If there are more problems with
> VS 2008 let me know, I will try a full build myself.
>
> kind regards
>   gerrit
>
>
>
(Continue reading)


Gmane