![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
[GDS|Entropy] wrote:
> Yo,
Yo
>
> Dunno about meshes, but with "solid" pov primitives, it should work...
>
Yes, in fact the bottles *are* meshes and that is roughly how I did it
in the picture. I used a plane for the intersection but a box would
probably have been more efficient. Mesh will do CSG if an inside_vector
is defined. But the larger question was about the possibility of
keeping the level of the ink physically accurate for a constant volume.
The ink bottle portrayed is a bottle for 'tusche' which is a heavy
gloppy sort of ink, like India ink, and it does tend to dry and cake
onto the inside of the bottle. Because I am controlling the generation
of the mesh in a loop anyway it should be possible to apply a procedural
texture to just the interior part of the bottle and get something close.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Chris B wrote:
>
>
> Hi Jim,
>
> I've been working on a label generator over the last few days. The objects I
> sent in for the 'office supplies' subject both needed labels, so I took the
> code I wrote for them to make a generic labelling system. As of this morning
> it generates either flat or cylindrical labels using layers of pigment to
> incorporate combinations of POV-Ray objects and image maps.
>
> By coincidence, yesterday I was thinking about how to do labels for rounded
> boxes/superellipsoids though I haven't coded that up yet. I was thinking of
> using the width, the depth and the roundness of the corners to control the
> shape of a label. The label width would control how far around the sides of
> the container the label stretched. Any ideas for anything that might make it
> more useful to you?
>
It might very well be! Assuming you are using bi-cubic patches, that
was one approach I was also considering. The 'cross sections' of the
bottles are modelled with splines using the colefax spline files. It
certainly would be easy to generate 16 points along the bottle's surface
from those spline definitions. But the labels on the ink bottles are
often continuous around the outside which might be trickier to do if
such total accuracy were needed, that is why I was also considering
generating uv vectors along with the mesh triangles, at least for a
certain portion of the bottle. But either way my attitude was that I
would provide the means such that the artist could change the label, in
the simplest case, by just providing an image_map. Your system still
might integrate well in that case too.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
The normals seem a touch overdone, but otherwise this is practically
perfect. :-)
--
William Tracy
afi### [at] gmail com -- wtr### [at] calpoly edu
Running "beautifully fast" on modern hardware is somewhere between "I've
never been to jail" and "I shower daily" on the list of human
accomplishment.
-- phi### [at] philwelch net, posting on Slashdot
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
"Jim Charter" <jrc### [at] msn com> wrote in message
news:47aef6c3$1@news.povray.org...
> Chris B wrote:
>> I've been working on a label generator over the last few days.
>> ... snip ...
>> By coincidence, yesterday I was thinking about how to do labels for
>> rounded boxes/superellipsoids though I haven't coded that up yet. I was
>> thinking of using the width, the depth and the roundness of the corners
>> to control the shape of a label. The label width would control how far
>> around the sides of the container the label stretched. Any ideas for
>> anything that might make it more useful to you?
>>
> It might very well be! Assuming you are using bi-cubic patches, that was
> one approach I was also considering.
At the moment I've used CSG, but the SDL is split into two parts and
modularised to make it easy to extend:
1. There's a label design file, in which you can render the label design
laid out flat. The design is built up of as many layers as you need. Each
layer can contain image maps, POV-Ray pigments, object pigments, text blocks
etc.
2. There's a series of macros, each of which creates a label object of a
particular shape, based on standardised variables to control the size, then
wraps the texture around onto its surface. The Width variable defines how
far around the object the label extends and therefore defines whether it's
continuous or whether there's a gap round the back.
For a new shape or new texture mapping technique (e.g. bi-cubic patches or
uv mapping), a new macro can be added. By using standardised variables to
describe the main attributes it makes it easy for a label designed for one
object shape to be wrapped around a different shape.
I did a rounded box label shape macro yesterday. Once I've wrapped a texture
onto it I'll post an image. Do you have a label design for the square
ink-bottle that I could maybe use as an example - a scan, a sketch or a
description that I could interpret?
Regards,
Chris B.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
"Chris B" <nom### [at] nomail com> wrote in message
news:47b0295f$1@news.povray.org...
>
> I did a rounded box label shape macro yesterday. Once I've wrapped a
> texture
> onto it I'll post an image.
>
Here's what I've got so far. Virtually everything is configurable, including
all of the text and the shapes and colours used. The radius of the corners
and the lengths of the sides can all be set and the label will adjust itself
to fit. The width of the label can be the same as the circumference of the
bottle or less, in which case it'll wrap round the bottle for as far as
necessary.
The first image shows the label as it renders in design mode.
The second shows a label doing a complete circuit of a rounded box and
meeting at the back.
The third shows one that wraps round as far as the back corners.
Regards,
Chris B.
Post a reply to this message
Attachments:
Download 'InkBottleLabel2.jpg' (15 KB)
Download 'InkBottleLabel.jpg' (14 KB)
Download 'InkBottleLabelDesign.jpg' (18 KB)
Preview of image 'InkBottleLabel2.jpg'
![InkBottleLabel2.jpg](/povray.binaries.images/attachment/%3C47b0e480%40news.povray.org%3E/InkBottleLabel2.jpg?preview=1)
Preview of image 'InkBottleLabel.jpg'
![InkBottleLabel.jpg](/povray.binaries.images/attachment/%3C47b0e480%40news.povray.org%3E/InkBottleLabel.jpg?preview=1)
Preview of image 'InkBottleLabelDesign.jpg'
![InkBottleLabelDesign.jpg](/povray.binaries.images/attachment/%3C47b0e480%40news.povray.org%3E/InkBottleLabelDesign.jpg?preview=1)
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Chris B wrote:
Do you have a label design for the square
> ink-bottle that I could maybe use as an example - a scan, a sketch or a
> description that I could interpret?
>
This was the source for it:
Post a reply to this message
Attachments:
Download 'tusche.jpg' (34 KB)
Preview of image 'tusche.jpg'
![tusche.jpg](/povray.binaries.images/attachment/%3C47b0fd60%40news.povray.org%3E/tusche.jpg?preview=1)
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
"Jim Charter" <jrc### [at] msn com> wrote in message
news:47b0fd60@news.povray.org...
> Chris B wrote:
> Do you have a label design for the square
>> ink-bottle that I could maybe use as an example - a scan, a sketch or a
>> description that I could interpret?
>>
> This was the source for it:
>
Here's what I've got so far.
Any good?
Regards,
Chris B.
Post a reply to this message
Attachments:
Download 'TuschePerspective.jpg' (19 KB)
Download 'TuscheOrthographic.jpg' (28 KB)
Preview of image 'TuschePerspective.jpg'
![TuschePerspective.jpg](/povray.binaries.images/attachment/%3C47b1887e%40news.povray.org%3E/TuschePerspective.jpg?preview=1)
Preview of image 'TuscheOrthographic.jpg'
![TuscheOrthographic.jpg](/povray.binaries.images/attachment/%3C47b1887e%40news.povray.org%3E/TuscheOrthographic.jpg?preview=1)
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Chris B wrote:
> "Jim Charter" <jrc### [at] msn com> wrote in message
> news:47b0fd60@news.povray.org...
>
>>Chris B wrote:
>> Do you have a label design for the square
>>
>>>ink-bottle that I could maybe use as an example - a scan, a sketch or a
>>>description that I could interpret?
>>>
>>
>>This was the source for it:
>>
>
>
> Here's what I've got so far.
> Any good?
>
> Regards,
> Chris B.
>
>
>
excellent I will play creating some uv's
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Here's a first try
Post a reply to this message
Attachments:
Download 'inkbottle.0024.jpg' (56 KB)
Preview of image 'inkbottle.0024.jpg'
![inkbottle.0024.jpg](/povray.binaries.images/attachment/%3C47b28209%40news.povray.org%3E/inkbottle.0024.jpg?preview=1)
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
"Jim Charter" <jrc### [at] msn com> wrote in message
news:47b28209@news.povray.org...
> Here's a first try
>
I've just emailed you a slightly higher resolution image with brighter
colours.
I spent last night working on a macro for a label to go round angled
multi-facetted polyhedron with bevelled and rounded corners, such as your
octagonal bottle. I've got the macro to do the shape. I'll be working on the
image definition for that as time allows. Do you have a picture of its
label?
Does that new grey one have any sort of label?
Regards,
Chris B.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |