|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Am 03.05.2016 um 15:41 schrieb Stephen:
> I would use CSG. The way I would try it is to use heightfields.
Height fields are pretty lame for this purpose, as they would create
very jagged sides.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
>
> Like I said, this example PNG is very simple, 2 colors indeed.
> But I have others with many colors, more complicated shapes, not so easy to
> separate colors/shapes.
> Also, heightfield does not produce the quality I need, I used them a long time
> ago and they are not very smooth and sharp.
>
>
You can increase the resolution of the image used in the height_field to
get smoother edges. Also, slightly bluring the inage used can help in
this case.
To have sharper results, scale the hight_field verticaly by something
like 100 (scale<1,100,1>), and clip it using a box of the desired height
in an intersection.
Alain
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
clipka <ano### [at] anonymousorg> wrote:
> Am 03.05.2016 um 15:41 schrieb Stephen:
>
> > I would use CSG. The way I would try it is to use heightfields.
>
> Height fields are pretty lame for this purpose, as they would create
> very jagged sides.
That's generally true; but if your artwork is very 'clean' with sharp edges, a
height_field might work, as the HF's sides would be completely vertical. Not
perfect though, I admit, as the triangles on the sides can still be somewhat
visible, and not perfectly smooth.
Some years ago, I used *media* to try to get this effect (a method that Clipka
already mentioned.) The results were reasonably good (depending on how DENSE I
could make the scattering media.) But the code for doing it was quite complex--
involving the image's three RBG colors first being converted into three separate
functions...
If I can find my old POV-Ray file and/or image, I'll post it, to give you an
idea of what it looks like.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Kenneth" <kdw### [at] gmailcom> wrote:
>
> If I can find my old POV-Ray file and/or image, I'll post it, to give you an
> idea of what it looks like.
I found my original newsgroup post about this, which has some detail as to the
various tricks I used...
http://news.povray.org/povray.binaries.images/message/%3Cweb.4436e54a72fe66658ad7a9060%40news.povray.org%3E/#%3Cweb.443
6e54a72fe66658ad7a9060%40news.povray.org%3E
I think *your* artwork would probably look better than the 'dinosaur skeleton'
image I used there.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Kenneth" <kdw### [at] gmailcom> wrote:
>
> I found my original newsgroup post about this, which has some detail as to the
> various tricks I used...
>
Oops, sorry, that was just my initial post there. Here's the full discussion...
http://news.povray.org/povray.binaries.images/thread/%3Cweb.4436e54a72fe66658ad7a9060%40news.povray.org%3E/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Le 03/05/2016 16:25, Paul a écrit :
> "Bill Pragnell" <bil### [at] hotmailcom> wrote:
>> "Paul" <nomail@nomail> wrote:
>>> I need a solid object, the 2 surfaces joined - the transparent yellow things > on
the right side.
>>
>> Where do your images come from? If they were generated by a vector drawing
>> program you may be able to do it another way. Inkscape (https://inkscape.org/)
>> can export paths as POV-Ray prism objects, which would do exactly what you want.
>>
>> If you only have the images, it may still be possible to use Inkscape to trace
>> over the images, creating equivalent paths that could then be exported.
>>
>> Bill
>
> Images are coming from clients.
> No other formats are available, only PNG (if I'm lucky) or JPG.
> I don't think tracing will work, probably not that good definition of resulting
> objects.
> Well, looks like this is one tricky operation, thank you for all your help.
>
>
What you are trying to do is called "extrusion".
One additional solution to the ones already provided could be to convert
the picture into a ttf font, one glyph per colour and then use povray
text objects. (one text per colour).
There is a bit of utilities which can be useful in font-generation from
pictures, and search engines are more verbose on that subject ("create
font from picture")
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |