Writing scipts and shaders

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
Old 11 November 2003   #1
Writing scripts and shaders

Does anyone know if I have to use an external compiler to write scripts and shaders, or can I do it in something like Notepad?
The docs mention C++ compilers, but I'm wondering if I need it.

Oh, and I got my Studio today!! Yipee skippee!!
maya and zbrush training
creating CG3D since 2001

3D Models
@ Turbosquid

my Scripts

Last edited by Stoehr : 11 November 2003 at 05:27 AM.
Old 11 November 2003   #2
I think I found my answer in the docs; which is "yes" I do an external compiler, but if someone would confirm this for me?

maya and zbrush training
creating CG3D since 2001

3D Models
@ Turbosquid

my Scripts
Old 11 November 2003   #3
afaik you need c not c++, but i could be wrong.
ask Ron.

Old 11 November 2003   #4

It's not easy to find stuff in the Messiah documen's.
As I understand it the best thing to do is to open up every single page and se what there are on them.

from your writing I suppose that you have found the 'General Info/Develop/C language Reference' but there is also another section called 'General Info/Expressions & Messiah:script' that I missed myself when searching the first time.

If you read the section 'General Info/Expressions & Messiah:script /Messiah:script/Overview' you will see among other things that no compiler is needed for scripts as they are compiled when messiah starts up (at least if I get it right).

I do however not know what can be done as a script or how fast it is. If you need to write a 'real' plugin you will need to write it in C and compile.

I'm not a C programmer myself but from what I saw when looking at it it seems to be well documented and they even explain how to set the project up in Microsofts Visual C++ v6 and v7 so if one knows C i don't think it should to hard to figure it out.
Old 11 November 2003   #5
Shaders can be either scripts or pre-compiled plugins. Scripts can be written in any text editor, I use Jext, and are compiled by messiah on launch. There's a script log in the messiah dir you can check for compile errors.

Plugins are pre-complied C. The base system is C but you can use C++, with a few conditions. These are covered in the SDK docs. I use MS Visual C++ for plugins.

There are a couple shader scripts included in messiah. Look in the scripts directory for examples.

Building a script shader will allow you to have a standard connection node, but if you want a custom interface panel in the left bar I think you have to do a pre-compiled plugin.

PMG stated that the shader architecture is similar to renderman and concepts should transfer well.
(My Plugins)
Old 11 November 2003   #6
Thanks for your help guys. I did find the scripts docs. I'll start there, as they suggestd, and then I'll invest into an external compiler if needed.
maya and zbrush training
creating CG3D since 2001

3D Models
@ Turbosquid

my Scripts
Old 11 November 2003   #7
More cutting and pasting from egroups

free GNU compiler with IDE at

http://www.bloodshed.net/c/index.html main site

Dev-C++ 5.0 beta 8 ( (12 MB) with Mingw/GCC 3.2

http://www.bloodshed.net/dev/devcpp.html <---download of the above
Old 11 November 2003   #8
Thanks Nando!
maya and zbrush training
creating CG3D since 2001

3D Models
@ Turbosquid

my Scripts
Old 01 January 2006   #9
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 01:22 AM.

Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.