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.

Newcomers DBPro Corner / Trying to get Objects Positioned

Author
Message
Open Source Pong 3D
20
Years of Service
User Offline
Joined: 10th May 2004
Location: USA
Posted: 10th Oct 2012 07:15
I am trying to create a 3D Version of sokoban. I am using Matrix for the floor, the sphere for the player and cubes for the boxes. I am trying to get the sphere to appear above the "floor" and the camera positioned behind it like a 3rd Perspective View. However I can't seem to get it to work correctly. Here is my source code:

Any assistance in this matter would be greatly appreciated.

Sincerely,

Programmer

Pong Master - Open Source Retro Memake of Pong in 3D
http://www.freepgs.com/opensourcepong3d
MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 10th Oct 2012 08:41 Edited at: 10th Oct 2012 09:45
This modified code should help you rebuild your app...



You can actually set all your camera related functions in a single call function... try modularising it all... the sooner you start to modulate everything the better you will get at it and growing a small app to something bigger gets simple and requires no rewriting

If you need help with that let us/me know...

Hope that helped...

EDIT

That is really funny... I just noticed that Rem vs ` breaks line breaks in the CODE blocks... or I just cannot figure which is breaking the white space... EDIT Figured it out... four spaces are removed which in turn remove the line breaks...

Login to post a reply

Server time is: 2024-11-22 00:15:16
Your offset time is: 2024-11-22 00:15:16