[Sandy] visible property on nodes and other query

kiroukou kiroukou at gmail.com
Mon Dec 3 03:35:53 PST 2007


I'm going to make a test on  visibility property. There was a problem  
while ago, but it was solved in the 3.0.1, are still using your  
custom version or the latest version?


Otherwise a property which manage the cache is a good thing to have  
for sure, but there's still few things I'm not sure to know how to  
implement.

I'll give a try asap.

Concernnig the website, I agree. The website is cool, but we still  
need more content :)  In the FAQ for example.

++

Le 3 déc. 07 à 02:32, Xavier MARTIN a écrit :

> Hello Kiroukou.
>
> I reckon having the 3D object still visible on the stage but not  
> anymore
> rendered could be a great feature.
> Like eg if you know that you are not moving this object, you could  
> set up a
> property ( isRendered ) to flase. Thus the object will be still on  
> the stage
> ( container still existing ) but it will be culled.
> Like in rooms I'm doing once the rotation is done I could use this  
> to stop
> rendering eg the backgrounds, ... so it will save cpu.
> So yeah if we could have this visible property really hidding the  
> container
> too ( and of course culling the object ) and a property just to  
> cull it (
> what visible is doing right now actually ) :) It would be great .
>
> Regarding the project, I had and still have to hack a lot to get  
> reasonable
> framerate.
> The framerate drops dramatically as soon as I have videomaterial and
> moviematerial on the stage.
> One of the first hack I have done ( till the beginning of the project
> actually, cause I though it was a good idea ) was to have a render  
> manager.
> Object can call the render using render_start( object ) or  
> render_once(
> object, [time] )
> render_start( object ) is pushing the object into a map of the render
> manager. The render manager is running the render as long as this  
> array is
> not empty.
> render_once( time ) add a timer to it. So the timer will be used as  
> a key in
> the map. After the delay the timer will be removed from the map.
> Finally you can call render_stop( object ) to remove the object  
> from the
> list.
> Using this way I can free cpu when no objects are calling for a  
> render,
> which is usefull :)
>
> Maybe I could hade force_stop(), that will removed all object, or  
> play /
> pause / resume ( resume would be usefull in case using render_once and
> timers )
>
> I could send you the class if you want.
> ++
>
> ( btw the site goes live, but we still need to add more stuff in  
> it :/ )
>
> 2007/12/2, kiroukou <kiroukou at gmail.com>:
>>
>> Hi Xavier,
>>
>> Well this is a bug to me.
>> but as far I as remember, i can't see why making the node.visible =
>> false keep the last render of the object!
>>
>> Is there a new function in your project to stop the render when  
>> camera
>> is freezed?
>>
>> I'll make a test.
>>
>> Thomas
>>
>> Le 2 déc. 07 à 03:27, Xavier MARTIN a écrit :
>>
>>> Hello Group,
>>>
>>> ok, lately I had to hide objects that are shown on the scene.
>>> Thing is the visible property is stoping the engine to render the 3D
>>> object
>>> but do not hide the container used to rend it.
>>> So it means you still see the last render of the object. That is
>>> fine and
>>> can be usefull
>>> Here I need to hide the object. So what I've done is set the visible
>>> property to false, and set the visible property of the container to
>>> false
>>> too
>>> myObject.visible = false;
>>> myObject.container.visible = false;
>>>
>>> which is good.
>>> BUT object using the property useSingleContainer = true, are not
>>> affected
>>> has I suppose every poly has it's own container right?
>>> So I tried to loop into each poly ( checking if the
>>> useSIngleContainer flag
>>> was true - so add the getter ;) )and hide them but with no luck
>>> Can someone have a look at this please ??? ( Tom ??? :) )
>>>
>>> Thx much :)
>>> --
>>> -------------------------------------------------------------------- 
>>> --
>>> Xavier MARTIN aka zeflasher or xxlm
>>> Visit my website if you love flash:
>>> http://www.webbymx.net
>>> http://dev.webbymx.net
>>> -------------------------------------------------------------------- 
>>> --
>>> _______________________________________________
>>> Sandy mailing list
>>> Sandy at osflash.org
>>> http://osflash.org/mailman/listinfo/sandy_osflash.org
>>
>>
>> _______________________________________________
>> Sandy mailing list
>> Sandy at osflash.org
>> http://osflash.org/mailman/listinfo/sandy_osflash.org
>>
>
>
>
> -- 
> ----------------------------------------------------------------------
> Xavier MARTIN aka zeflasher or xxlm
> Visit my website if you love flash:
> http://www.webbymx.net
> http://dev.webbymx.net
> ----------------------------------------------------------------------
> _______________________________________________
> Sandy mailing list
> Sandy at osflash.org
> http://osflash.org/mailman/listinfo/sandy_osflash.org




More information about the Sandy mailing list