- Tue Nov 27, 2012 6:53 am
#362867
Well, the basic setup, you can see if you open the Maxwell Grass dialog -- that's using the new HTML/CSS stuff, not Silverlight, and it's non-critical to the plugin's operation, so it's sort of been playing guinea pig. But it's also a pretty simple dialog, not having things like texture previews, material preview, color pickers, etc. That stuff, I wrote in Silverlight, which was one thing, and it has all had to be redone now in HTML/CSS, which is quite another.
And you're correct in your appraisal of the situation -- standard UI for plugins in SketchUp is done through the browser: the plugin windows are browser windows, created by the OS, on behalf of SketchUp. You request the window via ruby, and use ruby either to put some HTML directly into it, or set it to point to some HTML file. So Silverlight and Flash are attractive here, as you guessed, for the same reason they're attractive elsewhere: they insulate you from the browser. It is icing on the cake that they are more capable environments than HTML for writing UI. Once you get to the HTML side of things, though, it's a different world; SketchUp is aimed at a decidedly less technical audience, as far as CG goes, so we need to think about what happens when somebody is running an old XP machine, with IE6 -- it's one thing, in that situation, to put up some HTML that says "hey, go get Silverlight" and it's another for the UI to just appear as a mangled mess.
Next Limit Team