thanks,
after trying the only way I got it to work is to do
GetObjectModel()->SetTriangleData(id,0) in the meshfactory before any
meshwrapper is created. Otherwise it acts like the old setting is still
there.

You asked why I was using it, it's transparency and also anything that can't
update like vertex shader animation, maybe efficency too.

Anyway problem solved for now, thanks Jorrit

----- Original Message -----
From: "Jorrit Tyberghein" <[EMAIL PROTECTED]>
To: "CS developers and users list" <[email protected]>
Sent: Saturday, July 05, 2008 10:21 PM
Subject: Re: [CsMain] how to prevent culling behind walls


> You have to do it like this:
>
> csRef<iStringSet> strset = csQueryRegistryTagInterface<iStringSet> (
>     object_reg, "crystalspace.shared.stringset");
> csStringID id = strset->Request ("viscull");
> iMeshWrapper* mesh = ...;
> mesh->GetMeshObject()->GetObjectModel()->SetTriangleData(id,0);
>
> Greetings,
>
>
> On Sat, Jul 5, 2008 at 11:24 PM, infinity <[EMAIL PROTECTED]>
wrote:
> > ok, so I can set a flag for the meshwrapper, with SetFlagsRecursive? I
don't
> > know which flag I tried to look it up in the API/ manual, CS 1.2
> >
> > thank you
> >
> > ----- Original Message -----
> > From: "Jorrit Tyberghein" <[EMAIL PROTECTED]>
> > To: "CS developers and users list" <[email protected]>
> > Sent: Saturday, July 05, 2008 9:46 AM
> > Subject: Re: [CsMain] how to prevent culling behind walls
> >
> >
> >> On Thu, Jul 3, 2008 at 9:52 PM, infinity <[EMAIL PROTECTED]>
> > wrote:
> >> > I don't quite know how to word this, how do I set an object so it
cannot
> >> > block others (and make them invisible) in the dynavis type culling?
This
> > is
> >> > c++ source code I mean not a map file.
> >>
> >> You can set a flag for the culler to disable culling. But why exactly
do
> > you
> >> want this? The only reason ever to need this is if that object uses
> >> transparency.
> >> Otherwise there is no advantage.
> >>
> >> Greetings,
> >>
> >> >
> >>
> >>
> >> --
> >> Project Manager of Crystal Space (http://www.crystalspace3d.org)
> >> and CEL (http://cel.crystalspace3d.org)
> >> Support Crystal Space. Donate at
> >> https://sourceforge.net/donate/index.php?group_id=649
> >> Visit my town at http://waldir.myminicity.com/
> >>
>
>> -------------------------------------------------------------------------
> >> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
> >> Studies have shown that voting for your favorite open source project,
> >> along with a healthy diet, reduces your potential for chronic lameness
> >> and boredom. Vote Now at http://www.sourceforge.net/community/cca08
> >> _______________________________________________
> >> Crystal-main mailing list
> >> [email protected]
> >> https://lists.sourceforge.net/lists/listinfo/crystal-main
> >> Unsubscribe:
> > mailto:[EMAIL PROTECTED]
> >
> >
>
> -------------------------------------------------------------------------
> > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
> > Studies have shown that voting for your favorite open source project,
> > along with a healthy diet, reduces your potential for chronic lameness
> > and boredom. Vote Now at http://www.sourceforge.net/community/cca08
> > _______________________________________________
> > Crystal-main mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/crystal-main
> > Unsubscribe:
mailto:[EMAIL PROTECTED]
> >
>
>
>
> --
> Project Manager of Crystal Space (http://www.crystalspace3d.org)
> and CEL (http://cel.crystalspace3d.org)
> Support Crystal Space. Donate at
> https://sourceforge.net/donate/index.php?group_id=649
> Visit my town at http://waldir.myminicity.com/
>
> -------------------------------------------------------------------------
> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
> Studies have shown that voting for your favorite open source project,
> along with a healthy diet, reduces your potential for chronic lameness
> and boredom. Vote Now at http://www.sourceforge.net/community/cca08
> _______________________________________________
> Crystal-main mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/crystal-main
> Unsubscribe:
mailto:[EMAIL PROTECTED]


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Crystal-main mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-main
Unsubscribe: mailto:[EMAIL PROTECTED]

Reply via email to