Hello Konrad,

Konrad Kölzer wrote:
> Hi everybody,
> 
> I am still quite unexperienced in OpenSG and I have recently switched
> from OpenSG 1.8 to 2.0. However my existing application won't compile
> anymore. It seems there have been made some changes to the
> OpenSG interface.

yes, this is not surprising, there have been changes to the way pointers 
are handled in the system. The other big change is that 
beginEditCP/endEditCP are gone. Instead you need to call commitChanges() 
at least once per frame, but since this triggers the changed() call on 
FieldContainers (formerly done by endEditCP) you also need to call it 
before accessing values that are updated by changed().

> But I can't find any documentation on how things work
> now in OpenSG 2.0. For example I don't know how to replace the
> functionality of NodePtr.

Basically, NodePtr is replaced by NodeRecPtr (Rec for recorded as it 
records reference count changes in the changelist). We might bring back 
the NodePtr though in order to reduce the typing involved.

> All the tutorials I could find, still use the
> old interface, but maybe I am searching at the wrong places ;).

Not really, since 2.0 is not released yet, we simple did not get to work 
on the documentation, but it is on the todo (and not entirely at the 
bottom of it ;) ).

> So what
> I am asking for, is some short how-to for nodes and cores in OpenSG 2.0
> or some similar documentation, just *any kind* of documentation, if it
> should exist.

There is a *very short* explanation of the new pointer types on the 
wikik (<http://opensg.vrsource.org/trac/wiki/Dev/DevDesignNotes> see the 
sections starting from RefCountPtr<>).


        Hope it helps,
                Carsten

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to