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.