Page 5 of 15
Re: Blender instances "patch" for the unofficial exporter
Posted: Mon Jul 30, 2012 11:26 am
by ROUBAL
@Kavorka : When importing an object, it is often with high specularity and not very visible, over all if it is small or displayed at some distance. Your object may be there... Try to play with environment lighting (rotate the sun direction to seek a reflection ).
Re: Blender instances "patch" for the unofficial exporter
Posted: Mon Jul 30, 2012 12:25 pm
by kavorka
When I just select my single chair node, it is visible and placed where it should be. I attached the scatter node to my geometry group, but then the chair disappears, but the triangle count says its there. My assumption is that the scatter node is scattering incorrectly.
Re: Blender instances "patch" for the unofficial exporter
Posted: Mon Jul 30, 2012 12:34 pm
by matej
kavorka wrote:When I just select my single chair node, it is visible and placed where it should be. I attached the scatter node to my geometry group, but then the chair disappears, but the triangle count says its there. My assumption is that the scatter node is scattering incorrectly.
Currently dupli object write does not work properly with dupli emitter, if you move the emitter from world origin (the object does not get re-centered)
Else, can you post an example .blend that exhibits this problem (it does not need to have the chair model)
Re: Blender instances "patch" for the unofficial exporter
Posted: Mon Jul 30, 2012 7:23 pm
by steveps3
kavorka wrote:When I just select my single chair node, it is visible and placed where it should be. I attached the scatter node to my geometry group, but then the chair disappears, but the triangle count says its there. My assumption is that the scatter node is scattering incorrectly.
What do you know, I am getting the same thing. The instances are absolutely nowhere to be seen.
Well I can see the problem. The matrices have been exported with a scale of zero.
0.0000000 0.0000000 0.0000000 -0.9810741 0.0000000 0.0000000 0.0000000 -0.0025638 0.0000000 0.0000000 0.0000000 0.3187820
0.0000000 0.0000000 0.0000000 0.9194058 0.0000000 0.0000000 0.0000000 -0.0030427 0.0000000 0.0000000 0.0000000 0.7303052
0.0000000 0.0000000 0.0000000 -0.5681733 0.0000000 0.0000000 0.0000000 -0.0027134 0.0000000 0.0000000 0.0000000 0.1050323
0.0000000 0.0000000 0.0000000 -0.0676142 0.0000000 0.0000000 0.0000000 -0.0086357 0.0000000 0.0000000 0.0000000 0.0124721
0.0000000 0.0000000 0.0000000 0.6799352 0.0000000 0.0000000 0.0000000 -0.0048563 0.0000000 0.0000000 0.0000000 0.0041003
0.0000000 0.0000000 0.0000000 0.5890252 0.0000000 0.0000000 0.0000000 -0.0049298 0.0000000 0.0000000 0.0000000 -0.8827631
Re: Blender instances "patch" for the unofficial exporter
Posted: Mon Jul 30, 2012 7:28 pm
by steveps3
I reverted back to the v1.0 of the script and all is fine. Something screwy in v1.5
Re: Blender instances "patch" for the unofficial exporter
Posted: Mon Jul 30, 2012 8:45 pm
by matej
I've updated the first post with a new version, 0.1.6
* automatic exporting the dupli object mesh(es) now works for dupli-emitters too (the file takes the name of the emitter + "_objects" suffix - since the emitter can have many children)
* transforming the dupli-emitter or the child objects (dupli objects) should result in correct instance transforms. So for dupli-emitters there is no more required that the dupli object is located at parent origin.
steve, kavorka, test this version. If the problem persist, post an example .blend, I haven't yet encountered such problem
Re: Blender instances "patch" for the unofficial exporter
Posted: Tue Jul 31, 2012 12:37 am
by kavorka
ok, I grabbed the newest file, and everything works perfectly, except, when it scatters my chairs, it scales them down to like a 10th of the size. I applied the scale to my chair and my emiter, but its still happening.
Anyone else get this problem?
EDIT:
Also, I should note that clicking on my chair mesh node shows the chair in the correct scale, also with it connected directly to my group node along side my scene mesh node, it shows the scale correctly, it is only when the scatter node takes effect that it scales down.
Re: Blender instances "patch" for the unofficial exporter
Posted: Tue Jul 31, 2012 5:24 am
by Aenima
Thanks Matej.
Just a side note but it would be nice if otoy can move her ass.
Re: Blender instances "patch" for the unofficial exporter
Posted: Tue Jul 31, 2012 5:43 am
by steveps3
A bit better but for some reason I am now getting a scaling factor of 4
4.0000000 0.0000000 0.0000000 0.7299656 0.0000000 4.0000000 0.0000005 1.0117099 0.0000000 -0.0000005 4.0000000 -0.4333910
4.0000000 0.0000000 0.0000000 -0.5470980 0.0000000 4.0000000 0.0000005 0.8958297 0.0000000 -0.0000005 4.0000000 0.8050458
4.0000000 0.0000000 0.0000000 1.1484637 0.0000000 4.0000000 0.0000005 0.4332794 0.0000000 -0.0000005 4.0000000 0.4864346
4.0000000 0.0000000 0.0000000 1.2265090 0.0000000 4.0000000 0.0000005 0.4626582 0.0000000 -0.0000005 4.0000000 0.1166105
4.0000000 0.0000000 0.0000000 0.2858431 0.0000000 4.0000000 0.0000005 -0.3472993 0.0000000 -0.0000005 4.0000000 1.2384622
I've attached the .blend. It really was a bung it together and render job so I apologise for not renaming the objects

Re: Blender instances "patch" for the unofficial exporter
Posted: Tue Jul 31, 2012 6:29 am
by matej
@steve, kavorka
I suppose its because it doesn't re-scale the "native unit size" correctly. I'll look into it, for now use the default meters.