POV-Ray : Newsgroups : povray.newusers : image_map > solid object Server Time
15 Jul 2024 07:29:28 EDT (-0400)
  image_map > solid object (Message 11 to 16 of 16)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: clipka
Subject: Re: image_map > solid object
Date: 3 May 2016 10:31:18
Message: <5728b636@news.povray.org>
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

From: Alain
Subject: Re: image_map > solid object
Date: 3 May 2016 10:33:38
Message: <5728b6c2$1@news.povray.org>


>
> 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

From: Kenneth
Subject: Re: image_map > solid object
Date: 3 May 2016 22:35:01
Message: <web.57295e912da27c2333c457550@news.povray.org>
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

From: Kenneth
Subject: Re: image_map > solid object
Date: 3 May 2016 22:55:01
Message: <web.572963922da27c2333c457550@news.povray.org>
"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

From: Kenneth
Subject: Re: image_map > solid object
Date: 3 May 2016 23:15:00
Message: <web.572968232da27c2333c457550@news.povray.org>
"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

From: Le Forgeron
Subject: Re: image_map > solid object
Date: 4 May 2016 01:54:25
Message: <57298e91$1@news.povray.org>
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

<<< Previous 10 Messages Goto Initial 10 Messages

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.