Skip to content

RenderHeads/MayaPlugin-VertexChameleon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vertex Chameleon

Advanced vertex colouring plugin for Autodesk Maya

Banner

Introduction

Vertex Chameleon was a Maya plugin developed by RenderHeads Ltd between 2008-2013 and open-sourced in 2015. The software is no longer supported or developed by RenderHeads Ltd and this serves as a historic archive.

Vertex colours are heavily used in gaming platforms such as Nintendo Wii & DS, Sony PSP & Playstation 2, internet and mobile phone games. Even next-gen platforms such as PC, Xbox360 and PS3 use vertex colours to help improve performance, add extra detail and save vital memory.

Vertex Chameleon gives you complete control, real-time feedback and a wealth of functionality, resulting in increased productivity and better results.

UI1

Features

  • Designed to give rapid visual feedback
  • Photoshop-style layers (in Maya 7.0 and above)
  • Photoshop-style blend modes
  • Gradient tool
  • Colour swatches
  • Colour inspector tool
  • Integrated ambient occlusion, lighting and texture baking shortcuts
  • Filters:
    • Adjust Red, Green, Blue, Alpha, Yellow, Cyan, Magenta
    • Adjust Hue, Saturation, Value
    • Brightness & Contast
    • Levels
    • Blur / Sharpen
    • Erode / Dilate
    • Posterize
    • Channel inverter
    • Channel clamp
    • Component randomise
    • 3D texture sampling
    • Normals 2 Colour
    • Facetise

UI2

Links

Open Source

After selling this software for many years, we decided to stop developing it, so we released it as an open source project.

  • Written in C++
  • Maya scripts written in MEL
  • Builds for Windows, macOS and Linux

If you are prompted for a license key, you can use the following:

contact@renderheads.com-(0 user license)-RenderHeads-RenderHeads-Vertex Chameleon 1.x-702S-6600-6C22-4861-702S-6600-4K22-4861-0N66-4R0G-546U-5N6X

Maya SDK Setup

The core Maya SDK must be available to the plugin in order to compile. The 3 folders needed are:

  • include
  • lib
  • lib64

In order to build for multiple versions of Maya we use the following directory structure:

MayaSDK/
	Common/
	Windows/
	MacOSX/
	Linux/

The Common folder contains all of the header files (contents of include folder), and the platform folders contain all the of the platform specific libraries (lib and lib64 folder).

Each sub-folder starts with the Maya version number.

For example:

MayaSDK/
	Common/
		6.0/
			maya/
		8.5/
			maya/
		2011/
			maya/
			tbb/
	Windows/
		6.0/
			lib/
		2008/
			lib/
			lib64/
		2011/
			lib/
			lib64/
	MacOSX/
	Linux/

In Windows set the environment variable MAYALIBBASE to the path of your MayaSDK folder. After adding the environment variable you may need to reopen Visual Studio.

Compiling for Windows

  • The project solution is created with Visual Studio 2008.
  • Make sure you have set up your Maya SDK files as specified above
  • Each version of Maya has its own solution configuration. 32-bit and 64-bit cpu targets can be selected from the solution platform list.
  • Hit 'Build' and it should build a plugin for the current configuration.

Add support for additional Maya versions

To add a new configuration for another version of Maya:

  • Right-click on the solution and open Configuration Manager

  • In "Action solution configuration" select "New"

  • Select the latest release version of Maya from the list of "Copy settings from"

  • Make the name the same format but replace the version number

  • Make sure that the 32 and 64-bit settings are correct

  • Once the new configuration is created you'll need to configure the project for that configuration:

    • Right-click on the Vertex Chameleon project and go to Properties
    • Select C/C++ > General
      • Edit "Additional Include Directories" to point the location of that versions include files. For example in Maya 2011 it would read "$(MAYALIBBASE)\Common\2011;"
    • Select C/C++ > Preprocessor
      • Make sure the list contains an entry for your version of Maya. For 2011 use "MAYA2011". This preprocessor is used later when including the Maya SDK headers to exclude or include certain features based on the version we're building for.
    • Select Linker > General
      • Set the Output File property to match your Maya version number. For 2011 it should read "$(OutDir)\VertexChameleon2011.mll"
      • Set Additional Library Directories to point to the relevent Maya SDK folder.
        For Maya 2011 32-bit it would read "$(OutDir)";"$(MAYALIBBASE)\Windows\2011\lib"; For Maya 2011 64-bit it would read "$(OutDir)";"$(MAYALIBBASE)\Windows\2011\lib64";

Compiling for MacOSX

  • Use XCode to load the project "vertexChameleon.xcodeproj"

Compiling for Linux

  • See build.sh and buildall.sh
  • Use 'make'
  • The build script needs the following variales defines:
    • export ARCH=64 (for 64-bit building)
    • export MAYAVER=2011 (this is the maya version number, eg 8.5)
    • export MAYAVERs=2011 (this is the string version of the Maya version, so Maya 8.5 would be 85)

Packaging for Windows

  • We build to a setup executable
  • Install NSIS v2.46 with the FindProcDLL plugin (http://nsis.sourceforge.net/FindProcDLL_plug-in)
  • Open InstallScript.NSI and increment the version numbers at the top to match the new build version number
  • Right-click the InstallScript.NSI and compile with NSI
  • The resulting installer file should appear in the Releases folder

NOTE: If the installer fails to run, it may be because using a mapped drive

Packaging for OSX and Linux

  • There is no setup, simply ZIP up all the files in the module folder to an appropriatly named ZIP file.

Campy