Page 3 of 15

Re: Blender instances "patch" for the unofficial exporter

Posted: Sun Jul 29, 2012 11:45 am
by matej
Again, I've edited my post after you posted :)

I'll look at it later, now F1 starts... :D

Re: Blender instances "patch" for the unofficial exporter

Posted: Sun Jul 29, 2012 11:57 am
by ROUBAL
Sorry for the useless work. Most probably it was due to a random parameter enabled in the geometry panel of Blender. Thanks again ! :)

Re: Blender instances "patch" for the unofficial exporter

Posted: Sun Jul 29, 2012 1:03 pm
by mirobimbo
ROUBAL wrote:Sorry for the useless work. Most probably it was due to a random parameter enabled in the geometry panel of Blender. Thanks again ! :)
But random parameters for Z rotation and scale are needed to be used for grass. Your grass is completely uniform.

Re: Blender instances "patch" for the unofficial exporter

Posted: Sun Jul 29, 2012 1:20 pm
by ROUBAL
Yes, but using random in the velocity panel (under Emitter Object) seems to give bad results.

The Random size must bu used instead of the random velocity.

Re: Blender instances "patch" for the unofficial exporter

Posted: Sun Jul 29, 2012 2:26 pm
by steveps3
I've got it working now. excellent :)

Re: Blender instances "patch" for the unofficial exporter

Posted: Sun Jul 29, 2012 2:39 pm
by kavorka
I have a scene that uses group instances. I have tried exporting using the directions, but no .cvs files gets created. Does it work with group instances?

Re: Blender instances "patch" for the unofficial exporter

Posted: Sun Jul 29, 2012 2:50 pm
by ROUBAL
@kavorka : I have just tested right now, and all particles of the same group are displayed at the same location. So, we have to export several CSV Scatter files, one for each particle type. This can be done in two ways at least : using the Particle Object mode different particle emitters, or simpler by changing the Seed value (and if wanted, the particle number) and exporting each time a new CSV file (for the scatter node of each particle object). It is better renaming it each time otherwise it will be overwritten.

Re: Blender instances "patch" for the unofficial exporter

Posted: Sun Jul 29, 2012 2:59 pm
by steveps3
When I just tried it I had to add a Y rotation of -90 degrees to me instanced object in order to get the Octane scene to look the same as blender. Something I am doing wrong?

Re: Blender instances "patch" for the unofficial exporter

Posted: Sun Jul 29, 2012 3:19 pm
by ROUBAL
I think that in Blender particle system you have to select Object X in the rotation/Initial Orientation field, or turn your particle object of 90° around Y axis. It is a weird thing that I have often noticed in tutorials...

Re: Blender instances "patch" for the unofficial exporter

Posted: Sun Jul 29, 2012 4:00 pm
by matej
kavorka wrote:I have a scene that uses group instances. I have tried exporting using the directions, but no .cvs files gets created. Does it work with group instances?
No, only object visualization works. To transfer a group into Octane you would need a scatter node (.cvs file) for each element in the group. This is not a problem. The question is how to get the info which object from the group a particular particle uses as visualization. There is no access for this info in the particle API. I've posted a question in the blender artists forum, but as of now I got no answers. You'll have to use a different PS for each object.
steveps3 wrote:When I just tried it I had to add a Y rotation of -90 degrees to me instanced object in order to get the Octane scene to look the same as blender. Something I am doing wrong?
If you rotate or scale the visualization object in Blender, you have to re-export it's mesh, to look correct in Octane. I'll post an update that writes .obj automatically each time you export transforms.

@Roubal, those scaling is indeed wrong. The problem is that every parameter in the "velocity" panel, also affects the size of the particle. But through the API only the "base size" value is exposed. You also have a "velocity" vector. Now only to figure out how to use that vector to re-scale the transform :)

EDIT: For the time being, everything in the velocity panel is not to be touched. :) Will post an update in the evening (hopefully)