POV-Ray : Newsgroups : povray.newusers : POV-ray with Adobe After Effects Server Time
23 Nov 2024 10:26:39 EST (-0500)
  POV-ray with Adobe After Effects (Message 1 to 8 of 8)  
From: Tony Stecca
Subject: POV-ray with Adobe After Effects
Date: 29 May 2015 22:30:00
Message: <web.556920739fbf4fba62e642c0@news.povray.org>
Hello,

my name is Tony Stecca.  I work for an online private school in Ontario, Canada.
 We create 3D molecular models using software called Avogadro.  It exports 3D
models as POV-ray files.  I've had good success animating the models in the
POV-ray editor and exporting pngs to make a video.  However, our video producer
would like to import these models into Adobe AfterEffects, likely via Cinema4D,
as .obj files.

We've been able to do test imports of POV-ray's that are based on mesh objects.
That works.  However, the models from Avogadro aren't mesh(?).  The are
mathematical objects like cylinders and spheres.  Can I convert my models to
mesh objects?

How should can we use POV-rays in After Effects? Thanks.

If this isn't the right forum for this, please direct me to the right one.

TS


Post a reply to this message

From: Le Forgeron
Subject: Re: POV-ray with Adobe After Effects
Date: 30 May 2015 11:57:37
Message: <5569ddf1$1@news.povray.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Le 30/05/2015 04:29, Tony Stecca a écrit :
> Hello,
> 

Hello,

> my name is Tony Stecca.  I work for an online private school in
> Ontario, Canada. We create 3D molecular models using software
> called Avogadro.  It exports 3D models as POV-ray files.  I've had
> good success animating the models in the POV-ray editor and
> exporting pngs to make a video.  However, our video producer would
> like to import these models into Adobe AfterEffects, likely via
> Cinema4D, as .obj files.
> 
> We've been able to do test imports of POV-ray's that are based on
> mesh objects. That works.  However, the models from Avogadro aren't
> mesh(?).  The are mathematical objects like cylinders and spheres.
> Can I convert my models to mesh objects?

I guess you mean "automatically", right ?

you can try to have a look at the capability of crossroads (Windows 95
to Windows 2000)

http://animatricity.com/pages/downloads/3d_apps/crossroads.htm

The homepage for the developper is lost in limbo, but the provided url
provide a downloadable zip. Assumes your own risk about it (I do not
have windows)

The syntax of povray for sphere and cylinder is stable enough that it
might be supported, even on current output of avogadro.

Short of that, and unless someone provide a different answer, I would
refer you to the knowledge base

http://wiki.povray.org/content/Knowledgebase:Files_and_formats#Topic_2

There is echo of 3D23D program, but I have no link for it (seems lost
too).

A request on Avogradro (#248) is opened since 2012 for export in
obj/mtl, maybe you can contribute to it.

> 
> How should can we use POV-rays in After Effects? Thanks.

The irony of it: After Effects is a "software as a service" license, I
could suggest to ask an evolution to Adobe (might not be free).

On the other side, there is derivative of povray which might export as
gts (Gnu Triangulated Surface library) or STL (STereoLithography)
format, from imperfectly meshified finite 3D objects.
Then it would be another story to find a converter to obj for one of the
m.



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iJwEAQEIAAYFAlVp3fQACgkQhKAm8mTpkW3l/QP/f+oYS3exCCADPzkpVySrzPZj
AaHDN0k5LIG/AvMPA91C+Rrja5rcXWUysmDQnJga+4/0tNtVuo4d9Ik8fBLKgmSf
ltHfQMDuyzYKe0Y8vXAdgRsKuKZPJ+R7ctgQbiHvuhjyrhKCD+IOCadUfBErxbjE
r/dPoM1SmFoLruIYWVs=
=XWql
-----END PGP SIGNATURE-----


Post a reply to this message

From: Tony Stecca
Subject: Re: POV-ray with Adobe After Effects
Date: 30 May 2015 23:30:00
Message: <web.556a7f5643073dcb62e642c0@news.povray.org>
Le_Forgeron <jgr### [at] freefr> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Le 30/05/2015 04:29, Tony Stecca a écrit :
> > Hello,
> >
>
> Hello,
>
> > my name is Tony Stecca.  I work for an online private school in
> > Ontario, Canada. We create 3D molecular models using software
> > called Avogadro.  It exports 3D models as POV-ray files.  I've had
> > good success animating the models in the POV-ray editor and
> > exporting pngs to make a video.  However, our video producer would
> > like to import these models into Adobe AfterEffects, likely via
> > Cinema4D, as .obj files.
> >
> > We've been able to do test imports of POV-ray's that are based on
> > mesh objects. That works.  However, the models from Avogadro aren't
> > mesh(?).  The are mathematical objects like cylinders and spheres.
> > Can I convert my models to mesh objects?
>
> I guess you mean "automatically", right ?
>
> you can try to have a look at the capability of crossroads (Windows 95
> to Windows 2000)
>
> http://animatricity.com/pages/downloads/3d_apps/crossroads.htm
>
> The homepage for the developper is lost in limbo, but the provided url
> provide a downloadable zip. Assumes your own risk about it (I do not
> have windows)
>
> The syntax of povray for sphere and cylinder is stable enough that it
> might be supported, even on current output of avogadro.
>
> Short of that, and unless someone provide a different answer, I would
> refer you to the knowledge base
>
> http://wiki.povray.org/content/Knowledgebase:Files_and_formats#Topic_2
>
> There is echo of 3D23D program, but I have no link for it (seems lost
> too).
>
> A request on Avogradro (#248) is opened since 2012 for export in
> obj/mtl, maybe you can contribute to it.
>
> >
> > How should can we use POV-rays in After Effects? Thanks.
>
> The irony of it: After Effects is a "software as a service" license, I
> could suggest to ask an evolution to Adobe (might not be free).
>
> On the other side, there is derivative of povray which might export as
> gts (Gnu Triangulated Surface library) or STL (STereoLithography)
> format, from imperfectly meshified finite 3D objects.
> Then it would be another story to find a converter to obj for one of the
> m.
>
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2
>
> iJwEAQEIAAYFAlVp3fQACgkQhKAm8mTpkW3l/QP/f+oYS3exCCADPzkpVySrzPZj
> AaHDN0k5LIG/AvMPA91C+Rrja5rcXWUysmDQnJga+4/0tNtVuo4d9Ik8fBLKgmSf
> ltHfQMDuyzYKe0Y8vXAdgRsKuKZPJ+R7ctgQbiHvuhjyrhKCD+IOCadUfBErxbjE
> r/dPoM1SmFoLruIYWVs=
> =XWql
> -----END PGP SIGNATURE-----

Le_Forgeron,

thanks for the detailed reply.  My solution doesn't have to be automatic.  After
a few days of research on this topic there doesn't seem to be an automatic
approach.

The solutions I'm pursuing is this: use a macro to convert the spheres and
cylinders in my scenes to meshes.  Then, there's a program called Poseray with
will read my .pov files and convert them to objs.  But the .pov scenes have to
be built from mesh objects.

Where I'm stuck now is converting my scenes to meshes.  Could you recommend a
macro to convert spheres and cylinders to meshes?

I've reached out to the Avogadro community, but no luck there yet?  Is there a
mesh forum or a macro forum on this board?

Thanks again!

TS


Post a reply to this message

From: Le Forgeron
Subject: Re: POV-ray with Adobe After Effects
Date: 31 May 2015 02:47:09
Message: <556aae6d$1@news.povray.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Le 31/05/2015 05:26, Tony Stecca a écrit :

> The solutions I'm pursuing is this: use a macro to convert the 
> spheres and cylinders in my scenes to meshes.  Then, there's a 
> program called Poseray with will read my .pov files and convert 
> them to objs.  But the .pov scenes have to be built from mesh 
> objects.
> 
> Where I'm stuck now is converting my scenes to meshes.  Could you 
> recommend a macro to convert spheres and cylinders to meshes?
> 

You need to make a mesh for a sphere at origin (<0,0,0>) of radius 1.
With whatever precision you want.
Then add a scale using the actual radius of the sphere you want to
replace.
And finally use the center of the sphere for an additional translate.

> I've reached out to the Avogadro community, but no luck there yet? 
> Is there a mesh forum or a macro forum on this board?

Not specialized, but you might try povray.general where there is more
people.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iJwEAQEIAAYFAlVqrnAACgkQhKAm8mTpkW2stgP6ArfstarmKwJcC+mkcSnJgdr6
C0stif4XFUVBLExTCISFR0rsm1MGtao+Eu8DTeC14cCMNsuSizdfqa/3EF0Fx01F
UIy6bnS+7+fz+evwLQbLFZy5ymdVVdhIFTooKBdpRAzHCz0Egj+9VgUfLQ8YJ0CY
EeYJiad+Hal7SrnXdFE=
=6Lv7
-----END PGP SIGNATURE-----


Post a reply to this message

From: Thomas de Groot
Subject: Re: POV-ray with Adobe After Effects
Date: 31 May 2015 03:25:24
Message: <556ab764@news.povray.org>
On 31-5-2015 5:26, Tony Stecca wrote:
> Le_Forgeron <jgr### [at] freefr> wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA256
>>
>> Le 30/05/2015 04:29, Tony Stecca a écrit :
>>> Hello,
>>>
>>
>> Hello,
>>
>>> my name is Tony Stecca.  I work for an online private school in
>>> Ontario, Canada. We create 3D molecular models using software
>>> called Avogadro.  It exports 3D models as POV-ray files.  I've had
>>> good success animating the models in the POV-ray editor and
>>> exporting pngs to make a video.  However, our video producer would
>>> like to import these models into Adobe AfterEffects, likely via
>>> Cinema4D, as .obj files.
>>>
>>> We've been able to do test imports of POV-ray's that are based on
>>> mesh objects. That works.  However, the models from Avogadro aren't
>>> mesh(?).  The are mathematical objects like cylinders and spheres.
>>> Can I convert my models to mesh objects?
>>
>> I guess you mean "automatically", right ?
>>
>> you can try to have a look at the capability of crossroads (Windows 95
>> to Windows 2000)
>>
>> http://animatricity.com/pages/downloads/3d_apps/crossroads.htm
>>
>> The homepage for the developper is lost in limbo, but the provided url
>> provide a downloadable zip. Assumes your own risk about it (I do not
>> have windows)
>>
>> The syntax of povray for sphere and cylinder is stable enough that it
>> might be supported, even on current output of avogadro.
>>
>> Short of that, and unless someone provide a different answer, I would
>> refer you to the knowledge base
>>
>> http://wiki.povray.org/content/Knowledgebase:Files_and_formats#Topic_2
>>
>> There is echo of 3D23D program, but I have no link for it (seems lost
>> too).
>>
>> A request on Avogradro (#248) is opened since 2012 for export in
>> obj/mtl, maybe you can contribute to it.
>>
>>>
>>> How should can we use POV-rays in After Effects? Thanks.
>>
>> The irony of it: After Effects is a "software as a service" license, I
>> could suggest to ask an evolution to Adobe (might not be free).
>>
>> On the other side, there is derivative of povray which might export as
>> gts (Gnu Triangulated Surface library) or STL (STereoLithography)
>> format, from imperfectly meshified finite 3D objects.
>> Then it would be another story to find a converter to obj for one of the
>> m.
>>
>>
>>
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v2
>>
>> iJwEAQEIAAYFAlVp3fQACgkQhKAm8mTpkW3l/QP/f+oYS3exCCADPzkpVySrzPZj
>> AaHDN0k5LIG/AvMPA91C+Rrja5rcXWUysmDQnJga+4/0tNtVuo4d9Ik8fBLKgmSf
>> ltHfQMDuyzYKe0Y8vXAdgRsKuKZPJ+R7ctgQbiHvuhjyrhKCD+IOCadUfBErxbjE
>> r/dPoM1SmFoLruIYWVs=
>> =XWql
>> -----END PGP SIGNATURE-----
>
> Le_Forgeron,
>
> thanks for the detailed reply.  My solution doesn't have to be automatic.  After
> a few days of research on this topic there doesn't seem to be an automatic
> approach.
>
> The solutions I'm pursuing is this: use a macro to convert the spheres and
> cylinders in my scenes to meshes.  Then, there's a program called Poseray with
> will read my .pov files and convert them to objs.  But the .pov scenes have to
> be built from mesh objects.
>
> Where I'm stuck now is converting my scenes to meshes.  Could you recommend a
> macro to convert spheres and cylinders to meshes?
>

There are a couple of macros you could try.

- Charles Fusner's triscan macro: 
http://203.29.75.35/povray.binaries.scene-files/thread/%3C38CB12D0.732F7F15@enter.net%3E/?ttop=321382&toff=950

I was designed originally for Megapov (trace function) but with some 
adaptations it should work for version 3.7. I never used it thoroughly 
myself. Possible somebody else knows more.

- More promising maybe is Stephen Shonfield/Ingo Janssen's makemesh 
macro. As this is difficult now to find on the web, I attach a zip file 
with Ingo's stuff.


-- 
Thomas


Post a reply to this message


Attachments:
Download 'mmgm.zip' (110 KB)

From: William F Pokorny
Subject: Re: POV-ray with Adobe After Effects
Date: 31 May 2015 08:05:16
Message: <556af8fc$1@news.povray.org>
On 05/30/2015 11:26 PM, Tony Stecca wrote:
> Le_Forgeron <jgr### [at] freefr> wrote:
> Le_Forgeron,
>
> thanks for the detailed reply.  My solution doesn't have to be automatic.  After
> a few days of research on this topic there doesn't seem to be an automatic
> approach.
>
> The solutions I'm pursuing is this: use a macro to convert the spheres and
> cylinders in my scenes to meshes.  Then, there's a program called Poseray with
> will read my .pov files and convert them to objs.  But the .pov scenes have to
> be built from mesh objects.
>
> Where I'm stuck now is converting my scenes to meshes.  Could you recommend a
> macro to convert spheres and cylinders to meshes?
>
> I've reached out to the Avogadro community, but no luck there yet?  Is there a
> mesh forum or a macro forum on this board?
>
> Thanks again!
>
> TS
>

Tony,

If simple shapes like spheres and cones, with a little work you might be 
able to use POV-Ray's built in HF_<shape> macros.  These macros take a 
function as input because they were originally intended to create meshes 
after some displacement was applied, but you can fool them into doing no 
displacement by setting up a function that does none as follows:

//----------------- example.pov ---  Run with : povray example.pov -D -P
#include "shapes.inc"
#declare MyFunction = function(x,y,z){0}

HF_Sphere(MyFunction,off,off,<30,30>,on,"ThisSphere.inc",<0.0,0.6,0.0>,0.3,0.3)
HF_Cylinder(MyFunction,off,off,<30,30>,on,"ThisCylinder.inc",<0.5,0.0,0.5>,<0.5,1.0,0.5>,0.4,0.3)
//-----------------

These commands create include files for each sphere or cylinder so you'd 
need to call the appropriate one for each shape with unique file names 
for each. Once created, to pull all these back into povray you'd need 
set up includes for each shape with something like:

#declare Sphere00 = object { #include "Sphere00.inc" texture {...} }
#declare Sphere01 = object { #include "Sphere01.inc" texture {...} }
...
#declare Cylinder00 = object { #include "Cylinder00.inc" texture {...} }
#declare Cylinder01 = object { #include "Cylinder01.inc" texture {...} }

There are too options I've not used in the HF_* macros to set up UV 
texture mapping. If large sets of spheres or cylinders the same texture 
creating unions once textured cleaner.

Bill P.


Post a reply to this message

From: scott
Subject: Re: POV-ray with Adobe After Effects
Date: 1 Jun 2015 04:06:25
Message: <556c1281$1@news.povray.org>
> The solutions I'm pursuing is this: use a macro to convert the spheres and
> cylinders in my scenes to meshes.  Then, there's a program called Poseray with
> will read my .pov files and convert them to objs.  But the .pov scenes have to
> be built from mesh objects.

The obj file format is very simple, if your spheres are cylinders are 
simple (ie there is no complex POV code/macro to generate the alignment) 
then it would almost be better to just write the obj file directly 
rather than creating the mesh in POV and the using Poseray.

> Where I'm stuck now is converting my scenes to meshes.  Could you recommend a
> macro to convert spheres and cylinders to meshes?

Others can help here, I usually "roll my own" for these type of things. 
It depends how much experience you have of 3D graphics, coding, etc, but 
it's not a huge task.

Another angle to attack from might be to use something like OpenSCAD. 
You can create spheres and cylinders with a similar syntax to POV, but 
in the end it will let you export the scene as a mesh (STL file in this 
case). Depending on how complex your POV scene is, it might just be an 
exerice with find/replace in notepad to get the scene to work in 
OpenSCAD and export a mesh.

Or does After Effects have an in-built scripting language you could use 
to generate the spheres and cylinders? Ditto above, you might be able to 
just use notepad to get the syntax correct for After Effects to use.

Do you also want different materials (colours) to be applied to each object?


Post a reply to this message

From: StephenS
Subject: Re: POV-ray with Adobe After Effects
Date: 12 Jun 2015 20:10:02
Message: <web.557b74b043073dcb5079dd3a0@news.povray.org>
....
>
> - More promising maybe is Stephen Shonfield/Ingo Janssen's makemesh
> macro. As this is difficult now to find on the web, I attach a zip file
> with Ingo's stuff.
>
>
> --
> Thomas

I only tried to add Moray UDO format to the output. I can no longer remember if
it's complete.

Stephen S


Post a reply to this message

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