Rendering Icons more accurately?

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 20/08/2009 at 18:26, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   R10-R11 
Platform:   Windows  ;   Mac OSX  ; 
Language(s) :     C++  ;

---------
In my new plugin project, users can add objects to a library (each stored as .c4d documents). In the process of adding the object to the library, a 32x32 TIF icon image file is created for use in my plugin Generator Object. There is a template .c4d document that I've set up for this that is loaded when the user adds an object and the object is then inserted for rendering to create the icon image.

The problem is that calling IDM_SHOWACTIVE doesn't seem to be responding very well in this case. Works nicely for extruded/beveled shapes but that is probably because these are closely controlled size and extrusion amount with respect to the render document. Now I need something a bit more flexible and the results are all over the place. The objects do have their global matrices make unitary in the process.

Is there any consistent means to frame an active object in a scene with a camera (Perspective) programmatically?

Thanks!

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 21/08/2009 at 03:50, xxxxxxxx wrote:

I have to ask the developers how they do this for instance for the Content Browser's icon creation.

cheers,
Matthias

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 21/08/2009 at 04:47, xxxxxxxx wrote:

Much appreciated. :)

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 21/08/2009 at 07:19, xxxxxxxx wrote:

They just call C4DOS.Ge->FrameScene(doc) which is basically the same as the "Frame Scene" command.

cheers,
Matthias

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 21/08/2009 at 09:39, xxxxxxxx wrote:

Unfortunately, framing the scene won't work as there is a Floor object being used to create the background coloration (Frame Scene goes way out into space therefore).

Might have to play with frame clipping to get the object framed as big as possible in the render.

Thanks,