Eat. Sleep. Code: The Computer Programming Thread, Ver. 010

Does anyone know a good starting place, like a tutorial, for moving 3d models/animating them.

I want to give a short presentation on this subject for a class and I want to learn it more in depth.

I’ve done linear alg, but I also need a reference for how the matrices are found for the model.

What do you mean by ‘found’? I recommend looking up lerp/slerp, and inverse kinematics,those are two methods that are often used in animating models. Usually animations/matrices are hierarchical, so you’ll have a base for the model(usually the body on a person), and then say the upper arms, neck, and hips connected to that, and then the head/lower arms etc… connected to those. All matrices applied to a part are applied to everything lower on the hierarchy as well and you simply multiply the matrices onto the combined matrix as you go down the hierarchy. IE if the body is moved you have translation matrix Bt, then the upper arm rotates in the zplane with matrix UAr, any matrix used to edit the lower arm is going to be new matrix * UAr * Bt.

I’m just kinda tossing out 3d animation stuff because I don’t really know what finding the matrices means, if you just want to know what a translation matrix looks like, or a 3d rotation matrix you can probably just google it and find a reference sheet, if you wanna know how to figure out WHAT the rotations are it’s, animations are usually created/key framed in 3ds max(or whatever your tool of choice is) and are then read in to opengl/directx/whatever.

I mean how do I know what matrix a body would have or what matrix the arm would have. Numerically.

So does Lisp still get used?

  • :bluu:

well if you care about how the model/bones/animations are CREATED then I’d look up some 3ds max tutorials, that’s where everything is set up. From there you export them to a file and then import into directx/opengl/whatever. So the information for what matrix everything would have is stored in some sort of structure.

Ending up with an infinite loop in javascript because a for loop has a nested for loop and both use “i” as the loop variable.

Where’s the Twix “Need a moment?” graphic when you need it?

Edit: And I just did it again, using “i” in a loop that called a function that also used a for loop using “i” resulting in the “i” getting overwritten and messing things up. Why don’t I learn? FML.

Anybody here have experience using Xilinx before? I’m trying to make .mcs files out of my projects but I keep getting this error.

“wait statement without UNTIL clause not supported for synthesis”

Any idea guys?

I haven’t done Xilinx in a long time, but your error statement says it all.

You have to “wait until” something. So look up the correct wait/until syntax in a manual and/or examples.

Whenever I got that, I had a ‘wait for certain period of time’ statement. Great for simulation, not so much for synthesis.

Any ideas where i can get some pesduo code written up?

Did some more troubleshooting and discovered that the reason why I couldn’t was because the projects’ schematics by themselves were useless, not only until I “mixed” them together in a hierarchical schematic did it work. In my case I had to mix my BCD counter schematic, college ID schematic and my flip flop schematic together.

Does anybody want to help me make a simple platformer about puking and sliding around in it?

Has anyone ever done a codesprint? I was thinking of trying it to see if I qualify. I’m gonna graduate in a few weeks and since companies look at this to hire potential employees I’m thinking of trying it. I’m looking over the sample questions and I’m thinking I can get at least top 20% (I checked the scores and most people solved at 1-2 questions in the top 20% and they qualified) if I have 5 hours to grind it out (the example questions at least).

Though i am worried since I actually signed up for the twitch.tv codesprint, since they might be more specific in what they want.

So I’m thinking about looking for internships in CS. Thing is though, I don’t know 1) what types are available, and 2) what courses I need, as well as 3) what to put/make in a portfolio.
I’ve had a year of programming/algorithms, an assembly language course, and a course in simulation and modeling.

I also have enough credits for a bachelors in mathematics

What do I need to get an internship? Do I have enough prereqs to even be considered? What do I need to even be considered?

The easiest thing is use your schools cs/math dept, if your at school. Its easier if you have people to network through too.

Sent from my SPH-D700 using Tapatalk 2

You have enough for an internship, you just need to talk to professors, staff, and look around the internets.

Even freshmen could be interns, they’d just do tedious tasks.

Easiest thing you can do is just apply for internships, my biggest regret going to college was not trying very hard to get an internship, it’s free work experience which makes it a million times easier to get a job. Portfolio just put interesting/hard projects you’ve done, it was easy for me because I had a bunch of games under my belt, but really anything that proves you can tackle and understand non trivial problems.

Yeah. Try as hard as you can to go for it. It took me at least 7 months after college to get my job, and that’s just minor office work with some data manipulation mixed in (at the moment). I only make 12.50 an hour right now, with perhaps a bump if they keep me past 90 days. I KNOW things would have went a lot smoother post college if I had more internships/volunteer work under my belt. I had only one volunteer spot, years before I graduated.
That volunteer work was the ONLY experience I had in my field. You absolutely want to pad your resume with a good deal of relative volunteer/internship work. Nothing feels more pitiful than trying to stretch your two months of relevant work experience in your field across dozens of resumes. On the bright side, I’m fairly certain that one of the bosses at this place knowing the exec director at that volunteer spot was a factor in me getting hired. Didn’t expect that.

Ok, I’ve started looking and I’ve found a bunch of them.

  1. Suppose I land an internship doing web design. Does that pigeonhole me into only web design jobs? (eg if I wanted to go into software development)

  2. I’ve noticed a lot of IT internships popping up when I looked for computer science stuff. Are the two mutually exclusive? Also, same question about pigeonholing myself and wanting to get into software development.

  3. Suppose I get a masters in CS. How would it help my job prospects? Also, Would I be applying for the same jobs as Ph.D holders have (and thus be at a disadvantage?)

Here are some pics of my game, which is still a WIP. I still need to redo the graphics and add sound. Feedback is welcome.

Title Screen

Spoiler

http://i34.photobucket.com/albums/d146/King9999/Tile%20Crusher%20WIP/TitleScreen.png

Just a placeholder. The tile background isn’t even lined up properly. :lol:

Menu

Spoiler

http://i34.photobucket.com/albums/d146/King9999/Tile%20Crusher%20WIP/Records.png

I decided that I wanted to keep track of various things, as it might be useful to the player in some way. I’m not sure if they’ll appreciate the game tracking ragequits though. :lol: I plan to include an additional button that will let the player erase the records and start over from the beginning.

Tutorial

Spoiler

http://i34.photobucket.com/albums/d146/King9999/Tile%20Crusher%20WIP/Tutorial1.png

http://i34.photobucket.com/albums/d146/King9999/Tile%20Crusher%20WIP/Tutorial2.png

I made slight changes to the tutorial screens. Basically, I re-positioned the text images on the tiles.

Level select

Spoiler

http://i34.photobucket.com/albums/d146/King9999/Tile%20Crusher%20WIP/LevelSelect.png

By beating every 5 levels, 5 more levels are unlocked. For the trial version, you only get the first 10, which are always unlocked from the start.

Levels

Spoiler

http://i34.photobucket.com/albums/d146/King9999/Tile%20Crusher%20WIP/Firstlevel.png

The way I designed the levels was that they get progressively (I hope) more challenging, but when I introduce a new feature, I make the level simple so that the player understands that the next set of levels are going to be based on this new mechanic. Here’s level 10:

http://i34.photobucket.com/albums/d146/King9999/Tile%20Crusher%20WIP/Tenthlevel.png

And then, after completing other complex levels, it goes simple again:

http://i34.photobucket.com/albums/d146/King9999/Tile%20Crusher%20WIP/Level15.png

And then from there, the levels increase in complexity using the new mechanic.

I’m trying to get the game published by May 15 so that I can enter it into a contest and win a prize for publishing it. The contest is here: www.developermovement.ca