View Full Version : wmf/emf and opengl

02-03-2003, 04:38 AM
Hi there.

Can anyone give me a hint or some links concerning how to export data from openGL into wmf or emf format ?

We are planning to use GL4Java and we want to be able to export frames with rendered data into wmf/emf files.

Thanks a lot.

02-03-2003, 06:18 AM
You can read about the emf format at msdn.microsoft.com

I think wmf is ancient technology.

Basically, you have to reinterpret GL commands into GDI commands, and recored them into the emf. Not everything can be exported I imagine, such as texturing.

02-03-2003, 06:22 AM
Ugh. That sounds GRIM. Alternatively, you can glReadPixels - into a bitmap and write that in your emf-type manner (I'm guessing the format has a meta-type for binary data).