|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
This is a just-for-fun object. The image on the side of the mug is from a .png
image (also made with POV-Ray, of course) but the image is applied to a thin box
which is divided into lots of narrow segments that are wrapped around the mug.
Have an awesome day folks!
Kind regards,
Dave Blandston
Post a reply to this message
Attachments:
Download 'coffeemug_fde.jpg' (148 KB)
Preview of image 'coffeemug_fde.jpg'
|
|
| |
| |
|
|
|
|
| |
| |
|
|
This shows what's happening - the thin box is only divided into a few segments.
Post a reply to this message
Attachments:
Download 'coffeemug.jpg' (56 KB)
Preview of image 'coffeemug.jpg'
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Dave Blandston" <IsN### [at] protonmailch> wrote:
> This is a just-for-fun object. The image on the side of the mug is from a .png
> image (also made with POV-Ray, of course) but the image is applied to a thin box
> which is divided into lots of narrow segments that are wrapped around the mug.
>
> Have an awesome day folks!
>
> Kind regards,
> Dave Blandston
Very nice work - that looks like exactly the approach as Chris Colefax's "object
bender".
http://www.oocities.org/ccolefax/index.html
But ... why didn't you just uv-map it with cylindrical mapping?
or a cylindrical warp
https://wiki.povray.org/content/Reference:Warp
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Am 29.06.2022 um 12:42 schrieb Bald Eagle:
> "Dave Blandston" <IsN### [at] protonmailch> wrote:
>> This is a just-for-fun object. The image on the side of the mug is from a .png
>> image (also made with POV-Ray, of course) but the image is applied to a thin box
>> which is divided into lots of narrow segments that are wrapped around the mug.
>>
>> Have an awesome day folks!
>>
>> Kind regards,
>> Dave Blandston
>
> Very nice work - that looks like exactly the approach as Chris Colefax's "object
> bender".
>
> http://www.oocities.org/ccolefax/index.html
>
> But ... why didn't you just uv-map it with cylindrical mapping?
>
> or a cylindrical warp
>
> https://wiki.povray.org/content/Reference:Warp
>
Yes, very nice indeed. But uv-mapping would need a mesh-object. With CSG
it will not work. With CSG an cylindrical image_map would display the
image at the inside of the cup too. If CSG was used, cutaway_texture may
be an option to avoid the repetition in the inside of the cup.
BTW a very nide inside of a coffee mug was posted 09/03/2002 by tincanman:
http://news.povray.org/povray.binaries.scene-files/thread/%3C3d74cad9%241%40news.povray.org%3E/?ttop=437504&toff=850
Best regards,
Michael
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Le 2022-06-29 à 12:59, MichaelJF a écrit :
> Am 29.06.2022 um 12:42 schrieb Bald Eagle:
>> "Dave Blandston" <IsN### [at] protonmailch> wrote:
>>> This is a just-for-fun object. The image on the side of the mug is
>>> from a .png
>>> image (also made with POV-Ray, of course) but the image is applied to
>>> a thin box
>>> which is divided into lots of narrow segments that are wrapped around
>>> the mug.
>>>
>>> Have an awesome day folks!
>>>
>>> Kind regards,
>>> Dave Blandston
>>
>> Very nice work - that looks like exactly the approach as Chris
>> Colefax's "object
>> bender".
>>
>> http://www.oocities.org/ccolefax/index.html
>>
>> But ... why didn't you just uv-map it with cylindrical mapping?
>>
>> or a cylindrical warp
>>
>> https://wiki.povray.org/content/Reference:Warp
>>
> Yes, very nice indeed. But uv-mapping would need a mesh-object. With CSG
> it will not work. With CSG an cylindrical image_map would display the
> image at the inside of the cup too. If CSG was used, cutaway_texture may
> be an option to avoid the repetition in the inside of the cup.
>
> BTW a very nide inside of a coffee mug was posted 09/03/2002 by tincanman:
>
>
http://news.povray.org/povray.binaries.scene-files/thread/%3C3d74cad9%241%40news.povray.org%3E/?ttop=437504&toff=850
>
>
> Best regards,
> Michael
You could apply a plain simple texture to the object used to remove the
interior of the mug. That way, it'll prevent the image from showing on
the inside.
Then, there are other primitives that support UV mapping beside mesh.
You could make the mug as a sor or lathe.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On 2022-06-29 12:59 (-4), MichaelJF wrote:
> Yes, very nice indeed. But uv-mapping would need a mesh-object. With CSG
> it will not work. With CSG an cylindrical image_map would display the
> image at the inside of the cup too. If CSG was used, cutaway_texture may
> be an option to avoid the repetition in the inside of the cup.
An object pigment can be used with the cylindrical warp to avoid the
image on the inside of the mug. That's how I did my coffee mug:
https://github.com/CousinRicky/POV-CoffeeMug/blob/main/coffeemug.inc
The relevant macros are CoffeeMug_Wrap(), CoffeeMug_Pigment(), and
CoffeeMug_Texture().
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Bald Eagle" <cre### [at] netscapenet> wrote:
> Very nice work - that looks like exactly the approach as Chris Colefax's "object
> bender".
Yep I remember Chris Colefax's object bender but I think that what he did was
quite a bit more sophisticated, judging by his walking pencil animation. Here's
another test image that shows the imperfections of my method on objects that
aren't really thin.
The coffee mug was just a fun way to test the macro that divides objects up into
segments.
Kind regards,
Dave Blandston
Post a reply to this message
Attachments:
Download 'curvedborderchars_.jpg' (98 KB)
Preview of image 'curvedborderchars_.jpg'
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Il 30/06/2022 00:48, Dave Blandston ha scritto:
> "Bald Eagle" <cre### [at] netscapenet> wrote:
>> Very nice work - that looks like exactly the approach as Chris
Colefax's "object
>> bender".
>
>
> Yep I remember Chris Colefax's object bender but I think that what he
did was
> quite a bit more sophisticated, judging by his walking pencil
animation. Here's
> another test image that shows the imperfections of my method on
objects that
> aren't really thin.
>
> The coffee mug was just a fun way to test the macro that divides
objects up into
> segments.
>
> Kind regards,
> Dave Blandston
This image looks also promising, Dave!
The segmentation will leave these "imperfections", but perhaps you can
use a thin box for the surface, and model a separate object for the depth.
Paolo
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Paolo Gibellini <p.g### [at] gmailcom> wrote:
> This image looks also promising, Dave!
> The segmentation will leave these "imperfections", but perhaps you can
> use a thin box for the surface, and model a separate object for the depth.
Yes that's possible and that's how the coffee cup image was made but my original
goal was to be able to wrap (almost) any object so I was disappointed when it
didn't work out quite the way I wanted. If it had worked out as hoped then my
plan was to allow other types of curves as well - sine waves for example, which
I love. I think this could have produced some interesting animations too! But as
Bald Eagle pointed out, there is a much better utility that can do that already.
I just wanted to learn by doing.
Thanks for the kind words and have a wonderful day!
Warmest regards,
Dave Blandston
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Dave Blandston" <IsN### [at] protonmailch> wrote:
> Bald Eagle pointed out, there is a much better utility that can do that already.
> I just wanted to learn by doing.
Having never actually used it, I couldn't honestly say it was "better" for any
particular purpose - and I vaguely recall someone posting images showing similar
limitations - or purposefully enhanced flaws to illustrate the mechanism of
bending.
You already have the coordinates for your text, so what if you "skinned" the
glyphs with a ribbon made of smooth triangles. Then you could just transform
the vertices as the glyph was bent, and it would smoothly follow the outside
edges?
IIRC, you've already used trace () for some of your lettering work, so maybe
that's an option for other objects as well?
Just thinking aloud.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |