|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Nekar Xenos" <nek### [at] gmailcom> wrote:
> I still get 3 of the same bricks in a row. Any ideas on how to get it more
> random?
Besides not having the same brick appear twice in a row, you probably don't want
the same brick appearing directly above or below. One possible method (although
not as cool as the previous suggestion) could be to create a two-dimensional
array (or three-dimensional, if you also want to worry about the corners of the
wall). Assign a number to each brick type, and store that number in the
corresponding array location as the bricks are placed in the wall. As you add a
new brick, compare the new brick type to the two bricks below and the one
already placed on the same row. If the new brick matches any of the already
created bricks, select a different type and compare again.
Regards,
Dave Blandston
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On Wed, 28 Apr 2010 10:24:53 +0200, Bill Pragnell
<bil### [at] hotmailcom> wrote:
> "Nekar Xenos" <nek### [at] gmailcom> wrote:
>> macro. I have 5 different mesh bricks, randomly mirrored and rotated,
>> but
>> I still get 3 of the same bricks in a row. Any ideas on how to get it
>> more
>> random?
>
> Edouard already commented for the random selection - I was just going to
> suggest
> varying the seed!
>
> You could also very slightly perturb each brick's position and rotation
> (say, up
> to 1% of a brick's width perpendicular to the wall, and up to half a
> degree on
> the y). This can make the wall look more roughly put together. Another
> thing to
> try is to vary the lightness of the bricks (doesn't need to be by much),
> so they
> don't look like they all came from the same batch.
>
> Love the sunflower and the washed-out sunlight!
>
>
Thanks :)
-Nekar Xenos-
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On Wed, 28 Apr 2010 10:34:15 +0200, Dave Blandston <nomail@nomail> wrote:
> "Nekar Xenos" <nek### [at] gmailcom> wrote:
>> I still get 3 of the same bricks in a row. Any ideas on how to get it
>> more
>> random?
>
> Besides not having the same brick appear twice in a row, you probably
> don't want
> the same brick appearing directly above or below. One possible method
> (although
> not as cool as the previous suggestion) could be to create a
> two-dimensional
> array (or three-dimensional, if you also want to worry about the corners
> of the
> wall). Assign a number to each brick type, and store that number in the
> corresponding array location as the bricks are placed in the wall. As
> you add a
> new brick, compare the new brick type to the two bricks below and the one
> already placed on the same row. If the new brick matches any of the
> already
> created bricks, select a different type and compare again.
>
> Regards,
> Dave Blandston
>
>
Hmm. There are 2 bricks above and 2 bricks below each brick and one on
each side = 6 bricks. I'll have to make a larger variety of bricks!
-Nekar Xenos-
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Nekar Xenos" <nek### [at] gmailcom> wrote:
> Hmm. There are 2 bricks above and 2 bricks below each brick and one on
> each side = 6 bricks. I'll have to make a larger variety of bricks!
>
> -Nekar Xenos-
Not necessarily. See the attached (plagerized) image. With three brick types,
it's possible that no brick would be directly adjacent to another brick of the
same type. There's not a whole lot of randomness in this case, though!
Regards,
Dave Blandston
Post a reply to this message
Attachments:
Download 'temp.jpg' (99 KB)
Preview of image 'temp.jpg'
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Nekar Xenos" <nek### [at] gmailcom> wrote:
> Hmm. There are 2 bricks above and 2 bricks below each brick and one on
> each side = 6 bricks. I'll have to make a larger variety of bricks!
I don't think you'll need very high-res meshes for this wall, so you should have
no problem with 10-20 different bricks in your array.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On Wed, 28 Apr 2010 11:54:11 +0200, Dave Blandston <nomail@nomail> wrote:
> "Nekar Xenos" <nek### [at] gmailcom> wrote:
>> Hmm. There are 2 bricks above and 2 bricks below each brick and one on
>> each side = 6 bricks. I'll have to make a larger variety of bricks!
>>
>> -Nekar Xenos-
>
> Not necessarily. See the attached (plagerized) image. With three brick
> types,
> it's possible that no brick would be directly adjacent to another brick
> of the
> same type. There's not a whole lot of randomness in this case, though!
>
> Regards,
> Dave Blandston
Oh yes. I didn't think further... :)
-Nekar Xenos-
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
> Redoing a scene I lost when my old PC went belly-up.
>
> It's an idea I have for a painting that I want to make. So now I first
> want to try and create a "photo" to paint from - with Pov-Ray :)
> I still need to add doors, windows, fire-escape and trash. Any
> suggestions on how to do these objects will be highly appreciated.
>
> I ran into memory problems with the isosurface bricks, so this is a
> mixture of isosurface and mesh bricks using Bill Pragnells mesh relief
> macro. I have 5 different mesh bricks, randomly mirrored and rotated,
> but I still get 3 of the same bricks in a row. Any ideas on how to get
> it more random?
>
> Also struggling with the tar texture. I'm trying to get the effect of
> old cracked tar. It's an isosurface using a pigment function.
>
>
> Suggestions, help and critique welcome.
>
> -Nekar Xenos-
Random don't mean that there is no repeating pattern.
If you want to reduce the succession, you can:
- Use another random seed.
- Add some slight texture changes: pigment and normals.
- Define one or two more bricks.
For the windows, as you are using individual bricks, remove the bricks
in the window's openings. Turn the bricks protuding into the window 90
degrees, or use some half bricks.
Old asphalt is much lighter, normaly, it's a relatively light gray.
Alain
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On Thu, 29 Apr 2010 04:45:04 +0200, Alain <aze### [at] qwertyorg> wrote:
>> Redoing a scene I lost when my old PC went belly-up.
>>
>> It's an idea I have for a painting that I want to make. So now I firs
t
>> want to try and create a "photo" to paint from - with Pov-Ray :)
>> I still need to add doors, windows, fire-escape and trash. Any
>> suggestions on how to do these objects will be highly appreciated.
>>
>> I ran into memory problems with the isosurface bricks, so this is a
>> mixture of isosurface and mesh bricks using Bill Pragnells mesh relie
f
>> macro. I have 5 different mesh bricks, randomly mirrored and rotated,
>> but I still get 3 of the same bricks in a row. Any ideas on how to ge
t
>> it more random?
>>
>> Also struggling with the tar texture. I'm trying to get the effect of
>> old cracked tar. It's an isosurface using a pigment function.
>>
>>
>> Suggestions, help and critique welcome.
>>
>> -Nekar Xenos-
>
> Random don't mean that there is no repeating pattern.
> If you want to reduce the succession, you can:
> - Use another random seed.
> - Add some slight texture changes: pigment and normals.
> - Define one or two more bricks.
>
> For the windows, as you are using individual bricks, remove the bricks
> in the window's openings. Turn the bricks protuding into the window 90
> degrees, or use some half bricks.
>
> Old asphalt is much lighter, normaly, it's a relatively light gray.
>
>
> Alain
Thanks Alain.
I see also now my code was a bit faulty as well. Now that I've fixed it
up, there are no noticeable repeats.
Still working on that asphalt. When it looks believable, the cracks don'
t
show, and vice versa...
-Nekar Xenos-
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Nekar Xenos" <nek### [at] gmailcom> schreef in bericht
news:op.vbuvk8xwufxv4h@xena...
.... I have 5 different mesh bricks, randomly mirrored and rotated, but
> I still get 3 of the same bricks in a row. Any ideas on how to get it more
> random?
Interestingly, bricks being made industrially, this may even happen in RL.
In my previous house, there were several parts were you could trace the same
pattern on the wall... With POV we try to do better than RL :-)
Nice work and interesting model for a painting.
Thomas
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On Thu, 29 Apr 2010 10:40:23 +0200, Thomas de Groot
<tDOTdegroot@interdotnlanotherdotnet> wrote:
>
> "Nekar Xenos" <nek### [at] gmailcom> schreef in bericht
> news:op.vbuvk8xwufxv4h@xena...
> .... I have 5 different mesh bricks, randomly mirrored and rotated, but
>> I still get 3 of the same bricks in a row. Any ideas on how to get it
>> more
>> random?
>
> Interestingly, bricks being made industrially, this may even happen in
> RL.
> In my previous house, there were several parts were you could trace the
> same
> pattern on the wall...
The bricklayers should use a different randomization algorithm ;->
> With POV we try to do better than RL :-)
>
> Nice work and interesting model for a painting.
>
> Thomas
>
Thanks :)
-Nekar Xenos-
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |