POV-Ray : Newsgroups : povray.newusers : 2D to 3D Server Time
24 Dec 2024 13:47:02 EST (-0500)
  2D to 3D (Message 1 to 2 of 2)  
From: Matthew Thompson
Subject: 2D to 3D
Date: 12 Oct 1998 14:22:59
Message: <36223af3.0@news.povray.org>
I have a one color logo that I would love to generate a 3D image of.  It is
a circular logo.  Is there any way to take this image and convert it to a 3D
image with out to much of a struggle


Post a reply to this message

From: Ken
Subject: Re: 2D to 3D
Date: 12 Oct 1998 15:06:35
Message: <36224510.6A65F072@pacbell.net>
Matthew Thompson wrote:

> I have a one color logo that I would love to generate a 3D image of.  It is
> a circular logo.  Is there any way to take this image and convert it to a 3D
> image with out to much of a struggle

There are a couple of methods that come to mind. Probably
the fastest way would be to create a height field out of it.
Take your logo image in to a paint program and produce a two
color black and white image. Make the logo part white and the
background black. Then use the water_level modifier to chop off
any remnants of the back ground. You could also have the logo
black and the background white which would carved out your logo
shape from the height field object.


The code would look something like this:

height_field {
gif "logo.gif"  // your blk/wht image
smooth          // helps smooth the edges
water_level .05 // to clear up the back ground
translate -0.5  // center the image to the height field object
scale<1,.25,1>  // define the demensions
rotate 90*-x    // add this if your camera is at -z
texture{your pigment finish whatever}
}

Ken Tyler


Post a reply to this message

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