Author Topic: PDK oppinion: LEGO Filter  (Read 6802 times)

0 Members and 1 Guest are viewing this topic.

Fil

  • Testing Team
  • World Machine Guru
  • *****
  • Posts: 550
    • View Profile
PDK oppinion: LEGO Filter
« on: August 19, 2005, 02:37:40 AM »
I had the opportunity to play with the PDK for half a week. I have to say I found it easy enough to do things quickly. I do have some programming experience that helped the quickness, but it is nice. I spent arround two afternoons playing with the PDK trying to make a silly sinus/cosinus generator, got to know the PDK somewhat superficially.. Then I interrupted the easy trigonometric generator, and started to work on a more interesting idea ;) That is how I got to making a LEGO Filter. Below, is a screenshot. The basic working concept (without any user control (parameters) took about two hours to code up. Then adding parameters was easy.. But some bugs started appearing as divisions by zero and scalling issues came in to play.. That took about one day to overcome.. Then, the next day, I spent doing some upgrades and adding flexibility. Then, I stoped for about 5 days to take short vacations, and now I am back at it, to perfect it even more.. It works fine, though there are some tiny edges I'd like to polish.
Anyway this is what it can do:


So for time consupsion in making a device with the PDK, I think the core part is quick to do if you have your ideas settled. You then take some time in thinking what parameters should the user have access to. You then take even more time solving bugs. And the remaining 90% of the time, you spend in polishing things, as typical of any programming activity :)

Oh, regarding debugging, I haven't really tried debugging in the "normal way" yet, using a debugging environment. I used the "MessaBox" method.. Silly and anoying, but it was ok, for something as simple as this filter.

Ok, now for what this filter does: it grabs any heighfield and converts it to a pile of LEGO blocks :) You can choose the type of stud (flat plate, normal stud, technic stud, or optional heightfield: so you can make your own studs :) ) You can specify the size of the LEGO blocks, and you can use LEGO plates (1/3 the height) also. You can also choose 1x1 or 2x2 blocks.

It is not 100% finished yet :( I am trying to make things look right in explorer, as the blocks are discreet, they can look a bit disapointing for some parameter values, and I m trying to get the best possible compromises to have something that works and still looks good. Soon I'll give you the plug-in, but for now, you have to content with the screenshot..

Happy PDK-ing,
Fil.

Anonymous

  • Guest
PDK oppinion: LEGO Filter
« Reply #1 on: August 19, 2005, 07:03:43 PM »
That's realy cool, would make an intresting game map.

Fil

  • Testing Team
  • World Machine Guru
  • *****
  • Posts: 550
    • View Profile
PDK oppinion: LEGO Filter
« Reply #2 on: August 21, 2005, 01:43:39 PM »
I posted a thread in the General discussion over here with this device.
This space can now be used for discussion of any technical detail you may have, regarding that device, or how I made it with the PDK.

Cheers,
Fil.