This is G o o g l e's cache of http://www.flashsandy.org/forum/index.php?showtopic=189&pid=1071&mode=threaded&show=&st=& as retrieved on 15 Jul 2007 05:32:03 GMT.
G o o g l e's cache is the snapshot that we took of the page as we crawled the web.
The page may have changed since that time. Click here for the current page without highlighting.
This cached page may reference images which are no longer available. Click here for the cached text only.
To link to or bookmark this page, use the following url: http://www.google.com/search?q=cache:QZZ_pTIOEdQJ:www.flashsandy.org/forum/index.php%3Fshowtopic%3D189%26pid%3D1071%26mode%3Dthreaded%26show%3D%26st%3D%26+site:www.flashsandy.org+showtopic&hl=en&ct=clnk&cd=81


Google is neither affiliated with the authors of this page nor responsible for its content.
These terms only appear in links pointing to this page: showtopic

Welcome Guest ( Log In | Register )

> Update on back face culling change
Petit
post Nov 22 2006, 11:10 PM
Post #1


Advanced Member
***

Group: Moderator
Posts: 534
Joined: 21-June 06
From: Borgholm, Sweden
Member No.: 38



Many things in Sandy updates automatically when things change - good thing;)

But if I toggle the value of enableBackFaceCulling on an Objec3D, say from true to false on a textured object,
the back skins are not immediately rendered.

I have to move the object or the camera, for the change to take effect.

If the object is moved automatically, using an interpolator, all is fine.
But if I want to programatically turn on the back face skins, everything else unchanged, It's worse.

I couldn't find out, what function to call to force and update on the next rendering cycle
( aka frame or onRenderEVENT ).

It would be good if a change to enableBackFaceCulling would mark the object as "dirty" or scheduled for update on the next frame.

What gives?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
 
Reply to this topicStart new topic
Replies
fjr
post Nov 23 2006, 03:37 PM
Post #2


Advanced Member
***

Group: Members
Posts: 40
Joined: 12-August 06
Member No.: 255



Hm.. in reply to Kiroukou:
I don't know what effect would it give to Sandy's performance if you fix the cache thing. But I think it might be useful. (Since more then one person have been asking for this)

Petit:
A dirty solution for this was to move the camera by 0 (zero) after you apply the changes. Or call it from inside onRender function =/ (too dirty)
Wasn't it?

correct me if i'm wrong.

This post has been edited by fjr: Nov 23 2006, 03:39 PM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Petit
post Nov 24 2006, 01:23 AM
Post #3


Advanced Member
***

Group: Moderator
Posts: 534
Joined: 21-June 06
From: Borgholm, Sweden
Member No.: 38



QUOTE(fjr @ Nov 23 2006, 04:37 PM) *

A dirty solution for this was to move the camera by 0 (zero) after you apply the changes. Or call it from inside onRender function =/ (too dirty)
Wasn't it?

correct me if i'm wrong.

Well, everything that solves a problem quickly, may be useful.
Only temporarily though. In the long run a lot of patches with unpredictable
behavior, will always cause problems.
QUOTE
For those who may not know, the "dirty" flag is an old concept for saying - watch out, data has changed!
Used in editors to flag for edited content.
The close operation will check this flag and if set, asks the user to save before closing.


User is offlineProfile CardPM
Go to the top of the page
+Quote Post



Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

- Lo-Fi Version Time is now: 15th July 2007 - 05:14 AM
phpMyVisites