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

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

Post by Wedge » Tue Mar 27, 2007 8:47 am

Yes I have been seeing this happen on my tests too. (not in Blendigo) My guess is the primitive uses Indigo units and some Blender scenes don't follow the units so the sphere is incorrectly sized in the scene.

I have not looked for a solution yet since I think it is unfixable.

DaveC: Is that scale * 2 a solution or did it only work in your scene? How big is your scene in Indigo units?

Update again (clearer I hope): I want to talk a little more about this... I am going to guess that scaling in edit mode alters its vertex data (or mesh data) to represent its size. Since Indigo primitives have no mesh data in Blender, it is only altered by scaling in Object mode. This alters the <scale> tags.

I'm still going to guess the scale value that we can take is a big variable and no equation can be figured because all scenes made in Blender can follow different units = different measurement.

But I have not tested all of these 'guesses.' :)

For Kram: I'm not sure what you mean by dimension. Blender gives us access to scale, rotation, and location. Of course we also get access to the mesh data. Blender scaling in edit mode alters this mesh data. Blender scaling in object mode alters the scale. It would seem like a useful value to have, dimension that is, that told the size of the object/mesh whatever as a whole. Right?
Last edited by Wedge on Tue Mar 27, 2007 9:37 am, edited 6 times in total.
Content contained in my posts is for informational purposes only and is used at your own risk.

User avatar
Stur
Posts: 594
Joined: Fri Nov 10, 2006 11:52 pm
Location: Nancy, France

Post by Stur » Tue Mar 27, 2007 8:53 am

Another (minor) bug : if an object is visible in more than one layer in blender, it will be exported into more than one instance in the xml file.

eg. if the object is visible in 5 layers, it will be instanced 5 times.

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

Post by DaveC » Tue Mar 27, 2007 9:06 am

Wedge, I believe scale*2 is definitely a solution. scale = radius. the size of the mesh dimensions is irrelevant. so a scale of 5 is equal to a radius of 5 meters.
The hardest part of BEING yourself is FINDING yourself in the first place...
http://thebigdavec.googlepages.com

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

Post by Wedge » Tue Mar 27, 2007 9:26 am

Ok DaveC, I will perform some more tests to understand more. Thank you for the solution.

Update: After more tests were performed...I find that the only problem is when you scale the mesh in edit mode. Since it alters the mesh data in this mode and not the scale, this is the problem. After placing a new uvsphere in my scene, and only scaling in object mode, I find no issues with scaling the sphere primitive.

If you alter the sphere primitive in any way in edit mode, delete it and place a new one in the scene and only change it in object mode.

I have scaled it a different size for a couple of test runs along with non-primitive objects in my test scene, and everything looks ok.
Content contained in my posts is for informational purposes only and is used at your own risk.

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

Post by zuegs » Tue Mar 27, 2007 8:34 pm

Yes, the primitives uses only the object scale. The idea was, that you create a sphere in your scene for the primitive, update the name to "*.sphere" and then scale it in object-mode to the correct size. Note that when you create a new sphere in blender it has a radius of 1BU. So, as long you resize the sphere in object-mode the object scale should match the final radius. Also note that this is only a workaround to use indigo-primitives as blender doesn't have such primitives :wink:

@Stur:
Another (minor) bug : if an object is visible in more than one layer in blender, it will be exported into more than one instance in the xml file.
Thanks, will check this :)

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

Post by DaveC » Tue Mar 27, 2007 9:05 pm

Thanks, Zuegs. I now know exactly what to tell people if they ever have this problem...

Are spheres the only primitives you can export? If not, does scale effect other primitives too?
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 » Tue Mar 27, 2007 11:49 pm

@DaveC:
I think there's a "*.plane" primitive too for an infinit plane. So you can create a blender plane and rename it, so indigo will just replace it with an infinit plane. For planes the object-position and object-rotation is used, so don't edit the mesh :wink:

pafurijaz
Posts: 12
Joined: Mon Jun 26, 2006 9:53 pm

TRANSPARENT PAPER

Post by pafurijaz » Wed Mar 28, 2007 2:21 am

HOW TO CREATE A TRANSPARENT PAPER WITH BLENDINDIGO? PLEASE SOMEONE SHOW ME THE MATERIAL SETTING PANEL, IF POSSIBILE.

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

Post by Kram1032 » Wed Mar 28, 2007 6:23 am

Here is a quick screen of blenders Dimension values!
It's the exact amount of BU in one of the three dimensions ;)
(standard cube = 2 2 2, as the site lengh is 2 BU ;) )
Attachments
Blender Dimension.png
Absolute Value in Blender
Blender Dimension.png (98.07 KiB) Viewed 2564 times

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

Post by Kram1032 » Wed Mar 28, 2007 6:27 am

transparent paper?
You mean paper with SSS or soft tissue / tissue paper / wrapping tissue? (which has SSS too :P)

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

Post by zuegs » Wed Mar 28, 2007 7:16 am

SMALL UPDATE

- replaced ImageSelector with FileSelector for better performance
- fixed bug when object is visible on more than on layer

:D

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

Post by Kram1032 » Wed Mar 28, 2007 7:19 am

can you use this Dimension?
It'S absolute, as already said ^^
It would be much easier to use this

thx, btw :D

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

Post by zuegs » Wed Mar 28, 2007 8:31 am

@Kram:
yes, i see all 3 dimensions :wink: , it seems that i can't access the dimensions values trough python, i will check this again. Thx for the hint :)

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

Post by Kram1032 » Wed Mar 28, 2007 8:54 am

good^^

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

Post by Wedge » Wed Mar 28, 2007 3:13 pm

As far as I can tell there is no documentation of a dimension value. I don't have the link with me now, but go to Blender main site, click download, click documentation, then follow the link to the Python 243 manual.

From here you can search away. :)
Content contained in my posts is for informational purposes only and is used at your own risk.

Post Reply
522 posts

Who is online

Users browsing this forum: No registered users and 70 guests