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 / Sparky's DLL always crash

Author
Message
Shadowcrawler
21
Years of Service
User Offline
Joined: 17th Sep 2003
Location:
Posted: 28th Oct 2007 18:12
I'm just starting with Sparky's collision DLL V2.
But I have a problem with it.
When I run the examples they all work.
But when I use it in my code it always crashes.
So I made a little test program which you can see here, and have the same problem with it.



I have attached the program with resources.

Can it be because the terrain has to many polygons?
It has 33000 poly's.

It crashes when I call my "GetObjectHeight" function, which uses "sc_intersectobject", if I replace it with the command of DBP it works.

Or is it because I use the trail version of DBP.

Attachments

Login to view attachments
5867Dude
18
Years of Service
User Offline
Joined: 26th Jun 2006
Location:
Posted: 28th Oct 2007 19:20
Quote: "Can it be because the terrain has to many polygons?
It has 33000 poly's"

Sorry this isn't answering your question but that is quite high poly so it could be causeing it. However I don't have Sparkys DLL so I'm not that sure. Also shouldn't this be in DLL Talk because its about DLL's. Forgive me if i'm worng

PresFox
19
Years of Service
User Offline
Joined: 28th Aug 2005
Location:
Posted: 28th Oct 2007 21:33
For a terrain, 33000 poly's is not much

it might be that the trial of dbp isnt the latest version?

Microsoft isnt evil, they just make really crappy operating systems -- Linus torvalds
Shadowcrawler
21
Years of Service
User Offline
Joined: 17th Sep 2003
Location:
Posted: 28th Oct 2007 22:59
Sorry, I should have posted it in the DLL Talk section.
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 29th Oct 2007 00:52 Edited at: 29th Oct 2007 00:55
Don't worry about that too much.

I think that this is the common problem caused by not including a memblock command in your code. Put a 'MAKE MEMBLOCK 1, 1' at the end of your code out of the way - you might want to put an END command just before it too so that the line can't run.

This will cause the DLL that deals with memblocks to be loaded, as Sparky's DLL requires the memblocks to work correctly.

[EDIT]Oops! That'll teach me to read the code before I post - you are already ensuring that the DLL is included. Forget I said anything about that

The problem is the number of poly's - memblock meshes (which the DLL uses) are limited to a maximum of 21845 poly's (that's 65535 vertices at 3 vertices per poly).

Utility plugins collection and
http://www.matrix1.demon.co.uk for older plug-ins and example code
Mr Bigger
19
Years of Service
User Offline
Joined: 31st Jan 2005
Location: was here!
Posted: 29th Oct 2007 00:57
Something is wrong with your .x model.
The code works for me when i use a good model.


AMD 2600+/1GB ram/GeForce 6600oc 256MB/W2KPro/DBPro 6.6.b
Shadowcrawler
21
Years of Service
User Offline
Joined: 17th Sep 2003
Location:
Posted: 29th Oct 2007 18:19
Indeed it was the polycount that caused it.
With a terrain with lower polycount it works perfect.

I didn't knew that it was limited on 21845 poly's.

Login to post a reply

Server time is: 2024-11-25 12:49:46
Your offset time is: 2024-11-25 12:49:46