Archived

This topic is now archived and is closed to further replies.

How to divide and conquer this game?

This topic is 5143 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

You mean, "can someone please do a detailed technical design of a 3D pool game, including task list, for me, for free" ?

How about a high level overview? Here goes:

1) Decide how to represent pool table geometry (for physics)
2) Decide how to represent ball geometry (for physics)
3) Decide how to represent cue (for physics)
4) Decide how the user interface of hitting the ball should work
5) Design how to integrate rules and scoring into script system
6) Design approaches for AI player (if necessary)
7) Design physics of cue hitting ball(s)
8) Design physics of balls hitting each other
9) Design physics of balls hitting the walls and table (bounce!)
10) Render stuff

Rendering for such a game is really quite easy. You just can''t fxck it up, if you keep it simple. It''s the other stuff that''ll kill you.

Share this post


Link to post
Share on other sites
Apply physics
-calculate ball''s new posisions
-take collisions into account
-spins of each ball
-check if a ball has gone into a hole (no longer draw it on table)
Draw
-Draw the table
-Draw each ball (including texture and shadow and however detailed you want to get)

Share this post


Link to post
Share on other sites
<< You mean, "can someone please do a detailed technical design
of a 3D pool game, including task list, for me, for free" ?
>>

mmm. that can be the case but the way u both have responded, I appreciate it. Anyone keep on responding and share ur heuristics to tackle this game.


<<
Apply physics
-calculate ball''s new posisions
-take collisions into account
-spins of each ball
-check if a ball has gone into a hole (no longer draw it on table)
Draw
-Draw the table
-Draw each ball (including texture and shadow and however detailed you want to get)
>>

response is very cool as well.
Can we keep things going that way i.e.,

. Apply physics
-calculate ball''s new posisions
-
-
-
-take collisions into account
-spins of each ball
-check if a ball has gone into a hole (no longer draw it
on table)
-
-
-
. Draw
-Draw the table
-Draw each ball (including texture and shadow and however
detailed you want to get)
-
-
-
. AI Logic (for AI-player)
.
.


Can u guys help me keep on identifying things that way. If u follow the above format in ur responses (as gave me idea to recognize things that way and abt format) then it might be much readable.

Share this post


Link to post
Share on other sites

The format I posted in last mail got some how messed after being posted (no view post option or edit option?). I''m posting that formate again. Don''t think that''s to be some assignment work. If u guy keep on analyzing this, it will become very interesting & comprehensive analysis.

1.Apply physics
a.calculate ball''s new posisions
i.
ii.
iii.
b.take collisions into account
c.spins of each ball
d.check if a ball has gone into a hole
e.
f.
g.
2.Draw
a.Draw the table
b.Draw each ball
i.
ii.
iii.
3.AI Logic (for AI-player)
4.
5.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
hey man --

you should do this exercise yourself. you''re probably more interested than anyone here, and would benefit more.

have you ever done someone else''s work for them? it''s not very gratifying.

after you figure out how your pool game works, write an article on it.

Share this post


Link to post
Share on other sites
<<-----------------------------------------------------------
you''re probably more interested than anyone here, and would benefit more.
----------------------------------------------------------->>


That''s true but am I voilating forums rules somehow. Forum is a place u may get ur problem solved where (if u like guys r not around).


<<------------------------------------------------------------
after you figure out how your pool game works, write an article on it.
------------------------------------------------------------>>

How to figure out then?
Sure while writing article, I''ll give u credit as well.

Share this post


Link to post
Share on other sites
the forums are to help on specific problems or give you ideas. They arnt for people to design the ideas or concepts of your game....

Why make it if you dont know how, its like me trying to make warcraft 3 and asking everyone how they designed it, etc

Share this post


Link to post
Share on other sites
Instead of asking people here for their opinion (not that theres anything wrong with that), I think it would be more instructional (and result in a better game) for you if you did some serious thinking for about half an hour, come up with the most complete list you can think of (and I mean something with a little more thought put into it than this :
quote:

render some textured spheres
apply balls'' shadow
.
.
.
etc. (as many sub-tasks as possible)


Then assemble
.
.
.
& that way.


) and then posted your final attempt here. Im sure then people would be more than happy to comment on it and suggest changes and offer reasons why. But most people dont really like just completely doing it for you.

Share this post


Link to post
Share on other sites
<<---------But most people dont really like just completely doing it for you------------>>

yeah but can''t people just keep on adding one line to the already done analysis.

I got first two responses from AndreTheGiant & hplus0603 right of the mark. Those responses made me expect too much from here. Then I interrupted and made the whole discussion divert just to the opposite.

Ok I''ve got enough idea from over here. Now can u give me some idea for AI-player in pool game. Is there some pool specific AI-player research article etc?

Share this post


Link to post
Share on other sites
i''d take an oo approach to it. A pool table has a ball and a poolstick. A cue ball is a ball. if you model each object with the right interfaces you can put together a working framework without the logic for now.


Share this post


Link to post
Share on other sites
pool physics is nice and easy. if you consider the cue as a thing that applies a force (translates to a velocity vector) to the ball it hits, and a spin (if you want to get tricky), and just model each ball as a sphere (point with a radius) you can work out collisions fairly easily. there''s also an article in the resources section on collisions between spheres.

rendering this stuff is dead easy. you *cannot* fxck it up.

Share this post


Link to post
Share on other sites