Welcome, Guest. Please login or register.

Author Topic: Cinema 4D... WHat can I do with the OM & DM files?  (Read 1877 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline FuZionTopic starter

  • Full Member
  • ***
  • Join Date: Jul 2002
  • Posts: 223
    • Show only replies by FuZion
    • http://www.deceptiveaudio.co.uk
Cinema 4D... WHat can I do with the OM & DM files?
« on: August 18, 2003, 11:14:48 AM »
Hi,

I have had Cinema4D for a while & have never understood the OM & DM (Object Map & Depth Map) files. Not so much what they are, they kinda speak for themselves, but more like where can I us them?

I have never been able to find a program that can read them or view them & consequently use them for the purpose they exist (& we all need purpose don't we Agent Smith)

Can anyone help here? Thanks, FuZion.
 

Offline benJamin

  • Full Member
  • ***
  • Join Date: Mar 2003
  • Posts: 226
    • Show only replies by benJamin
    • http://cms.jaminjay.com/
Re: Cinema 4D... WHat can I do with the OM & DM files?
« Reply #1 on: August 18, 2003, 12:21:52 PM »
IIRC, the manual describes the file structure (pretty-much 1 piece of information per pixel rendered in each file).

What to use it for?

Mostly, you might write a 'shader' for Cinema 4D.  Use the script running facility of Render4D to post-process a frame and add your own hair, grass, procedural textures, whatever, before it gets passed to storage or integration.

Another idea, maybe you'd like to render lots of scenes for a point-and-click adventure.  You could (possibly) use the depth map for working out collision detection and the object map for ensuring all important objects are visible to the player.

If you're interested in writing shaders, however, you might like to take a look at nVidia's Cg (C for Graphics).  It looks interesting indeed.


benJamin
Amiga.org - The site for MiniMig support and news.
blakemilesmusic.com
 

Offline FuZionTopic starter

  • Full Member
  • ***
  • Join Date: Jul 2002
  • Posts: 223
    • Show only replies by FuZion
    • http://www.deceptiveaudio.co.uk
Re: Cinema 4D... WHat can I do with the OM & DM files?
« Reply #2 on: August 18, 2003, 04:10:11 PM »
Do I get this right?

I've got to learn some kind of C programming before I can use these files?

I was hoping I could just use them as, say for arguments sake, an Aplha channel in Photgenics, but it isn't that simple is it?
 

Offline benJamin

  • Full Member
  • ***
  • Join Date: Mar 2003
  • Posts: 226
    • Show only replies by benJamin
    • http://cms.jaminjay.com/
Re: Cinema 4D... WHat can I do with the OM & DM files?
« Reply #3 on: August 26, 2003, 09:52:35 AM »
No, I wasn't saying that you need to learn C, just that Cg may be more useful for some of the things I suggested.

As far as using them for process filters, I'm sure it's possible, but you need to strip some data first.  It uses an IFF structure, but I'm not sure it's a registered FORM, so you mightn't be able to load it with anything (PPaint loads the DefIcon instead, for instance).

If you would like, I should be able to nut out an ARexx script to convert the info to a raw bitmap that may be loaded into PPaint.

Let me know.


benJamin

"Software is made with C, prototypes are made with ARexx."
Amiga.org - The site for MiniMig support and news.
blakemilesmusic.com
 

Offline Rogue

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 566
    • Show only replies by Rogue
    • http://www.hyperion-entertainment.com
Re: Cinema 4D... WHat can I do with the OM & DM files?
« Reply #4 on: August 26, 2003, 11:32:53 AM »
IIRC, this program can use them. It's a script-based filter program that Thomas and me wrote ages ago. Not very comfortable, but it did the job ;-)
Look out, I\'ve got a gun
 

Offline benJamin

  • Full Member
  • ***
  • Join Date: Mar 2003
  • Posts: 226
    • Show only replies by benJamin
    • http://cms.jaminjay.com/
Re: Cinema 4D... WHat can I do with the OM & DM files?
« Reply #5 on: August 26, 2003, 11:53:23 AM »
Having a look.

Hehe, funny installer:
'SnowPlants can be found in your "C4D:Tools/" drawer (or partition)'

A touch of humour, or ?


benJamin

"Everything's been done.  Everything's been thought of. And it'll all be done again."
Amiga.org - The site for MiniMig support and news.
blakemilesmusic.com