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

Announcements, requests and support regarding the Blender Indigo export script
Big Fan
Posts: 745
Joined: Tue Oct 17, 2006 9:37 am
Location: Nelson NZ

Post by Big Fan » Thu Apr 19, 2007 4:02 am

edited to remove all
Last edited by Big Fan on Mon May 07, 2007 12:53 am, edited 5 times in total.

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

Post by Kram1032 » Thu Apr 19, 2007 4:09 am

SURE!

User avatar
DaveC
Posts: 596
Joined: Mon Sep 11, 2006 12:20 am
Location: The Tottenham, London, UK
Contact:

Post by DaveC » Thu Apr 19, 2007 6:32 am

Yes. :D
The hardest part of BEING yourself is FINDING yourself in the first place...
http://thebigdavec.googlepages.com

zuegs
Posts: 380
Joined: Tue Jun 27, 2006 5:46 pm
Location: switzerland

Post by zuegs » Thu Apr 19, 2007 8:12 am

SMALL UPDATE to v0.7t7 beta1d

- added exponent for unform SSS value
- F-Stop accepts float values
- support for array modifier (seems to work already :wink: )
- add world dimension factor (for Kram1032) :wink:

@BigFan: nice colors... i can try to take it over if you have added some keyword comment to the changed lines (like: # BigFan)

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

Post by Kram1032 » Thu Apr 19, 2007 8:34 am

thanks :D
Great!

btw: maybe, you can extract the GUI- part only and make it easy to recolour the them yourself...
Then, you also (may) could add an "appearacne" tab with three options:
"zuegs" "BigFan" "Blendersettings"
and a forth one: "load your own"
It wont be very important and is about the last thing that's needed. Just an idea, for glamour and luxury xD

How hard is such a thing?
How boring is it?
And hjow much would it increase the size?

I guess... one's enough, but as there already are two, now...

User avatar
DaveC
Posts: 596
Joined: Mon Sep 11, 2006 12:20 am
Location: The Tottenham, London, UK
Contact:

Post by DaveC » Thu Apr 19, 2007 8:48 am

Are you sure the colours in big fan's screen shot aren't just based on his blender theme?
The hardest part of BEING yourself is FINDING yourself in the first place...
http://thebigdavec.googlepages.com

Big Fan
Posts: 745
Joined: Tue Oct 17, 2006 9:37 am
Location: Nelson NZ

Post by Big Fan » Thu Apr 19, 2007 10:23 am

edited to remove all
Last edited by Big Fan on Mon May 07, 2007 12:53 am, edited 1 time in total.

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

Post by Wedge » Thu Apr 19, 2007 4:07 pm

zuegs wrote:@kram:
you perfectly described the Number problem in your post. Currently we have some small workarounds for this in Blendigo. All RGB values has an additional "gain" multiplier (also SSS :wink: ) and in some other places we have a additional exponent Number Box (ex linear tonemapping has a value and a exponent Number which results in =value*10^exponent).
I like your nice idea :idea: about using text boxes to enter numbers... just the validation after input would give some extra code :roll: but not to much i think :wink:
Hi Zuegs, I think your post above is to me right?

Using text boxes for numbers is not my idea, this was used in 6t6 beta 1 exporter. Over last three months or so, from reading this exporter and working on it, I understand why it is designed the way it is. The text boxes used with error checking are in place for tonemapping settings. (for decimal place accuracy) It is fairly easy to use these boxes and perform the error checking.

Also in 6t6 b1, is a function to create a boolean (true or false) value that is all lower case. This solves the boolean problem I also talked about.

It would be cleaner code for developers and clearer GUIs for users if the numbers limitation was solved. :) (cleaner code for developers if the boolean problem was solved too)
Big Fan wrote:where is this number issue a practical limitation presently?

BTW I am working on a blendigo with more useful tooltips at the moment
Big Fan: The string boxes were used in the 6t6b1 exporter for the tonemapping settings. The same setup is used in the exporter updated by me. (which is based on the 6t6 b1 exporter) Not sure what Zuegs is using since I have not used this exporter yet. Opps, actually it looks like Zuegs explained this to me just above. :)
Content contained in my posts is for informational purposes only and is used at your own risk.

Big Fan
Posts: 745
Joined: Tue Oct 17, 2006 9:37 am
Location: Nelson NZ

Post by Big Fan » Sat Apr 21, 2007 1:45 am

edited to remove all
Last edited by Big Fan on Mon May 07, 2007 12:54 am, edited 2 times in total.

User avatar
DaveC
Posts: 596
Joined: Mon Sep 11, 2006 12:20 am
Location: The Tottenham, London, UK
Contact:

Post by DaveC » Sat Apr 21, 2007 3:01 am

It all works and looks very nice. Thanks, Big Fan. I've done the preview models and adjusted just a couple of lines in the script but I don't know about changing the version number. I guess that I'll wait to see what Zuegs says about it.

Basically, all of the preview files now use the same material name. So if anyone wants to make their own preview, they just need to make sure they call the material "previewmaterial" in blender, and when they change the xml, just include "previewmats.xml" where the preview material is declared.

I'll upload as soon as i know what version number i'm supposed to use ;)
The hardest part of BEING yourself is FINDING yourself in the first place...
http://thebigdavec.googlepages.com

zuegs
Posts: 380
Joined: Tue Jun 27, 2006 5:46 pm
Location: switzerland

Post by zuegs » Sat Apr 21, 2007 7:46 am

Hi BigFan, hi DaveC

Thanks for your work and engagement, for new version, we can name it "v0.7t7 beta 2" i think.
I have just some small questions/hints on some changes:

- around line 1370... following lines should be swapped i think:

Code: Select all

	file.write("\t</renderer_settings>\n\n")
	file.write("\t\t<super_sample_factor>%s</super_sample_factor>\n" %(SuperSample.val))    # BIGFAN	
- can you explain me your change on line 1457, please (before i had "/ 2" there):

Code: Select all

aperture_radius = focal_length / FStop.val * 5

zuegs
Posts: 380
Joined: Tue Jun 27, 2006 5:46 pm
Location: switzerland

Post by zuegs » Sat Apr 21, 2007 8:39 am

Oups... Big Fan... you added a bug :wink:

around line 854: you changed to second argument of "readWriteMaterial" to 1 but this should stay 0 here. So it should look like:

Code: Select all

	if evt == evtMatsMenu:
		mats = Blender.Material.Get()
		activeMaterial = mats[matsMenu.val-1]
		readWriteMaterial(activeMaterial, 0)

KilamMalik
Posts: 10
Joined: Sat Apr 21, 2007 8:50 am

Post by KilamMalik » Sat Apr 21, 2007 8:54 am

I have problems with Blendigo:

1) I map the materials that I have defined in Blender in the Blendigo exporter.

2) Go back to Blender and edit the scene. I remove an object that has material that was mapped in Blendigo.

3) Go to Blendigo exporter and get a python error:

Code: Select all

----------------------
BLENDIGO v0.7t7 BETA 1
----------------------
  Windows-platform: win32   os.sep: \
  indigo path: C:\Programme\Indigo\indigo_07_test5\indigo.exe
Traceback (most recent call last):
  File "<string>", line 2112, in event
  File "<string>", line 813, in materialEvent
NameError: global name 'activeObjectMat0' is not defined
I'm using Blendigo v0.7t7 beta1c, I have tried v0.7t5 beta3 too, but the same problem there.

Can anybody help?

Thanks.

zuegs
Posts: 380
Joined: Tue Jun 27, 2006 5:46 pm
Location: switzerland

Post by zuegs » Sat Apr 21, 2007 9:55 am

@KilamMalik:
thx for reporting this... i will try to fix that. I think the crash currently don't affect anything else, so you can just restart the script and continue ur work.

Big Fan
Posts: 745
Joined: Tue Oct 17, 2006 9:37 am
Location: Nelson NZ

Post by Big Fan » Sat Apr 21, 2007 10:02 am

edited to remove all
Last edited by Big Fan on Mon May 07, 2007 12:51 am, edited 3 times in total.

Post Reply
522 posts

Who is online

Users browsing this forum: No registered users and 21 guests