Blender and instanced object

Forums: Blender and instanced object
Blender (Export script developed by yoyoz; Integrated Plugin developed by JimStar)

Blender and instanced object

Postby vipvip » Wed Jul 18, 2012 10:29 am

vipvip Wed Jul 18, 2012 10:29 am
Do you gather is it ( or will be ) possible to use instanced objs with blender instanced particle system and the new octane standalone version ( version 1 beta 3.0 ) ?
Thanks for reply
vipvip
Licensed Customer
Licensed Customer
 
Posts: 726
Joined: Fri Apr 22, 2011 9:28 am

Re: Blender and instanced object

Postby face » Wed Jul 18, 2012 9:34 pm

face Wed Jul 18, 2012 9:34 pm
I think it isn´t possible because you can´t submit 1mio. matrixes via a command line...
It can be possible via a text file per master object, in which the matrixes are.

face
Win10 Pro, Driver 378.78, Softimage 2015SP2 & Octane 3.05 RC1,
64GB Ram, i7-6950X, GTX1080TI 11GB
http://vimeo.com/user2509578
User avatar
face
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 3204
Joined: Sat Mar 06, 2010 2:10 pm
Location: Germany

Re: Blender and instanced object

Postby vipvip » Thu Jul 19, 2012 4:47 am

vipvip Thu Jul 19, 2012 4:47 am
ok
thanks a lot for your answer
so it will be limited for a free creation-process...
vipvip
Licensed Customer
Licensed Customer
 
Posts: 726
Joined: Fri Apr 22, 2011 9:28 am

Re: Blender and instanced object

Postby steveps3 » Thu Jul 19, 2012 6:32 am

steveps3 Thu Jul 19, 2012 6:32 am
Luckily the blender exporter doesn't use the command line. It uses the .ocs file. The .OCS is idea for passing across transformation matrices.

As the sample file proves

<Node>
<name>Scatter</name>
<typename>scatter</typename>
<id>21</id>
<position>0.634 0.515</position>
<parameters>
<transforms>1.546 0 -1.501 223.571 0 2.155 0 0 1.501 0 1.546 48.762 1.87 0 -0.

## edited list ##

</transforms>
</parameters>
<inputnodepins>
<NodePin>
<typename>geometry</typename>
<id>0</id>
<pintype>20011</pintype>
<hasinternalnodegraph>false</hasinternalnodegraph>
</NodePin>
</inputnodepins>
</Node>
(HW) Intel i7 2600k, 16GB DDR3, MSI 560GTX ti (2GB) x 3
(SW) Octane (1.50) Blender (2.70) (exporter 2.02)
(OS) Windows 7(64)
User avatar
steveps3
Licensed Customer
Licensed Customer
 
Posts: 1118
Joined: Sat Aug 21, 2010 4:07 pm
Location: England

Re: Blender and instanced object

Postby yoyoz » Mon Jul 23, 2012 7:27 pm

yoyoz Mon Jul 23, 2012 7:27 pm
The main problem here is that instances are a modifier like others, and some transformations may apply to the geometry after it has been instancied. As they can be much more complex than what Octane supports, there's no real way to properly transfer them to Octane.

As it is a modifier, it also means that it is applied before the exporter has access to the geometry (you use all or none of the modifiers, not only some of them). Some wrkarounds can be alaborated, but at the end we fall into first problem.

Last but not the least, RS/Otoy don't want plugin developers playing with ocs files, seriously restricting our freedom to implement such stuff.
Desktop: Ubuntu 13.04 x64 - i7-3770K @ 3.5GHz - 32GB DDR3 - GTX670 2048MB
Laptop: Linux Mint 11 x64 - i7-2860QM @ 2.5GHz - 16GB DDR3 - Quadro 3000M 2GB
Software: NVidia 319.12 - Cuda 4.2.9 - Blender 2.66a
User avatar
yoyoz
Licensed Customer
Licensed Customer
 
Posts: 451
Joined: Sat Dec 25, 2010 9:59 am
Location: Belgium

Re: Blender and instanced object

Postby ROUBAL » Tue Jul 24, 2012 12:08 pm

ROUBAL Tue Jul 24, 2012 12:08 pm
In Blender, all instances don't use modifiers. In fact, only particles instances use a modifier.

Duplicating objects by using Alt-D instead of Shift-D create instances (shared mesh) not involving a modifier.

This kind of instances is very useful and necessary for repeated props incity scenes for example (street lights, balconies, windows, car wheels, detailed trees...). Exporting this kind of instances in Octane would solve most of the problems encountered with big scenes and would be very appreciated.

Particle instances are useful for grass, carpets, fur and large forest, but can be also done the same way by making real the particle system and converting the objects into shared meshes like done with Alt-D as well.

So, there is no more modifier at exporting time !
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
ROUBAL
Licensed Customer
Licensed Customer
 
Posts: 2199
Joined: Mon Jan 25, 2010 5:25 pm
Location: FRANCE

Re: Blender and instanced object

Postby steveps3 » Tue Jul 24, 2012 12:28 pm

steveps3 Tue Jul 24, 2012 12:28 pm
yoyoz wrote:Last but not the least, RS/Otoy don't want plugin developers playing with ocs files, seriously restricting our freedom to implement such stuff.


How does Maya do it then? Presumably because it is an official plugin then it can do it.

I am working on something that will export a particle system as a bunch of transformation matrices. It would be a darn site faster if I knew anything about the blender API. As I don't then it isn't. I have proven to myself that it will work I just need to get everything together in script form.

For example does anyone know how I tell whether the current object has a particle system attached. I've just wasted a lunch break trying to find the answer to that one.
(HW) Intel i7 2600k, 16GB DDR3, MSI 560GTX ti (2GB) x 3
(SW) Octane (1.50) Blender (2.70) (exporter 2.02)
(OS) Windows 7(64)
User avatar
steveps3
Licensed Customer
Licensed Customer
 
Posts: 1118
Joined: Sat Aug 21, 2010 4:07 pm
Location: England

Re: Blender and instanced object

Postby yoyoz » Tue Jul 24, 2012 8:33 pm

yoyoz Tue Jul 24, 2012 8:33 pm
You're right, I forgot about linked geometry, but unfortunately it doesn't make things easier...

- it would need some major change in the exporter to identify objects sharing geometry (which could be a mesh but not always)
- instanciated objects can have different modifiers applying to them, making final geometry different from each other
- still no way to send instance information through obj files
Desktop: Ubuntu 13.04 x64 - i7-3770K @ 3.5GHz - 32GB DDR3 - GTX670 2048MB
Laptop: Linux Mint 11 x64 - i7-2860QM @ 2.5GHz - 16GB DDR3 - Quadro 3000M 2GB
Software: NVidia 319.12 - Cuda 4.2.9 - Blender 2.66a
User avatar
yoyoz
Licensed Customer
Licensed Customer
 
Posts: 451
Joined: Sat Dec 25, 2010 9:59 am
Location: Belgium

Re: Blender and instanced object

Postby enricocerica » Tue Jul 24, 2012 9:06 pm

enricocerica Tue Jul 24, 2012 9:06 pm
Not easy indeed to handle instances with Blender.
As Yoyoz pointed it I think we should avoid using modifiers as they just can't be transported to Octane.
I made several tests and the only thing I could do for now is exporting particle instances matrix coordinates in an external file to be pasted in the scatter node, work pretty well but it really requires some work to fit a complete scene with trees, bushes and whatever requires instances.

By the way here is a quick test :
testInstances.jpg


The workflow :
I export my scene and during the export process the instances matrix coordinates are stored in separate files with the instanciated object as name.
I load the scene into Octane
Add the meshes to be instanciated in separate nodes (they should be exported individually)
Create the scatter node linked to each object
I copy the content of the file containing the matrix and past it in the scatter node for each instanciated object
Create a Geometry group node to mix the main scene and the instances
That's it ...
Modeling system : I7 32GB Windows 10 & Fujitsu Celsius H720
GPU : 1x Gigabyte GTX580 3GB + 1x MSI GTX780 3GB + 1x PALIT GTX780 6GB +1x Asus Stix GTX1070 8GB
http://www.myline.be
User avatar
enricocerica
Licensed Customer
Licensed Customer
 
Posts: 1012
Joined: Wed Nov 25, 2009 7:32 pm

Re: Blender and instanced object

Postby n1k » Tue Jul 24, 2012 9:43 pm

n1k Tue Jul 24, 2012 9:43 pm
I recently switched from 3ds max to blender. Would be very happy to se blender instances rendering in octane:)

Cheers,
n1k
[email protected], 8gb RAM, Gainward GF 460 GTX 2048mb,Win7 64bit.

http://continuum3d.blogspot.com/
User avatar
n1k
 
Posts: 401
Joined: Mon Jan 11, 2010 7:55 pm
Next

Return to Blender


Who is online

Users browsing this forum: No registered users and 14 guests

Fri Apr 19, 2024 11:32 pm [ UTC ]