Page 2 of 2

Re: Export particles as matrices

PostPosted: Fri Jul 27, 2012 11:19 am
by matej
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.

Re: Export particles as matrices

PostPosted: Sat Jul 28, 2012 9:04 am
by steveps3
Ahh, thanks for that. I did say that I wasn't a python programmer :)

Re: Export particles as matrices

PostPosted: Mon Nov 19, 2012 9:18 pm
by Italic_
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.

Re: Export particles as matrices

PostPosted: Mon Nov 19, 2012 11:13 pm
by matej
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