<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">I'm attempting to turn world.ss into a 3D world rather than a 2D world using sgl. I'm having a little trouble getting things started. I see that the main canvas is an editor-canvas with an instance of text% as its editor as follows:<DIV><BR class="khtml-block-placeholder"></DIV><DIV>  (define (add-editor-canvas frame visible-world w h)</DIV><DIV>    (define c </DIV><DIV>      (new (class editor-canvas%</DIV><DIV>             (super-new)</DIV><DIV>             (define/override (on-char e) (key-callback (send e get-key-code)))</DIV><DIV>             (define/override (on-event e) (mouse-callback e)))           </DIV><DIV>           (parent frame)</DIV><DIV>           (editor visible-world)</DIV><DIV>           (style '(no-hscroll no-vscroll))</DIV><DIV>           (horizontal-inset INSET)</DIV><DIV>           (vertical-inset INSET)))</DIV><DIV>    (send c min-client-width (+ w INSET INSET))</DIV><DIV>    (send c min-client-height (+ h INSET INSET))</DIV><DIV>    (send c focus))</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>If using sgl to represent the world, would it make more sense for c to be an instance of canvas (or instance of a class inheriting from canvas) with overridden methods using the sgl library? I'm not exactly sure why an editor-canvas is used but I've been able to get a normal canvas instance to work with sgl in world. Also, when I do this, my canvas is shifted on the frame as seen here: <A href="http://www.ccs.neu.edu/~cburke/sgl.png">http://www.ccs.neu.edu/~cburke/sgl.png</A>. It has to do with the frame creation and this specific line: (style '(no-resize-border metal)). How do I compensate for that border and get the canvas in the correct place?</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>--</DIV><DIV>Chris Burke</DIV><DIV>508-735-7940</DIV><DIV><A href="mailto:cburke@ccs.neu.edu">cburke@ccs.neu.edu</A></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>:: eval s=%q(puts"eval s=%q(#{s})") ::</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR class="Apple-interchange-newline"></SPAN></SPAN></SPAN></SPAN></SPAN> </DIV><BR></DIV></BODY></HTML>