POV-Ray : Newsgroups : povray.programming : html-image-map info generation Server Time
22 Dec 2024 21:10:51 EST (-0500)
  html-image-map info generation (Message 1 to 3 of 3)  
From: Lukibus
Subject: html-image-map info generation
Date: 2 Dec 2003 08:25:01
Message: <web.3fcc923181a08993db5754350@news.povray.org>
Hi,

Would like to be able to use povray to generate a scene and extra
information
that identifies the pixel position information of selected objects. This
extra
info would be used by an external utility to generate clickable image map
type
info.

The ideal solution would be to be able to tag objects in a scene with a name
and povray could record the pixels (x,y though possibly x,y,z would be
needed)
related only to objects that are tagged with a name. Povray is not expected
to
generate image maps, just which pixels are related to which objects.

Before spending lots of time studying the source:

1) has anyone done this or something like it already ?

2) how easy is this likely to be ?

Am willing to put in the programming time/effort if it's not to mammoth a
task :)

Cheers,

Lukibus


Post a reply to this message

From: ABX
Subject: Re: html-image-map info generation
Date: 2 Dec 2003 08:38:17
Message: <l15psvgq4fqqavc4kti9ueoo23hhgpv6v3@4ax.com>
On Tue,  2 Dec 2003 08:23:50 EST, "Lukibus" <nomail@nomail> wrote:
> Am willing to put in the programming time/effort if it's not to mammoth a
> task :)

This was discussed a few times. You don't have to modify POV-Ray sources to do
such a thing. All you have to do is to render scene twice with some
modification of script. First you have to assign to 'clickable' objects
various quick_color values
(http://www.google.com/search?q=site:www.povray.org+quick_color) and render
scene with Quality parameter adjusted to get scene with solid quick_color
shapes of objects on image, and then render scene normal way.

ABX


Post a reply to this message

From: nonox
Subject: Re: html-image-map info generation
Date: 17 Mar 2004 02:20:55
Message: <4057fc57@news.povray.org>
hello there

i have wrote a program who do that few years ago
it parses the result of a second trace and manage information to create 
html image maps.

the second image is low quality, with only quick color.


programming language is C ansi and compiled for linux, but i plan to 
translate it in povray language. (current version allow only 256 object 
and need a tga image )

you can see an application at  :

http://sharleena.dyndns.org/xplore/
(not always online)


contact me for the source/binary


have a nice day


Lukibus wrote:
> Hi,
> 
> Would like to be able to use povray to generate a scene and extra
> information
> that identifies the pixel position information of selected objects. This
> extra
> info would be used by an external utility to generate clickable image map
> type
> info.
> 
> The ideal solution would be to be able to tag objects in a scene with a name
> and povray could record the pixels (x,y though possibly x,y,z would be
> needed)
> related only to objects that are tagged with a name. Povray is not expected
> to
> generate image maps, just which pixels are related to which objects.
> 
> Before spending lots of time studying the source:
> 
> 1) has anyone done this or something like it already ?
> 
> 2) how easy is this likely to be ?
> 
> Am willing to put in the programming time/effort if it's not to mammoth a
> task :)
> 
> Cheers,
> 
> Lukibus
> 
> 
> 
>


Post a reply to this message

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