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.

Program Announcements / DKShop & DKAVM Plugins for DBPro U6.2b...

Author
Message
Duffer
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 17th Jul 2006 18:59 Edited at: 17th Jul 2006 19:02
below is a link to the original thread which I am resurrecting at behest of Rich.... this is the excellent FREE plugin created by Dmitry K...

http://forum.thegamecreators.com/?m=forum_view&b=5&t=39906&p=0

and below is the blurb from the original thread as well

EDIT
Updated for U6.2b 12/07/06
Updated for U5.9 15/12/05
EDIT

Free TPC DLLs DKSHOP & DKAVM U6.2b:

http://forum.thegamecreators.com/xt/xt_apollo_download.php?i=406855

Free TPC DLLs DKSHOP & DKAVM U5.9:

http://forum.thegamecreators.com/xt/xt_apollo_download.php?i=400955

DKSHOP COMMAND LIST.
+ Code Snippet


DKAVM COMMAND LIST.
+ Code Snippet


this is an excellent plugin which needs more testing and feedback for Dmitry K...

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
Duffer
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 17th Jul 2006 19:01 Edited at: 17th Jul 2006 20:53
@ Dmitry K,

I seem to be having difficulty with DK Pick Limb in U6.2b... program crashes.... will submit code shortly if nothing occurs to you about why this is happening...

[edit]

ok - here's my code - i've doctored the stuff about startBlue for obvious reasons.... excuse the terrible inefficient and tardy coding...



the problem comes at lines 138-146 - principally line 140.... why?

am I misusing the dk pick limb command???

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
Dmitry K
21
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Russia
Posted: 17th Jul 2006 22:40
You must change line 16
set camera range 0,1,5000
on
set camera range 0.1,1,5000
and line 140
pl = dk pick limb(1,MouseX(), MouseY(),1,1,totallimbs)
on
pl = dk pick limb(1,MouseX(), MouseY(),1,0,totallimbs-1)

Specs: P4 2.4GHz, DIMM 256 266Mhz, 60GB HD 7200rpm ATA-133, GeForce NX6600, CD-RW+DVD, WinXP
Duffer
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 17th Jul 2006 22:44
@ Dmitry K -

excellent - thanks

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
Duffer
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 17th Jul 2006 23:44
@DmitryK - that seems to have sorted it... thanks again...

ever thought of writing a plugin to tinker with dbo animation?>

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
Ekko
20
Years of Service
User Offline
Joined: 27th Apr 2004
Location:
Posted: 18th Jul 2006 23:39
@ Dmitry K,
I'm using the dk intersect limb function for my game and I noticed that the calculation is only done when the object is in a camera's view, or at least that's what it seems. I would the calculation to be done at any time whether the object is in the camera view or not. Could you add a function to set a flag to toggle between constant calculation and only calculate when in the camera's view? It would help alot. Until then I have added a camera over looking the entire map to make sure it is calculated every loop.

BTW: Thanks for the great plugin!
Dmitry K
21
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Russia
Posted: 19th Jul 2006 01:03
@Ekko,
Hmmm. I don't see any problem with using DK Intersect Limb function and a camera's view. Following code works fine for me.


@Duffer
Quote: "
ever thought of writing a plugin to tinker with dbo animation?>
"

Maybe later. Right now I'm working on other my plugin for pixel perfect collision.

Specs: P4 2.4GHz, DIMM 256 266Mhz, 60GB HD 7200rpm ATA-133, GeForce NX6600, CD-RW+DVD, WinXP
Ekko
20
Years of Service
User Offline
Joined: 27th Apr 2004
Location:
Posted: 19th Jul 2006 01:37
@ Dmitry K
Very odd... your right, that does work and even if I replace the sphere with my object. It seems that only in my project it happens. Do you know of any commands in DBpro that would cause this to happen? In my entire code I don't use anything that would hide or exclude the object. It also happens when the camera is out of range (only in my current project, in the simple code you posted range doesn't effect it at all).
Ekko
20
Years of Service
User Offline
Joined: 27th Apr 2004
Location:
Posted: 19th Jul 2006 08:03
@Dmitry K

I found the problem! It occurs when the object isn't in the camera's view and the object is moving. Try this code:



It's kind of weird. When the camera faces away you could see the distance value counting up and then down to zero.
Duffer
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 19th Jul 2006 15:09
@DmitryK,

A fast pixel perfect collision plugin that could cope fully with rotated or rescaled or animated sprites - now that would be a thing of beauty...

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
Dmitry K
21
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Russia
Posted: 26th Jul 2006 21:34
@Ekko,

DK Intersect Limb and a camera's view problem fixed.

Specs: P4 2.4GHz, DIMM 256 266Mhz, 60GB HD 7200rpm ATA-133, GeForce NX6600, CD-RW+DVD, WinXP
Ekko
20
Years of Service
User Offline
Joined: 27th Apr 2004
Location:
Posted: 27th Jul 2006 06:12
Dmitry, you earn a credits position, thanks!
Juso
21
Years of Service
User Offline
Joined: 23rd Sep 2002
Location: Finland
Posted: 29th Jul 2006 18:00
@DmitryK

I think your Pick Limb doesnt get right limbs when picking inside object, eg inside room it doesnt get right (closest) wall?

I have tried several x models. Dbo models seems to work correct.

I loaded your latest dll but got same results.
Tartopom
19
Years of Service
User Offline
Joined: 27th Jun 2004
Location:
Posted: 12th Aug 2006 01:22 Edited at: 12th Aug 2006 15:59
@DmitryK

Edit : I figured out, my problem . Thanks for this excellent plugin.

Edit2: I'm not sure about that, but it seems that dk limb matrix4 only works fine with static model (I'm working on .x object), animated mesh return wrong transformations. Anyway, .dbo format works fine, Any Idea ?
Ekko
20
Years of Service
User Offline
Joined: 27th Apr 2004
Location:
Posted: 13th Oct 2006 11:03
@DmitryK

I think I found another small problem with your dll. When using DK GET PICK POLY() on limb number zero (first limb of the model) it does not return the poly number, but it still works on all other limbs. Not sure, but I think it might be in the way you return no success with your commands; i.e. if no limb is found it returns zero... but what if I'm over limb zero? Simply returning a -1 for a no success would fix this problem; but I didn't write it.
Duffer
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 13th Oct 2006 15:04
@DmitryK,

I think that would also go for your DK Pick Limb command.... be great if it returned a 0 for limb 0 and a -1 for no limb...

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
Mr Kohlenstoff
17
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Germany
Posted: 13th Oct 2006 15:48
I guess the "dk convert 2D to 3D"-command doesn't exist.
At least it isn't included in the dlls and keyword-files... but I really need this one command at the actual part of my project.

Visit the DBPro - Speed up your game-Thread. http://forum.thegamecreators.com/?m=forum_view&t=88661&b=1
Duffer
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 18th Oct 2006 15:52
@ Dmitry?

You out there?

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
Duffer
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 28th Oct 2006 13:47
Ping////

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
Dmitry K
21
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Russia
Posted: 29th Oct 2006 11:34
I apologize for the long answer. I had not enough time for programming.
I have fixed a problem with DK Get Pick Limb as you have wished. Now this command returns value -1 if no limb found.

Also I have removed some commands from library:
DK Get Pick Vector Distance
DK Get Pick Vector X
DK Get Pick Vector Y
DK Get Pick Vector Z
Now, instead of them, native DBPro commands are used:
Get Pick Vector Distance
Get Pick Vector X
Get Pick Vector Y
Get Pick Vector Z

See update in attachment

Specs: P4 2.4GHz, DIMM 256 266Mhz, 60GB HD 7200rpm ATA-133, GeForce NX6600, CD-RW+DVD, WinXP

Attachments

Login to view attachments
FXTC
19
Years of Service
User Offline
Joined: 3rd Jul 2004
Location: CzechRepublic
Posted: 29th Oct 2006 19:16
Thanks for update Dmitry

AMD 2,4 512MB RAM,2x200GB hdd,GforceFX5700GT128MB,IBM21"
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 30th Oct 2006 03:41
Indeed, thanks man

Duffer
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 4th Nov 2006 17:05
@Dmitry,

Excellent - thanks v much...

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 6th Nov 2006 19:07
I have a question: In one of the demo you have a command dk get pick poly or something like that. Now i wonder when i pick a poly how can i find out the numbers of vertices of selected poly and then move them in one direction using db pro vertexdata commands?

Brendy boy
Dmitry K
21
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Russia
Posted: 7th Nov 2006 21:27 Edited at: 7th Nov 2006 21:29
Quote: "I have a question: In one of the demo you have a command dk get pick poly or something like that. Now i wonder when i pick a poly how can i find out the numbers of vertices of selected poly and then move them in one direction using db pro vertexdata commands?"


One question. Do you want to move selected poly as separared poly or as part of whole mesh? In first case you must be sure what limb mesh has not a shared form. If mesh is have shared verts (DK Limb Shared Verts( Object, Limb) = 1) apply to limb the command DK CONVERT LIMB MESH TO VERTS LIST.



In second case I advise to use commands from my library DKAVM instead native DBPro vertexdata commands. Because DBPro vertexdata commands don't work directly with mesh which have primitive type other than Triangle list (i.e. Triangle strip, Triangle fan).

Specs: P4 2.4GHz, DIMM 256 266Mhz, 60GB HD 7200rpm ATA-133, GeForce NX6600, CD-RW+DVD, WinXP
Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 8th Nov 2006 15:53
I'm making level editor and i want to select a poly and then change it's uv coordinates that's why i need numbers of vertices and i want to do that with a dark basic pro commands because yours are a little complicated (you are using vetexes). Is that possible? Can you write me a snipet?. The objects i use aren't dark basic pro objects. They are exported from 3d studio max 7 using pandasoft exporter. What fvf format should i use(is there any difference)?

Brendy boy
Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 9th Nov 2006 16:38
It works. Thanks!

Brendy boy
Grandma
18
Years of Service
User Offline
Joined: 26th Dec 2005
Location: Norway, Guiding the New World Order
Posted: 8th Dec 2006 00:11
wow! This is excellent. Pick limb is just what i nedeed, now i can finnally make my little dream of texturing my levels 10x faster a reality.

Comp : 1024mb Ram, 3.0ghz, GeforceFX 5800, 1,1TB storage
skills: 3ds max, Reason 3.0, Photoshop CS 2, DBP and soon to come C++
Grandma
18
Years of Service
User Offline
Joined: 26th Dec 2005
Location: Norway, Guiding the New World Order
Posted: 8th Dec 2006 11:28 Edited at: 30th Dec 2006 19:57
Okay i found a bug that i would be very happy if you fixed. It seems Pick limb doesn't like newton stuff.

Every time i want to go trough a door or look at any other mover object the game frezees (wich it doesn't when i disable the pick limb command from the source).

I'll try to find a way to work around this issue.

Edit: Okay i've worked around the bug with a bunch of if's.

Edit 2: I'm having a hard time with this plugin, every time i try to use "pick limb" on an instanced object i get "editor.exe has encountered a problem and needs to close. We are sorry for the inconvenience."

Comp : 1024mb Ram, 3.0ghz, GeforceFX 5800, 1,1TB storage

Login to post a reply

Server time is: 2024-04-28 06:50:02
Your offset time is: 2024-04-28 06:50:02