2 scenes, 2 cameras, 2 views - 1 rendered only once and the other with your
mesh.

or

1 scene, 2 cameras, 2 views - 1 view rendered only once and the other with
your mesh but no where near the x,y,z of the rest of the stuff and looking
away.





On 20 December 2010 09:18, vkt <[email protected]> wrote:

> thank you for your reply,but I can't hide other mesh in scene when
> it's be show.  :)
>
> xcx wrote:
> > Not sure that I understand your question, but seems to me that you
> > would like to render only one specific mesh from scene.
> >
> > If that is a case you can hide all other mehses. Like let's say that
> > you know name of your mesh what you would like to render.
> >
> > You could try something like this.
> > [code]
> > private function hideAllOthers(obj:ObjectContainer3D,
> > strName:String):Object3D
> > {
> >       for each(o:Object3D in obj.children)
> >       {
> >               if (obj is ObjectContainer3D)
> >                       hideAllOthers(obj, strName)
> >               else
> >               {
> >                       if (obj.name == strName)
> >                               obj.visible = true;
> >                       else
> >                               obj.visible = false;
> >               }
> >       }
> > }
> > [/code]
> >
> > I don't have possiblity to test this code right now. So there might be
> > a bug or two :).
> >
> > On 20 joulu, 09:46, vkt <[email protected]> wrote:
> > > is there possibe to render the mesh which I only want to render
> > > instead of whole scene?
> > > because I use z-order render type,if I use view.render. it's spend
> > > lots of time.
>

Reply via email to