For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > December 2004 > image on a cylinder using php









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author image on a cylinder using php
Edwin

2004-12-28, 8:59 am

Hi,

I am triing to found out how to change an image so that it looks like it's
on a cylinder. Does anybody has an idea to get me started on the right track
as I am looking at gd but can't find it how to do it.

Best regards,
Edwin


Colin McKinnon

2004-12-28, 3:56 pm

Edwin spilled the following:

> Hi,
>
> I am triing to found out how to change an image so that it looks like it's
> on a cylinder. Does anybody has an idea to get me started on the right
> track as I am looking at gd but can't find it how to do it.
>
> Best regards,
> Edwin


Wrapping an image as a texture round a 3d object and generating a raytracing
is possible using PHP and GD, but it would be about as easy as writing a
flight simulator using the same tools (i.e. NOT).

If you want to do it with PHP, you could write a front end to POV

HTH

C.
Edwin

2004-12-28, 3:56 pm


"Colin McKinnon"
<colin.thisisnotmysurname@ntlworld.deletemeunlessURaBot.com> schreef in
bericht news:GleAd.63$uY6.6@newsfe3-win.ntli.net...
> Edwin spilled the following:
>
it's[color=darkred]
>
> Wrapping an image as a texture round a 3d object and generating a

raytracing
> is possible using PHP and GD, but it would be about as easy as writing a
> flight simulator using the same tools (i.e. NOT).
>
> If you want to do it with PHP, you could write a front end to POV
>
> HTH
>
> C.

If not with php and GD what way would you take if you wanted to do something
like this?


coolsti

2004-12-29, 8:55 am

On Tue, 28 Dec 2004 14:47:02 +0000, Colin McKinnon wrote:

[color=darkred]

I think basically what you want to do is to solve the basic problem (here,
altering an image so that it wraps around a cylinder) in whatever tool you
have available which can be called from the command line with appropriate
parameters. Once this is working, you then write a PHP script that calls
that image-manipulaton program.

So the PHP part in this case would be very trivial.

//
Warren Oates

2004-12-29, 3:56 pm

On Tue, 28 Dec 2004 20:32:32 +0100
"Edwin" <new@print_coach.nl> wrote:

:If not with php and GD what way would you take if you wanted to do something
:like this?
:

Adobe Illustrator. But it's expensive. I forget what they call it,
"image paths" or something ('twere a long time ago). I don't know if
the Gimp has this feature or not. The point: create the image and
upload it.

You also might be able to do something with Flash.

--
Looks like more of Texas to Me
Warren Oates

2004-12-31, 3:55 pm

On Tue, 28 Dec 2004 20:32:32 +0100
"Edwin" <new@print_coach.nl> wrote:

:If not with php and GD what way would you take if you wanted to do something
:like this?
:

Adobe Illustrator. But it's expensive. I forget what they call it,
"image paths" or something ('twere a long time ago). I don't know if
the Gimp has this feature or not. The point: create the image and
upload it.

You also might be able to do something with Flash.

--
Looks like more of Texas to Me
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com