Beginnings of my editor.

About Monkey 2 Forums Monkey 2 Projects Beginnings of my editor.

This topic contains 48 replies, has 5 voices, and was last updated by  Angus 1 day, 9 hours ago.

Viewing 4 posts - 46 through 49 (of 49 total)
  • Author
    Posts
  • #14980

    Angus
    Participant

    The simple text object editing is in:

    Ok, I shouldn’t swear I’ll do things… I haven’t yet sorted my video quality.

     

    Making this work meant revisiting my text object and I’m pleased to see it holding up ok after all these months.  I made some small alterations.  As I work through these edit boxes, as predicted I am getting a chance to properly investigate the reliability of all the undo/redo, copying, and reading/writing components of the objects.  On the whole it’s seemed like I’ve made fewer goofs than I had expected.  Not none, but it’s been satisfyingly robust.  Having said that, I’m not working on the most horrible objects yet 🙂

    TextRails are next, which are sort of the first interesting object and the first that use splines on the worktop, so a new little challenge.

    #14983

    Angus
    Participant

    I’m about to go away for a few days, I’ll have my laptop and will keep working, but may be out of the reach of the internet.  Before I go I’ve got about 90% of the way toward completing TextRails.  I’d have like to have had a complete demo to show, but I need to head and what I’ve got is still fun.

    And still, sorting my video quality has taken low priority, but here’s me untangling a load of hotspots…

    These are scrollable, but I’ve been playing with their internals in a way that has made them not quite work.  If I can’t get them working my new way, I’ll revert to my old method.  Hopefully within a week I’ll be back with a video of them doing just that.

    Edit:  Youtube selects very low quality by default, but the vid is 720p…

    #15052

    Angus
    Participant

    Back last night and at it again today, have been frustrated to do so little coding over the last week and a half 🙂

    It took all day today to do the last 10% of the TextRail editing, but it’s complete now. (for now)

    It may look pretty similar, but I’ve fixed the scrolling aspect and added a new type of worktop hotspot to control the offset.

    Again, 720p is a little better to look at.  I’ve greatly improved the look of the curves, and the colours are more sensibly interpolated.

    More importantly, the textrail really represents three different classes of object, including some tricky ones.  Having it work completely (touch wood) suggests a greater amount of all that copy/read/write stuff is still holding up.  I’m firmly expecting horror bugs to come, but this has been a satisfying one to see function.

    Also, the addition of the blue sliding hotspot works well enough as a worktop control for more arbitrary object attributes than positions of things.  This should come in useful for other more complicated objects.

    Now there are lots of things I can do again.  Still the tricky spline combiner ahead, but I might heave in a few simpler objects first, I could fill out much of the list before tackling something too hard.  Also I have to do some grid snapping n showing things for the worktop… oh and a thousand other things.  It’s good to be back at it.

    #15057

    Angus
    Participant

    Random thoughts on where its at.

    I have gone back to make some “simpler” object editboxes.

    This brought me to Viewports, which were a late addition and need some more thought.  Until now, Viewports have appeared in their own ultimate position and objects are edited within the currently selected Viewport.  However, they’re clumsily defined by how large you want them in pixels and how you want that scaled, rotated and positioned.  Fine for working with during development, but no good in the long run.  I want to be able to determine a hypothetical display on the worktop and be able to arrange Viewports on it.

    I need a further transformation that allows me to “zoom out” of the whole worktop, and VP attributes defined more as proportional to the ultimate display.  Or something like that, I haven’t completely decided.  It’s one of those things I just need to bang my head against for a couple of days.

     

    Also I’m almost surprised by just how much it really is hanging together and is getting dangerously close to being useful.  I’ve accrued a series of things, a bit like the VP stuff, that really need tidied up but they’re not too serious.  I’m going to sort a couple of them and try to prepare the source for posting.  It’s not a thing I’ve done before really, mainly because my code is pretty ropy and I haven’t evolved that much from a time when posting code online was the stuff of fantasy.  My project and code structure is just whatever I’ve gleaned over the decades rather than something super well thought-out.  If someone were to ask me why I’d done something a specific way, I might not be able to answer 🙂

    One by one the Editboxes are stacking up.  I want to get all my current graphics objects out of the way.  It’s pretty obvious that these are the objects I’ve been using for ages as they don’t use any of Monkey2’s fancier shader effects.  This doesn’t mean they won’t go in.  In fact I’ve already got some of the stuff ready for them, but it’ll be a wee while.  There are a handful of other graphics classes I’d like to add, but that’s also for later.

    Once the graphics objects as they stand are editable, I’ll move on to the physics objects.  Some of these will need slightly sophisticated editboxes, like scrollable displays to define convex polygons or circles for individual shapes or for editing “on body”.  These aren’t too hard to code, but will take a while.  Most of the physics objects should have fairly simple editBoxes, though.  Only a few attributes define most joints, and can be best edited on the worktop.

    This is really just a pep talk for myself.  Still tricky things to think about, but if I had to guess I’d say I’m about a third of the way through.  (I’m an optimist, deep down)

Viewing 4 posts - 46 through 49 (of 49 total)

You must be logged in to reply to this topic.