Advertisement

need advice for my lame-ass pong clone?

Started by March 11, 2003 07:17 PM
7 comments, last by jfclavette 21 years, 8 months ago
Ok, im basically trying to lear a bit about OO and D3D at the same time, (well i know a bit of OO but I want more.. more MORE). Thats why I do it. Its a pong ripoff in wich the "playfield" has a depth... And now I''m trying to setup my camera but nothing satisfies me. I''ve got one paddle at (-20, 0, 0) while the other is at (-20, 20, 20). I tried the camera at (0, y, -100) with various Ysbut nothing seems to look ok, so im thinking about playing with the Xs..... What kind of view would be fine to let the player play the best?... Right behind his paddle doesnt seem ok... maybe the upper right corner behind him... any suggestions ?
I teleported home one night; With Ron and Sid and Meg; Ron stole Meggie's heart away; And I got Sydney's leg. <> I'm blogging, emo style
Which axis is up? (I''ll assume y, if not swap them.)

paddle1: (-20, 0, 0)
paddle2: ( 20, 0, 0)
camera position: (0, 10, -45)
camera target: (0, 0, 0)
Chess is played by three people. Two people play the game; the third provides moral support for the pawns. The object of the game is to kill your opponent by flinging captured pieces at his head. Since the only piece that can be killed is a pawn, the two armies agree to meet in a pawn-infested area (or even a pawn shop) and kill as many pawns as possible in the crossfire. If the game goes on for an hour, one player may legally attempt to gouge out the other player's eyes with his King.
Advertisement
well if u are going to use the mouse to move the paddle y not let the arrow keys move/rotate the camera?

[edited by - linkmachien on March 11, 2003 9:40:05 PM]
-Link
tought of it, but i saw my play area as a big rectangular prism, so i guess it would be hard to say "dont go outside the area, he would only see wall.... tough a open-ended cylinder could be quite cool too... ill play with the idea
I teleported home one night; With Ron and Sid and Meg; Ron stole Meggie's heart away; And I got Sydney's leg. <> I'm blogging, emo style
Well I have never used d3d but shouldn''t there be some sort of backface culling that can be turned on so that you cant see out of the box/playing field but you can see in?
ASCII stupid question, get a stupid ANSI
If it all looks wacked, try playing with your FOVY. You should use either CULL_CCW or CULL_CW , and render ur vertices in the appropriate order.
Advertisement
In the midist of doing my own 3d pong clone!

Trying it in VC++ and DirectX8.

What stage are you at ??
Still just sorting out rendering my Box to play in !

what is your world size 20,20,20 ??

I was under the impression that the world would need to be about the size of 100,100,200...
the ball and paddles are rendered... and thats it. Now I dont think the size of the "playground" has anyhthing to do... i mean... theres no difference between moving a ball by .1 unit in a 20,20 ield or .5 on a 100,100 field.... as long as float precision is enough. I''m toying with all the options but I have a little problem with deciding the view... since it can hit the floor, the ceiling and the waslls... that mean that if the camera iws on the side... it will have to bounce in the camera... Now I''m toyingwith the top-right corner alternative... not sure what I should do.

NOTE: even when I know it has absolutely nothing to do with the game since the logic wont be affected... oh well... I want to do things in order i guess
I teleported home one night; With Ron and Sid and Meg; Ron stole Meggie's heart away; And I got Sydney's leg. <> I'm blogging, emo style
I am having my View from directly behind the ball with the paddel semi transparent...

Are you prog in c++ and would you show me your source?

This topic is closed to new replies.

Advertisement