Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Ian Ross has just released a book on Anim8or. It's perect for a beginner and a good reference for experienced users. It contains detailed chapters on every aspect, with many examples. Get your own copy here: "Anim8or Tutorial Book"

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - charles

Pages: [1]
1
General Anim8or Forum / Re: i wanna make a game
« on: April 10, 2013, 10:20:34 am »
For general game design I like PHP. It's easy to program and has a really powerful dictionary data type that makes game graph design easy. Since the syntax is basically C, the programs can be ported if necessary, although that's some work because the data class doesn't exist in C. Still, I have done it, written a game in PHP and moved it to C++.

2
General Anim8or Forum / Re: How to load in C++?
« on: April 03, 2013, 01:31:07 pm »
Ok, nvr mnd

3
General Anim8or Forum / Re: How to load in C++?
« on: April 03, 2013, 04:17:50 am »
To anyone wondering why I want to be able to export and import to Anim8or: I am new to this application and I don't know all it's capabilities and features but I am pretty sure it doesn't do everything I want to do. Imagine a figure of some sort, a stick person, a robot or some other character that I want to move around in a natural looking way. I think this application will create the 3D character but I want to add the 4th dimension so I want to export the character to my own program that understands kinematics, spacial movements, joint flexure and such. For example to move an arm I must know where the shoulder joint is. That determines the position of the elbow which determines the position of the wrist, etc. I don't want to manually compute all the movements, I want a program to compute a complete sequence. Does this explain why I want to export objects to g++?

4
General Anim8or Forum / Re: How to load in C++?
« on: March 31, 2013, 12:27:12 am »
Here's the thing, I'm new and don't know my way around. What I'd like to see is the file posted here. It's not huge, about 40 lines I think, and it's much harder to find than it ought to be, IMO.

When I discovered that it wasn't in the install package and after I looked in the docs, I created one by reverse-engineering the .c file and mine worked. As far as I can see, mine is pretty much the same as the official one except I put char[] in place of the char* and created #define NAMELEN and such to give the arrays a size. I don't see how char* get initialized properly since the char* needs an address and the text needs a place. To me

char name[NAMELEN] ;

was a more natural way to define strings.

Anyway, can we just get it posted here please?

5
General Anim8or Forum / Re: How to load in C++?
« on: March 30, 2013, 05:28:07 am »
Okay, I just tried this and the compile failed with "excess elements in aggregate initializer" on the g++ compiler. The problem appears to be an extra field in the .c file not defined in Anim8orExport.h. There seem to be two errors here, one is a field in Anim8orMaterial called Environment Texture, of type char * and there's another at the aggregate level I haven't found yet. Clearly the .h file does not reflect the same version as the .c.

6
General Anim8or Forum / Re: How to load in C++?
« on: March 29, 2013, 10:55:37 pm »
The main problem I had with the export file was invalid variable names. If the "name" field contained ' ', '~', '-', or other characters not allowed in C variable names, they get propagated to the .c output.

Pages: [1]