[Papervision3D] PointSprites/Billboards/Particles (Re: Floating 2D Objects)
Simon Oliver
psifli at yahoo.com
Wed Jan 3 05:10:10 EST 2007
I've made a pointSprite class for 2D objects (couldnt find functionality like this in earlier builds of P3D, not sure if this is there now). I've used it for particles and billboarding, such as:
http://www.handcircus.com/temp/p3d/particles/
(shadows a bit broken for now :)
It uses a new geom class called pointSprite which implements the same interface as face3D so that it can be sorted in the same fashion (so things like MeshGroup can sort particles that may bounce into other objects without any popping).
Theres also a new class called Billboard that uses pointSprite (it can be directly added to a scene) to allow simple2D objects to be added. You can enable sorting and scaling as you see fit, and specify the registration point.
I've attached the source. Hope they are of use!
Simon
_________________
http://www.handcircus.com
http://www.simonoliver.com
----- Original Message ----
From: Spencer Campbell <spencer.campbell at blastradius.com>
<!--
_filtered {font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{
font-family:Arial;
color:windowtext;}
_filtered {
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{}
-->
I was wondering how I would go about creating 2D objects
that will be positioned within the scene but with no perspective applied.
For example, the lights on the walls of Rudebox exhibit this behavior. I’d
appreciate any help you can give me with this J
Much Respect,
Spence.
_______________________________________________
Papervision3D mailing list
Papervision3D at osflash.org
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
Send instant messages to your online friends http://uk.messenger.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20070103/07adb820/attachment-0001.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pointSprite.as
Type: application/octet-stream
Size: 2661 bytes
Desc: not available
Url : http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20070103/07adb820/utf-8qpointSprite-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Billboard.as
Type: application/octet-stream
Size: 1909 bytes
Desc: not available
Url : http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20070103/07adb820/utf-8qBillboard-0001.obj
More information about the Papervision3D
mailing list