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 / Did Update 7.6 Break Something With 3D Animation?

Author
Message
Mage
Valued Member
19
Years of Service
User Offline
Joined: 3rd Feb 2007
Location:
Posted: 10th May 2011 20:37 Edited at: 10th May 2011 20:40
I updated from 6.3 to 7.6 and now objects in a number of my projects don't animate properly.

1. Anything glued to the objects limbs will float around in 3D space (properly) as if the limbs are animating but the parent object is frozen.

2. It's as if the Objects are becoming "unrigged" from the Bones (Limbs). The limbs are moving, but they are not animating the object.

3. I can literally in the level loading code "Load Object" Then "Loop Object" and do nothing else to it. In game the object is frozen. Anything I glue to it's limbs again just floats around as if the animation is correctly playing.

4. I am using .X Object Files.

5. No code changes. Literal Update from 6.3 to 7.6.

6. I've also noticed that in some extremely rare and erratic situations, Camera Angle and Position can suddenly cause random objects to briefly animate correctly. Object position, even relative to the camera has no predictable bearing. Litterally Looped Objects with no correlation to the camera.


I can't think of a single instance where the Object is supposed to become unrigged from it's limbs. It's as if something in the DBPro isn't updating the object when SYNC'ing.

Any Ideas?

baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 10th May 2011 22:27
I haven't personally experienced this. Perhaps some sample code could shed light on the problem?

Mage
Valued Member
19
Years of Service
User Offline
Joined: 3rd Feb 2007
Location:
Posted: 10th May 2011 23:22
That's probably going to take some time. Can't very well post a 1000 lines of code. I'll see what I can do.

baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 10th May 2011 23:36
Quote: "That's probably going to take some time. Can't very well post a 1000 lines of code. I'll see what I can do."

Just try to replicate a simple version of the code. You may accidentally find the cause anyway.

Mage
Valued Member
19
Years of Service
User Offline
Joined: 3rd Feb 2007
Location:
Posted: 11th May 2011 00:14 Edited at: 11th May 2011 00:36
Ok looks like the error is extremely easy to reproduce.
I just load 100 of the same object, and like 1/4 don't animate properly.
When you turn the camera, some randomly start animating.

Example Code Posted For Easy Viewing.


Download Source + Media of Example
http://www.megaupload.com/?d=0JWNHGMU

Edit: Uploaded the Example directly to this forum also.

Mage
Valued Member
19
Years of Service
User Offline
Joined: 3rd Feb 2007
Location:
Posted: 11th May 2011 01:39
Update: I ran the same executable on another computer, and the problem does not persist. Literally the same exe.

baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 11th May 2011 10:30 Edited at: 11th May 2011 13:07
Strange, taking a look now.

EDIT: It works just fine here... maybe you should re-try updating DBPro?

I can't think of anything that would cause the animations to stop working on one PC and not another though. I'm not even sure updating again will fix it but it can't hurt since that was the point when it stopped working for you.

Mage
Valued Member
19
Years of Service
User Offline
Joined: 3rd Feb 2007
Location:
Posted: 12th May 2011 00:22 Edited at: 12th May 2011 00:24
Yes I know. I couldn't believe it when I saw it. It was like 25% of them were simply frozen and when the camera turned and they ended up on the edge of the screen, many frozen objects would miraculously begin to animate, until the camera turned to face them again.

Here's the Situation:

1. I was using SvenB's Image Kit v2. It Wouldn't work, and crashed.

2. Updated DBPRO from 6.3 to 7.6. No Effect. And This Problem started.

3. Updated DirectX from the first DX11 to the current today version of DX11.

4. SvenB's Image Kit v2 now works. But 3D Animation still broken.

5. Updated to DBPRO 7.7 RC7. No Effect.

6. Used another computer, problem not present. (Intel GMA Netbook)

7. Used code compiled with DBPro 6.3, problem not present.

8. Updated nVidia Display Drivers. Problem solved.


So it appears that updating DBPRO broke the 3D animation but the latest display driver solved the problem. I updated the drivers a month ago through Windows Update. However Windows Update gave me a driver from June 2010. I had to go directly to nVidia, and I got a much much newer driver.

baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 12th May 2011 02:02
OK so it was a graphics driver problem. That makes sense, sort of.

The latest DBP needed an updated driver for your card that's all.

Glad you solved it!

Mage
Valued Member
19
Years of Service
User Offline
Joined: 3rd Feb 2007
Location:
Posted: 12th May 2011 03:46 Edited at: 12th May 2011 03:47
That's half of it. Windows Update is offering a driver from June 2010 which is too old. I thought I was up to date.

Login to post a reply

Server time is: 2026-07-11 02:37:03
Your offset time is: 2026-07-11 02:37:03