Thursday, November 19, 2009

Workshop

I've changed the workshop to read data from the datablocks instead of the database. Each ship will need all of the variables (mass, max speed etc) assigned in it's datblock.

The default guiObjectView control that comes with Torque doesn't support mesh hiding, so I had to make a slight modification to fix this.

There are still a couple of things that I need to check before I upload it.

I'm wondering if we still need all of the selection options that the original gui had:


We could probably just restrict it to the parts that will show a visible change to the model (if that makes sense).

3 comments:

  1. Ah all the other options we can omit for now; as this is a demo; but things like repair, energy cell, engine, generator, jets.. those are unseen statistics (currently.. things like jet/booster can of course be updated - heck, all of them can).

    For now though; just the weapons ; as these are the things which are most influential right now.

    A minor thing is; we will need to make sure that weapons available work for all ships; we can have the muzzle in a dts that has no model - and have the mesh hiding work for us; or just mount weapons and have them work that way.

    If you'd like to give your opinion on what is a better course of action right now, that would help.

    ReplyDelete
  2. 6 of one, 1/2 dozen of the other.

    Mounting the weapons is a bit cleaner, everything is separate, only added to the model when needed. But i remember earlier you guys were having problems because of the different sizes/shapes of the ships, which caused the guns to mount at funny angles. If that is fixed then I would go with mounting.

    If we use mesh hiding then the guns can be positioned on the model in the ship's dts file, so we can adjust their position to fit each individual ship. But that means a copy of each gun (and any other changeable part) will need to be included in each ship dts file.

    It doesn't make much difference script-wise for me.

    ReplyDelete
  3. The issue with weapons is just position - it can be tweaked to fit right; atleast images dont mind intersection mesh - while the collada importer will move things that intersect.

    It was just some whacky nodes in the gun before. We won't be able to position things just right; some ships have weapons which are combined - poses a slight problem but things can be tweaked again.

    ReplyDelete