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.

Windows / 3d Object issue

Author
Message
Jan101
11
Years of Service
User Offline
Joined: 3rd May 2013
Location:
Posted: 3rd May 2013 18:55
Hi all,

I played around with the 3d demo in 108 beta 11.
Based on it I tried to load an object created in blender (a simple cube with a texture.

The obj loads and displays fine until the "sync()" in the main loop.
Everything gets covered by the clear color.



I looked at it for some hours and can't find the cause.
Is there any beta documentation yet esp. on the 3d topic?

Any advise would be greatly appreciated!

Cheers,

Jan
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 3rd May 2013 21:09
You can find the documentation, such as it is, on your hard drive in the IDE/Help directory for where you installed v10811. Double click on home.html and it will open in your default browser. Then you can use all the links like any other 'site'.

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
Jan101
11
Years of Service
User Offline
Joined: 3rd May 2013
Location:
Posted: 4th May 2013 00:06
Thanks for the hint re the documentation I will check it once I am back home.

If you had any thouhts maybe on the code and any potential cause of my problem, please share them. I am completely clueless.

Cheers,

Jan
Jan101
11
Years of Service
User Offline
Joined: 3rd May 2013
Location:
Posted: 6th May 2013 19:00
The only documentation I can find is the one from V 1.07.
Is there any 1.08 (beta) documentation?

Still I can't get the code do what I want... all objects disappear after calling sync().
Do I have to add them everytime before I render the scene?
I guess not, as the 3d demo (which looks like a cool mixture of Bioshock and Duke Nukem to me) doesn't do that.

Any help would be greatly appreciated!
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 7th May 2013 16:41
You can find your v108+ documentation on your installation disk. It is in AGK/IDE/Documentation. Double click on the Home.html file and it will open in your browser.

If you comment out all the camera moving stuff, just for a test, does the object still disappear?

You do NOT need to create it every Sync cycle. In fact, doing so is bad for memory and your program performance.

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
Jan101
11
Years of Service
User Offline
Joined: 3rd May 2013
Location:
Posted: 9th May 2013 02:14
I tried taking out parts of the code from the main loop but as soon as I do a sync the object disappears
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 9th May 2013 16:53
I just looked at one line of code that is quite suspicious:
ObjectSphereSlide(0,oldx#,oldy#,oldz#,newx#,newy#,newz#,19.0)

The object id is zero. That might have something to do with some of the issues.

I haven't done any work with the 3D stuff, so my first question was more to see if the object shows up at all when it was set up.

Try fixing the object id in the line with the ObjectSphereSlide command.

Then, if that doesn't work, remove everything but the call that sets up the object and the camera and the Sync() statement and see if it shows up. I mean all the camera changing and key checking and everything in the main loop except the Sync() command.

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
Naphier
14
Years of Service
User Offline
Joined: 2nd Oct 2010
Location: St Petersburg, Florida
Posted: 12th May 2013 17:48
I've loaded a number of blender-made OBJ files. I've not encountered any issues yet. I'd start commenting out all of those camera position commands.

Login to post a reply

Server time is: 2024-11-23 08:11:39
Your offset time is: 2024-11-23 08:11:39