MaterialEditor         Documentation of the GSoC 2007 project 'Material Editor'
Print

Introduction

In Ogre, all aspects of an objects visual appearance are encapsulated in a Material. The Ogre Material Framework is a robust system allowing the programmer to define one or more rendering passes and optionally techniques for degrading gracefully based on a number of factors such as system hardware and/or level of detail.

The goal of this project is to develop an editor for Ogre’s Material Framework. The Ogre Material Editor will provide the developer with Material Script and Shader editors, and allow them to enable/disable Passes and Techniques enabling rapid prototyping of new Materials. The Ogre Material Editor will be similar in appearance and functionality to the ATI RenderMonkey™ Toolsuite.

The original project proposal can be read here. (Dead link)

Info For questions use this forum topic(external link). (Useful information you also find in the old forum topic(external link).)

General Information

Contributors

Brian Hudson (Hudson?)

Casey Borders (CaseyB)

Source Code Control

 

http://ogre.cvs.sourceforge.net/ogre/ogrenew/Tools/MaterialEditor/(external link)

Installer

Features

Syntax Hilighting

Syntax hilighting has been implemented for Material Scripts, Cg, GLSL, and HLSL.

The Material Scripts syntax hilighter colorizes material keywords (i.e.: material, technique, pass, etc...), attributes (i.e.: ambient, diffuse, on, off, etc...), numbers and comments.

The Cg/GLSL/HLSL syntax hilighters colorize keywords and built-in functions.

Material Script(external link)

Cg(external link)

Code Folding

The material script editor supports basic code folding based on opening/closing braces. The vertex/fragment shaders editors (Cg/GLSL/HLSL) also support code folding.

Code Folding(external link)

Call Tips

Call Tips are currently supported for material scripts. Call Tips are already supported for the vertex/fragment shader editors (Cg/GLSL/HLSL) but the required calltips file has not yet been created for these languages.

Call Tips(external link)

Context Sensitive Documentation

Context sensitive documentation is currently supported for material scripts. Context sensitive documentation is already supported for the vertex/fragment shader editors (Cg/GLSL/HLSL) but the required docs file has not yet been created for these languages.

Documentation View(external link)

Miscellaneous

Workspace Tree

The Workspace Tree manages all of the current Projects/Materials/Techniques/etc and acts as the central point for the navigation and enablement of other user interface elements.

Workspace Tree(external link)

Property Editors

 

The vast majority of properties/attributes for Materials, Techiques, Passes, and Texture Units can be modified in the user interface via the property grid.

Material

 

The material property editor is shown when a Material is selected in the Workspace Tree.

Material Properties(external link)

Technique

 

The technique property editor is shown when a Technique is selected in the Workspace Tree.

Technique Properties(external link)

Pass

 

The pass property editor is shown when a Pass is selected in the Workspace Tree.

Pass Properties(external link)

Texture Unit

 

The texture unit property editor is shown when a Texture Unit is selected in the Workspace Tree.

Texture Unit Properties(external link)

Wizards

 

The Material Editor provides (very basic at this point) wizards to ease the create of Projects/Materials/Techniques/Passes/Texture Units. Alternatively, Materials/Techniques/Passes/Texture Units can be added directly to the associated material script and the user interface will update accordingly upon script compilation.

Project

The Project wizard creates a new Project within the Workspace.

Project Wizard(external link)

Material

 

The Material wizard creates a new Material within the given Project.

Material Wizard(external link)

Technique

 

The Techique wizard creates a new Technique within the given Material.

Technique Wizard(external link)

Pass

 

The Pass wizard creates a new Pass within the given Technique.

Pass Wizard(external link)

Texture Unit

 

The Texture unit wizard creates a new Texture Unit within the given pass.

Texture Unit Wizard(external link)

Feature Requests

  • Auto code completion/suggestions
  • Material inheritance view
  • Declaration view
  • Drag & Drop support
  • Import/Export Wizards
  • Workspace persistence
  • External lexers
  • HDR Color Picker
  • Build against Shoggoth
  • Integrate with the new compilers
  • Integration with FX Composer 2
  • Graphical Node/Link Material Editing

 

Dependencies

OGRE

http://www.ogre3d.org/(external link)

The Material Editor is currently built against Ogre 1.4.4(external link) Eihort which may be downloaded here(external link).

boost

 

http://www.boost.org/(external link)

The Material Editor utilizes boost::any, boost::bind, boost::function, and boost::signal.

On Windows with MS Visual Studio .NET 2005, the easiest way to install the boost libraries is by using the BoostPro 1.34.1(external link) installer provided by boost-consulting(external link).

For alternative methods, consult the boost Getting Started(external link) page.

wxWidgets

http://www.wxwidgets.org/(external link)

The Material Editor is built using the wxWidgets cross-platform GUI library.

The latest stable release (at the time of writing, 2.8.4) can be downloaded from here(external link).

A guide for building wxWidgets and configuring it to work with MS Visual Studio .NET 2005 can be found here(external link). Guides for other IDE's can also be found on the wxWidgets wiki here(external link).

wxPropertyGrid

http://wxpropgrid.sourceforge.net/(external link)

wxPropertyGrid is a property sheet control for wxWidgets. It is a specialized two-column grid for editing properties such as strings, numbers, flagsets, string arrays, and colors.

The Material Editor allows users to modify the various properties of materials, techniques, passes, and texture units.

The latest stable release and installation instructions can be downloaded from here(external link).

NOTE: This should be installed AFTER wxWidgets.

wxScintilla

http://wxcode.sourceforge.net/showcomp.php?name=wxScintilla(external link)

wxScintilla is a wxWidgets wrapper around the Scintilla(external link) edit control.

The Material Editor for all of it's code editing features.

NOTE: This should be installed AFTER wxWidgets.

Compiling

MS Visual Studio .NET 2005

TODO

  • Review latest FX Composer 2 release
  • Fix Known Issues
  • Implement better resource management facilities
  • Implement basic scene management
  • Finish Project persistence
  • Improve synchronization between code editors & other UI components
    • Possibly create a custom MaterialSerializer?
  • Make runtime render system switches fully functional

 

Known Issues

  • Edit menu items enablement state does not update
  • Default wxColourProperty does not support alpha
    • Use a float array for now until the HDRColourProperty is created?

 

References

Ogre Manual

http://www.ogre3d.org/docs/manual/manual_14.html#SEC23(external link)

http://www.ogre3d.org/docs/manual/manual_15.html#SEC31(external link)

http://www.ogre3d.org/docs/manual/manual_16.html#SEC35(external link)

http://www.ogre3d.org/docs/manual/manual_17.html#SEC62(external link)

http://www.ogre3d.org/docs/manual/manual_18.html#SEC89(external link)

http://www.ogre3d.org/docs/manual/manual_19.html#SEC97(external link)

http://www.ogre3d.org/docs/manual/manual_20.html#SEC98(external link)

http://www.ogre3d.org/docs/manual/manual_21.html#SEC99(external link)

http://www.ogre3d.org/docs/manual/manual_22.html#SEC105(external link)

http://www.ogre3d.org/docs/manual/manual_23.html#SEC106(external link)

http://www.ogre3d.org/docs/manual/manual_24.html#SEC113(external link)

http://www.ogre3d.org/docs/manual/manual_25.html#SEC119(external link)

Books

 

Forum Posts

http://www.ogre3d.org/phpBB2/viewtopic.php?t=33484(external link)

http://www.ogre3d.org/phpBB2/viewtopic.php?t=32212(external link)

http://www.ogre3d.org/phpBB2/viewtopic.php?t=32202(external link)

http://www.ogre3d.org/phpBB2/viewtopic.php?t=32176(external link)

http://www.ogre3d.org/phpBB2/viewtopic.php?t=31893(external link)

http://www.ogre3d.org/phpBB2/viewtopic.php?t=31894(external link)

http://www.ogre3d.org/phpBB2/viewtopic.php?p=189833&sid=6c8483bb9967b2b3ade8c2c88e16d350(external link)

http://www.ogre3d.org/phpBB2/viewtopic.php?t=32072&sid=ce193664e1d3d7c4af509e6f4e2718c6(external link)

http://www.ogre3d.org/phpBB2/viewtopic.php?t=29941&highlight=(external link)

http://www.ogre3d.org/phpBB2/viewtopic.php?t=27512(external link)

http://www.ogre3d.org/phpBB2/viewtopic.php?start=75&t=20652(external link)


Contributors to this page: Beauty10198 points  , OgreWikiBot and jacmoe133512 points  .
Page last modified on Friday 18 of February, 2011 22:07:14 UTC by Beauty10198 points .


The content on this page is licensed under the terms of the Creative Commons Attribution-ShareAlike License.
As an exception, any source code contributed within the content is released into the Public Domain.