SketchUcation Plugin Store

 

 

[Plugin] Hatchfaces (v1.8 beta) UPDATED 15-Dec-2012

Re: [Plugin] Hatchfaces (v1.6 beta)

Postby jolran » Tue Nov 15, 2011 9:24 am

Yes, sure if you like.

Think I'm ready with the base of the dialog. I'm porting it to Sketchup as of speak.

There where a lot of Javascriptcode to get the interface responding to certain events. For ex if one checkbox is selected another element is disabled, and such.
Using Jquery to help with DOM handling and events. And a spinnbox plugin.

I'm also sending lists from Sketchup to Dialog. Materials, components and layers.
Instead of hardcoding them in the HTML.
For patterns the user will be able to create new components as long as they put them in correct folder. And maybe create a pic as well(optional).

It's moving forward everyday actually. Slowly but steady. Will still have a lot of cleaning, testing and streamlining to do. But hopfully it will be a useful plugin.

Here is a screencap from latest dialog version. The style is to keep the interface as "Sketchup" as possible. Opinions in this style would be nice.
I could go crazy with colors but I kinda like this Sketchup style.
Please, register (free) to access all the attachments on the forums.
User avatar
jolran
 
Posts: 678
Joined: Sun Oct 26, 2008 9:23 pm
Location: Sweden
Name: Joel G
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: other
Level of SketchUp: Intermediate

Re: [Plugin] Hatchfaces (v1.6 beta)

Postby kaas » Wed Nov 16, 2011 6:36 pm

Hello Jolran,

Good to see you're still developing the plugin.

The screenshot looks good! Very nice you use the Sketchup style for the dialog, it's more easy on the eyes. I Hope you can treat us with a new test version at some point in the near future. Good luck in the meantime!

Greetings, Max
kaas
 
Posts: 43
Joined: Mon Mar 30, 2009 5:54 pm
Location: the Netherlands
Name: kaas
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: architecture
Level of SketchUp: Intermediate

Re: [Plugin] Hatchfaces (v1.6 beta)

Postby jolran » Wed Nov 16, 2011 7:42 pm

Thank you Max.

Glad you liked the style. It's quite easily changed if users would want so.

I Hope you can treat us with a new test version at some point in the near future


I'm working on it. Quite hard acctually, it's my baby. Can't give any dates, cause I'm not experienced enough in scripting to tell how long certain things will take :)

There is one thing that might pose some problems for the whole idea of the plugin.
After intersections there are quite often errors. I don't think it has so much to do with the script itself creating errors, but as to Sketchups accuracy. Wich is 0,001 inches.

It's really bugging me. Sometimes edges don't intersect with faces or small faces gets lost.

My theory is that I'm importing components and tiling them and doing plenty of transformations, wich can lead to: Vertices and edges are lying outside a position tolerance of what Sketchup can handle(intersect).

Compare that to using native Sketchup tools creating geometry. For ex drawing edges with the pen tool on a face, that would almost always give you tolerated vertice positions(unless you group and move them) for intersecting.

Well that's only a theory. But I must solve the problem somehow.

Hope that did not come out to negative Max. But as you can see there are still some work to do.
User avatar
jolran
 
Posts: 678
Joined: Sun Oct 26, 2008 9:23 pm
Location: Sweden
Name: Joel G
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: other
Level of SketchUp: Intermediate

Re: [Plugin] Hatchfaces (v1.6 beta)

Postby dtrarch » Thu Nov 17, 2011 6:39 pm

Hi Jolran

Just a lurker but what fun to see you and TIG hang in with such tenacity. :enlight:
Thanks for this really useful and interesting tool. :thumb: :thumb:

Cheers :D

dtr
dtrarch
Premium Member
Premium Member
 
Posts: 343
Joined: Tue Nov 13, 2007 8:03 pm

Re: [Plugin] Hatchfaces (v1.6 beta)

Postby markitekt » Fri Jan 06, 2012 8:22 pm

Any news on what looks to be a very promising plugin?
Mark P.
markitekt
 
Posts: 37
Joined: Wed Nov 14, 2007 8:24 pm
Location: Milwaukee, Wisconsin, USA
Name: markitekt

Re: [Plugin] Hatchfaces (v1.6 beta)

Postby brookefox » Sun Mar 11, 2012 9:17 pm

After having used the plugin, I came back by because I thought I had some ideas for you but seeing the various screen shots it looks as if you are well beyond what I get with the plugin, so either mine is not up to speed or I am not implementing correctly or you have not posted one which gives what is shown... My version just has hatches > line hatches resulting in only the possibility of cross hatching.

I forgot to say how thrilled I am to find your routine and hopeful for what I may be able to do with it... It fills a long standing hole in SU's arsenal.

~ Brooke
User avatar
brookefox
 
Posts: 832
Joined: Thu Jun 26, 2008 4:17 pm
Location: Pacific northwest, USA
Name: Brooke
Operating system: Windows
SketchUp version: 8
License type: Free/Make
SketchUp use: architecture
Level of SketchUp: Intermediate

Re: [Plugin] Hatchfaces (v1.6 beta)

Postby jolran » Mon Mar 12, 2012 3:03 pm

Hello everyone! :)

I AM working on the plugin. Just have been very busy lately with house renovation(I do this SU-programming on spare time).

Brookefox. The downloadable version you have, only does linehatches at the moment.
Although I've earlier posted pictures of current development features (here and in LO-forums)in order to get feedback and suggestions.

Must admit, for a while I got the impression most people where content with using textures for hatching(At least at the LO forums). So I got a little side-tracked :?
Started to work on other features, like 3d hatching and such..


Thanks for the feedback guys Really apreciate it.

Will be back on track soon.

/ Joel.
User avatar
jolran
 
Posts: 678
Joined: Sun Oct 26, 2008 9:23 pm
Location: Sweden
Name: Joel G
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: other
Level of SketchUp: Intermediate

Re: [Plugin] Hatchfaces (v1.6 beta)

Postby brookefox » Mon Mar 12, 2012 5:41 pm

Thanks for checking in, Joel. My guess is some of us would be happy to use a more fully implemented beta, as it seems so useful, with the obvious risks inherent. Personally, I'm looking for all edges and faces (no textures, no images), and components (preferably gridded). In my small experience it seems like the gridded components offer the greatest promise as they may be infinitely and easily editable.

If I could just cast components on a specified grid within bounding edges (faced or not), I think I could be happy. (What happens to components that intersect bounding edges? Ideally, they would be trimmed, or optionally trimmed.)

~ Brooke
User avatar
brookefox
 
Posts: 832
Joined: Thu Jun 26, 2008 4:17 pm
Location: Pacific northwest, USA
Name: Brooke
Operating system: Windows
SketchUp version: 8
License type: Free/Make
SketchUp use: architecture
Level of SketchUp: Intermediate

Re: [Plugin] Hatchfaces (v1.6 beta)

Postby jolran » Mon Mar 12, 2012 8:33 pm

Thanks for the input and ideas Brookefox :)

Gridded components you say? Do you mean patterns or using some sort of workplane?

You will be able to load premade patterns(components) from folders. Where you also can make your own patterns and stuff them in there.

Anyway, The way the plugin is working now, is that a face-edges determine the boundarys. That way the user don't have to worry about which plane one is working on.
Everything outside the face will be trimmed, including holes. Just like it's working in the current downloadable version.

The plugin as is now, is not beta ready :( . I actually might do a "light" version for user testing at first. Cause there are so many things added it might be difficult for me to keep track of things when complaints starts to hail in ;)
User avatar
jolran
 
Posts: 678
Joined: Sun Oct 26, 2008 9:23 pm
Location: Sweden
Name: Joel G
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: other
Level of SketchUp: Intermediate

Re: [Plugin] Hatchfaces (v1.6 beta)

Postby brookefox » Mon Mar 12, 2012 11:22 pm

jolran wrote:Gridded components you say? Do you mean patterns or using some sort of workplane?

Just 'patterns,' which are in fact component instances which can then all be changed by editing one of them, and in this way a small square with edges hidden be turned into a stripe with edges shown, etc.. Distributing on the grid and trimming to the edges are the keys, as you know. These squares are made up of such gridded components, the whole square being changed by editing it: -->selecting all-->making instances unique-->then changing one.
combo hatch-5.JPG


You will be able to load premade patterns(components) from folders. Where you also can make your own patterns and stuff them in there.
This will be super.

Anyway, The way the plugin is working now, is that a face-edges determine the boundarys. That way the user don't have to worry about which plane one is working on. Everything outside the face will be trimmed, including holes. Just like it's working in the current downloadable version.
This is super.

I checked out sdmitch's component array plugin, which is very nice but doesn't do the undercover surgery required for neat component hatching.
Please, register (free) to access all the attachments on the forums.
Last edited by brookefox on Tue Mar 13, 2012 6:09 pm, edited 1 time in total.
~ Brooke
User avatar
brookefox
 
Posts: 832
Joined: Thu Jun 26, 2008 4:17 pm
Location: Pacific northwest, USA
Name: Brooke
Operating system: Windows
SketchUp version: 8
License type: Free/Make
SketchUp use: architecture
Level of SketchUp: Intermediate

Re: [Plugin] Hatchfaces (v1.6 beta)

Postby jolran » Tue Mar 13, 2012 12:40 am

Just 'patterns,' which are in fact component instances which can then all be changed by editing one of them


Brookefox, I'm afraid that will not be possible if you mean altering them after the hatch-components are fitted to the face.
What will happend(in the code) is that all tiled instances will be exploded before doing an intersection with the face. And in the end become 1 large component.

I think Smidths plugins was an request to solve a particular problem, spacing out plants and stuff, including triangular array. In those cases one may not wish to delete geometry outside the faces. Works very well for what it was designed for, I think.

Hatchfaces plugin obviously will be more "pattern-fit a face" sort of thing.

Thanks for answering.
User avatar
jolran
 
Posts: 678
Joined: Sun Oct 26, 2008 9:23 pm
Location: Sweden
Name: Joel G
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: other
Level of SketchUp: Intermediate

Re: [Plugin] Hatchfaces (v1.6 beta)

Postby brookefox » Tue Mar 13, 2012 1:34 am

jolran wrote:
Just 'patterns,' which are in fact component instances which can then all be changed by editing one of them


Brookefox, I'm afraid that will not be possible if you mean altering them after the hatch-components are fitted to the face. What will happend(in the code) is that all tiled instances will be exploded before doing an intersection with the face. And in the end become 1 large component.... Hatchfaces plugin obviously will be more "pattern-fit a face" sort of thing.


I guess that is really all that could be expected and quite a bit, at that. I'll wait with the hordes, not drooling.

:paint:
~ Brooke
User avatar
brookefox
 
Posts: 832
Joined: Thu Jun 26, 2008 4:17 pm
Location: Pacific northwest, USA
Name: Brooke
Operating system: Windows
SketchUp version: 8
License type: Free/Make
SketchUp use: architecture
Level of SketchUp: Intermediate

Re: [Plugin] Hatchfaces (v1.6 beta)

Postby function » Fri Apr 13, 2012 8:16 am

wish someone could figure out DRAW ORDER for sketchup's open gl, it would be perfect for this, so you don't have to cut out everyshape, but just tuck hatches below another. Open GL has draw order, Autocad is 3d and has draw order.
function
 
Posts: 41
Joined: Mon Mar 29, 2010 6:24 am

Re: [Plugin] Hatchfaces (v1.6 beta)

Postby jolran » Fri Apr 13, 2012 6:47 pm

Could you elaborate a little bit more, please? Function :) .

I have a hunch what you are asking for but I don't think it's doable in Ruby with current API for what I know. I could be wrong.


BTW. Sorry ALL, for the delay in developping this plugin and releasing updates. Have been very busy with little or no time left for programming. But will be back on track soon.
User avatar
jolran
 
Posts: 678
Joined: Sun Oct 26, 2008 9:23 pm
Location: Sweden
Name: Joel G
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: other
Level of SketchUp: Intermediate

Re: [Plugin] Hatchfaces (v1.6 beta)

Postby function » Sun Apr 15, 2012 3:19 am

oh - when faces occupy the same plane, sketchup chooses which will show. In ortho / parallel projection, it will choose one, and when you rotate around it will kind of glitch out and switch between what faces occupy the plane. I found a solution on here to use the glue function to help - but the results were unreliable. I believe draw order control would only be relevant / work in 2d. . I see hatch faces makes actual vector lines, which will always show through on the plane, but if faces use different textures or materials it will present a problem.

This openGL command may be a start - not sure how it plays out in ruby. - Apparently you can set a depthBuffer, as well.
Code: Select all
The following call will turn off depth testing causing objects to be drawn in the order created. This will in effect cause objects to draw back to front.

glDepthFunc(GL_NEVER);      // Ignore depth values (Z) to cause drawing bottom to top

Be sure you do not call this:

glEnable (GL_DEPTH_TEST);   // Enables Depth Testing

function
 
Posts: 41
Joined: Mon Mar 29, 2010 6:24 am

Re: [Plugin] Hatchfaces (v1.6 beta)

Postby jolran » Sun Apr 15, 2012 10:50 am

Ah, see what you mean, Z-fighting.
I plan to have background colors/textures available in combination with edges(vector lines as you call it).

So, in my code I use the glue-to face-function. Appears to be working pretty ok for me.
Have you had issues with glue-behavior?

Can't give you any feedback on Open GL programming. Way over my head, sorry :(
User avatar
jolran
 
Posts: 678
Joined: Sun Oct 26, 2008 9:23 pm
Location: Sweden
Name: Joel G
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: other
Level of SketchUp: Intermediate

Re: [Plugin] Hatchfaces (v1.6 beta)

Postby function » Sun Apr 15, 2012 9:45 pm

ya the glue trick was inconsistent for me- every object has be a component right?
function
 
Posts: 41
Joined: Mon Mar 29, 2010 6:24 am

Re: [Plugin] Hatchfaces (v1.6 beta)

Postby TIG » Sun Apr 15, 2012 10:13 pm

An Image or an Instance of a Gluing+Cutting Component, when applied directly onto a Face do not "z-flight"...
TIG
User avatar
TIG
Global Moderator
 
Posts: 14310
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Hatchfaces (v1.6 beta)

Postby ipsketchpi » Mon Jun 18, 2012 2:58 pm

Hi Jolran

I am using these plug for a long time, I believe these is something new, I mean these new screen.. is it already available- these new version of these plug?
/IP
User avatar
ipsketchpi
 
Posts: 71
Joined: Mon Jan 17, 2011 3:46 pm
Location: Latvia
Name: Ilmārs
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Intermediate

Re: [Plugin] Hatchfaces (v1.6 beta)

Postby troypiggo » Tue Jun 26, 2012 11:25 pm

This plugin looks exactly like something I'm after. I downloaded the 1.6 version from post #1 in this thread, but it only seems to have a very simple crosshatch available and the dialog isn't as well developed as some screenshots I'm seeing in some followup posts. I skimmed through the pages, but did I miss where an updated version with those concrete hatches etc is available?
troypiggo
 
Posts: 58
Joined: Mon Jun 25, 2012 2:49 am
Location: Brisbane, AUSTRALIA
Name: troypiggo
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Beginner

Re: [Plugin] Hatchfaces (v1.6 beta)

Postby jolran » Wed Jul 04, 2012 10:00 pm

Hi! Sorry for late reply.

At the moment there is only crosshatching with edges. ver 1.6.

The pictures you have seen is probably screen-grabs from developpment.

I just want to assure you I have not abandoned the project. In the future those features will be available, if all goes well.

Thanks.
User avatar
jolran
 
Posts: 678
Joined: Sun Oct 26, 2008 9:23 pm
Location: Sweden
Name: Joel G
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: other
Level of SketchUp: Intermediate

Re: [Plugin] Hatchfaces (v1.6 beta)

Postby emartingr » Sat Oct 13, 2012 6:50 pm

jolran wrote:Hi! Sorry for late reply.

At the moment there is only crosshatching with edges. ver 1.6.

The pictures you have seen is probably screen-grabs from developpment.

I just want to assure you I have not abandoned the project. In the future those features will be available, if all goes well.

Thanks.



Hello jolran,

Great plugin, just what I was looking for. Only one question: Can the menu keep the last input values? (angle, spacing). This would be useful when there are several surfaces to be identically hatched.

For the rest I found no bugs. Surfaces with complex geometries, with holes, spirals Etc, hatched fine. Thanks a lot.
emartingr
 
Posts: 8
Joined: Tue Oct 13, 2009 8:27 pm
Name: ERNESTO MARTIN

Re: [Plugin] Hatchfaces (v1.6 beta)

Postby jolran » Sun Oct 28, 2012 8:46 pm

Hi Emartingr.

Can the menu keep the last input values? I'm afraid I can't tell you at the moment :oops:

(This is a bit embarrassing)I have not done any coding since May and now I feel lost in the world of Ruby, so I'm rehearsing a bit at the moment.
Did not expect to forget a language so fast :lol:
rookie mistake..


Hopefully be back soon. Haven't given up the idea with an update with better dialogs and stuff. Unless someone else has done a similar plugin since I've been gone.
User avatar
jolran
 
Posts: 678
Joined: Sun Oct 26, 2008 9:23 pm
Location: Sweden
Name: Joel G
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: other
Level of SketchUp: Intermediate

Re: [Plugin] Hatchfaces (v1.7 beta) UPDATED 28-NOV-2012

Postby jolran » Wed Nov 28, 2012 12:31 am

In Version 1.7 http://sketchucation.com/forums/viewtopic.php?f=323&t=38637

The menu should remember the values during sessions. Although not crosshatching. Crosshatching is calculated as a negative from value 1(Angle).
If it seams like a must by request, Remebering 2nd values can of course be done, but I don't think it would be practical.

I'm working on the next version with patterns, still lot's to do :-)
I'm doing a comeback in coding, been off for a while..

Hope this version will work OK for ya!
User avatar
jolran
 
Posts: 678
Joined: Sun Oct 26, 2008 9:23 pm
Location: Sweden
Name: Joel G
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: other
Level of SketchUp: Intermediate

Re: [Plugin] Hatchfaces (v1.7 beta) UPDATED 28-NOV-2012

Postby sergey2402 » Wed Nov 28, 2012 7:08 pm

It's great. Thank you so much, Jolran!
sergey2402
 
Posts: 48
Joined: Sun Dec 19, 2010 11:53 pm
Location: Moscow, Russia
Name: Serge

Re: [Plugin] Hatchfaces (v1.7 beta) UPDATED 28-NOV-2012

Postby jolran » Wed Nov 28, 2012 8:36 pm

:)

Thanks, more coming soon.
User avatar
jolran
 
Posts: 678
Joined: Sun Oct 26, 2008 9:23 pm
Location: Sweden
Name: Joel G
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: other
Level of SketchUp: Intermediate

Re: [Plugin] Hatchfaces (v1.8 beta) UPDATED 15-Dec-2012

Postby jolran » Sat Dec 15, 2012 8:29 pm

viewtopic.php?f=323&t=38637&p=341461#p341461

New version added. Please read the help-file in the draw menu(if it's possible :D )

It would be nice with feedback if it works on Mac.
Some new stuff, but all is in the helpfile. Might do a tutorial later on, just for fun.

/Joel
User avatar
jolran
 
Posts: 678
Joined: Sun Oct 26, 2008 9:23 pm
Location: Sweden
Name: Joel G
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: other
Level of SketchUp: Intermediate

Re: [Plugin] Hatchfaces (v1.8 beta) UPDATED 15-Dec-2012

Postby jolran » Sun Dec 16, 2012 12:05 pm

Yeiks!! Crosshatching is not working! Will fix that as soon as possible.

edit: Actually it works. But be aware that (until fixed) if you have a negative value in 1st "angle" with crosshatching the crosshatching default value will be negative as well.
So just erase the "-" sign in crosshacthing dialog.

Also some geometry is created if cancelling in the crosshatching-menu.


edited again :) Fixed for next version. Will be added in ver 1.9.

Funny thing, been testing a lot but did miss this obvious thing.
Sorry about that.
User avatar
jolran
 
Posts: 678
Joined: Sun Oct 26, 2008 9:23 pm
Location: Sweden
Name: Joel G
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: other
Level of SketchUp: Intermediate

Re: [Plugin] Hatchfaces (v1.8 beta) UPDATED 15-Dec-2012

Postby photon2 » Sun Jan 27, 2013 10:42 pm

testing v1.8 on osx 10.8. I'm an osx newb. install went fine (maybe if you named the file .rbz a person could use the in-app installer?)

http://support.google.com/sketchup/bin/ ... swer=38583

It seems to work great! I really think this project deserves to continue! :stamps foot: I was just looking for insulation pattern tool like yesterday. But I like parallel lines too! It's great you have done some research for the other patterns. Any additional vector tricks instead of images are wonderful. I will use the crosshatch feature too.
photon2
 
Posts: 5
Joined: Sun Jan 27, 2013 2:47 am
Name: Eric
Operating system: Mac
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Intermediate

Re: [Plugin] Hatchfaces (v1.8 beta) UPDATED 15-Dec-2012

Postby jolran » Mon Jan 28, 2013 9:45 am

maybe if you named the file .rbz a person could use the in-app installer?)


I'll take a look at it for the next version.

I really think this project deserves to continue!


I'm working on it, mate! I updated the plugin a month ago.

Anyway..
I've ironed out the tiling parts and intersections for Hatchfaces patterns.
But for the moment I'm deep into Javascript.

Went for a "Component window" look and feel. What do ya think?

It will recognize new folders, and new components. So you can just create new folders and save the components(in the pluginfolder) and the thumbnails will be updated.
(I'm looking forward bugtracking that part :roll: )

It looks like a simple dialog, but there are actually quite a lot of events going on. I'm using some sprites for icons, so we will see how it will work on MAC.
Need to do some adjustements to the css and stuff but nearly there with the dialog..

After that, port the dialog to Hatchfaces and do some more Ruby adjustments and then maybe after that there can be a new betatest.

teaser...
Please, register (free) to access all the attachments on the forums.
User avatar
jolran
 
Posts: 678
Joined: Sun Oct 26, 2008 9:23 pm
Location: Sweden
Name: Joel G
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: other
Level of SketchUp: Intermediate

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Not a Premium Member yet? Check out the great time-limited deal we are offering.

Ad Machine
Robot
 
Posts: 2012

PreviousNext

Return to Plugins

Who is online

Users browsing this forum: archkuja, daniel8742, xq314587613 and 15 guests