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 / Why this don't render nothing on iOS?

Author
Message
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 4th Jun 2013 04:17
agk::CreateObjectSphere(1, 10, 10, 10);
agk::SetObjectColor(1, 0, 255, 0, 255);
agk::SetObjectPosition(1, 512, 200, 200);
agk::SetObjectVisible(1, 1);

I'm trying to test the 3D commands on iOS,
is there something i have to inizialize before start using 3D?

Long life to Steve!
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 4th Jun 2013 09:23
It is probably out of camera view. Try using setCameraLookAt using the object position as a target.


this.mess = abs(sin(times#))
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 4th Jun 2013 18:13
Thx baxslash i try!

Long life to Steve!
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 4th Jun 2013 18:25
Thx it work, but i don't understand on what the 0,0 is based and why it go off the screen.
The help, don't help much.
Well i will try to do some tests.

Long life to Steve!
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 4th Jun 2013 18:35
You will also need to position the camera outside the object. So for the example you provided try positioning the camera more than 10 units from your object before using setObjectLookAt, the camera should start at 0,0,0 by default.


this.mess = abs(sin(times#))
MikeMax
AGK Academic Backer
12
Years of Service
User Offline
Joined: 13th Dec 2011
Location: Paris
Posted: 4th Jun 2013 18:46
3D is a real job Gekko :p
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 4th Jun 2013 20:00
Quote: "3D is a real job Gekko :p "

You mean pain
I based my dungeon to wavefront creator on your height terrain loader so thanks for sharing that one

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
MikeMax
AGK Academic Backer
12
Years of Service
User Offline
Joined: 13th Dec 2011
Location: Paris
Posted: 4th Jun 2013 20:05
Quote: "I based my dungeon to wavefront creator on your height terrain loader so thanks for sharing that one "


No problem it's a pleasure to help !

(I have also posted a new video for my game in the showcase forum if you're interested
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 4th Jun 2013 20:07 Edited at: 4th Jun 2013 20:08
Yes i already done games in 3D with dark basic, but i don't understand the center of the camera where is and where start.
Usually the cameras start with a default of screen center, here no.

In the while you help me i coded a TONE generator for iOS to simulate the car engine with AudioUnits.
Maybe i'm stronger in audio than 3D

Long life to Steve!
Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 6th Jun 2013 12:25
Your object could be too far away from the camera since you position it at 512, 200, 200.

Try moving it closer to 0, 0, 0, or move your camera closer to the object.

This is my current project, check it out! [href]forum.thegamecreators.com/?m=forum_view&t=204576&b=8[/href]
This is my website, check it out! [href]http:\\www.TeamDefiant.co.uk[/href]

Login to post a reply

Server time is: 2024-11-24 15:33:45
Your offset time is: 2024-11-24 15:33:45