POV-Ray : Newsgroups : povray.advanced-users : Generate HTML map areas for contours of objects : Re: Generate HTML map areas for contours of objects Server Time
6 Oct 2024 12:56:13 EDT (-0400)
  Re: Generate HTML map areas for contours of objects  
From: Le Forgeron
Date: 12 Sep 2006 02:43:12
Message: <45065700@news.povray.org>
Pander scripsit::
> 
> This is a feature request to have functionality in povray (or an external
> tool employing porvay) to generate a HTML map that contains areas that are
> masks for object contours. This would look like:
> 
> <map name=''>
>   <area href='' shape='rect' coords='10,20,30,40'/>
>   <area href='' shape='circle' coords='50,60,5'/>
>   <area href='' shape='poly' coords='80,90,100,110,120,130,140,150'/>
> </map>
> 
> This would need a very simple one bit countour trace per (specified or
> specified type of) object and approximate the resulting contour by a rect,
> circle or poly. Off course overlapping objects will each have thier own
> contour where hidden parts, because of overlapping, will not be included in
> the resulting map area.

Even if tracing pixel per pixel is the easiest way, the NP problem
is the aggregation of same object pixel into a shape.
So, apart from the huge list of individual pixel map, there might be
no easy solution. Notice that overlapping is not a problem, because
it would be a first-hit-first-reported strategy. You might even
considere using antialiasing buffer technique to have an unmapped
pixel between different URL...

I'm really against this kind of evolution for PovRay: it has nothing
to do with 3D nor rendering. You could very well use some 2D graphic
programs with some "magic selection tool" to create your map.

Moreover, if you really intend to have a dynamic 3D image with map,
then I would recommand using VRML.


> 
> Areas will not overlap and perhaps a configurable minimum distance between
> them in pixels should be possible. Furthermore these areas may be a bit
> crude and not pixel perfect.
> 

You could as well render your picture with a smaller resolution and
use the zoomed thumbnail for the map...

> Implementing this feature will result in easier use of clickable povray
> generated images in HTML. This is because, for this image, the map areas
> are already at hand and only have to be completed with href content.
> 

Well, if the href is not even present in the output, you're
doomed... better do it with a 2D photo-program... it's simpler, really!


-- 
Eifersucht ist die Leidenschaft, die mit Eifer sucht, was Leiden
schafft.

Eco: -8.75 Soc: -6.72
http://www.politicalcompass.org/


Post a reply to this message

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