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.

DarkBASIC Professional Discussion / Tryng to learn work with models

Author
Message
Sanguis
14
Years of Service
User Offline
Joined: 10th Jan 2011
Location: Deutschland
Posted: 25th Dec 2014 16:02 Edited at: 25th Dec 2014 23:01
Hi,

I'm a DarkBasic noob and my english isn't perfect. Please don't hit me...

I'm new at GameDevelopment, not at programming at all. My job is programming applications in Delphi (Pascal). The private switch to DarkBasic is not easy. Why is there a main loop? I don't get this logic.

Anyway... I tried to load a model and look how it walks. The loading works but I see the model from the bottom. The Camera seems to be under the models feets. How can I easyly change it to front view?

Then... the Model Animations doesn't work. I downloaded the model from a "Free 3D Model" website. There are animations in the model. But a simple loop doesn't show them.

Here is my Code:



What's wrong with this?

Greetings,
Andreas


Edit: It's it's weird. Some years ago I played a little bit aound with DB Classic. It was easy but something seems changed.
In that times, I created an block in 3d world studio, hollowed it, textured it, put a light in it an exported it. Than load it in DB and I stand in this room.
Today I tried this again. Bot I only get a big black Block on the backdrop. No Textures, not at the outer, not at the inner. I incrased the ambience light but nothing changed.

What changed over the years? I don't get it...

~ And when I sometimes clos my Eyes, my mind starts, spinning around.
pcRaider
17
Years of Service
User Offline
Joined: 30th May 2007
Location:
Posted: 26th Dec 2014 03:54 Edited at: 26th Dec 2014 03:57
Try this

http://www.thegamecreators.com/?m=view_product&id=2030&page=3d_tutorial_index
Monster Hunt 3D TutorialsMonster Hunt

windowsXp
WickedX
16
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 26th Dec 2014 21:41 Edited at: 26th Dec 2014 21:45
Hi, Sanguis.

I believe I found the same ninja model. The 3ds model must not have exported correctly. I have converted the b3d model to dbo for you. The only thing wrong with your code is, you need to take Loop Object out of the loop.

Attachments

Login to view attachments
Sanguis
14
Years of Service
User Offline
Joined: 10th Jan 2011
Location: Deutschland
Posted: 27th Dec 2014 14:14
Ah ok,
thank you very much for this help. I try the model (and code) at weekend, when I'm at home.

Thanks

~ And when I sometimes clos my Eyes, my mind starts, spinning around.

Login to post a reply

Server time is: 2025-05-15 07:11:20
Your offset time is: 2025-05-15 07:11:20