Hi,
On Thu, 2006-08-31 at 07:38 -0500, [EMAIL PROTECTED] wrote:
> > my A also in short:
> > YES
>
> Thats good to hear but somehow I am not able to make it work :(
>
> Here is what I did :
> Using fcdEdit I created a new class MyGeometry derived from Geometry and
> added a
> new field of type MFUInt32 in the derived class. Then I changed the Tutorial
> example 05geometry.cpp and instead of creating node of type Geometry, I
> created
> and used node of derived class MyGeometry in the application:
>
> MyGeometryPtr geo=MyGeometry::create();
>
> After building, when I run the application, I only get a blank window staring
> back at me, nothing is drawn!
>
> What am I missing here or what else do I need to do ? Is there working
> example
> somewhere doing the same kind of thing ?
most likely you missed to register the callbacks for rendering. Could
you check your initMethod that it contains something like :
void MyGeometry::initMethod(void)
{
DrawAction::registerEnterDefault(getClassType(),
osgTypedMethodFunctor2BaseCPtrRef<Action::ResultE,
MaterialDrawablePtr,
CNodePtr, Action
*>(&MaterialDrawable::drawActionHandler));
IntersectAction::registerEnterDefault(getClassType(),
osgTypedMethodFunctor2BaseCPtrRef<Action::ResultE, GeometryPtr,
CNodePtr, Action *>(&Geometry::intersect));
IntersectActor::regClassEnter(
osgTypedMethodFunctor2BaseCPtr<
NewActionTypes::ResultE,
GeometryPtr,
NodeCorePtr,
ActorBase::FunctorArgumentType
&>(&Geometry::intersectActor),
getClassType());
RenderAction::registerEnterDefault(getClassType(),
osgTypedMethodFunctor2BaseCPtrRef<Action::ResultE,
MaterialDrawablePtr,
CNodePtr, Action
*>(&MaterialDrawable::renderActionHandler));
}
If this does not help, let me know and I give it a try ;-)
regards
gerrit
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users