Page 1 of 35

DEV-thread - Blendigo v0.7 - material-editor-exporter

Posted: Mon Feb 19, 2007 4:24 am
by zuegs
Hi Blender and Indigo users,

this is a project for a indigo-material-editor for Blender :D :D :D . And its

:!: STILL IN DEVELOPEMT AND NOT A OFFICIAL RELEASE :!:

Everyone that needs a working exporter for Blender please consult Download section on the indigo-website. :oops:

All c&c are welcome and please report all bugs in this thread, thanks.
Also please post source modifications here, so i can implement them to the download-source.

Note: YOU NEED AT LEAST BLENDER V2.43RC3 TO WORK
copy the Blendigo script ".py" file to the "blender-2.43\.blender\scripts\" directory.

As for other exporters you need the "Indigowrapper.conf" file (http://www.myfile.ch/site/download.php?file=983665) that includes the indigo-render-directory-path placed in the "blender-2.43\.blender\scripts\bpydata" directory. I wasn't able to test Linux stuff, so don't expect that it works sorry (perhaps some one could fix it :wink: )

Also there's a "preview" button for materials that throws a small material-preview-render. For this you need to copy the "Preview" directory from the blendigo ZIP into the indigo-directory. :wink:

As mentioned this is in development... there are some points that are not implemented yet.
Fixed:
- a bug with blend materials - sub-materials are sometimes missed in export
- "indigowrapper.conf" accepting spaces in path name
- work-around for ortho-matrix-limitation
- bug in rotation matrix
- fixed possibility to remove texture
- absorbtion color preview inversed
- new material-type "External" that allows to include an external XML file (for test)
- "save IGI" button
- sss-type uniform (by SmartDen)
- removed surface compensation for lights, gain-value is equal to gain in XML, use "efficacy" feature instead
- fixed "null" material export when used in blend-material
- indigo primitives sphere and plane (meshname must contain ".sphere" or ".plane")
- added linear tonemapping scale (you must deactivate auto-exposure for this)
- changed F-Stop formula (perhaps wrong :oops: )
- fixed misstyped matExponentPathCB (by manuel)
- absorption color inversion on GUI removed (by SmartDen)
- max. turbidity to 20
- added exponent for linear tonemapping
- fix slowing down of GUI while working on big meshes
- dupliverts
- phong exponent up to 1mio
- fixed animation export
- replaced ImageSelector with FileSelector for better performance
- fixed bug when object is visible on more than on layer
- fixed file paths when located on different drives
- add copy/paste functions
- background color picker
- popup for material preview scene file
- compatibility to indigo v0.7t7 (many thanks to SmartDen)
- set max value for phong exponent and glossy-transparent exponent to 1000000
- finds preview scene file with new ".igs" and old ".xml" file extension
- additional rendersize-options 150%, 200%
- ignore objects without faces
- primitive sphere diameter fits inside mesh bounding-box
- added exponent for unform SSS value
- F-Stop accepts float values
- support for array modifier
- add world dimension factor
- added capability of different preview scenes by menu (by BIGFAN and DaveC)
- general tidy up of GUI and tooltips (by BIGFAN)
- super sample (by BIGFAN)
- all preview files use same material name to make new preview files easy to insert (By DaveC)
- updated preview scenes and added "IMPmatdb" preview scene
- added "&" to "launchIndigo" function to detach Indigo from Blender under Linux (by GNUdo)
- material conversion: converts blender material to indigo material if no indigo-material definition is found or you press the "convert" button

ToDo:
- linux compatibility
- extended support for mediums
- extended support for SSS
- epidermis features

For all qestions please just ask :wink:

and that it looks like: (thx kepler for the nice preview scene)

Posted: Mon Feb 19, 2007 4:57 am
by Kram1032
I'm very sorry, but the links only give a nearly blank page...

Edit: Ok, new Links are working^^

Posted: Mon Feb 19, 2007 5:25 am
by neepneep
Works Great !

:D :D :D :D :D

edit: How can I make colour absorption greater than '1' ?

edit: edit: I just noticed the 'gain' tab right next to it :)

Posted: Mon Feb 19, 2007 5:55 am
by kepler
Exactly where should I put the *.conf file?

Edit: and where goes the .py file? I've copied it in the script folder of Blender, but I don't know how to use it... :shock:

Edit2: It WORKS!!! Fantastic!!!

Posted: Mon Feb 19, 2007 6:32 am
by Kojack
fantastic work zuegs!
thx :lol:

doesnt work!

Posted: Mon Feb 19, 2007 6:39 am
by tungee
my doesnt work!
i have win blender rc3 and put this script in scripts folder. when i select the blendigo python script it says that i have the wrong version???? :cry: whats up.?

Posted: Mon Feb 19, 2007 6:45 am
by zuegs
hi tungee,
yes, script is designed for v2.43 but should work with your v2.43RC3 too, just ignore the message :wink:

Posted: Mon Feb 19, 2007 6:45 am
by Kram1032
Is there any Material Limit, yet?
I've used ~ 5 mats and when I activate SSS on the 5th and change the SSS colour, I get
NameError: Global Name "matSSSrgb" is not defined...

And for now, it only searches for indigo in C:\\indigo_07/default-mats.xml

But my Indigo is in:
C:\\Pogramme/indigo/indigo0.75/testscenes/default-mats.xml...

Posted: Mon Feb 19, 2007 6:48 am
by tungee
hi zuega the scripts fail trotzdem.
here is the console message:
Compiled with Python version 2.4.
'import site' failed; use -v for traceback
Checking for installed Python... No installed Python found.
Only built-in modules are available. Some scripts may not run.
Continuing happily.
BLENDIGO v0.7t5 BETA 1
Traceback (most recent call last):
File "<string>", line 1319, in ?
IOError: [Errno 2] No such file or directory: 'C:\\Dokumente und Einstellungen\\
Administrator\\Desktop\\blender-2.43-RC3-windows\\.blender\\scripts\\bpydata\\In
digoWrapper.conf'

Posted: Mon Feb 19, 2007 6:49 am
by neepneep
I was trying to do a blend, but the exporter put this:

Code: Select all

<uv_set></uv_set>
instead of:

Code: Select all

<uv_set>uv</uv_set>
:?

Posted: Mon Feb 19, 2007 6:53 am
by zuegs
@tungee
have you copied the "IndigoWrapper.conf" file in the "blender-2.43\.blender\scripts\bpydata" directory?

@Kram1032:
theres no limit for materials... please try again... you need for each indigo-material a place-holding blender-material (which defines the names)

@neepneep:
i missed this, sorry, will fix it !!! thx

[EDIT]: fixed "uv" version is up, download from first post, thx neepneep.

oops!

Posted: Mon Feb 19, 2007 7:03 am
by tungee
now everything is fine .
Thanx zuegs for da tips and the new exporter!

Thanx

Posted: Mon Feb 19, 2007 7:05 am
by tungee
wow great !

first bug

Posted: Mon Feb 19, 2007 7:07 am
by tungee
first bug ;
if i select a sss color the script crashes.

Posted: Mon Feb 19, 2007 7:15 am
by Kram1032
That's what I meant, but I've used 3 SSS and it crashed at the 3rd...