This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > VRML > November 2006 > Converting VRML to JPEG





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 Converting VRML to JPEG
osiates

2006-11-19, 7:36 pm

Hi,
I am new to VRML. Is it possible to convert VRML files to JPEG files on
the server. Let's say I have a 3d model of a table(a VRML file) on the
server and I want people to apply textures and color to the different
parts of this table on the fly and have server create jpeg file from
this VRML file and return it. Does anyone know any application or
script that will run on web server that will to this?

Thanks,
Osi.

Josip Almasi

2006-11-19, 7:36 pm

osiates wrote:
> Hi,
> I am new to VRML. Is it possible to convert VRML files to JPEG files on
> the server. Let's say I have a 3d model of a table(a VRML file) on the
> server and I want people to apply textures and color to the different
> parts of this table on the fly and have server create jpeg file from
> this VRML file and return it. Does anyone know any application or
> script that will run on web server that will to this?


Sure, it's called OpenGL:)

--------------------------
24.050 How can I save my OpenGL rendering as an image file, such as GIF,
TIF, JPG, BMP, etc.? How can I read these image files and use them as
texture maps?

To save a rendering, the easiest method is to use any of a number
of image utilities that let you capture the screen or window, and save
it is a file.

To accomplish this programmatically, you read your image with
glReadPixels(), and use the image data as input to a routine that
creates image files.

Similarly, to read an image file and use it as a texture map, you
need a routine that will read the image file. Then send the texture data
to OpenGL with glTexImage2D().

OpenGL will not read or write image files for you. To read or write
image files, you can either write your own code, include code that
someone else has written, or call into an image file library. The
following links contain information on all three strategies.
....
http://www.opengl.org/resources/faq...scellaneous.htm
--------------------------

Regards...
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews