[Papervision3D] Question for Seb and his Particles
Trevor Burton
worldofpaper at googlemail.com
Sat Mar 1 11:54:15 PST 2008
I've attached the edited StarField class (the last argument in the
superconstructor call ensures that all the particles appear as 1px squares
independant of their distance from the camera).
i'm creating the star field with this method
var pm:ParticleMaterial = new ParticleMaterial(0xFFFFFF,1);
var particleField:StarField = new StarField(pm, 1000, 100000, 100000,
100000, false, 1);
starsScene.addChild(particleField);
where starsScene is just a scene that's being rendered in a viewport behind
everything else to ensure that stars are always rendered behind everything.
it's then rendered into a viewport - nothing out of the ordinary. but, as i
mentioned, there's always a single particle rendered exactly in the centre
of the viewport - and it's always the same size as the defined particle
size, so here it's always 1px square, but it's always rendered as if it's at
the origin, but then if you move around the scene it stays at the origin, so
it doesn't seem to be being rendered in 3D, as it takes no account of the
camera's movement.
One other point here, i started putting together a StarSphere class - this
works by randomly placing the star particles around the surface of an
imaginary sphere. Then works like a skybox, you can update it's position
without updating it's orientation, so all the stars stay a fixed distance
away from the object that's moving - rather than you being able to 'escape'
from the starfield if you travel far enough... i'll pass this on once i've
got some other bits an pieces out of the way and have time to go back over
it.
T
On Sat, Mar 1, 2008 at 9:20 AM, Seb <sebstar55 at gmail.com> wrote:
> Hey Trevor!
>
> Yeah all back safe and sound! :-) We'll have to chat properly at the
> next one :-)
>
> I haven't really looked at the starfield class so I'm not sure what'd
> be going wrong. I have a feeling that it may be that particles are not
> getting culled when they're behind the camera. Could you send me
> source and I'll take a look?
>
> cheers!
>
> Seb
>
>
> On Sat, Mar 1, 2008 at 7:33 AM, Trevor Burton
> <worldofpaper at googlemail.com> wrote:
> > Hi Seb,
> >
> > Didn't really get a chance to talk to you at FITC, hope you and your
> lady
> > got back ok.
> >
> > Just a quick question about particles - when i create a particle field
> (via
> > the StarField class) i'm getting a single particle rendered int he
> middle of
> > the viewport... after a few seconds it disappears, but i'm wondering how
> to
> > get rid of it.... It's rendered at the same size as the particles are
> > defined at (so for the starfield they're being rendered at size=1
> > independant of distance to camera).
> >
> > any ideas?
> >
> > --
> > Trevor Burton
> > http://www.paperworld3d.com
> > _______________________________________________
> > Papervision3D mailing list
> > Papervision3D at osflash.org
> > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> >
> >
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
--
Trevor Burton
http://www.paperworld3d.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20080301/c8dc9c89/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: StarField.as
Type: application/octet-stream
Size: 1514 bytes
Desc: not available
Url : http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20080301/c8dc9c89/attachment-0001.obj
More information about the Papervision3D
mailing list