[Papervision3D] Re : Event for Know when object is outside to the scene
ths otra
ths_otra at yahoo.fr
Tue Aug 4 19:54:42 PDT 2009
Thanks a lot ! i'm searching something like that !
i try to use this method but text3D.culled stay FALSE ....
i try create many texte3D like that: (perfs: ~5 fps without moving ! with only ~60 sentences )
Maybe somebody will have any council who will help me !
thanks,
i do this : (with simple basicView ... )
var i:int=new int( 0 );
var j:int=new int( 0 );
var _nbr_occurrences_niveau:Array=new Array(2,4,6,8);
var contribs1:Array=new Array();
while ( i<_nbr_occurrences_niveau.length )
{
while ( j<_nbr_occurrences_niveau[i] )
{
//trace ( "> contribution: "+ j+" niveau: " + i );
m = new Letter3DMaterial(0xFFFFFF);
var alph : Number = randRange(0,100)/100
trace(alph)
m.fillAlpha = alph
texte = new Text3D( contenu , new HelveticaBold() , m );
for each(var letter:VectorLetter3D in texte.letters)
{
trace("addEvent")
letter.addEventListener(InteractiveScene3DEvent.OBJECT_OVER,onClick);
letter.addEventListener(InteractiveScene3DEvent.OBJECT_CLICK,onClick);
}
texte.align = "left";
texte.z = randRange( -1300*i, 0 )
texte.x = randRange( -500*i, 500*i );
texte.y = randRange( -700*i, 700*i );
texte.lineSpacing = 30;
//texte.font= new HelveticaBold()
contribs1.push ( texte );
scene.addChild (texte);
j++;
}
j=0;
i++;
}
to moving:
TweenMax.to(_camera, 1, { x:mouseCoordX * (1000*XMultiplicateur) } )
TweenMax.to(_camera, 1, { y:mouseCoordY * (1000*YMultiplicateur) } )
...
mouseCoordX= ( ( stage.stageWidth / 2 -stage.mouseX) / (stage.stageWidth / 2) )
________________________________
De : "nospam at therossman.org" <nospam at therossman.org>
À : papervision3d at osflash.org
Envoyé le : Mardi, 4 Août 2009, 16h37mn 56s
Objet : Re: [Papervision3D] Event for Know when object is outside to the scene
Maybe this will help?
http://pv3d.org/2009/07/01/test-if-a-plane-is-within-the-view-of-the-camera-aka-testing-if-culled/
Cheers
> Hello Papervision List !
>
> I'm new in papervision and i need to use the class Text3D and
> LetterMaterial.
>
> For optimizing better, i would like to know if it exists an Event could
> say to me when an Text3D object was outside scene ... like the Event:
> Event.ACTIVATE for example ?
>
> Thanks in advance and sorry for my english... ;-)
>
>
>
> Thomas
>
>
> _______________________________________________
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20090805/eb9ff85e/attachment.html>
More information about the Papervision3D
mailing list