Here are some suggestions about what you could add to the engine.
- a different rotation system, not working with independent buttons but with a single circle. The object rotates in a different direction depending on the position of the mouse and at varying speeds. By the way you don't really need a slow sine and cosine function, use only the square root function... It can all be done, I did it.
- z-sorting, not too hard.
These are pretty simple to make: place a light at any position, then calculate the intersection of the line light-point and the "floor plane" parallel to the xz plane, for each point. Then redraw each line with the new coordinates.
You can also make an outdoor light by chosing not an origin of the light but it's direction (a vector). Then calculate parallel lines through each point and calculate the intersection with the floor. Easy! I'll let you figure out the math formulas all by yourselves (if you don't manage, mail me)
An extra thing would be different light intensities: the stronger the light, the darker the shadow (set alpha...); and why not light colours.
- full faces
If ever you manage this, MAIL ME!!!!!!!!!!
One last thing,
PLEASE RATE THIS TUTORIAL (highly)!
|» Level Advanced|
Rating: 9 Votes: 2631
|KStor is a student living in France and working with Flash during his free time...that is, not very much.|
|Download the files used in this tutorial.|
|Download (39 kb)|
|More help? Search our boards for quick answers!|