roland

Eurobricks Citizen
  • Content count

    212
  • Joined

  • Last visited

About roland

Contact Methods

  • Website URL
    http://www.melkert.net/LDCad

Profile Information

  • Gender
    Male

Extra

  • Country
    Netherlands
  • Special Tags 1
    http://www.eurobricks.com/forum/style_images/tags/ldraw_builder.gif
  1. If there is no "GENERATED" meta it will (re)generate the dynamic part upon opening it in LDCad, Otherwise it will only regenerate when you change something. I understand, you could probably use LSynth through an external call to generate it for you. I recommend embedding the needed LS*.dat part inside the resulting (mpd) model though.
  2. If you need info on the LDCad side let me know. In short it uses bezier control points combined with 'atom' parts and spreading rules.
  3. I remember a subplot of a "Malcom in the middle" episode. Hal and the youngest son were building a whole city of mixed LEGO / playmobil, Lois destroys it like godzilla in the end :)
  4. I think you shouldn't split pos and rotation, but use them as a single 4x4 matrix to do the coordinate transformation in one go by using the rotation/flip I wrote above + some scaling in a second static 4x4 matrix. edit: and re normalize the rotation (3x3) part of the result afterwards. As you only want to scale the positions and not the ldraw parts :) Wait a minute I misunderstood the problem, I think you should use the LDraw.xml file as parts in LDD have different base orientations then LDraw parts. You just need to transpose all those matrices inside LDraw.xml to go from ldr to ldd.
  5. Have you tried rotating 180 deg around x and flipping x ? This corrects the Y is up/down and right/left handed orientation.
  6. I don't have the script used in that tutorial anymore, but the generic idea is also used in the 5510 example. You can use any text editor for editing the lua scripts, I used programmer's notepad in the tutorial.
  7. Weird the (i assume) laptop screen gives problems. Could you give me the model and or resolution so I can look into it some more? The best way to get started with animation is by looking at the examples I made for some of the sample models included with LDCad (e.g. 5510 or 5580 for the simpler ones). I've also made a couple of tutorial youtube clips And maybe the most important thing is to get familiar with the lua scripting language. http://www.lua.org/manual/5.3/ Hope this gets you started.
  8. Is this on Linux as I know of one user having a similar problem a couple of years ago. In his case the GTK dependencies were missing / incomplete. If on Windows it could be a filesystem thing, did you use the setup or the loose archive. If you used the archive make sure you have write access to the folder the exe is located in. If this doesn't help could you send me the contents of the logs folder (if any), located in %appdata%\LDCad\logs when using the setup or in a subfolder besides the exe otherwise. edit: (read your message wrong) this is probably due to a monitor using a non standard dpi setting or something, you could try pressing the tab key and then enter to accept without using the button. But if all dialogs are scaled wrong you will sooner or later run into problems again. What kind of monitor / resolution are you using?
  9. LDD isn;t suitable for such big models (I think mostly because of the connection calculations it does). If you are willing to migrating to LDraw my LDCad might be an option as the size of models is basically only limited by the speed of your GPU. I've worked with models up to 180000 parts with it, the key trick is to use submodels wisely so you do the actual editing on <50000 part models. This assuming you have a decent <5 year old graphics card.
  10. did a quick test using this: as a node, and this script: function onRun() local ses=ldc.session() if not ses:isLinked() then return end local xDiff=120 local yDiff=-69.282 local zDiff=120 local xCnt=10 local yCnt=5 local zCnt=10 local subModelName='node.ldr' local sel=ses:getSelection() sel:remove() local posOri=ldc.matrix() local sf=ldc.subfile() for x=0,xCnt-1 do for y=0,yCnt-1 do for z=0,zCnt-1 do posOri:setPos(x*xDiff, y*2*yDiff+genTools.IF(x%2==0, yDiff, 0), z*zDiff) sel:add(sf:addNewRef(subModelName, 16, posOri)) end end end end This is a very simple one, node might not even be confirm the 'rules' in this thread ? But it being an examples and all :) Things will get more complicated if the node needs rotation etc. It generated 500 nodes (6500 parts) zipped test model + script (needs LDCad 1.6 Beta 2): http://www.melkert.net/action/download/patScript.zip
  11. I'll try to setup something useful this weekend.
  12. If you want to generate (huge?) repeating patterns using a single submodel you might want to look into scripting using my LDCad. edit: I could write an example if you're interested.
  13. By default the editing pin sits on top of the first ldraw line of the pasted source code. This is why, when you copy a selection, the program sometimes asks if you want to move the first selected part to the top of the to be copied clipboard text. If you coping inside the same model you could also use ctrl+d which will preserve the main selection item. Things might work a bit different when groups are in the (nested) selection as that limits some of the internals in certain situations. You are right I forgot to announce the Beta 2 versions, I only made one on the LDraw.org forum.
  14. Did you try LPub3D, it has some bugfixes LPub4 hasn't (yet).
  15. Probably an invalid/unsupported character, are you using weird submodel names or something? You could try opening it in e.g. LDView or my LDCad to see if it's MLCad specific or not.