[Papervision3D] camera.orbit() camera.rotationY and displayList

John Brookes jbpv3d at googlemail.com
Sun Sep 28 09:20:01 PDT 2008


Sorry I'm being dim! I meant chldrenList() my head just keep saying
displayList

childrenList() — Method in class
org.papervision3d.core.proto.DisplayObjectContainer3D
    Returns a string value with the list of objects.

I had a look at the DisplayObjectContainer3D.as and the list is a
:Dictionary not an Array so I don't know how to sort.


Also in that DisplayObjectContainer3D.as file

addChild is also weird, if you do scene.adchild(PlumPlane, "PlumPlane")
instead of PlumPlane.name = "PlumPlane" the name doesn't appear in the
childrenList.

Yet I would have thought these lines meant it would.

public function addChild( child :DisplayObject3D, name:String=null
):DisplayObject3D
        {
            // Choose name
            name = name || child.name || String( child.id );

            this._children[ child ] = name;


Thanks for the above code I shall have a play.

2008/9/28 dsdsdsdsd <shannonhburnett at hotmail.com>

>
> John,
>
> where did you find the method displayList() ?? as best as I can tell,
> according to  http://www.flashbookmarks.com/PV3D-Beta2-DOC/ documentation
> there does not exist a scene.displayList();
>
>
>
>
>
> anyway, I have a class that shows displayobejct3d's; it is a derivative of
> a
> class for showing displayList items that I found in "Learning ActionScript
> 3.0" by Shupe and Rosser;
>
> I believe that you could get this to also output viewport layer;
>
>
> package some_directory
>  {
>    import org.papervision3d.objects.DisplayObject3D
> ;
>    import org.papervision3d.core    .proto
> .DisplayObjectContainer3D ;
>
>        public class ec_show_DO3D_list
>          {   public function ec_show_DO3D_list ( argo_display :
> DisplayObjectContainer3D = null ) : void
>                  { trace( "ec_show_DO3D_list , constructor ................
> ");
>                    if (  argo_display == null )
>                      { trace( "ec_show_DO3D_list , nothing to display ");
>                       }
>                    else
>                      { trace( om_padIndent( 0 ) , "model : " + argo_display
>  )
>                        om_showChildren( argo_display ,  1 ) ;
>                      } ;
>                  } ;
>
>              //-------------------------------------------------------
>              public function om_showChildren( argo_display :
> DisplayObjectContainer3D , argi_indent : int = 0 ) : void
>                { for ( var lvn_child : String in argo_display.children  )
>                    { var   lvo_current : DisplayObjectContainer3D =
> argo_display.children[ lvn_child ] ;
>                      trace ( om_padIndent( argi_indent ) , "model : " +
> lvo_current  ) ;
>                      om_showChildren( lvo_current , argi_indent + 1 ) ;
>                    } ;
>                } ;
>
>              //-------------------------------------------------------
>              function om_padIndent( argi_indents : int ) : String
>                { var lvs_indent : String = "" ;
>                  for ( var lvi_i:uint = 0 ; lvi_i < argi_indents ; lvi_i++
> )
>                    { lvs_indent += "    ";
>                    }
>                  return lvs_indent;
>                }
>
>            //-------------------------------------------------------
>
>
>          } ;
>
>  } ;
>
> //-------------------------------------------------------------------------
>
> --
> View this message in context:
> http://www.nabble.com/camera.orbit%28%29-camera.rotationY-and-displayList-tp19697507p19712684.html
> Sent from the Papervision3D mailing list archive at Nabble.com.
>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20080928/3dddcf46/attachment-0001.html 


More information about the Papervision3D mailing list