sketchucation logo sketchucation
    • Login
    1. Home
    2. AdamB
    3. Posts
    πŸ›£οΈ Road Profile Builder | Generate roads, curbs and pavements easily Download
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 129
    • Posts 933
    • Groups 2

    Posts

    Recent Best Controversial
    • RE: Dimensions returned as Sketchup::Drawingelement?

      Are you not confusing the name of an object and the object itself?

      So foo.class returns the object which is of class Class.

      foo.typename returns the name of the class of class String

      So there will be a method in the class that gives the string representation of itself (a .to_s() kind of thing).

      Adam

      posted in Developers' Forum
      AdamBA
      AdamB
    • RE: Hashing numbers

      OK..

      But if it hashes the reference then XXXX.to_a will generate a different hash each time because the array is new each time and therefore has a different reference.

      And your answer begs the question:

      If method hash() hashes the object reference and not the object value, then what in the Hans Christian Andersen is the point? By definition an object reference is unique since it refers to a unique object. What value does generating another unique number bring?

      Confused...

      posted in Developers' Forum
      AdamBA
      AdamB
    • RE: SU7: Sketchup#set_status_text() broken on Mac

      Is it something I said?! πŸ˜•

      Surely with all the Ruby experts reading this forum somebody must have some suggestion?

      Please!

      posted in Developers' Forum
      AdamBA
      AdamB
    • Hashing numbers

      123.hash
      123.hash

      gives the same answer.

      Geom::Point3d.new(1,2,3).hash
      Geom::Point3d.new(1,2,3).hash

      gives 2 different answers. I understand why, I just think its a bug in realworld usage.

      What do you think?

      posted in Developers' Forum
      AdamBA
      AdamB
    • RE: Dynamic Components, Interaction and Animation Output

      I added support for animation and interaction of Dynamic Components in LightUp. There is a short vid here

      [I don't know what YouTube has done to the quality / framerate of the video, but you get the gist]

      It supports click on DC and also proximity triggering them so you can have doors opening as you walking around.

      I also added some extra optional syntax to the onClick behaviour. You can write:

      animateslow("rotx", 0,45,90),cycle

      And it will animate from 0 to 45 to 90 degrees and back to 0 when you trigger.

      Or you can write:

      animateslow("rotx", 0,45,90),cycle,pause

      and get the same with a pause between each state.

      Or you can write:

      animateslow("z", 0,200,400),forever

      to loop the animation once its triggered.

      Adam

      posted in Dynamic Components
      AdamBA
      AdamB
    • SU7: Sketchup#set_status_text() broken on Mac

      Anyone got any good ideas as to how to get around this bug in SU7?

      Basically, if you have a Ruby that is working hard and wants to show progress by updating the status text in the lower left, in SU7 on Mac its broken 😒 (bug logged SU-0282).

      Now I guess it will get fixed sometime, but in the meantime I'm trying to find a way of encouraging the window to refresh.

      A quick demo of what the bug is, is to run the following at the Ruby console:

      5.times {Sketchup.set_status_text rand(); sleep 0.5}

      On PC, it updates the status text, on Mac it only shows the last one when the loop is completed.

      Any ideas gratefully received!
      Adam

      posted in Developers' Forum
      AdamBA
      AdamB
    • RE: $ versus @

      Just define your Observer class in the scope of your Module

      module Foo
      
      class ToolsObsTest < Sketchup;;ToolsObserver
         def onActiveToolChanged (tools_object, toolname, toolid)
            @t = toolid
         end
      end
      
      end
      
      instance = Foo;;ToolsObsTest.new
      
      posted in Developers' Forum
      AdamBA
      AdamB
    • RE: [request] Again, web3D application?

      Perhaps I've got the wrong end of the stick here but why can't you use Quicktime to view the FBX files (Autodesk interchange format)?

      It works pretty well and allows panning, zooming etc. and works on both Mac and PC

      Adam

      posted in Plugins
      AdamBA
      AdamB
    • RE: Lighting project

      Hi,

      Bigstick is correct; the intention is to introduce IES light profiles into LightUp. The idea would be to be able to point LightUp at standard .ies files and it builds a light source inside LightUp that has the correct falloff profiles etc.

      However, its unlikely this tech will make v1.3 which is started to be wrapped up right now.

      Adam

      posted in Gallery
      AdamBA
      AdamB
    • RE: Countryside House

      @solo said:

      Great model, is it yours?

      The render lacks realism IMO, Vray, KT, Indigo, maxwell etc would have done a better job but probably not as fast.

      Any chance you could point out where it lacks realism? I'm sure it does, I just want somebody knowledgeable about this stuff to lift rendering artefacts / things missing out of the image for me.

      Adam

      posted in Gallery
      AdamBA
      AdamB
    • RE: Online payment systems

      I use Paypal.

      Works just fine, but I found them really hard to get hold of when things don't work and secondly, its very expensive.

      If there was an alternative I'd jump at it.

      Adam

      posted in Corner Bar
      AdamBA
      AdamB
    • RE: House at the Sea

      @unknownuser said:

      @ibon said:

      Until now i was used to vray, but hypershot is soooo easy...

      Yeah but Hypershot doesn't even come close to V-Ray in quality.

      Hey Coen,

      Any chance you can elaborate on that comment / help educate me ?

      I haven't used either vray or Hypershot but I've seen great images produced with both. As an observer, what should I be looking for wrt Quality? What is it about those images that jump out at you and make you whince?

      Adam

      posted in Gallery
      AdamBA
      AdamB
    • RE: Film &amp; Stage plugin

      Ahh. Thanks guys, you learn something every day.

      Is this a well used feature? It seems to have drifted off into the long grass.

      Adam

      posted in Developers' Forum
      AdamBA
      AdamB
    • Film &amp; Stage plugin

      I received a file from somebody using the Film & Stage plugin. I don't have this plugin, yet when I open the file it has the "camera framing" grayed out areas left and right showing the aspect ratio of the view finder.

      How does a plugin do that when its not installed on my machine? Are there some special hooks in the model to attach stuff?

      Confused,
      Adam

      posted in Developers' Forum
      AdamBA
      AdamB
    • Output resolution

      Hi,

      I want to add a set of presets to LightUp v1.3 for Still and Movie output resolution and need your help.

      What should those Presets be? ie What are the common resolution people output?

      Currently I've got:

      Still: 800x600, 1920x1080, 6000x4000
      Movie: 640x480 (4:3 & 16:9), 720x480 (4:3 & 16:9), 720x576 (4:3 & 16:9)

      Any obviously missing?

      Adam

      posted in Extensions & Applications Discussions extensions
      AdamBA
      AdamB
    • RE: Hypershot Again

      @stefanq said:

      Another shot,@1 hour, I just tweak a little materials, I'm not very happy, but that's my issue. I didn't know how to make materials to look perfect.

      http://img228.imageshack.us/img228/5826/80377896ge0.th.jpg

      Whats up with the reflection? Its completely wrong.

      posted in Gallery
      AdamBA
      AdamB
    • RE: Exit Reality

      @solo said:

      .. using this technology to create a virual portfolio

      "virual"? Is thats a virtual viral portfolio or viral virtual portfolio?

      posted in Corner Bar
      AdamBA
      AdamB
    • RE: Clearance plugin?

      @unknownuser said:

      Adam, can you show me a picture of what you mean for the first case?

      Todd, 2 objects next to each other:

      SketchUpScreenSnapz005.png

      Whats the smallest clearance? ie You can't do this by examining vertices.

      Typically you'd use GJK to crawl around the surface. But I seem to remember GJK is just for convex hulls - one of the many many reasons physics packages only deal with collections of convex hulls. (its an interesting subject - imagine a tumbling object through space with a protruding part and the incredibly complex path the tip of that protrusion traces.)

      Adam

      EDIT:
      I realized I claimed earlier that convex shapes would be simple.. I meant that with simple interval arithmetic you can find a separating plane etc. Nothing is ever simple..the devil is always in the details!

      posted in Developers' Forum
      AdamBA
      AdamB
    • RE: Clearance plugin?

      Hey Todd,

      For 2 arbitrary (non-convex) polytopes that's one mother of a problem to solve. Love to hear your simple solution. πŸ˜•

      Now if its convex, then a line between the 2 hulls and project onto the line and you're done.

      Adam

      posted in Developers' Forum
      AdamBA
      AdamB
    • Programming cartoon

      Creation_du_monde_small.jpg

      Some days it feels a bit like this..

      posted in Developers' Forum
      AdamBA
      AdamB
    • 1 / 1