Rendermonkey
From Emma
How to use RenderMonkey with Emma
February 8, 2006 Murat Aktihanoglu
1 ) Get RenderMonkey http://www.ati.com/developer/rendermonkey/
2 ) Get the Ogre exporter for RenderMonkey https://sourceforge.net/project/showfiles.php?group_id=2997
3 ) Follow readme.txt inside the RmOgreExporter.zip file.
4 ) Open RenderMonkey
5 ) Open/create some Effect.
6 ) Right-click on the effect, select Export->Ogre Exporter
7 ) Select a directory, click OK.
8 ) The Ogre exporter saves files such as:
foo.material foo_VertexShader.program foo_VertexShader.program.source foo_PixelShader.program foo_PixelShader.program.source
possibly along with some asset files ( such as Noise.dds, fur.tga, etc )
9 ) Create an Emma file that will refer to these files, such as:
- Shape {
- translation 0 0 -500
- scale 0.5 0.5 0.5
- material MaterialInline {
- assetURLs [ :"assets/Effect_Workspace.Various_Wood_Shaders.Wood0.Single_Pass.Pixel_Shader.program",
- "assets/Effect_Workspace.Various_Wood_Shaders.Wood0.Single_Pass.Vertex_Shader.program",
- "assets/Wood0.material" ]
- name "Effect_Workspace.Various_Wood_Shaders.Wood0"
- }
- geometry MeshInline {
- url "../assets/ogrehead.mesh"
- assetURLs "../assets/Ogre.material"
- customParameters [
- "0", "0.408248 0.408248 -0.816497 0.000000",
- "1", "0.890000 0.0 0.0 0.0",
- "2", "0.660000 0.0 0.0 0.0",
- "3", "0.439216 0.210526 0.000000 1.000000",
- "4", "0.917293 0.503759 0.127820 1.000000",
- "5", "6.720000 0.0 0.0 0.0",
- "6", "0.960000 0.0 0.0 0.0",
- "7", "2.200000 0.0 0.0 0.0"
- "8", "0.25000 0.0 0.0 0.0"
- ]
- }
- }
Custom parameters should match the 'param's specified in the .material file.
10 ) Open the file in Emma.
