Well, I know there is a size field, but it only works if the particle
system is not in "point mode" (Particle::Points); in that case, every
point has the size of the first size I put into the size field...

Into the related pages of the openSG 1.6 .chm file, there is a phrase
that says: "osg::Particles::ModeE::Points are rendered as simple
GL_POINTS. Points use the positions, colors and textureZs attributes.
A single size can (and should!) be given, but size per particle is not
supported (yet)."
By the way, I did not found a page for particles into OpenSG 1.8 docs...

Maybe should I use a particle system with billboards? I would like to
use simple points because it should be faster....
Is it correct?

Thank you very much,

Christian



Carsten Said:

>
>
>
        Hello Christian,

Christian Bar wrote:
> Hello,
> I'm trying to create a particle system with a lot of points (more than
> 100000), and I would like to make every point slightly different in size
> and in color.

there is a MFReal32 _mfSizes where you can add a size for each particle.
For the colors there is SFGeoColorsPtr _sfColors which can point to an
GeoColors3f (for example) that stores all the colors.
Or did you try that and it did not work (I haven't used particles in a
long time, so maybe something broke in the meantime) ?

> What is the most convenient way to do that? I read that
> OSGParticle does not allow to set a different size for every point... Is
> there anyone that can suggest me what osg classes should I use?

hm, sounds like there is a documentation bug that should be fixed, may I
ask where you read that ?  ;)

        Hope it helps,
                Carsten

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to