Hi,

sorry, I was just guessing at possible problems. We have had problems
with overlays and terrain texture units clashing, but I'm not sure it is
related to particle system and terrain.

OverlayNode->setOverlayTextureUnit(1);

Terrain texture units can in newer osgdem be set with layer option.

In other code you can look for:
setTextureAttributeAndModes(0,texture.get(),osg::StateAttribute::ON);

jp

CG wrote:
> Hi,
>  
> Sorry, I'm lost here, how do I check the texture units?
> 
> Reards,
> Cg
> 
> ------------------------------------------------------------------------
> 
>  > Date: Fri, 27 Jun 2008 09:17:59 +0200
>  > From: [EMAIL PROTECTED]
>  > To: [email protected]
>  > Subject: Re: [osg-users] Particles being culled
>  >
>  > Hi,
>  >
>  > maybe check what texture units are used by terrain and particles.
>  >
>  > jp
>  >
>  > CG wrote:
>  > > I've ported Joseph's particle tutorial to osg version 2.4 and it works
>  > > perfectly on my side. I'll try to find out the cause of this culling,
>  > > thanks for the help so far.
>  > >
>  > > 
> ------------------------------------------------------------------------
>  > > > Date: Thu, 26 Jun 2008 23:14:04 -0600
>  > > > From: [EMAIL PROTECTED]
>  > > > To: [email protected]
>  > > > Subject: Re: [osg-users] Particles being culled
>  > > >
>  > > > I'm totally guessing, but perhaps setting the max particle size
>  > > > smaller an d the number of particles larger will help, as perhaps 
> your
>  > > > particles are large enough to be touching the terrain and thereby
>  > > > being culled? More smaller particles might show some noticable
>  > > > difference...again, I'm totally guessing. I hope someone else can
>  > > > provide some help here. Are Joseph's tutorials up to date even? I
>  > > > haven't looked there in a long time. Sorry can't be more help.
>  > > > -c
>  > > >
>  > > > 2008/6/26 CG <[EMAIL PROTECTED]>:
>  > > > > Hi Charles,
>  > > > >
>  > > > > Thanks for your help, I've narrowed it down to my terrain, when 
> I use
>  > > > > Joseph's terrain, the particles look good. But when I switch 
> over to my
>  > > > > terrai n, some of the particles will get culled. How does a 
> terrain
>  > > affect
>  > > > > the particles?
>  > > > >
>  > > > > Regards,
>  > > > > Cg
>  > > > >
>  > > > > ________________________________
>  > > > >> Date: Thu, 26 Jun 2008 21:18:51 -0600
>  > > > >> From: [EMAIL PROTECTED]
>  > > > >> To: [email protected]
>  > > > >> Subject: Re: [osg-users] Particles being culled
>  > > > >>
>  > > > >> Well, make a bare-bones test program and isolate the cause, 
> and post
>  > > > >> it if necessary (in a new thread so someone else is compelled 
> to jump
>  > > > >> in and help you!). It looks like, to me, that they are just 
> rotated,
>  > > > >> not culled. Also, I guess you're using the connected system, and I
>  > > > >> didn't really look at that class ... try the bare-bones debug 
> program!
>  > > > >> Good luck,
>  > > > >> Charles
>  > > > >>
>  > > > >> 2008/6/26 CG <[EMAIL PROTECTED]& gt;:
>  > > > >> > Hi Charles,
>  > > > >> >
>  > > > >> > That didn't work too. Just don't seem to see what is culling the
>  > > > >> > particles?
>  > > > >> >
>  > > > >> > Regards,
>  > > > >> > Cg
>  > > > >> >
>  > > > >> > ________________________________
>  > > > >> >> Date: Thu, 26 Jun 2008 08:14:55 -0600
>  > > > >> >> From: [EMAIL PROTECTED] om
>  > > > >> >> To: [email protected]
>  > > > >> >> Subject: Re: [osg-users] Particles being culled
>  > > > >> >>
>  > > > >> >> CG:
>  > > > >> >> One more try: I'm just looking at old code b/c I know I've 
> had a
>  > > > & gt;> >> similar problem...and I didn't notice the next line of 
> my code:
>  > > > >> >>
>  > > > >> >> ps->SetAlignVectorX(osg::Vec3(0.,1.,0.));
>  > > > >> >>
>  > > > >> >> Hopefully that 'll make a difference.
>  > > > >> >> -Charles
>  > > > >> >>
>  > > > >> >> On Thu, Jun 26, 2008 at 6:24 AM, Charles Cossé 
> <[EMAIL PROTECTED]>
>  > > > >> >> wrote:
>  > > > >> >> > Sorry, then, I tried ... maybe you should repost so Robert
>  > > sees it.
>  > > > >> >> > Charles
>  > > > >> >> >
>  > > > >> >> > On Thu, Jun 26, 2008 at 3:08 AM, CG <[EMAIL PROTECTED]> wrote:
>  > > > >> >> >> Hi Charles,
>  > > > >> >> >>
>  > > > >> >> >> I've tried the setParticleAlignment and it didn't work .
>  > > > >> >> >>
>  > > > >> >> >> Regards,
>  > > > >> >> >> Cg
>  > > > >> >> >>
>  > > > >> >> >> _______ _________________________
>  > > > >> >> >>> Date: Wed, 25 Jun 2008 23:28:53 -0600
>  > > > >> >> >>& gt; From: [EMAIL PROTECTED]
>  > > > >> >> >>> To: [email protected]
>  > > > >> >> >>> Subject: Re: [osg-users] Particles being culled
>  > > > >> >> >>>
>  > > > >> >> >>> try:
>  > > > >> >> >>>
>  > > ps->setParticleAlignment(osgParticle::ParticleSystem::BILLBOARD);
>  > > > >> >> >>>
>  > & gt; > >> >> >>>
>  > > > >> >> >>> On Wed, Jun 25, 2008 at 11:23 PM, CG <[EMAIL PROTECTED]> 
> wrote:
>  > > > >> >> >>> > Hi Charles,
>  > > > >> >> >>> >
>  > > > >> >> >>> > Thanks for the reply, what are the settings for the 
> eye point
>  > > > >> >> >>> > facing?< BR>> >> >>> >
>  > > > >> >> >>> > Regards,
>  > > > >> >> >>> > Cg
>  > > > >> >& gt; >>> >
>  > > > >> >> >>> > ________________________________
>  > > > >> >> >>> >> Date: Wed, 25 Jun 2008 23:18:07 -0600
>  > > > >> >> >>> >> From: [EMAIL PROTECTED]
>  > > > >> >> >>> & gt;> To: [email protected]
>  > > > >> >> >>> >> Subject: Re: [osg-users] Particles being culled
>  > > > >> >> >>> >>
>  > > > >> >> >>> >> I think the default for particle systems is that
>  > > particles are
>  > > > >> >> >>> >> little
>  > > > >> >> >>> >> billboards which always face the viewer's eye point. It
>  > > looks
>  > > > >> >> >>> >> like
>  > > > >> >> >>> >> you've undone that setting somehow, and that the
>  > > billboards are
>  > > > >> >> >>> >> facing
>  > > > ; >> >> >&g t;> >> different directions.
>  > > > >> >> >>> >>
>  > > > >> >> >>> >> On Wed, Jun 25, 2008 at 11:07 PM, CG 
> <[EMAIL PROTECTED]> wrote:
>  > > > >> >> >>> >> > Hi all,
>  > > > >> >> >>> >> >
>  > > > >> >> >>> >> > I'm trying to simulate a smoke trail emitting from a
>  > > moving
>  > > > >> >> >>> >> > tank
>  > > > >> >> >>> >> > by
>  > > > >> >> >>> >> > using
>  > > > >> >> >>> >> > Joseph's codes but some particles are being culled 
> (see
>  > > > >> >> >>> >> > attached
>  > > > >> >> >>> >> > picture).
>  > > > >> >> >>> >> > Any ideas what are the causes?
>  > > > >> >> >>> >> >
> & gt; > > >> >> >>> >> > Thanks,
>  > > > >> >> >>> >> >
>  > > > >> >> >>> >> > Cg
>  > > > >> >> >>> >> >
>  > > > >> >> >>> >& gt; > ________________________________
>  > > > >> >> >>> >> > Make the most of what you can do on your PC and the
>  > > Web, just
>  > > > >> >> >>> >> > the
>  > > > >> >> >>> >> > way
>  > > > >> >> >>> >> > you
>  > > > >> >> >>> >> > want. Windows Live
>  > > > >> >> >>> >> > _______________________________________________< 
> BR>> >> >
>  > > > >> >> >>> >> > osg- users
>  > > > >> >> >>> >> > mailing list
>  > > > >> >> >>> >& gt; > [email protected]
>  > > > >> >> >>> >> >
>  > > > >> >> >>> >> >
>  > > > >> >> >>> >> >
>  > > > >> >> >>> >> >
>  > > > >> >> >>> >> >
>  > > 
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>  > > > >> >> >>> >&gt ; >
>  > > > >> >> >>> >> >
>  > > > >> >> >&gt ;> >>
>  > > > >> >> >>> >>
>  > > > >> >> >>> >>
>  > > > >> >> >>> >> --
>  > > > >> > ;> >>> >> AsymptopiaSoftware | [EMAIL PROTECTED]
>  > > > >> >> >>> >> www.asymptopia.org
>  > > > >> >> >>> >> _______________________________________________
>  > > > >> >> >>> >&g t; osg-users mailing list
>  > > > >> >> >>> >> [email protected]
>  > > > >> >> >>> >>
>  > > > >> >> >>> >>
>  > > > >> >> >>> >>
>  > > > >> >> >>> >>
>  > > 
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>  > > > >> >> >>> >
>  > > > >> >> >>> >
>  > > > >> >> >>> > ________________________________
>  > > > >> >> >>& gt; > Share your beautiful moments with Photo Gallery. 
> Windows Live
>  > > > >> >> >>> > Photo
>  > > > >> >> >>> > Gallery
>  > > > >> >> &gt ;>> > _______________________________________________
>  > > > >> >> >>> > osg-users mailing list
>  > > > >> >> >&g t;> > [EMAIL PROTECTED] ph.org
>  > > > >> >> >>> >
>  > > > >> >> >>> >
>  > > > >> >> >>> >
>  > > > >> >> >>> >
>  > > 
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>  > > > >> >> >>> >
>  > > > >> >> >>> >
>  > > > >> >> >>>
>  > > > >> >> >>>
>  > > > >> >> >>>
>  > > > >> >> >>> --
>  > > > >> >> >>> AsymptopiaSoftware | [EMAIL PROTECTED]
>  > > > >> >> >>> www.asymptopia.org
>  > > > >> >> >>> _______________________________________________
>  > > > >> >> >>> osg-users mailing list
>  > > > >> >> >>> [email protected]
>  > > > >> >> >>>
>  > > > >> >> >>> http://lists.openscenegraph.org/listinfo.cgi/os< BR>> 
>  >> >>
>  > > >>> g-users-openscenegraph.org
>  > > > >> >> >>
>  > > > >> >> >>
>  > > > >> >> >> ________________________________
>  > > > >> >> >> Chat online and in real-time with friend s and family!
>  > > Windows Live
>  > > > >> >> >> Messenger
>  > > > >> >> >> _______________________________________________
>  > > > >> >> >> osg-users mailing list
>  > > > >> >> >> [EMAIL PROTECTED] ts.openscenegraph.org
>  > > > >> >> >>
>  > > > >> >> >>
>  > > > >> >> >>
>  > > 
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>  > > > >> >> >>
>  > > > >> >> >>
>  > > > >> >> >
>  > > > >> >> >
>  > > > >> >> >
>  > > > >> >> > --
>  > > > >> >> > AsymptopiaSoftware | [EMAIL PROTECTED]
>  > > > >> >> > www.asymptopia.org
>  > > > >> > > >
>  > > > >> >>
>  > > > >> >>
>  > > > >> >>
>  > > > >> >> --
>  > > > >> >> AsymptopiaSoftware | [EMAIL PROTECTED]
>  > > > >> >> www.asymptopia.org
>  > > > >> >> _______________________________________________
>  > > > >> >> osg-users mailing list
>  > > > >> >> [email protected]
>  > > > >> >>
>  > > > >> >>
>  > > 
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>  > > > >> >
>  > > > >> >
>  > > > >> > ________________________________
>  > > > >> > Enrich your blog with Windows Live Writer. Windows Live Writer
>  > > > >> > _______________________________________________
>  > > > >&g t; > osg-users mailing list
>  > > > >> > [email protected]
>  > > &g t; >> >
>  > > > >> >
>  > > 
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>  > > > >> >
>  > > > >> >
>  > > > >>
>  > > > >>
>  > > > >>
>  > > > >> --
>  > > > >> AsymptopiaSoftware | [EMAIL PROTECTED]
>  > > > >> www.asymptopia.org
>  > > > >> _______________________________________________
>  > > > >> osg-users mailing list
>  > > > >> [email protected]
>  > > > >> http://lists.openscenegraph.org/listinfo.cgi/osg-users-opensceneg
>  > > raph.org
>  > > > >
>  > > > >
>  > > > > ________________________________
>  > > > > Always-on security tools provide safer ways to connect and share
>  > > anywhere.
>  > > > > Find out more. Windows Live
>  > > > > _______________________________________________
>  > > > > osg-users mailing list
>  > > > > [email protected]
>  > > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-opensc
>  > > enegraph.org
>  > > > >
>  > > > >
>  > > >
>  > > >
>  > > >
>  > > > --
>  > > > AsymptopiaSoftware | [EMAIL PROTECTED]
>  > > > www.asymptopia.org
>  > > > _______________________________________________
>  > > > osg-users mailing list
>  > > > [email protected]
>  > > > 
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>  > >
>  > > 
> ------------------------------------------------------------------------
>  > > M ake the most of what you can do on your PC and the Web, just the way
>  > > you want. Windows Live <http://www.get.live.com/wl/all>
>  > >
>  > >
>  > > 
> ------------------------------------------------------------------------
>  > >
>  > > _______________________________________________
>  > > osg-users mailing list
>  > > [email protected]
>  > > 
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>  >
>  > --
>  > This message is subject to the CSIR's copyright terms and conditions, 
> e-mail legal notice, and implemented Open Document Format (ODF) standard.
>  > The full disclaimer details can be found at 
> http://www.csir.co.za/disclaimer.html.
>  >
>  > This message has been scanned for viruses and dangerous content by 
> MailScanner,
>  > and is believed to be clean. MailScanner thanks Transtec Computers 
> for their support.
>  >
>  > __________ _____________________________________
>  > osg-users mailing list
>  > [email protected]
>  > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> 
> 
> ------------------------------------------------------------------------
> Make the most of what you can do on your PC and the Web, just the way 
> you want. Windows Live <http://www.get.live.com/wl/all>
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

-- 
This message is subject to the CSIR's copyright terms and conditions, e-mail 
legal notice, and implemented Open Document Format (ODF) standard. 
The full disclaimer details can be found at 
http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.  MailScanner thanks Transtec Computers for their 
support.

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to