Blender instances "patch" for the unofficial exporter

Blender (Export script developed by yoyoz; Integrated Plugin developed by JimStar)
User avatar
matej
Licensed Customer
Posts: 2083
Joined: Fri Jun 25, 2010 7:54 pm
Location: Slovenia

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.
SW: Octane 3.05 | Linux Mint 18.1 64bit | Blender 2.78 HW: EVGA GTX 1070 | i5 2500K | 16GB RAM Drivers: 375.26
cgmo.net
User avatar
ROUBAL
Licensed Customer
Posts: 2199
Joined: Mon Jan 25, 2010 5:25 pm
Location: FRANCE
Contact:

@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 : :roll:
Attachments
ParticlesInstances.jpg
French Blender user - CPU : intel Quad QX9650 at 3GHz - 8GB of RAM - Windows 7 Pro 64 bits. Display GPU : GeForce GTX 480 (2 Samsung 2443BW-1920x1600 monitors). External GPUs : two EVGA GTX 580 3GB in a Cubix GPU-Xpander Pro 2. NVidia Driver : 368.22.
User avatar
matej
Licensed Customer
Posts: 2083
Joined: Fri Jun 25, 2010 7:54 pm
Location: Slovenia

@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.
Last edited by matej on Sun Jul 29, 2012 11:03 am, edited 1 time in total.
SW: Octane 3.05 | Linux Mint 18.1 64bit | Blender 2.78 HW: EVGA GTX 1070 | i5 2500K | 16GB RAM Drivers: 375.26
cgmo.net
User avatar
Elvissuperstar007
Licensed Customer
Posts: 2506
Joined: Thu May 20, 2010 8:20 am
Location: Ukraine/Russia
Contact:

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"
)
Last edited by Elvissuperstar007 on Sun Jul 29, 2012 11:02 am, edited 1 time in total.
win 7 /64x C2Quad 6600 2.4/ Nvidia 9800 GX2 1gb 512 bit + Asus 480 GTX/ DDR2 8Gb / NVIDIA 460 GTX 2GB/2x NVIDIA 580 GTX 3GB
Page octane render " В Контакте " http://vkontakte.ru/club17913093
User avatar
ROUBAL
Licensed Customer
Posts: 2199
Joined: Mon Jan 25, 2010 5:25 pm
Location: FRANCE
Contact:

@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.
Last edited by ROUBAL on Sun Jul 29, 2012 11:11 am, edited 2 times in total.
French Blender user - CPU : intel Quad QX9650 at 3GHz - 8GB of RAM - Windows 7 Pro 64 bits. Display GPU : GeForce GTX 480 (2 Samsung 2443BW-1920x1600 monitors). External GPUs : two EVGA GTX 580 3GB in a Cubix GPU-Xpander Pro 2. NVidia Driver : 368.22.
User avatar
matej
Licensed Customer
Posts: 2083
Joined: Fri Jun 25, 2010 7:54 pm
Location: Slovenia

ROUBAL wrote:@Matej : I have just tested with Planar emitter : I encounter the same trouble ! Very weird !
I edited my previous post
SW: Octane 3.05 | Linux Mint 18.1 64bit | Blender 2.78 HW: EVGA GTX 1070 | i5 2500K | 16GB RAM Drivers: 375.26
cgmo.net
User avatar
matej
Licensed Customer
Posts: 2083
Joined: Fri Jun 25, 2010 7:54 pm
Location: Slovenia

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 :D
SW: Octane 3.05 | Linux Mint 18.1 64bit | Blender 2.78 HW: EVGA GTX 1070 | i5 2500K | 16GB RAM Drivers: 375.26
cgmo.net
User avatar
ROUBAL
Licensed Customer
Posts: 2199
Joined: Mon Jan 25, 2010 5:25 pm
Location: FRANCE
Contact:

@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.
French Blender user - CPU : intel Quad QX9650 at 3GHz - 8GB of RAM - Windows 7 Pro 64 bits. Display GPU : GeForce GTX 480 (2 Samsung 2443BW-1920x1600 monitors). External GPUs : two EVGA GTX 580 3GB in a Cubix GPU-Xpander Pro 2. NVidia Driver : 368.22.
User avatar
matej
Licensed Customer
Posts: 2083
Joined: Fri Jun 25, 2010 7:54 pm
Location: Slovenia

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).
Last edited by matej on Sun Jul 29, 2012 11:43 am, edited 1 time in total.
SW: Octane 3.05 | Linux Mint 18.1 64bit | Blender 2.78 HW: EVGA GTX 1070 | i5 2500K | 16GB RAM Drivers: 375.26
cgmo.net
User avatar
ROUBAL
Licensed Customer
Posts: 2199
Joined: Mon Jan 25, 2010 5:25 pm
Location: FRANCE
Contact:

@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 !
Attachments
GrassParticles.zip
(604.91 KiB) Downloaded 297 times
Last edited by ROUBAL on Sun Jul 29, 2012 11:55 am, edited 2 times in total.
French Blender user - CPU : intel Quad QX9650 at 3GHz - 8GB of RAM - Windows 7 Pro 64 bits. Display GPU : GeForce GTX 480 (2 Samsung 2443BW-1920x1600 monitors). External GPUs : two EVGA GTX 580 3GB in a Cubix GPU-Xpander Pro 2. NVidia Driver : 368.22.
Post Reply

Return to “Blender”