3dsmax

Use a 32-bit assembly in 64-bit environment

不问归期 提交于 2019-12-01 06:50:09
问题 I am trying to integrate DevIL.NET into 3ds Max to automatically convert my images to a single format. To do so, I created a class library in C# that accepts a string and returns the new file path public static class FileConverter { public static string ConvertFile(string _sOriginal) { // Load the file, save the file, return the new filepath } } The project is referencing to DevIL.NET, which is a 32-bit build. My application is a 64-bit build and gives a BadImageFormatException . Saying that

How to implement camera pan like in 3dsMax?

落花浮王杯 提交于 2019-12-01 03:29:08
What are the necessary maths to achieve the camera panning effect that's used in 3ds max? In 3ds max the distance between the cursor and the mesh will always remain the same throughout the entire movement (mouse_down+mouse_motion+mouse_up). My naive and failed attempt has been trying to move the camera on the plane XY by using dt (frame time) multiplied by some hardcoded constant and the result is really ugly and uintuitive. The code I've got so far is: def glut_mouse(self, button, state, x, y): self.last_mouse_pos = vec2(x, y) self.mouse_down_pos = vec2(x, y) def glut_motion(self, x, y): pos

Git style backup of binary files

时光怂恿深爱的人放手 提交于 2019-11-28 22:01:46
I'm in process of integrating GIT version control system into 3ds max to control .max file versioning. I tested git with max files for several weeks and have found that it suites my needs, but, anyway, git is little bit overcomplicated for this kind of tasks. What I'm looking for is the program that works just like (well, almost) git, but: is naturally born windows program - git failed several times on my network shared folders and destroyed my binary max files. This is the main problem, and I don't know how to solve it. doesn't (doesn't even try to) process file content. I think that speeds