Jump to content
  • Advertisement
Sign in to follow this  

Having problems with this 3D thing in flash... x.x

This topic is 3682 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi hm... I actually feel very embarassed for having to bring this to you people... but, I really need some help with this and I simply can't get the stuff I'm finding on google: I'm trying to make a 3D system in Flash, now you'll probably swear at me and tell me to go search for one that's already been made xD but really want to have something of "myself" on it. So here's the question: right now I'm not much into all that stuff about 3D world and stuff, so I did some simple code to do all those calculations and stuff of the matrixes, and then now I'm trying to make it rotate to. I thought it would be like something that would look like the "view" is rotating around itself or something. Well that's what I thought it would be. Turns out that the "Z" rotation makes the render tilt sideways, now I don't know if it's supposed to be like that or no, it's been ages since I last touched my 3D programs, but I'll suppose it is. But with the "X" and "Y" rotations, it takes the "block" on the middle of the scene (which is actually just a space filled with some dots floating there), and then it kind of deforms the block some way, it seems like it keeps the rotation centered on whatever is on the middle of the Flash Stage, and then everything around it moves forward or backward; dunno how to explain, it just doesn't look natural, doesn't look like the camera is actually inside the scene. I'll try to get some pics: I'm doing this: http://img510.imageshack.us/img510/2541/doingan2.png I think it should be like this: http://img259.imageshack.us/img259/3281/wantcv0.png (woot paint drawings )= ) It is like that, the camera "focuses" the middle and the rest distort around it, but I wanted to know how to make stuff rotate around the camera like it was looking around. BTW, my code isn't really too much, there's only one matrix representing the world transformations and the operations are applied to it and then applied to the vertices, I don't think I have a matrix for the camera if that matters :P Sorry if I'm annoying you people with my simple questions but it's kind of important for me! :) Thanks!

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!