PDA

View Full Version : wmf/emf and opengl



Medusa
02-03-2003, 05: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.

V-man
02-03-2003, 07: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.

Robbo
02-03-2003, 07: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).