[Papervision3D] Instances and children

Keith Salisbury keithsalisbury at gmail.com
Mon Jan 15 13:40:40 EST 2007


Hey Carlos,

Can i suggest that you implement a method to remove an object from a scene,
unless there is already a way to do this and i missed it....

cheers
keith

On 1/15/07, Carlos Ulloa <c4rl054321 at gmail.com> wrote:
>
> Hello all,
>
> These are the two significant changes I'm working on.
>
> Instances
> The idea is that the objects we create or load are symbols and when we
> push them into the scene we create instances.
>
> This way different instances can share the same geometry. Each instance
> would have its own name, transform matrix (position, rotation, scaling) and
> material properties, which is a concept very familiar. This would affect how
> we currently work, but I believe it's a necessary change.
>
> We would push a Geometry into the scene and it should return a
> DisplayObject3D so we can keep track of it. In the same way we do with
> movieclips, we would need to include the object in the scene before for
> example, setting its position.
>
> Children
> DisplayObject3D would have children and transformations would be applied
> across the parent children tree. Objects in the scene would be sorted only
> between themselves. Children of an instance would sort at face level. Would
> be cool to have the same api as in AS3, with addChild and getChildByName<http://livedocs.macromedia.com/labs/as3preview/langref/flash/display/DisplayObjectContainer.html#getChildByName%28%29>
> .
>
> For example you could have an X-Wing with each wing being a separate chil
> you can rotate as you move the main object. As it is now, you would have to
> keep track of the body and each wing as they would have to be different
> objects.
>
> Also would like to rename Mesh and Points and move them from the objects
> package to core.geom -I think it makes sense to leave outside core only
> the objects that are easy to use.
>
> As usual, any thoughts are welcome.
>
> C4RL05
> // noventaynueve.com
> // papervision3d.org
>
>
>
> ---- 8< -------- 8< -------- 8< -------- 8< -------- 8< -------- 8<
> -------- 8< -------- 8< -------- 8< ----
>
> In other words...
>
> core
>
>    proto
>
>       DisplayObject3D
>          name :String
>          children :[ DisplayObject3D ]
>          geometry :GeometryObject3D
>          materials :{ MaterialObject3D }
>
>       SceneObject3D
>          push( geometry:GeometryObject3D ):DisplayObject3D
>
>       GeometryObject3D
>          name :String
>          vertices :Vertices3D
>          mesh :Mesh3D
>          materials :{ MaterialObject3D }
>
>    geom
>       Vertices3D
>       Mesh3D
>
> objects
>
>    * extends GeometryObject3D
>
>
>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
>


-- 
keithsalisbury at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20070115/e22525b3/attachment.htm


More information about the Papervision3D mailing list