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 / D3DFunc V3.0

Author
Message
Philip
20
Years of Service
User Offline
Joined: 15th Jun 2003
Location: United Kingdom
Posted: 3rd Jul 2006 19:11
I've got confused. Which version of the plugin works with v6.1 of DBPro? Is it d3dfunc v3.5?

Cheer if you like bears! Cheer if you like jam sandwiches!
"I highly recommend Philip's Vector Tutorials" (RiiDii)
Carrier Command remake project
Cloggy
19
Years of Service
User Offline
Joined: 31st Oct 2004
Location: Rayleigh, Essex
Posted: 4th Jul 2006 01:47
Yes,

Version 3.5 works with v6.1 of DBPro. Lat time I looked it did anyway

Cheers,

Cloggy
dark coder
21
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 4th Jul 2006 12:24
Hey, im using dbp 6.2 and i cant get the batch 2d dots to work properly, it only seems to display once correctly and multiple dots makes the first on flicker and doesnt ever draw more than one.

Hallowed are the ori.
Morcilla
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 4th Jul 2006 15:09
@Cloggy, I can't find your email address.

Since I'm about to release my program MPL3D Solar System, I think you deserve to be credited for your know-how contribution.

If you want to appear with your REAL name, just email it to me.
If not, you are currently appearing as:

"Cloggy and Dan 'Scilynt' H. : Text output and 3d lines"
"http://www.cloggj.f2s.com/DBPro/"
"http://www.bandedsoftware.com"

Under the "Know-how contributors" section.

Please, tell me what you think.
Van B
Moderator
21
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 4th Jul 2006 15:30
One of the handfull of vital DBPro plugins, thanks for the continued support - very much appreciated .

Aegrescit medendo
BealziBob
19
Years of Service
User Offline
Joined: 9th Jul 2004
Location: The Grim North (UK)
Posted: 4th Jul 2006 20:57 Edited at: 4th Jul 2006 21:48
Uh oh, It would appear Upgrade 6.2 has broken some parts of this wonderful plugin.

Try the demo, 3D Text and Pyramid creation examples crash.

I guess it's something to do with the new DBO ptr stuff.


Just a casual observer.
Cloggy
19
Years of Service
User Offline
Joined: 31st Oct 2004
Location: Rayleigh, Essex
Posted: 5th Jul 2006 22:00 Edited at: 6th Jul 2006 10:34
I'll take a look at the problem as I've just upgraded to 6.2. Have to wait until after the football though

EDIT - There's a problem with a missing header global.h in dbodata.h. Therefore I can't compile the dll at the moment!

Cheers,

Cloggy
Cloggy
19
Years of Service
User Offline
Joined: 31st Oct 2004
Location: Rayleigh, Essex
Posted: 6th Jul 2006 17:23
Attached is a version recompiled to work with DBP v6.2b

Everything seems ok here. I will update the website when I get a chance.

Cheers,

Cloggy

Attachments

Login to view attachments
BealziBob
19
Years of Service
User Offline
Joined: 9th Jul 2004
Location: The Grim North (UK)
Posted: 7th Jul 2006 01:06
Tested & confirmed, Thanks for the quick fix cloggy


Just a casual observer.
Philip
20
Years of Service
User Offline
Joined: 15th Jun 2003
Location: United Kingdom
Posted: 8th Jul 2006 23:25
Except I note that the new plugin is said to be v3.2.0.0. Please can someone update that to, say, v3.6?

Cheer if you like bears! Cheer if you like jam sandwiches!
"I highly recommend Philip's Vector Tutorials" (RiiDii)
Carrier Command remake project
Cloggy
19
Years of Service
User Offline
Joined: 31st Oct 2004
Location: Rayleigh, Essex
Posted: 8th Jul 2006 23:44
Will do. Although technically it's still only v3.5 compiled for DBP6.2

Cheers,

Cloggy
Sixty Squares
17
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 16th Jul 2006 19:04 Edited at: 16th Jul 2006 19:06
Ahhh!!! where is the plugin I don't see how I get it!

EDIT: Oops I found it lol.

EDIT 2: I do not understand how to use it now. All I see is the DLL so back to my first thing:
Quote: "Ahhh!!! where is the plugin I don't see how I get it!"
How do I use it?

My Functions: Mine
Post yours: Post
Cloggy
19
Years of Service
User Offline
Joined: 31st Oct 2004
Location: Rayleigh, Essex
Posted: 16th Jul 2006 19:41 Edited at: 16th Jul 2006 19:41
sixty squares,

Download and extract the full version from the link at the top of the page.

If you have DBP5.8/9 download and install the dll into your DBP user plugins directory.

If you have DBP6.2b download from a couple of posts up and restiore to your DBP user plugins directory.

There is help and examples included. If you have any question ask here and someone will be able to point you in the right direction.

Cheers,

Cloggy
Daemon
18
Years of Service
User Offline
Joined: 16th Dec 2005
Location: Everywhere
Posted: 18th Jul 2006 08:37 Edited at: 18th Jul 2006 08:39
I have Dark Basic Pro 1.062 and just downloaded the plugin from a couple of posts above. I have never used your plugin before. When I try to run an example it cannot run the lines-

D3D_3DText 1, 1,text$,depth#,quality,alignment
or
D3D_Pyramid 1, 1 + Rnd(4), 1 + Rnd(4), 1 + Rnd(4)

What could be causing this? Is there something else I should be posting to help someone help me?

Cloggy
19
Years of Service
User Offline
Joined: 31st Oct 2004
Location: Rayleigh, Essex
Posted: 18th Jul 2006 09:54
Daemon,

That's strange as the error with those lines occured when you used the version of the plugin compiled to work with 1.061.

I'll attach the latest version to this post, just to ensure you have the correct one.

Cheers,

Cloggy

Attachments

Login to view attachments
Daemon
18
Years of Service
User Offline
Joined: 16th Dec 2005
Location: Everywhere
Posted: 18th Jul 2006 20:04
I downloaded what you posted above, restarted my computer , and then tried to run the example and it still didn't work.

I am going to attach the dll I am using, but it should be the same as the one you have above.

It says that the file version is 3.2.0.0

Attachments

Login to view attachments
Cloggy
19
Years of Service
User Offline
Joined: 31st Oct 2004
Location: Rayleigh, Essex
Posted: 18th Jul 2006 21:01
Daemon,

Please use this debug dll. Try running you program with this. Please send me the executable you create and I will attempt debug it.

BTW. you should get a message box when attemting to create 3d text (after selecting all parameters).

Cheers,

Cloggy

Attachments

Login to view attachments
Daemon
18
Years of Service
User Offline
Joined: 16th Dec 2005
Location: Everywhere
Posted: 18th Jul 2006 22:21
I keep getting "Could not understand command at line 247." when I try to run this code-



I have tried running it with your debug dll and it still gets this error. It doesn't compile an executable until I take out lines 247 and 404. I don't see much point in attaching the executable with the lines that give me problem taken out, but I did anyway.

Quote: "you should get a message box when attemting to create 3d text (after selecting all parameters)."


Do you mean one will apear in the editor? I did not see this message box. Have I got all the parameters?

Attachments

Login to view attachments
Cloggy
19
Years of Service
User Offline
Joined: 31st Oct 2004
Location: Rayleigh, Essex
Posted: 19th Jul 2006 00:13
The msgbox appears when the D3D_3DText command runs.

Is it possible that you have copied the dll to the plugins directory rather than the plugins-user directory?

Also having just checked, it looks like the help files you are using are old. The command D3D_3DText no longer exists. It has been renamed to D3D_Make3DText. I would download the 3.5 zip file from my web site http://www.cloggj.f2s.com/DBPro/ unpack this to your DBPro path and the copy the 6.2 compatible version of the dll to you plugins-user directory.

If none of this works, I'm running low on suggestions. You could compile using the debug dll I've provided once your running the latest example. This should compile and give me something to debug.

Cheers,

Cloggy
Daemon
18
Years of Service
User Offline
Joined: 16th Dec 2005
Location: Everywhere
Posted: 19th Jul 2006 01:48 Edited at: 20th Jul 2006 17:09
Quote: "it looks like the help files you are using are old"


That was it! It turns out that the dll was fine, it was the code. I don't know how I accidentally downloaded the old help files, I guess I was just excited.

Sorry to take up your time like that.

[editted picture out. took to much space up]

edit: I have no idea why I put an apostrophe there.

Attachments

Login to view attachments
Cloggy
19
Years of Service
User Offline
Joined: 31st Oct 2004
Location: Rayleigh, Essex
Posted: 19th Jul 2006 02:14
No problem, just glad you got it working

Hope you find it useful after all that!

Cheers,

Cloggy
Wilf
Valued Member
17
Years of Service
User Offline
Joined: 1st Jun 2006
Location: Gone to Unity.
Posted: 20th Jul 2006 01:11
Hi Cloggy,
I'm having trouble displaying D3DText on top of my sprite buttons - the text is always drawn behind. Is there some way I can force the text to be drawn last? Draw Sprites First doesn't help...
Duffer
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 20th Jul 2006 01:43
@ Cloggy,

Could you post the link to everything as compatible with U6.2b on your website at top and provide link here - will probably reduce the entries on the thread

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
Cloggy
19
Years of Service
User Offline
Joined: 31st Oct 2004
Location: Rayleigh, Essex
Posted: 20th Jul 2006 10:25 Edited at: 20th Jul 2006 10:41
Wilf - There currently is no way to do this unfortunately. I have tried many different methods, but have draw a blank. Maybe you could use paste image rather than the sprite commands, it depends on what you are using them for.

Duffer - I intend to update the website as soon as I get the chance. Once this is done I will update the first post on this site to reflect this.

EDIT - Website and first post of this thread have been updated (20/07/2006)

Cheers,

Cloggy
Duffer
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 20th Jul 2006 15:06
@ Cloggy - excellent - many thanks

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
Wilf
Valued Member
17
Years of Service
User Offline
Joined: 1st Jun 2006
Location: Gone to Unity.
Posted: 21st Jul 2006 22:33
Thanks Cloogy, your suggestion led to a work around.

Essentially I need to display dynamic buttons - select a character whose name can be edited by the player.

In the end I pasted an image like you said, then a sprite with alpha channel for the mouse/sprite collision and finally the text label using D3D_Text.

The text is pasted over the image and the sprites alpha lets me see the text through the sprite.

Cheers!
Cloggy
19
Years of Service
User Offline
Joined: 31st Oct 2004
Location: Rayleigh, Essex
Posted: 31st Jul 2006 14:22
I've just tried it myself and created 2 fonts, 1 at 10 point and 1 at 10 pixels, and they were definately different in size.

What versions of D3DFunc and DBP are you using?

I will be releasing a small update within the next few days hopefully, although due to problems on one machine I use, it will only be available on U6.2.

Cheers,

Cloggy
Scilynt
21
Years of Service
User Offline
Joined: 13th Nov 2002
Location: .-#-.
Posted: 31st Jul 2006 21:20
I think he means different sizes using the point option use the same size. Example, 10 point font is the same size as a 20 point font.

I'd take a look, but I'm not sure if the latest source is on the site.
Cloggy
19
Years of Service
User Offline
Joined: 31st Oct 2004
Location: Rayleigh, Essex
Posted: 31st Jul 2006 21:46
The version of d3d_font on the website source is the latest.

I have done experiments creating fonts using pixels and points and all combinations seem to work ok here.

The following all give different size fonts.



Cheers,

Cloggy
Cloggy
19
Years of Service
User Offline
Joined: 31st Oct 2004
Location: Rayleigh, Essex
Posted: 4th Aug 2006 09:47
Could you post your code, the version of DBP you are using and the version of D3DFunc you are using and I'll have a look.

Cheers,

Cloggy
Dan San
17
Years of Service
User Offline
Joined: 27th Jul 2006
Location:
Posted: 8th Aug 2006 09:32
Excellent Plugin !!

I have a problem though, I don't know if it's just me, but when I use the command DISABLE OBJECT ZDEPTH on any object, even hidden ones, D3D_CIRCLE3D ignores the Z Buffer parameter. Examples:



Now if we comment the DISABLE ZDEPTH Line, It works fine:


Is it Just me? Thanks for a great plug-in!

" It is better to fail at what you love, than to succeed at what you hate... "
Daniel San
18
Years of Service
User Offline
Joined: 22nd Dec 2005
Location:
Posted: 8th Aug 2006 17:01
My above example is too rough. I made a better example. On the example below, if I disable the zdepth on cube 1, then cube 1 will render like it's zdepth is enabled, and the other 2 cubes will render with their depth disabled.



Again, it may just be my Video card or something, I just want someone to comfirm. Thanks !
Tartopom
19
Years of Service
User Offline
Joined: 27th Jun 2004
Location:
Posted: 8th Aug 2006 18:47 Edited at: 8th Aug 2006 18:47
Hello,

I've a problem using both batch (line and dot) functions. It seems to work because lines/dots appear, but only a fraction of second and disappear.

Maybe there's a problem with the clear flag or something, but If you can help me ...

Although, Is it necessary to update the batch each sync, or just one call?

thanks
Cloggy
19
Years of Service
User Offline
Joined: 31st Oct 2004
Location: Rayleigh, Essex
Posted: 8th Aug 2006 18:58
Dan San,

I know about this sort of problem, but there isn't much I can do about it at the moment. I spoke to Lee who said hen may be able to spend a little time helping me with this once his schedule clears up a bit, but until then there isn't much I can do. Sorry.

Tartopom,

Can you post a small sample that I can try as everything seems ok to me. Also please letme know what version on DBP and D3DFunc you are using.

Cheers,

Cloggy
Tartopom
19
Years of Service
User Offline
Joined: 27th Jun 2004
Location:
Posted: 8th Aug 2006 19:53
here it is,



dbpro U6.2b
d3dFunc U6.2 compatible
Daniel San
18
Years of Service
User Offline
Joined: 22nd Dec 2005
Location:
Posted: 8th Aug 2006 20:12
Ok, Thanks Cloggy! 3D lines DO work even while disabling Zdepth ( I think), so i'll work with that. Again, great plugin !!
Cloggy
19
Years of Service
User Offline
Joined: 31st Oct 2004
Location: Rayleigh, Essex
Posted: 8th Aug 2006 21:24
Tartopom,

You appear to have found a bug. It would appear that you have to re add the lines to the batch each loop. This shouldn't be the case.

Here is a get around until I fix the problem for the next release.


Also the help docs are slightly wrong. The D3D_BATCH_ADD_LINE3D no longer requires a zEnable flag as this is specified in the D3D_BATCH_DRAW_LINE3D command.

I have been close to releasing a new version with some isometric camera commands for a while now, hopefully it will be available soon.

Cheers,

Cloggy
Tartopom
19
Years of Service
User Offline
Joined: 27th Jun 2004
Location:
Posted: 8th Aug 2006 22:09
Thanks Cloggy,

Waiting for the next release
Cloggy
19
Years of Service
User Offline
Joined: 31st Oct 2004
Location: Rayleigh, Essex
Posted: 10th Aug 2006 01:47
I've uploaded version 3.6. Unfortunately it only works with DBP 6.2b. But I no longer have a PC with an earlier version of DBP on it.

This version includes new isometric camera commands and fixes the problems found with batch drawing.

Attached is a Example program showing the new commands

Here is a screenie.


Any Questions/Bugs found, please post here.

Cheers,

Cloggy

Attachments

Login to view attachments
Ianhfar
19
Years of Service
User Offline
Joined: 8th Jul 2004
Location: UK
Posted: 10th Aug 2006 10:33
Cloggy,

A liitle off subject, I was looking at your code for creating DirectX object,
void MakeObjectFromDXMesh( int iID,ID3DXMesh *ppMesh )

I see you have made provision for multi-limbed objects but don't use it. Can you point me in the right direction, I have loaded up a directX Hierarchy, prepared the Allocation class, but I am having problems linking the Siblings and children, I can use your method, but its just a list of unconnected limbs, so as you can imagine the object loads up all jumbled and at the same origin.


Ian
Cloggy
19
Years of Service
User Offline
Joined: 31st Oct 2004
Location: Rayleigh, Essex
Posted: 10th Aug 2006 11:14
I would love to help. But the code was taken from a small sample sent to me by Mike Johnson of TGC. It may be worth trying to contact him. Most of the coding of this dll was created from small samples of code I picked up from the Internet.

Cheers,

Cloggy
Tartopom
19
Years of Service
User Offline
Joined: 27th Jun 2004
Location:
Posted: 10th Aug 2006 14:02 Edited at: 10th Aug 2006 14:03
Hello,

Batches commands are now working like a charm, thanks Cloggy
Ianhfar
19
Years of Service
User Offline
Joined: 8th Jul 2004
Location: UK
Posted: 11th Aug 2006 10:22
Thanks Cloggy,

I might try that all just take the easy route and forget it
Mistrel
Retired Moderator
18
Years of Service
User Offline
Joined: 9th Nov 2005
Location:
Posted: 11th Oct 2006 05:07 Edited at: 11th Oct 2006 05:09
I have a bug for you, Cloggy.

When using LOCK OBJECT ON or DISABLE OBJECT ZEPTH all d3d_lines lose their zdepth.

http://3dfolio.com
Mistrel
Retired Moderator
18
Years of Service
User Offline
Joined: 9th Nov 2005
Location:
Posted: 17th Oct 2006 03:17 Edited at: 17th Oct 2006 03:18
Where is Cloggy? This bug is very bothersome.

The full source was released with the dll. Would someone look to see if it's simple thing to fix?

Thanks.

http://3dfolio.com
Cloggy
19
Years of Service
User Offline
Joined: 31st Oct 2004
Location: Rayleigh, Essex
Posted: 17th Oct 2006 10:13
Sorry,

I don't get on the forum very often at the moment, haven't done anything with DBPro since June due to other commitments.

This bug has been looked at many times before and there isn't anything that can be done I'm afraid.

The problem is due to the fact that the dll draws it's lines before DBPro renders its objects. This cannot be changed unless it is more deeply embedded within DBPro. I have spoken to Lee about it and he did say that when he had more time he would have a look to see if anything could be done to help correct the problem.

Cheers,

Cloggy
Mistrel
Retired Moderator
18
Years of Service
User Offline
Joined: 9th Nov 2005
Location:
Posted: 25th Oct 2006 01:53 Edited at: 25th Oct 2006 01:54
I'm having a problem using the 2D commands. When I draw shapes on the 3D canvas it will display the outline but if I try to fill it with color the shape wont display.

http://3dfolio.com
Ric
19
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 11th Jan 2007 12:09 Edited at: 12th Jan 2007 00:03
Quote: "I still have the text crashing problem. It's when I create a fourth D3D Text, part-way through the program. It doesn't crash for me ever on 2 machines, but it does every time for Rick Vanner.

One of my machines has a Geforce 5200 FX 128 MB card, the other is an ATI mobility Radeon. I don't know what Rick is using.

The code that causes it is quite simple:

d3D_font 4,"Arial",24,0,0,1
d3d_color 50,50,50,255
"


This quote I've dragged up from last year (Batvink) also closely describes an issue I'm having with latest versions of dbp and d3d.

All I'm using are the basic text commands as above - everything works well on one machine, but crashes out on another.

I'm still in the process of trying to narrow down the root of the problem, but have discovered that putting the command 'wait 1000' before the d3d_font command prevents the crash and everything works ok.

This suggests to me that there is something happening in the background which is taking upto 1 second to complete, which is required before d3d_font is called.

I will continue to experiment with where I place the wait command to try and narrow down what it is that needs the one second before it gets to the font command ... I wonder, could it be the d3d_init command that takes a short time to initialise?

<edit>
Strange. It seems that the wait command has to go somwhere after the d3d_init command, and before the first d3d function is called. Where it has to go, and how long the wait has to be, varies from one compile to another.

Blue Dragon
18
Years of Service
User Offline
Joined: 21st Oct 2005
Location:
Posted: 14th Jan 2007 00:16
Cloggy? It seems his website is no longer functional and the latest full version (with help & examples) on this site is version 3.0. I need the latest/greatest if possible.

Any chance someone with version 3.6 (which seems to be the latest reference that I can find) can upload it here?

Signatures are a waste of bytes.
Nicholas Thompson
19
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 14th Jan 2007 17:47 Edited at: 14th Jan 2007 18:06
Get it from here...
http://www.cloggj.f2s.com/DBPro/

I'm just gonna try it with 6.2c - I hope it works!

Woo hoo! It does!

[center]

Login to post a reply

Server time is: 2024-04-20 01:15:31
Your offset time is: 2024-04-20 01:15:31