Export particles as matrices

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:Ok, I have been doing a bit more testing and it looks like some of my rotations are amiss. They are rotating the wrong way. I'll see what I can do.
Did you compensate for the rotated Octane world in your calculations? Octane coordinate system is rotated by 90 degrees around X, so that +Y is "up". While in Blender +Z is "up.

Also, looking at your code I don't understand why you are multiplying by 1000 and then dividing by 1000 all your matrix terms? Mathematically this is superfluous, as is casting them to integer. If you need to shorten some float value, you do it when you write it as string:

Code: Select all

print("%.7f" % float_value)
This will print some float as string, shortened on 7 decimal spaces. Cast to string is implied.

---------------------

Regarding support for instances in Blender, it would be nice and useful to know at which point the development of an alternate data exchange format is? Otoy should share info about its development and specification asap, so that people wont possibly waste time inventing hacks.
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
steveps3
Licensed Customer
Posts: 1118
Joined: Sat Aug 21, 2010 4:07 pm
Location: England

Ahh, thanks for that. I did say that I wasn't a python programmer :)
(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
Italic_
Licensed Customer
Posts: 32
Joined: Sun Oct 30, 2011 8:46 am
Location: San Francisco, CA
Contact:

Any new development on this plugin since July? If not, how could I rotate the export to be consistent with Octane's world settings, whether post- or pre-export? I'm most definitely not a python coder, but I might be able to figure it out if I'm pointed in the right direction.
GTX 970 (4GB) | GTX 560 Ti (2GB) | 361.45.18
Centos 7 | Win7
Octane 3.05.3 | Blender git | Exporter v1.51
User avatar
matej
Licensed Customer
Posts: 2083
Joined: Fri Jun 25, 2010 7:54 pm
Location: Slovenia

Italic_ wrote:Any new development on this plugin since July? If not, how could I rotate the export to be consistent with Octane's world settings, whether post- or pre-export? I'm most definitely not a python coder, but I might be able to figure it out if I'm pointed in the right direction.

See here
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
Post Reply

Return to “Blender”