Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / angle of reflection

Author
Message
Sharisu
12
Years of Service
User Offline
Joined: 9th Nov 2011
Location: BY, Minsk
Posted: 15th Jan 2013 19:38
How to get the angle of reflection in 3D using AppGameKit?
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 15th Jan 2013 20:32
You are writing agk shaders ?

This is how agks own shader with directional light and a point light looks.



I had a thread where i discussed writing agk shaders a while back.
http://forum.thegamecreators.com/?m=forum_view&t=201508&b=41

Android 2.3 , ZTE Skate , 480x800 , 800 mhz , Samsung Galaxy Y , 240x320 , 832 mhz , Sony ericson arc 480x854 , 1 ghz
Android 4.0 , Dmtech 3g 9738B , 1024x768 , 9.7 inches , 1.2 ghz
Sharisu
12
Years of Service
User Offline
Joined: 9th Nov 2011
Location: BY, Minsk
Posted: 16th Jan 2013 16:15 Edited at: 16th Jan 2013 16:16
Sorry, I'm incorrectly said
Just do not remember the word "deflection". My English is very bad)
This is a 3D game, I need to make deflection a ball from walls. I move a ball with necessary acceleration on a local axis Z. How to learn, on what corner to turn a sphere at collision with a wall?

PS. Shaders not working on iOS, it's my problem or Beta?
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 16th Jan 2013 21:38
Shariso, try looking at the collision commands, there are commands that return 3D "Bounce" vectors. Alternatively you could make the whole game in 2D using 2D Physics sprites (not visible) and then position your 3D objects based on the position of the sprites.


this.mess = abs(sin(times#))
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 16th Jan 2013 22:56
Or he could look at your 3d particle sample that have bouncing particles in 3d

http://forum.thegamecreators.com/?m=forum_view&t=202537&b=41

Bax when will the new game you are working on be announced ?
I want to test and see it

Android 2.3 , ZTE Skate , 480x800 , 800 mhz , Samsung Galaxy Y , 240x320 , 832 mhz , Sony ericson arc 480x854 , 1 ghz
Android 4.0 , Dmtech 3g 9738B , 1024x768 , 9.7 inches , 1.2 ghz
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 16th Jan 2013 23:05
I have been helping finish off an app that was submitted today (the free version at least). There will be an announcement as soon as it is available in the showcase forum I imagine.

The game is called "Hide it Find it". It's a facebook based hidden object game where you use your own background image and objects you hide in the image yourself. It's surprisingly good fun, I hope you enjoy it!


this.mess = abs(sin(times#))
Sharisu
12
Years of Service
User Offline
Joined: 9th Nov 2011
Location: BY, Minsk
Posted: 17th Jan 2013 13:06 Edited at: 17th Jan 2013 13:07
Cliff Mellangard 3DEGS,
Your link was very helpful! Thank you! It worked)
While this is only a prototype and testing of mechanics for the bigger game. When I'm closer to production - will announce

baxslash
Very interesting, I'll wait)

Login to post a reply

Server time is: 2024-05-04 01:05:10
Your offset time is: 2024-05-04 01:05:10