Export particles as matrices

Forums: Export particles as matrices
Blender (Export script developed by yoyoz; Integrated Plugin developed by JimStar)

Re: Export particles as matrices

Postby matej » Fri Jul 27, 2012 11:19 am

matej Fri Jul 27, 2012 11:19 am
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
matej
Licensed Customer
Licensed Customer
 
Posts: 2083
Joined: Fri Jun 25, 2010 7:54 pm
Location: Slovenia

Re: Export particles as matrices

Postby steveps3 » Sat Jul 28, 2012 9:04 am

steveps3 Sat Jul 28, 2012 9:04 am
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
steveps3
Licensed Customer
Licensed Customer
 
Posts: 1118
Joined: Sat Aug 21, 2010 4:07 pm
Location: England

Re: Export particles as matrices

Postby Italic_ » Mon Nov 19, 2012 9:18 pm

Italic_ Mon Nov 19, 2012 9:18 pm
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
Italic_
Licensed Customer
Licensed Customer
 
Posts: 32
Joined: Sun Oct 30, 2011 8:46 am
Location: San Francisco, CA

Re: Export particles as matrices

Postby matej » Mon Nov 19, 2012 11:13 pm

matej Mon Nov 19, 2012 11:13 pm
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
User avatar
matej
Licensed Customer
Licensed Customer
 
Posts: 2083
Joined: Fri Jun 25, 2010 7:54 pm
Location: Slovenia
Previous

Return to Blender


Who is online

Users browsing this forum: No registered users and 3 guests

Thu Jul 02, 2020 8:56 am [ UTC ]