Forum: Poser - OFFICIAL


Subject: Realistic Lights

mr_phoenyxx opened this issue on Apr 23, 2014 · 24 posts


bagginsbill posted Thu, 24 April 2014 at 9:25 PM

> Quote - I'd love to know more about how you are making those holes btw, and an up shot into one of the light fixtures would be interesting to see as well.

I've been experimenting in a hobbyist kind of aimless fashion for about five years doing procedural geometry generation. What I like about it is the ability to model a family of objects with morphs so that I have a morphing prop.

This prop has morphs to change the dimensions of the box, the dimensions of the holes (diameter and depth), and I just added also a ring around the hole.

The cutout for the circle is done as follows:

Given any rectangle, I alter it to have a square hole in the middle by replacing it with four rectangles - left, right, top, and bottom.

Then I add four triangles to the hole, one in each corner, making it an octagon.

Then in each of those corners, another triangle to make 16 sides.

And so on, until I have 64 sides. Or 128. Or whatever.

The inner points I then extrude to form a cylinder. I close the back of the cylinder with a simple quad.

Then I add a lathed shape to make a nice rim around the opening.

All of these steps are controlled by python statements with dynamic parameters so I can change my mind about things without having to redo the model. I edit the script and run it to get the new model.

I modified the script to generate each step one at a time for this illustration.

 

 


Renderosity forum reply notifications are wonky. If I read a follow-up in a thread, but I don't myself reply, then notifications no longer happen AT ALL on that thread. So if I seem to be ignoring a question, that's why. (Updated September 23, 2019)