Page 2 of 15
Re: Blender instances "patch" for the unofficial exporter
Posted: Sun Jul 29, 2012 10:48 am
by matej
steveps3 wrote:Do you have to make the particle system real or something like that?
No. You must have the emitter object selected when you export the transforms, else it does nothing.
Re: Blender instances "patch" for the unofficial exporter
Posted: Sun Jul 29, 2012 10:49 am
by ROUBAL
@Matej :
First test with Hair Particles : Grass tufts in a field.
The grass tuft mesh is at World origine (0,0,0). The ground mesh is at World origin as well. Rotation and scale 1/1 applied to both.
1-Exported the Grass tuft (particle object) as OBJ file.
2-Exported the Ground mesh as OBJ file.
3-Selected the Ground (particle emitter) mesh and exported the CVS file.
Rotation enabled on duplicated objects following your advice (tested also disabled).
Problem : The grass tufts are not stuck on the ground , but seem instead to be at random altitude : 
Re: Blender instances "patch" for the unofficial exporter
Posted: Sun Jul 29, 2012 10:53 am
by matej
@Roubal, I see. My bad for doing tests only with planar emitters. I'll check this behavior in the afternoon / evening.
Actually, that setup should work (see the heart render in the first post - basically the same thing as grass). Could you post an example scene? You dont need to post the grass models, just use cones or something that has obvious directionality.
Re: Blender instances "patch" for the unofficial exporter
Posted: Sun Jul 29, 2012 11:01 am
by Elvissuperstar007
Hello please tell me what world coords orientation octane have relatively to 3ds max?
FileName = GetSaveFileName types:"object coordinates |*.csv|"
if FileName == undefined then Exit
File = CreateFile FileName
for obj in $ do
(
f = obj.pos
axismatrix = obj.rotation as matrix3
rotmatrix1 = rotateXMatrix 90
rotmatrix3 = rotateZMatrix 90
--rotmatrix2 = rotateXMatrix 0
axis = (axismatrix * rotmatrix1)
--axis = (axis * rotmatrix2)
axis = (axis * rotmatrix3)
c1 = axis.row1 [1]
c2 = axis.row1 [2]
c3 = axis.row1 [3]
c5 = axis.row2 [1]
c6 = axis.row2 [2]
c7 = axis.row2 [3]
c9 = axis.row3 [1]
c10 = axis.row3 [2]
c11 = axis.row3 [3]
Format ("% % % % % % % % % % % %\n") c1 c2 c3 (f.x as float) c5 c6 c7 (f.z as float) c9 c10 c11 (-f.y as float) to:file
)
close file
print "File was created"
)
Re: Blender instances "patch" for the unofficial exporter
Posted: Sun Jul 29, 2012 11:01 am
by ROUBAL
@Matej : I have just tested with Planar emitter : I encounter the same trouble ! Very weird !
Edit : I have done an other test, and this time i exported the reference grass tuft with the ground mesh : it worked fine.
I tested again on a bumpy terrain, with success. I then tried again to export the terrain mesh only, and it worked fine.
So it may be a temporary bug. I will do more trials.
Re: Blender instances "patch" for the unofficial exporter
Posted: Sun Jul 29, 2012 11:04 am
by matej
ROUBAL wrote:@Matej : I have just tested with Planar emitter : I encounter the same trouble ! Very weird !
I edited my previous post
Re: Blender instances "patch" for the unofficial exporter
Posted: Sun Jul 29, 2012 11:09 am
by matej
Elvissuperstar007 wrote:Hello please tell me what world coords orientation octane have relatively to 3ds max?
Octane "up" is +Y, another usual setup is (like Blender) +Z for "up". To rotate from Blender to Octane, you need a rotational matrix of -90 around X. I duuno what orientation Max has, just look in the viewport.
Dont you Max guys have an integrated plugin, or something

Re: Blender instances "patch" for the unofficial exporter
Posted: Sun Jul 29, 2012 11:13 am
by ROUBAL
@Matej : Edited my previous post as well : it works now ! I have no idea of what was going wrong !
One remark, though : the size of the particles (grass tufts) is not the same in Blender and in Octane. With Dupliface, the size is the same.
Re: Blender instances "patch" for the unofficial exporter
Posted: Sun Jul 29, 2012 11:20 am
by matej
ROUBAL wrote:
One remark, though : the size of the particles (grass tufts) is not the same in Blender and in Octane. With Dupliface, the size is the same.
Post a screenshot of your PS settings (velocity, physics, render & rotation panels open). From what I have tested scaling worked, but particles are dependent on many settings that I've missed to try and could screw things up.
(if you could post a sample scene, it would be even better)
EDIT: When you do any corrections (like scaling) to the original dupli object, you must re-export it's mesh, so that Octane works with the new mesh. I've partially written support for automatic export of dupli mesh to .obj/.mtl (works for PS, but not correctly yet for dupli emitters).
Re: Blender instances "patch" for the unofficial exporter
Posted: Sun Jul 29, 2012 11:42 am
by ROUBAL
@Matej: everything here : blend, ocs, obj, mtl and csv.
Well, it seems to work now ! Maybe I had left a random parameter enabled by error in the geometry panel of Blender. So don't waste too much time now. I will tell you if it occurs again ! Thanks for your work ! Sorry for the trouble !