|
| Petit |
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? |
| fjr |
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 |
| Petit |
Post
#3
|
|
Advanced Member Group: Moderator Posts: 534 Joined: 21-June 06 From: Borgholm, Sweden Member No.: 38 |
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. |
| Lo-Fi Version | Time is now: 15th July 2007 - 05:14 AM |