Colin: Many thanks, but I've already tried that to no avial.
Ya-Chun Lin: You may have misunderstood me a little, but your answer would work except for the fact that some things get re-initialised in a beginSprite handler attached to the 3D sprite - like a newModelResource for a bounding sphere which the student is using to limit the travel of the camera, and stuff like that. But I've passed your message on to my student with some suggestions for some work arounds and I will see how he goes from here.
(I was worried about the resetWorld thing too, but your approach avoids this.)
Many thanks to you.
Regards, John
--__--__--
From: Colin Holgate <[EMAIL PROTECTED]> Subject: Re: <lingo-l> Refresh and SW3D Reply-To: [EMAIL PROTECTED]
Can anybody please suggest any solutions.
Not sure why it's not causing a problem on the PC. It probably relates to it being direct to stage. Put in a line like: the stagecolor = the stagecolor after you do that move. That should force Director to refresh the stage.
--__--__--
Message: 17 From: "Ya-Chun Lin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: Re: <lingo-l> Refresh and SW3D Date: Wed, 29 Oct 2003 10:16:07 -0500 Organization: Chedd-Angier Production Co. Reply-To: [EMAIL PROTECTED]
I hope I understand you correctly. For SW3D, after the first time initialization, the state of this SW3D world will stay that way unless you resetworld(). You should be able to jump to another frame for your 2D screen and when you come back to this 3D world, it's where the viewer left off. Did you resetworld() on endsprite of this 3D sprite or before go to another frame?? I usually resetworld() on stopMovie.
Hope this help! Yachun ----- Original Message ----- From: John Waller <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 29, 2003 12:46 AM Subject: <lingo-l> Refresh and SW3D
Hi,
One of my students is having a problem with SW3D and refreshing the screen on Macs.
He has a SW3D sprite which takes up the whole stage. The user clicks on an object in the 3D world and is taken to a 2D screen. We are trying to just move the SW3D sprite outside the stage but still leave it in the score so that we don't have to reinitialise it. Apparently it works OK on the student's PC at home but it won't on the Macs in the University's computer lab or on my Mac.
The sprite moves off the stage alright (I tested its position using the Message window) but the screen doesn't seem to refresh. We can still only see the (now non-functioning) 3D image. I've tried setting the stageColor to the stageColor (as I've used in the past to get over QuickTime refresh problems) and setting (the stage).bgColor to itself and updateStage but to no avail.
I've found that if I make the stage bigger than the SW3D sprite, or even if I just stretch the stage window larger than the stage, it works ok in Authoring mode. But once I make a projector it doesn't work any more.
If we jump out of the 3D sprite altogether there is no refresh problem, but then we have to reinitalise the 3D sprite which takes time and takes us back to the initial view of the 3D sprite rather than where the viewer left off.
Can anybody please suggest any solutions.
Many thanks, John
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
