» Lining up Subsets
This site relies heavily on Javascript. You should enable it if you want the full experience. Learn more.

Lining up Subsets

question open misc legacy

AlphaZen 23/10/06 - 12:08

I read that little tutorial about exporting x-files in blender. It mentions that the different objects can be lined up with a linear spread. But how is that done?

And something I'm wondering about: When I load a blender-exported x-file and connect the XFile (EX9.Geometry Load)-node with a Count (EX9.Geometry Mesh)-node the SubsetCount allways says 1. I did like the tutorial said. Shouldn't there be as much subsets as objects are in that scene? Or did I misunderstand it?

13 replies 0 new
This is a legacy thread which was closed after one year of inactivity. Information provided in this thread may not be valid for the latest version of vvvv. If you have questions on this topic, you might consider opening a new thread.

link | elektromeier 23/10/2006 - 14:35

Do you mean this tutorial: http://vvvv.org/tiki-index.php?page=elektromeier+TutorialBlender
?

to lign up subsets just connect a transform node to the shader node.

then connect a linear spread to the transform node (to the transform x inlet for example)

your x file just have one subset. make sure to use the exporter mentioned in the tutorial. and you have to assign a material to each obect you want to have as separate subset.

link | AlphaZen 24/10/2006 - 11:29

replying to this one,too:
.x to .dxf

I'm using the right exporter/importer ;)

But as soon as I separate some vertices as you say in your tut to make them single objects, I can't import the file again after exporting it. There the problem with that "index out of range" thing occurs. To me it looks like ben's importer couldn't handle his own subsets... if there are any. They should be there because the first object allways gets imported. Only the further ones not.
But vvvv says, that the same file only has one subset and merges all separated objects back to one single object (and I assigned a material to each of the objects).

May you send me or upload a .blend-file with your setup and an .x-export out of that file? I can compare it with mine then. Maybe I will find what's wrong.

link | elektromeier 25/10/2006 - 11:15

yeah youre right about importing subsets with the importer same for me... i tried first to import an xfile without subsets and that worked fine. i think theres no way to generate subsets in vvvv, and therefore also no way to save them in an .xfile. am i right? so importing .x files exportet with vvvv work...

maybe we should get in touch with ben omari. i once tried to mail him but he never replied?

but at least you managed to export subsets from blender then?

i attached a file that shows how to align subsets in vvvv in a line... and do some other playfulls stuff with it. it also uses texture cordinates created in blender. the blend file is included.

link | AlphaZen 25/10/2006 - 12:08

Thank you a lot!

Someone called "rakar" at the Blender Forum took Ben's script and edited it so that it shows failures while exporting. He also improved (or at least he wanted to) some other things. But the problems stay the same as with Ben's original one (that index-thing).
And I'm not the only one having this problems.

> but at least you managed to export subsets from blender then?

ehm... don't know. doesn't look so. I'm watching at your .blend file and you seem to made one or more settings I can't recreate. Exporting your scene again works fine, subsets are there. But when creating an own scene it fails creating subsets....

The only difference I discovered is, that your letters are drawn in pink when switching to "Draw type: textured"
I will have a look into blender's manual to find out why.

link | elektromeier 25/10/2006 - 12:13

can you send me your blendfile that doesnt work... i have a look at it.. i think the materials are not binded to the objects like the xporter likes it... when you attach a new material there are two buttons OB and ME. im not sure what the difference is exactly but for me it works only when i add the material with OB activated. the bindings in the outliner looks also differnt when you do it this way...

link | AlphaZen 25/10/2006 - 12:20

I found what's wrong ^^

In your tutorial you say: "Make sure that the "OB" button is active and "ME is disabled". It has to be quite the other way. ME has to be active and OB disabled when creating a material. I did it that way and all of a sudden it worked. :)

link | elektromeier 25/10/2006 - 12:26

thats strange for me its the other way round... i dont really understand that different binding method of materials and stuff in blender... it not really documented grrr i remember i stumbled over that me ob stuff as well and i tried really a lot, and i remember that i once did it the other way and it worked and when i tried later it dindt work anymore...

link | AlphaZen 25/10/2006 - 13:36

as far as I understood it ME sticks the material to the mesh itself. OB sticks it to the object. An object is unique in Blender whereas a mesh isn't. You can create the object "cube" and afterwards you can assign the mesh of a cylinder to it. The object name stays the same, the mesh name changes from cube to cylinder (or whatever it is named to).

Little example: create one cube and one sphere. assign a material to the cube with OB activated. when you then change the mesh from cube to sphere (F9, under Link and Materials, the choice box called "ME: cube") the sphere has the same color like the cube had because its linked to that object. when you create the material with ME activated and then change the mesh to sphere, the material is "gone" because you have an other mesh to which you didn't assign a material yet.

I hope it's somehow understandable...

link | elektromeier 25/10/2006 - 15:31

mh yeah i understand less or more... i think the best thing is t get in touch with omari or the other gui you mentioned... because the documtation of his exporter really lacks a lot of things... you can see that very good in the outliner when you change too "Oops Schematic"

i dont understand why materials are defining subsets does that make sense at all? i thing groups would be a better choice to define the subsets. but i havent a clue about blenders internal datastructure...

i will rework the tutorial if i really really now whats going on there exactly. maybe we should add some instructional pictures too

link | elektromeier 25/10/2006 - 15:37

Can you post your blend file with correct attached materials so i can compare it in the outliner with my working file?

link | oschatz (vvvvgroup) 25/10/2006 - 17:41

> why are materials defining subsets? does that make sense at all?

sorting drawn objects by material is one of the basic optimizations in most rendering engines - so you need to set the material parameters in the graphic card only after a group of objects. subsets can be used for this purpose - and many modellers support this optimization deep down in the oldest part of their code. so it makes absolutely sense if blender does it in the way you´re describing..

link | AlphaZen 25/10/2006 - 17:50

> Can you post your blend file with correct attached materials so i can compare it in the outliner with my working file?

Sure. here it is.

link | elektromeier 26/10/2006 - 11:35

thanks for the mesh... i try out later at the moment im quite busy.

anonymous user login

Shoutbox

~6h ago

mediadog: Search broken: sez solr search not available, clicking tags does not limit search - ideas?

~10h ago

lecloneur: cheers m4d !

~11h ago

mrboni: hokay, thanks

~12h ago

guest: nope, usb3 and win8 only

~12h ago

mrboni: anyone know if kinect 2 will work with a usb 2 port?

~13h ago

m4d: @lecloneur: very nice. all the best for your mekaviz venture!

~17h ago

lecloneur: MekaViz video now online : https://vimeo.com/92187171

~2d ago

zeos: @sinus:10x! That's kind of docu version ;) I am working on a mocumentary version ;)