Indigo 106 Blender 245 Hybrid Exporter Here

Announcements, requests and support regarding the Blender Indigo export script
Wedge
Posts: 441
Joined: Sun Jan 14, 2007 11:33 am
Location: East Coast, USA

Indigo 106 Blender 245 Hybrid Exporter Here

Post by Wedge » Wed Dec 05, 2007 4:03 pm

Found some time to update the exporter. This one is based on the last three I have worked with (for Indigo 07, 08, and 09, thanks again to everyone for their support in these projects!), which were based on 'current dev version' from the wiki. (version 6t6b1, I think) Here is the updated exporter for Indigo 106 and Blender 245. Enjoy!

Some Exporter Features:
*skin (mesh layer) support (ability to shrink a mesh quite accurately to fit inside of a duplicate)
*exports each mesh into its own obj file
*region rendering
*alpha render support
*improved camera
*support for multiple materials or textures per face on mesh
*optimized for quick exporting
*support for large meshes
*support for large scenes
*primitive support (rectangle light, sphere, plane)
*new light power system for all emitters
*normal smoothing
*material support for most material types
*exit portals
*camera dof inside blender ("limits" button in Blender under camera settings draws line for focus help, be careful of scene scale)
*material error checking to help users find incorrectly configured material or objects missing material


History:
*added camera obstacle map options
*added camera aperture shape options
*changed lens sensor dist to follow guidelines by Ono
*changed aperture radius now determined from F-Stop to follow guidelines by Ono
*added F-Stop
*added camera tonemap
*removed glare
*removed bloom
*fixed medium absorption and Henyey colors are inverted (not scatter color)
*changed display time to 35 seconds (so by default it does not equal save time)
*fixed camera bug from version 1.75, had to convert from degrees to radians
*added more options for F-Stop and exposure value
*gui alignment
*camera tonemap now exports in correct format
*fixed material error checking
*changed error messages now appear at bottom of console report (rather than placed in the order they are received)
*fixed crash that is caused when you use a newer build of Blender rather than official 2.45
*exporter now has a name from version 2.01 on.."Hybrid"
*reinhard burn max value raised to 20 (default is now 20 as well)
*camera error checking for 0 focus (you no longer need to set focus when you know you are going to be using autofocus instead)
*default is new uv set name
*new faster mesh function exports each mesh into its own obj file
*large mesh support removed (included by default with new mesh function)
*large scene support removed, also known as layer support (included by default with new mesh function)
*removed angle support for normal smoothing
*multiple material/texture support per mesh (you are allowed one regular material or textured material defined per face)
*added region rendering support
*aperture diffraction is now disabled when you do not use aperture shape/obstacle map settings
*fixed obstacle map options now only enable when aperture shape is enabled
*added skin/mesh layer feature that forum user oodmb requested a long time ago (this feature automatically shrinks a mesh to fit inside of a duplicate)
*fixed bug where UVs exported for faces which the user did not UVmap
*changed skin layer distance value range
*added alpha render support
*fixed normals are not unit length
*normals now only export for smooth objects
*added note in directions that normal smoothing support is per mesh only (not per face)
*added note in directions about converting object to mesh


Thanks to forum user oodmb for requesting the skin layer feature, explaining the problem to me, and showing me why scaling would not work.

Thanks to everyone for posting any bug reports and supporting this project. (thank you messages count as support 8))

I have not included all of Indigo's features as I do not understand some of them and do not have the time to research.

Materials will probably not be developed anymore in this exporter as it is too complicated and I have created Carmine material editor for this purpose. (And there is no reason for me to design something like Blendigo already has :))

I think this exporter still has some use to someone so I hope it helps. Time for me to make a new scene, haven't used Indigo to make a real scene since version 07. Only test scenes... :oops:

I am looking forward to testing some of these new camera features. Had a hobby in cameras some time ago, so I know a bit about this. Fist thing I'd like to try and create a "star filter" obstacle map to see if I can get those blades of light coming off from a light source. (anyone try something like this?) :)

Here is a link to Carmine, the material editor created with .NET: http://www.indigorenderer.com/joomla/fo ... php?t=3090

Here is a link to my developement thread where I talk about new features before they are released into this exporter:
http://www.indigorenderer.com/joomla/fo ... php?t=3410

Officially Retired: As of Feb 20 2008 I have retired. Hybrid exporter version 2.09 is my last work. See thread here for more information:
http://www.indigorenderer.com/joomla/fo ... php?t=3673
Attachments
Indigo106_Exporter209.zip
Exporter with Directions for Indigo 106 and Blender 245
(14.19 KiB) Downloaded 281 times
Last edited by Wedge on Wed Feb 20, 2008 5:27 pm, edited 11 times in total.
Content contained in my posts is for informational purposes only and is used at your own risk.

User avatar
Kram1032
Posts: 6649
Joined: Tue Jan 23, 2007 3:55 am
Location: Austria near Vienna

Post by Kram1032 » Thu Dec 06, 2007 4:14 am

starfilter?

glare blades should be visible automatically ;)

Wedge
Posts: 441
Joined: Sun Jan 14, 2007 11:33 am
Location: East Coast, USA

Post by Wedge » Thu Dec 06, 2007 10:16 am

Wouldn't we need to create an obstacle map with a diffraction pattern to get a "star filter" effect? (similar to the obstacle map Ono posted in his 104 thread)

I can't link the page but here is the address:
"http://en.wikipedia.org/wiki/Filter_(photography)" (without quotes)
Content contained in my posts is for informational purposes only and is used at your own risk.

User avatar
Kram1032
Posts: 6649
Joined: Tue Jan 23, 2007 3:55 am
Location: Austria near Vienna

Post by Kram1032 » Thu Dec 06, 2007 10:21 am

Well, yeah...
try a simple map with quite low frequency but high contrast noise (clouds + slight highpass at, say, radius 20, contrast boost) :)

Wedge
Posts: 441
Joined: Sun Jan 14, 2007 11:33 am
Location: East Coast, USA

Post by Wedge » Sat Dec 08, 2007 12:46 pm

Haven't tried the star filter yet but I found some reasons to post a minor update. This version looks good so far... :)
Content contained in my posts is for informational purposes only and is used at your own risk.

johanjohan
Posts: 43
Joined: Wed Sep 13, 2006 3:33 pm
Location: New Caledonia

Post by johanjohan » Fri Dec 28, 2007 2:27 pm

hi,
I have a problem

if I want to export I have this message
how to do to have not this message?
thanks :


Exporting Scene...
*** glibc detected *** ./blender: free(): invalid pointer: 0x096704a8 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb7b22d65]
/lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb7b26800]
/usr/lib/libstdc++.so.6(_ZdlPv+0x21)[0xb7a54d81]
/usr/lib/libapt-pkg-libc6.6-6.so.4.5(_Z13ReadConfigDirR13ConfigurationRKSsbj+0x317)[0xb5c753b7]
/usr/lib/libapt-pkg-libc6.6-6.so.4.5(_Z13pkgInitConfigR13Configuration+0x82b)[0xb5caa9db]
/usr/lib/python2.5/site-packages/apt_pkg.so[0xb5d38ac2]
/usr/lib/libpython2.5.so.1.0(PyCFunction_Call+0x14d)[0xb7e6788d]
/usr/lib/libpython2.5.so.1.0(PyEval_EvalFrameEx+0x60e9)[0xb7eb55e9]
/usr/lib/libpython2.5.so.1.0(PyEval_EvalCodeEx+0x7c4)[0xb7eb6734]
/usr/lib/libpython2.5.so.1.0(PyEval_EvalCode+0x63)[0xb7eb67b3]
/usr/lib/libpython2.5.so.1.0(PyImport_ExecCodeModuleEx+0xad)[0xb7ecb27d]
/usr/lib/libpython2.5.so.1.0[0xb7ecd696]
/usr/lib/libpython2.5.so.1.0[0xb7ecea9a]
/usr/lib/libpython2.5.so.1.0[0xb7ecdd83]
/usr/lib/libpython2.5.so.1.0[0xb7ece2e4]
/usr/lib/libpython2.5.so.1.0[0xb7ece48f]
/usr/lib/libpython2.5.so.1.0(PyImport_ImportModuleLevel+0x33)[0xb7eceb73]
./blender(blender_import+0x6c)[0x83f1c7c]
/usr/lib/libpython2.5.so.1.0(PyCFunction_Call+0x14d)[0xb7e6788d]
/usr/lib/libpython2.5.so.1.0(PyObject_Call+0x37)[0xb7e30c17]
/usr/lib/libpython2.5.so.1.0(PyEval_CallObjectWithKeywords+0x7c)[0xb7eae80c]
/usr/lib/libpython2.5.so.1.0(PyEval_EvalFrameEx+0x1a14)[0xb7eb0f14]
/usr/lib/libpython2.5.so.1.0(PyEval_EvalCodeEx+0x7c4)[0xb7eb6734]
/usr/lib/libpython2.5.so.1.0(PyEval_EvalCode+0x63)[0xb7eb67b3]
/usr/lib/libpython2.5.so.1.0(PyImport_ExecCodeModuleEx+0xad)[0xb7ecb27d]
/usr/lib/libpython2.5.so.1.0[0xb7ecd696]
/usr/lib/libpython2.5.so.1.0[0xb7ecdd83]
/usr/lib/libpython2.5.so.1.0[0xb7ece26c]
/usr/lib/libpython2.5.so.1.0[0xb7ece48f]
/usr/lib/libpython2.5.so.1.0(PyImport_ImportModuleLevel+0x33)[0xb7eceb73]
./blender(blender_import+0x6c)[0x83f1c7c]
/usr/lib/libpython2.5.so.1.0(PyCFunction_Call+0x14d)[0xb7e6788d]
/usr/lib/libpython2.5.so.1.0(PyObject_Call+0x37)[0xb7e30c17]
/usr/lib/libpython2.5.so.1.0(PyEval_CallObjectWithKeywords+0x7c)[0xb7eae80c]
/usr/lib/libpython2.5.so.1.0(PyEval_EvalFrameEx+0x1a14)[0xb7eb0f14]
/usr/lib/libpython2.5.so.1.0(PyEval_EvalCodeEx+0x7c4)[0xb7eb6734]
/usr/lib/libpython2.5.so.1.0(PyEval_EvalCode+0x63)[0xb7eb67b3]
/usr/lib/libpython2.5.so.1.0(PyImport_ExecCodeModuleEx+0xad)[0xb7ecb27d]
/usr/lib/libpython2.5.so.1.0[0xb7ecd696]
/usr/lib/libpython2.5.so.1.0[0xb7ecdd83]
/usr/lib/libpython2.5.so.1.0[0xb7ece26c]
/usr/lib/libpython2.5.so.1.0[0xb7ece48f]
/usr/lib/libpython2.5.so.1.0(PyImport_ImportModuleLevel+0x33)[0xb7eceb73]
./blender(blender_import+0x6c)[0x83f1c7c]
/usr/lib/libpython2.5.so.1.0(PyCFunction_Call+0x14d)[0xb7e6788d]
/usr/lib/libpython2.5.so.1.0(PyObject_Call+0x37)[0xb7e30c17]
/usr/lib/libpython2.5.so.1.0(PyEval_CallObjectWithKeywords+0x7c)[0xb7eae80c]
/usr/lib/libpython2.5.so.1.0(PyEval_EvalFrameEx+0x1a14)[0xb7eb0f14]
/usr/lib/libpython2.5.so.1.0(PyEval_EvalCodeEx+0x7c4)[0xb7eb6734]
/usr/lib/libpython2.5.so.1.0(PyEval_EvalCode+0x63)[0xb7eb67b3]
/usr/lib/libpython2.5.so.1.0(PyImport_ExecCodeModuleEx+0xad)[0xb7ecb27d]
/usr/lib/libpython2.5.so.1.0[0xb7ecd696]
/usr/lib/libpython2.5.so.1.0[0xb7ecdd83]
/usr/lib/libpython2.5.so.1.0[0xb7ece26c]
/usr/lib/libpython2.5.so.1.0[0xb7ece4d6]
/usr/lib/libpython2.5.so.1.0(PyImport_ImportModuleLevel+0x33)[0xb7eceb73]
./blender(blender_import+0x6c)[0x83f1c7c]
/usr/lib/libpython2.5.so.1.0(PyCFunction_Call+0x14d)[0xb7e6788d]
/usr/lib/libpython2.5.so.1.0(PyObject_Call+0x37)[0xb7e30c17]
/usr/lib/libpython2.5.so.1.0(PyEval_CallObjectWithKeywords+0x7c)[0xb7eae80c]
/usr/lib/libpython2.5.so.1.0(PyEval_EvalFrameEx+0x1a14)[0xb7eb0f14]
/usr/lib/libpython2.5.so.1.0(PyEval_EvalCodeEx+0x7c4)[0xb7eb6734]
/usr/lib/libpython2.5.so.1.0(PyEval_EvalCode+0x63)[0xb7eb67b3]
======= Memory map: ========
08048000-08db7000 r-xp 00000000 08:02 5800311 /home/legrand/Documents/blender-2.45-linux-glibc236-py25-i386/blender
08db7000-08f4f000 rw-p 00d6e000 08:02 5800311 /home/legrand/Documents/blenAbandon (core dumped)

Wedge
Posts: 441
Joined: Sun Jan 14, 2007 11:33 am
Location: East Coast, USA

Post by Wedge » Sun Dec 30, 2007 1:04 pm

Have not seen this message before. Maybe if someone else has ran into this message before, they will post a tip. :)

Do you use a newer Blender build than an official 2.45? This script should not need Python installed by itself, it should run fine with just Blender...But I can only test this on Windows XP.
Content contained in my posts is for informational purposes only and is used at your own risk.

johanjohan
Posts: 43
Joined: Wed Sep 13, 2006 3:33 pm
Location: New Caledonia

Post by johanjohan » Sun Dec 30, 2007 8:43 pm

hi!

I use Linux ubuntu, but on Windows I have the same problem

I have this error if I use the build on blender.org ( blender-2.45-linux-glibc236-py25-i386 ) with python 2.5.1

but if I use blender 2.45 (blender_2.45-1~getdeb2_i386.deb) with python 2.44.4 I have this error :
Exporting Scene...
Traceback (most recent call last):
File "<string>", line 832, in gui
File "<string>", line 522, in save_indigo
File "<string>", line 201, in exportMaterial
IndexError: list index out of range


:?

Wedge
Posts: 441
Joined: Sun Jan 14, 2007 11:33 am
Location: East Coast, USA

Post by Wedge » Mon Dec 31, 2007 11:45 am

Oh, that is a simple material error. It means you have an incorrectly configured material. Check the directions file for more information. :)

Maybe I will code in more error checking for materials.

Update: Hi Johan, thanks for the report. I thought about it for a moment and decided to rewrite the error checking. Now this should no longer happen. But if the Blender console reports that an error has happened, the scene file will be messed up. This is better than the original error/crash though.

If an error does come up, check out the items from the error and after you correct it, you should be able to export a correct scene file. :)

Update 2: Changed it again so that all error messages can easily be seen/found at the bottom of the console report. (rather than spread out all over)

Update 3: Maintenance fix this time, now newer builds of Blender should no longer crash.
Content contained in my posts is for informational purposes only and is used at your own risk.

johanjohan
Posts: 43
Joined: Wed Sep 13, 2006 3:33 pm
Location: New Caledonia

Post by johanjohan » Wed Jan 02, 2008 3:38 pm

yes very cool

Now the exporter crash not, but all materials are null
for the moment I can to mix with blendigo for the material and the emitter rvb

but I like your exporter, its more simply

perhaps with a scene less big and if I control more my scene for the material, I will not this problem (I will soon another test to verify your exporter with differents material)

thanks and happy new year all

johan

Wedge
Posts: 441
Joined: Sun Jan 14, 2007 11:33 am
Location: East Coast, USA

Post by Wedge » Fri Jan 18, 2008 10:31 pm

The "hybrid" exporter has been released! Enjoy! :)
Content contained in my posts is for informational purposes only and is used at your own risk.

Wedge
Posts: 441
Joined: Sun Jan 14, 2007 11:33 am
Location: East Coast, USA

Post by Wedge » Tue Jan 22, 2008 9:10 pm

Added in the new mesh layer feature and fixed a bug in mesh UVs and a bug in the GUI. Feel free to let me know how the mesh shrinking feature works. The default shrinking value is the only one I have tried so far. Be sure to check the directions so you understand how it works.

Enjoy! :)
Content contained in my posts is for informational purposes only and is used at your own risk.

Wedge
Posts: 441
Joined: Sun Jan 14, 2007 11:33 am
Location: East Coast, USA

Post by Wedge » Wed Jan 30, 2008 8:14 pm

-Fixed a few things
-Changed a few things
-Should be faster
-Normals should be unit length now
-Normals no longer export unless you activate normal smoothing

I played around with converting other object types to mesh types and posted the results in the developement thread if anyone has not seen that yet.

Inside Blender it seems you can smooth certain faces of a mesh without smoothing the entire mesh so....I tried and failed to get normal smoothing working per face instead of per mesh. Not sure if this is possible but I failed at making it a working feature.

Enjoy! :)
Content contained in my posts is for informational purposes only and is used at your own risk.

ryandaniels
Posts: 38
Joined: Sat Jan 19, 2008 3:13 pm

Post by ryandaniels » Thu Feb 14, 2008 3:21 pm

This may sound like an idiotic question, but how in the world am
I supposed to use a .py file?

User avatar
psor
1st Place Winner
Posts: 1295
Joined: Sun Jun 25, 2006 1:25 am
Location: Berlin
Contact:

Post by psor » Thu Feb 14, 2008 3:28 pm

@ryandaniels

Idiotic question? There is no ... ;)

A .py file is a file that contents code from the python programming language
and in the case of blender you've to copy the exporter (the .py file) to ...

On Windows:

Code: Select all

INSTALLDIR\.blender\scripts
On Linux:

Code: Select all

~/.blender/scripts
Restart blender and you'll find the exporter under ... File --> Export ...

Have fun! ;o))




take care
psor
"The sleeper must awaken"

Post Reply
16 posts

Who is online

Users browsing this forum: No registered users and 30 guests