[bug] [fix (? partial)] B3Dmorph no longer works
Raab, Andreas
Andreas.Raab at disney.com
Wed Oct 6 01:10:11 UTC 1999
Mark,
Thanks for noting this. The original intent of this morph was just to
provide something people could play with in the *very* early stages of 3D
support. This guy is pretty much obsolete but I'll fix it so that it does
use the right (e.g., latest interfaces).
Andreas
--
+===== Andreas Raab ========= (andreasr at wdi.disney.com) ==+
| Walt Disney Imagineering Phone: +1 818 544 5016 I
I Glendale, CA Fax: +1 818 544 4544 I
+======< http://isgwww.cs.uni-magdeburg.de/~raab >========+
> ----------
> From: Mark Guzdial
> Reply To: squeak at cs.uiuc.edu
> Sent: Tuesday, September 28, 1999 7:23 AM
> To: squeak at cs.uiuc.edu
> Cc: recipient list not shown
> Subject: [bug] [fix (? partial)] B3Dmorph no longer works
>
> Playing around with Squeak 2.6a, I found that B3Dmorph (from the New Morph
> menu) no longer worked. Thinking that it might be an exceptions thingie,
> I
> then tried 2.5. Didn't work there either!
>
> The problem seems to be that the B3Dmorph no longer has a texture when
> it's
> first told to draw itself, so it bombs when nil is asked to be asTexture.
>
> The below fix just generates a form and uses that as the texture. I do it
> inside of initialize. Don't know if it's the right fix, but it works now.
>
> However, the set texture menu item on B3Dmorph still doesn't work.
>
> 'From Squeak 2.5 of August 6, 1999 on 28 September 1999 at 10:19:52 am'!
>
> !B3DMorph methodsFor: 'initialize' stamp: 'mjg 9/28/1999 10:19'!
> initialize
> super initialize.
> geometry _ B3DBox from: (-0.7 at -0.7@-0.7) to: (0.7 at 0.7@0.7).
> camera _ B3DCamera new.
> (self confirm:'Put me into a clipping frame?')
> ifTrue:[camera position: 0 at 0@1.5]
> ifFalse:[camera position: 0 at 0@2. color _ nil].
> camera nearDistance: 0.1.
> camera farDistance: 5.0.
> self extent: 100 at 100.
> texture _ (Form extent: 100 at 100) asTexture.
> angle _ 0.! !
>
> --------------------------
> Mark Guzdial : Georgia Tech : College of Computing : Atlanta, GA
> 30332-0280
> (404) 894-5618 : Fax (404) 894-0673 : guzdial at cc.gatech.edu
> http://www.cc.gatech.edu/gvu/people/Faculty/Mark.Guzdial.html
>
>
More information about the Squeak-dev
mailing list
|