FORUM CLOSED, PLEASE REGISTER AT FORUM.SIO2INTERACTIVE.COM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Need advice regarding Game Programming

3 posters

Go down

Need advice regarding Game Programming Empty Need advice regarding Game Programming

Post  thephoenics Sun Mar 15, 2009 10:36 am

Hi,

Firstly, I would like to thank the team of SIO2 for the excellent 3D Game Engine for iPhone.
We are a group of three students who are planning to release a 3D game for iPhone. This is our first project creating a game, so, we need some advice/tips from you. We would be really grateful if you could help us.
We are creating a 3D Cricket game. We have see that the Physic module mostly deals with the Physics that are applicable to the bodies. However, I have a few doubts regarding the following. Please clarify us if you can.
1. The batsman may swing the bat and mostly, it may not hit the ball exactly due to the dimensions and all. It may be really frustrating for the user in this case, so, we need to set a threshold distance, within which the balls presence would be counted as a hit. Is this method possible and/or preferable?
2. The baller throws the ball, so, in this case the Baller and the ball are two different entities, so is the case with the batsman and the bat. Do you think its preferable to render the model of the batsman and the baller WITH the bat and ball respectively? Or is it preferable to programatically do this task - in which case, please guide us what we could do.

Also, please guide us with any reading material/books which might help us in this.

Thanks and Regards,
Kiran

thephoenics

Posts : 2
Join date : 2009-03-15

Back to top Go down

Need advice regarding Game Programming Empty Re: Need advice regarding Game Programming

Post  meteors Sun Mar 15, 2009 3:46 pm

Hi,

First of all, the SIO2 team consists of just one person (superhero), sio2interactive.

I would definitely make the ball a separate object. I would probably use a player model with the bat physically attached. You can use a separate, invisible object at the position of the bat for collision detection.

There are ways of doing collision detection which will make it easier to hit the ball. One of the easiest is to use bounding spheres. Google should yield lots of info/code about that.



Best,
-joshua
meteors
meteors

Posts : 241
Join date : 2008-11-08
Location : Sunny Florida

Back to top Go down

Need advice regarding Game Programming Empty Re: Need advice regarding Game Programming

Post  sio2interactive Sun Mar 15, 2009 4:26 pm

1. The batsman may swing the bat and mostly, it may not hit the ball exactly due to the dimensions and all. It may be really frustrating for the user in this case, so, we need to set a threshold distance, within which the balls presence would be counted as a hit. Is this method possible and/or preferable?

>> Increase the collision margin of the object by setting a user property "margin" of type float within Blender


2. The baller throws the ball, so, in this case the Baller and the ball are two different entities, so is the case with the batsman and the bat. Do you think its preferable to render the model of the batsman and the baller WITH the bat and ball respectively? Or is it preferable to programatically do this task - in which case, please guide us what we could do.

>> Both of them 2 different entity. I would use for the "Baller" a cylinder for the body and a sphere for the ball and for the "Batsman" 2 cylinder, and would take the suggestion of meteors using invisible collision shapes, just to create an envelope around the 3D object...


ps: First of all, the SIO2 team consists of just one person (superhero), sio2interactive.

>> Hehe tks dude! Wink
sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 44
Location : Shanghai

http://sio2interactive.com

Back to top Go down

Need advice regarding Game Programming Empty Re: Need advice regarding Game Programming

Post  thephoenics Sun Mar 15, 2009 10:16 pm

[First of all, the SIO2 team consists of just one person (superhero), sio2interactive.]

Oops, I am really really sorry for not noticing Smile. So, all the good works by one person Smile. Thats pretty cool. Thats great, keep on the good work dude.

[I would definitely make the ball a separate object. I would probably use a player model with the bat physically attached. You can use a separate, invisible object at the position of the bat for collision detection.]
[There are ways of doing collision detection which will make it easier to hit the ball. One of the easiest is to use bounding spheres. Google should yield lots of info/code about that.]

And thanks for the advice meteors. That was really helpful.

[Increase the collision margin of the object by setting a user property "margin" of type float within Blender]
[Both of them 2 different entity. I would use for the "Baller" a cylinder for the body and a sphere for the ball and for the "Batsman" 2 cylinder, and would take the suggestion of meteors using invisible collision shapes, just to create an envelope around the 3D object]

And thanks "superhero" Smile. It will he really helpful. I will keep in touch. I will have more queries once I start the programming aggressively, after finishing the background work. I would be glad if you could recommend me any books or material or reference sites which you think are a must for game development.

Thanks again.

Regards,
Kiran

PS: I am planning to release the cricket game as an open source once we stabilize it so that we may be able encourage more people develop games for iPhone, and use the SIO2 SDK. With your help, I guess we can do it Smile.

thephoenics

Posts : 2
Join date : 2009-03-15

Back to top Go down

Need advice regarding Game Programming Empty Re: Need advice regarding Game Programming

Post  meteors Mon Mar 16, 2009 9:59 am

I highly recommend "Introducing Character Animation with Blender".

It has some great primers on Blender basics, designed for people with experience in other 3D apps.


Best,
-j
meteors
meteors

Posts : 241
Join date : 2008-11-08
Location : Sunny Florida

Back to top Go down

Need advice regarding Game Programming Empty Re: Need advice regarding Game Programming

Post  meteors Mon Mar 16, 2009 10:00 am

Also, I would be remiss if I forgot to recommend the greatest OpenGL book of all, Richard Wright's "OpenGL Superbible". Simply one of the best programming books I have ever read.


-j
meteors
meteors

Posts : 241
Join date : 2008-11-08
Location : Sunny Florida

Back to top Go down

Need advice regarding Game Programming Empty Re: Need advice regarding Game Programming

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum