Hi Dirk,
I have derived ShadowMapViewport in order to add a public method to access
_shadowImages vector. It is the first time I try to derive an opensg class,
so I made some error maybe [ops: sure]. I used following procedure that I
show you step by step in hope you can diagnose my errors! :(
1. I loaded with fcdedit OSGShadowMapViewport.fcd (the parent class) and I
saved fcd file in a new dir (dShadowMapViewport). I didn't understand how
"Load parent" works :'(
2. I have written "field container" and "field container base" codes (via
fcdedit);
3. I copied all files into my project tree, made some correction to errors
produced by fcdedit (strange iclusions);
4. introduced the public method into dShadowMapViewport.h file:
std::vector<ImagePtr> getShadowImages(void) { return
(dShadowMapViewport::_shadowImages); }
5. after that I tryed to compile and I received errors like
"_desc : definition of dllimport static not available". I preface I don't
know how dllimport/export works under Windows, but I supposed that
OSG_SYSTEMLIB_DLLMAPPING definition wasn't right for my case (I compile new
class inside my project and I don't want a library, I looked in netypes
example also) and so I decided to remove that label from my class
definition;
6 after that I can compile but my application crashed;
first of all i have the following error lauching the application:
WARNING: ERROR: Double field description in dShadowMapViewport from offBias
(id: 83)
...
And when I call getShadowImages the application crashes:
dShadowMapViewportPtr dsvp =
dShadowMapViewportPtr::dcast(svp);
dsvp->getShadowImages();
Can you give me any suggestion ?
Regards
Daniele
> -----Messaggio originale-----
> Da: [EMAIL PROTECTED] [mailto:opensg-users-
> [EMAIL PROTECTED] Per conto di Dirk Reiners
> Inviato: mercoledì 12 ottobre 2005 21.18
> A: users
> Oggetto: Re: [Opensg-users] about ShadowMapViewport
>
>
> Hi Daniele,
>
> On Wed, 2005-10-12 at 16:37 +0200, Daniele Pagliani wrote:
> > Hi all,
> >
> > I need some clarification about shadowmapviewport. I think the vieport
> > sets a camera for each light and than create a texture that is added
> > to each shadowed object. Can I acces the texture image and modify it?
>
> Not directly, that is hidden in the ShadowViewport. If you want to you
> can probably derive your own from it though.
>
> Dirk
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Power Architecture Resource Center: Free content, downloads, discussions,
> and more. http://solutions.newsforge.com/ibmarch.tmpl
> _______________________________________________
> Opensg-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensg-users
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users