Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Newcomer
Posted
3D Canvas is a great application for 3d modelling. Paired with a decent rendering tool, the results can be spectacular. But if - like me - you were dismayed by the demise of BMRT, fear not! Salvation is at hand in the form of 3Delight, another excellent Renderman-compliant engine which to my mind is even better.

But how to integrate it with 3D Canvas? Read the following guide to find out.

Quick & Dirty

If all you want to do is submit your exported rib file to 3Delight, load up the file in a text editor and do the following:

     Replace the string 'supertexmap' with 'paintedplastic'
     Replace 'Csmapname' with 'texturename'
     Change '[0.001]' to '0' on the Hider line.
     Remake all of your TIFF textures using the 3Delight tdlmake utility
     Rename the resulting tdl files with the extension ".tif"

These steps should now allow rendering of the rib file using 3Delight. If your textures appear black or corrupted, try using different command line options. This one worked for me:

tdlmake -mode periodic -filter sinc -quality high texture.tif texture.tdl

Note that you only need to make the textures once for a scene, unless you change them in some way. The string replacements in the rib file must however be done each time you change the scene.

The Best Solution

The quick and dirty method is fine, but if you're doing a lot of render jobs, somewhat tedious. A more complete solution is to make 3Delight the default rendering program within 3D Canvas. This can be done, only it's a bit more tricky:

Firstly, you need to locate the source file for 3Delight's default textured surface shader. Look for a file called "paintedplastic.slc" in the shaders folder. This has to be changed to match the properties of the supertexmap shader used by BMRT for the same purpose. To do this, edit the file and simply change 'paintedplastic' to 'supertexmap' on line 2, and all 'texturename' entries to 'Csmapname'. Now save the resulting file as "supertexmap.slc" and compile it using the slcdl utility. If all goes well, you should end up with a file called "supertexmap.sl" in your shaders folder.

Secondly, you must alter the registry key which tells 3D Canvas which render program to use. I found two keys I had to change, located at the strings below:

'HKEY_CURRENT_USER\Software\VB and VBA Program Settings\3D Canvas\Application\RenderManLocation'
'HKEY_CURRENT_USER\Software\VB and VBA Program Settings\3D Canvas\Settings\RenderManLocation'

Change both of these to the path which describes the 3Delight program, on my system it's:

'C:\Program Files\3Delight\bin\renderdl.exe'

Once you've done all this, you should be able to do a one click render from within 3D Canvas using the RenderMan/BMRT toolbar button, except now 3Delight is doing the job. Don't forget that to make this all work you'll still have to remake and rename the textures as described in the quick and dirty method.

There is also an issue with the rendered preview in 3D Canvas after this fix, which doesn't get the perspective quite right and doesn't resize. I'm assuming that this is because 3D Canvas still thinks it's talking to BMRT and so doesn't pass the parameters in quite the same way. Eeven with these issues, though, I think it's still worth doing. Final renders are best done outside of 3D Canvas, but it is handy to get an impression of the results while editing your model.

I hope this info is useful, I personally feel that 3Delight gives better results than BMRT, especially where textures are concerned. If anyone knows of a better way to do this, please let me know.

You can download 3Delight at http://www.3delight.com
 
Posts: 3 | Registered: Fri November 07 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of Les_Patterson
Posted Hide Post
Dug,
I've never had BMRT on my machine, so there wouldn't be any references to "Rendermanlocation" in my registry, correct?
I've downloaded and installed 3Dlight, but have no clue what to do next.........help please? I would like to see the effects of rendering with 3Dlight, especially the shader operation.

Any help would be greatly appreciated,

Les
 
Posts: 753 | Location: Navasota, Texas USA | Registered: Fri November 07 2003Reply With QuoteEdit or Delete MessageReport This Post
Newcomer
Posted Hide Post
Les

If the registry keys are not present, I assume they can be created manually. However, it sounds like you'd be better off using the 'Quick & Dirty' method which doesn't involve the registry.

Once you have used the 'Quick & Dirty' procedure, you should end up with a .rib file. This can be rendered by 3Delight on the command line, the most basic example being

renderdl

There are a lot of parameters you can add to this line, have a look at the 3Delight documentation to find out more about these.

Hope that helped.
 
Posts: 3 | Registered: Fri November 07 2003Reply With QuoteEdit or Delete MessageReport This Post
Newcomer
Posted Hide Post
As a follow-up to my original post about using the 3Delight renderer with 3D Canvas, here's an update for anyone who may want to use this high-quality, Renderman-compliant tool to render their 3d models.

First, the good news. 3Delight has been updated several times since my last post, and the current version (2.1) is much improved. Thus, all that guff in my previous post about editing the exported .rib file is no longer necessary - 3delight will accept a .rib file exported from 3D Canvas directly without any changes.

All you have to do (assuming that 3delight is installed on your system), is double-click on the .rib file. The render window will appear, and a default.tif file will be created in the same directory. Of course, if you want to make use of 3Delight's parameters you will have to create a batch file or modify the default settings to your taste.

However, you will still need to remake your .tif textures using the tdlmake command in order to make them compatible. Note that although this program's output is a .tdl file, you can rename these back to .tif (replacing the originals) and they should then work in both 3Delight and 3D Canvas. I did notice, however, that after doing this some of my textures looked odd in 3D Canvas, but they look great in the final render which IMHO is more important. The 3Delight command I use to remake a texture is as follows (substitute "texture" with the name of your texture file):

tdlmake -mode periodic -filter sinc -quality high texture.tif texture.tdl

Now the bad news - my hack to call 3Delight directly from 3D Canvas (using the Raytrace tool button) no longer works. I assume this is because only POVRay is now supported for this option (I'm using ver 6.6), and the program won't look for any other renderers. Still, this isn't really an issue now that the .rib files can be rendered so easily.

If you are interested in 3Delight, the free download can be obtained from:

3Delight

I can thoroughly recommend this renderer to all 3D Canvas users. Not only does it provide great quality rendered images, it's also free. What more could you ask?
 
Posts: 3 | Registered: Fri November 07 2003Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 


© Amabilis Software 2003-2007