Itoo Software Forum

Author Topic: Some parametric window questions  (Read 3196 times)

GT4505

  • Full Member
  • ***
  • Posts: 133
    • claar.be
Re: Some parametric window questions
« Reply #15 on: September 21, 2016, 10:56:31 AM »
Hi Paul,

Great, thank you for the file.
Looking forward to v3 then, cause I love working with rc and forest they're huge timesavers, and add a lot of detail to the scene!
Pieter van Stee

GT4505

  • Full Member
  • ***
  • Posts: 133
    • claar.be
Re: Some parametric window questions
« Reply #16 on: September 24, 2016, 06:41:55 PM »
Well this worked perfectly for me :)
Thanks again, here is one of the images I rendered from this scene...

Pieter van Stee

GT4505

  • Full Member
  • ***
  • Posts: 133
    • claar.be
Re: Some parametric window questions
« Reply #17 on: September 25, 2016, 09:32:48 PM »
Hi, there,

Here another question about windows.
In the mean time my window scripts are working out quite as I want them to.
I have just a question about optimization, and a slight discoloration on some segments.

Please have a look at the attached files:
- Can the script be constructed easier?
- how to get rid of the discoloration on the middle segment.

Thanks!

edit: just one more question, something I've encountered earlier in other rc builds: as you can see on the last screenshot there is a repetition of the left (default) segment again. might be due to a slight in accuracy? would just like to be sure to get rid of this ;)


« Last Edit: September 25, 2016, 09:35:18 PM by GT4505 »
Pieter van Stee

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2991
Re: Some parametric window questions
« Reply #18 on: September 26, 2016, 12:22:05 PM »
Hi!

Thanks for uploading a picture, it's always really nice to see the work you are doing with the styles you're creating.


- how to get rid of the discolouration on the middle segment.

It seems you have some overlapping geometry. This is caused by the lower glazing segments and the transom interpenetrating. To fix this you need to deduct the height of the transom segments from the lower glazing.

- As you can see on the last screenshot there is a repetition of the left (default) segment again. Might be due to a slight in accuracy? would just like to be sure to get rid of this

This is due to the the rounding operations of the expressions. Sometime it won't divide perfectly and you'll get slight inaccuracies like this. One solution is to prevent the segments from repeating. You can do this by using a sequence operator with the compose node in input one and an empty "null" segment in input two. When RC encounters a segment with now dimensions it stops adding any more geometry to that part of the array, so it will prevent repetition and remove the problematic geometry.

Though this style seems complicated, to me it seems logical split into segment's like this. With the changes in RC3 you might be able to restore this to an A2S generator which would speed things up. If not we have plans to make sub-graphs so you could make this much more user-friendly.

I've attached a file with these changes. I hope that helps, please let me know if you have any further questions.

Many Thanks,

Paul
Paul Roberts
iToo Software

GT4505

  • Full Member
  • ***
  • Posts: 133
    • claar.be
Re: Some parametric window questions
« Reply #19 on: September 26, 2016, 10:48:24 PM »
Hi Paul,

Thank you for your reply.
Indeed the first one was a mistake I made, thanks for pointing out where to look.
The second one I'll remember in my next projects, a little bit of a workaround but it does the trick.

Also looking forward to that rc3! :D
However until that arrives, here is another... just feels like windows are quite some work in each scene that can be automatized with rc, so I'd like to be able to generate as much as possible common types.
The next one is something I like to do in most of my projects to generate some variation. Opening some windows randomly.
Therefore I'd like to open them in 2 directions /angles.
The easiest one around the x rotation axis works very nice.
However I'd like to add some variation with a random value, is that possible that for each section a rnd nr is generated and used in the different L1S generators to have a correct result?
Now each L1S generator is getting a different value it seems.

The other thing - I don't know how to start - is opening the windows around the other axis...
Hope you can help me here, thank you!

Pieter van Stee

Michal Karmazín

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2447
Re: Some parametric window questions
« Reply #20 on: September 27, 2016, 04:58:33 PM »
Hi,

I can confirm, the the Generate on: X Spline Section doesn't behave as supposed when linked to Generator's X Rotation parameter. We'll check what can be done to fix it.

Anyway, to archive those rotations, it would be necessary to rotate all these used Segments using a specific "Pivot Point" for all involved Segments, which is not currently supported.  A possible option how to access rotation of the whole window might be to use part of this style (one window without frame) and nest it (import as a Segment) inside of new RC object, but unfortunately this way individual parts will be scaled too (which would be inconvenient).

Let me add, that the implementation of "groups of objects manipulated as a single Segment" feature is already in our wish-list.

Best regards,

Lars Egerrup / LKE Design

  • Jr. Member
  • **
  • Posts: 62
    • LKE design website
Re: Some parametric window questions
« Reply #21 on: October 25, 2016, 02:35:18 PM »
On that note, - as you are already considering. it would be cool if you could make hinged windows and doors.
Its of course possible, at this time, to make a stationary windows / doors  that are closed - but if you want to add the variance of using the hinges - open the window / door - then the problem arises, right?

I have been experimenting a little with it without the biggest luck though.

My theory was to have the outer frame as one Array 2s holding a number of subpanels (nestet) - each panel being an array 2S, so that you can have flexibility in number of mulions. The dimension of the various panels should be extracted and calculated based on data from the outer frame.
The door version should have more or less the same setup.

Of course it should be possible to add handles, hooks, hinges and so to the panels and frames, - so you could make a M1:1 door detail wise. Do you follow me?


I think all above should be possible in theory - but I just haven't had success doing it - maybe because it simply isn't possible, - yet?
« Last Edit: October 25, 2016, 02:49:41 PM by CT6253 »
Lars Egerrup
LKE Design

E: Lars@LKEdesign.dk
W: www.LKEdesign.dk

GT4505

  • Full Member
  • ***
  • Posts: 133
    • claar.be
Re: Some parametric window questions
« Reply #22 on: November 06, 2016, 12:49:38 AM »
Hi there,

Here I'm again with a question about one of the windows I've generated with RC.
I've been working with this script for quite some time now, however since a few alterations I'm getting this strange difference in reflection in the glazing.
I've extracted a part out of my model so you can have a look at it.
I'm sure it'll probably be something I've overlooked, but can't seem to find it.
Thanks in advance.

In regard to the question from CT6253, that should definetly be possible... with quite some work and a large script.
But I'm sure it can be much simpler, so I'm waiting for some new features in the next RC which I'm sure won't disappoint :p

Cheers
Pieter van Stee

GT4505

  • Full Member
  • ***
  • Posts: 133
    • claar.be
Re: Some parametric window questions
« Reply #23 on: November 06, 2016, 12:19:43 PM »
Hi there,

Ok looks like I found a way to resolve this issue.
However I still can't get it why RC is converting this geom the way it does.
It seems that one of the two geometry segments groups is being flipped in RC.
Have a look at the screenshots please.
By inverting the geom beforehand the result comes out fine.

This fixes my issue, but I'd like to know why this is and if I can fix this for future projects.
Thanks
Pieter van Stee

Michal Karmazín

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2447
Re: Some parametric window questions
« Reply #24 on: November 08, 2016, 05:43:07 PM »
Hi,

As we can see, some of your "source Segments" have flipped faces (thought in the view-port it doesn't seem so - please feel free to do some additional testing with the xView - Face Orientation tool or a 2Sided material). From the scene itself it's not clear how that issue arose, but in similar cases Flip normals > Reset XForm - Reset Selected > Convert to Editable Poly should fix it.

Best regadrs,

GT4505

  • Full Member
  • ***
  • Posts: 133
    • claar.be
Re: Some parametric window questions
« Reply #25 on: November 16, 2016, 07:45:08 AM »
Hi,

Thank you for this method to fix the problem, I'll use that in the future.
In this project I just flipped the faces from one set of objects.
Pieter van Stee