Using TG2 in Carrara

Started by Roygee, March 19, 2010, 03:44:13 PM

Previous topic - Next topic

Roygee

Hi everyone  :)

I am a very new user - stared only yesterday trying out the free version before deciding to buy.

I am very impressed with the capabilities - after only a few hours was able to produce a pretty acceptable still.  I can definitely see using TG2 for stills and backdrops.  However, my main interest is in animation  animation.

I have seen some discussion around exporting heightfields and/or heightmaps and would dearly love to be able to use either of these in Carrara - the atmospheres would be a huge bonus.

I don't see anything in the documentation or anywhere in the UI where I can export anything - only save as  .tgd.  Is this a limitation in the free version?  If so, does the pay version allow any way for me to be able to export either the terrain, or the atmosphere, or even a heightmap?

Carrara can import .lwo, .obj, .dxf, .3dm and .3ds, as well as the whole range of images.

Holding thumbs for a positive response - this is really a great app :)


FrankB

Hi Roygee,

welcome to the club, and good to hear you're enjoying TG2 already.
I have never done what you are describing myself, but there's a "lwo micro exporter" node that should be able to export your terrain. To be precise, read this node reference for more information:

http://www.planetside.co.uk/docs/tg2/noderef/window_5_6.html?MenuState=HAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAABEAAAXRFAAAAEAAAAAAAAAAAAAA

(quite funny URL, actually...)

However, given TG2's unparalleled capabilties in rendering procedural, super detailed geometry and displacements, you might want to consider to actually make use of these strengths, and render camera animation of the terrain and sky in Terragen 2 itself, and export camera paths into Carrara (somehow) and composite both animations together later on.

At least, that's what I understand other people do. Can Carrara read .chan files? Then there might be an agreeable way to share camera information across these apps.

I guess other who have real experience in what I just desrcibed may chime in here as well.

Regards,
Frank

Oshyan

You can export terrain data in LWO format using 2 methods, each of which is more appropriate for particular needs. The one Frank mentions is best for strict perspective matched rendering, where you mainly want to use TG2 for rendering terrain and then render objects in another application, using the exported terrain for matching and shadows, for example. The main advantages of this approach are that geometry detail is relative to distance from camera, meaning there is less geometry relative to area further away from the view and you save geometry complexity this way; the geometry exported can also account for overhangs and other non-planar features. The other type of export is heightfield-based, so overhangs don't get exported properly, instead they are cut off as a sheer surface.

Note that in either case, texture maps are not exported. That functionality is not currently available.

In any case Frank is correct that TG2's main strength is in procedural detail and rendering of terrain. While export of terrain for use in other application is a common need for various workflows, it's generally a good idea to try to do the majority of terrain-specific rendering in TG2 itself, where possible. Combining this with objects rendered in other applications for e.g. complex animations is one possible approach. This would require the aforementioned camera data exchange. TG2 reads Nuke .CHAN format currently, so you'd animate the camera in Carrara and then you'd need to find an exporter to that format for the camera motion data.

I hope that gives you a general idea of workflow to start with.

- Oshyan

Roygee

Thank you so much for your replies :)

I've done the height-field based export and it work very well.  It generates 16 files, which have to be imported to Carrara separately.  They come in as 16 tiles, occupying the same space and have to be peiced together like a jigsaw puzzle, but that's a small price to pay for the great quality :)

Now that I know where to find them, I'll explore different methods.

Carrara doesn't import camera tracking data natively, but there is a plugin which can do that - not too sure whether this has to be done in other software - I'll have to explore those options.

You are right - using TG2 for the render would be first prize - the quality is just great :)

Roygee

Hullo again :)

OK, I'm stumped.  Firstly, I'd like to get my nomenclature correct - heightfield versus heightmap.  As I understand it, the heightfield is the 3d generation of the procedural terrain - what is exported as an .lwo mesh.  A heightmap is a 2d greyscale image - which can be converted to a 3d image/mesh?  Is this correct?

OK - now I have managed to export very good .lwo meshes, which come into Carrara at 125K polys per tile. Even after decimating to 23K, the level of detail is good enough to accept Carrara terrain shaders and make a very good render.  However, that is still way too much for practical 3d animation.

What I would like to try is to export a 2d greyscale image to use as a heightmap.  Carrara can generate a procedural terrain from that at it's own usable level of detail.

For the life of me I just can't find a way to do that and will be most grateful for some guidance on this aspect. :)


airflamesred

How timely is that
I would also like to export a terrain or greyscale (this is for alignment then to be re-imported)
I'm not getting the lwo exporter thing. Does the node need to be connectrd to something?
or
How does the heightfield export work?

thanks

Oshyan

To export a heightmap (grayscale image) just right-click the Heightfield Generate node and choose Save As, then either save as TER and use TerraConv to convert to TIFF, or save as OpenEXR if your app can use that (or if it's easier for you to convert).

- Oshyan

Roygee

To add to that - there's a nice free app called Wilbur http://www.ridgenet.net/~jslayton/wilbur.htm -
just started using it, so can't say much about it, but it brings in the .ter file in color and exports in various 2d image formats.  It works just great with Carrara.

Also lots of editing tools which I've not tried yet. :)

airflamesred

Thanks folks that is useful

Roygee - I'm getting a 404 on your link


latego

Quote from: Oshyan on March 23, 2010, 01:08:36 AM
To export a heightmap (grayscale image) just right-click the Heightfield Generate node and choose Save As, then either save as TER and use TerraConv to convert to TIFF, or save as OpenEXR if your app can use that (or if it's easier for you to convert).

- Oshyan

Dear Oshyan, the preferred mode of interation with Carrara is to use the R32 file format (brutal, headerless, dump of altitude values, described as C floats, Intel byte order, normalized in the [0, 1] interval, performed row-wise, bottom to top).

It's a thing that can be coded in 5 minutes + plus half an hour of UI update and you can test it using the free edition of World Machine. Both World Machine and GeoControl use it as the highest precision terrain description format.

I think it could be a good addition to TG2, enabling a seemless interaction with Carrara.

Bye!!!