|
3D problem, drawing a plane, sprites, camera |
giewueron
Member #7,433
July 2006
|
Hi |
Archon
Member #4,195
January 2004
|
Quote:
I'm trying to make a 3d Wah! Contradiction! Quote: The problem is I don't get all that Allegro 3D stuff. Me neither. What I mean is, you should use OpenGL because it's faster and the calculations would be done for you and all. The camera solution is there for you in related tutorials plus there is lots of help. I'm not sure if Allegro's 3D functions will be around in the future. Look up 'billboarding' if you are still doing Doom-style character drawings. Moving the camera around is a breeze. You just need to move everything else the opposite of where you want to go (because they appear to move like that). |
giewueron
Member #7,433
July 2006
|
I actually did something but doesn't work. What's wrong? ;<
|
Zaphos
Member #1,468
August 2001
|
Matt Smith posted starter code which could give you a boost in the right direction -- it sets up the ball and the pitch for you. He posted it over in this thread ... edits: while (timer) { } and it doesn't look like you ever decrement timer, only increment. You probably meant while (timer) { // logic to go here later timer--; }
|
Niunio
Member #1,975
March 2002
|
Maybe you can use "mode7" trick to render the grass and render sprites using pivot_scaled_sprite. Pixwiki still broken so I've attached (again) the tutorial that explains "mode7" using Allegro. ----------------- |
giewueron
Member #7,433
July 2006
|
I looked at that mode 7 stuff and seems it would fit here. Maybe instead of that textured plane or stretch sprite I could just line by line draw it, using that divide by z, so it would be like a little perspective correct. |
BAF
Member #2,981
December 2002
|
Quote: Pixwiki [pixwiki.bafsoft.com] still broken so... Fixed. |
giewueron
Member #7,433
July 2006
|
Thanks for the mode 7 suggestion. All works like it should. |
|