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 / Simple DarkBasic Program

Author
Message
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 24th Apr 2003 22:19
i've been just messing about putting together some basic framework for a shader tutorial ... don't worry anyone who wants the tutorial, i've tried to use as little as the DBpro functions with this as possible and can remake the shader tutorial in a matter of a few lines with the builtin function.

unfortunately i don't have the resources to test if this actually works

(hopefully this post won't cut off)
Tut1VS.dpw.dba ->>


std.inc.dba ->>


fvf.inc.dba ->>


well have fun trying to figure out what it actually does
Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 24th Apr 2003 22:21
aahh good it didn't fudge up (^_^)
i hope this works off the bat, but knowing my coding skills it won't lol

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
OzBot
23
Years of Service
User Offline
Joined: 24th Feb 2003
Location: Sweden
Posted: 24th Apr 2003 22:44
Cheers man I'll take a copy of that if you don't mind
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 25th Apr 2003 17:26
lol someone wouldn't mind letting me know if this works or not would they?

oh and a small patch


just replace the function or recode the changed line, no biggie - but it hit me that as soon as that was more than 360° it'd crash lol

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 26th Apr 2003 04:49
59hits and not a single person can tell me if this works or not?
guess ya'll won't be happy until i setup the working shader stuff eh?

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
Matto
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location:
Posted: 26th Apr 2003 05:38
Don't get too impatient there Raven, it looks good, but it's not the sort of stuff many would understand straight off, it's way over my head right now thats for sure.

1ghz Cel,512 sdram 133,Gf2 MX 400 64,SBL 5.1,Win98
Best Upcoming MMOG - http://WWW.Atriarch.com
Project: Card Game with No Name
Matto
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location:
Posted: 26th Apr 2003 05:41
oh and I don't have a geforce 4+. yet....

1ghz Cel,512 sdram 133,Gf2 MX 400 64,SBL 5.1,Win98
Best Upcoming MMOG - http://WWW.Atriarch.com
Project: Card Game with No Name
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 26th Apr 2003 07:05 Edited at: 26th Apr 2003 07:06
well thats oki, because the demo doesn't need a GeForce4/5 yet
i mispelt D3DVIEWMATRIX ... if someone wants to correct that.

whilst my DBpro CD is MIA i've no way to find out if this works, especially as this version requires DBpro 1.04.x Beta/Retail as its using FVF based in the Memblocks.

the program is actually fairly simple, all it does is creates a Quad/Plane which looks as if it has a rainbow on it and rotates it slowly. I forgot to setup the camera, not sure if DBpro sets up the standard camera like DirectX does...
but essentially i've just remade making a simple FVF Object in code

so i could do exactly the same by typing



i know it seems really really complex, but effectively you're looking at the C++ DirectX equivilant above
and it effectively the same deal, just not using the builtin commands as much.

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
Overdroid
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location:
Posted: 26th Apr 2003 13:40
When I try to build an executable I get an error:

Quote: "Could not determine parameter type of 'inc g_Vec3' at line 105."


I think I included all the files correctly and such. I'm using DBpro with patch 4.

"Talk is cheap because supply exceeds demand."
- Unknown.
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 26th Apr 2003 19:05
hehee oh yeah - i forgot i stopped using my Vector.inc.dba (doh!)
setup at the start of the program



i think that should fixx those problems, if not i'll have to rewrite each thing so that its a local variable thats exported to the global variable ... wasn't sure if i could use the (inc [global]) as part of the instructions - but didn't see the harm

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
Overdroid
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location:
Posted: 26th Apr 2003 22:13
Added the lines as you say - got the same error, this time at line 109.

"Talk is cheap because supply exceeds demand."
- Unknown.
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 26th Apr 2003 23:01


that should fixx that problem
btw just for information the current version is
0.05.r0.alpha.(yourbuild)

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 26th Apr 2003 23:03 Edited at: 26th Apr 2003 23:10


and here is version 0.02 of the standard include

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 26th Apr 2003 23:05
oh and another minor bug fixx (0.05.r1)
change #constant PI to #constant D3D_PI

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
Overdroid
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location:
Posted: 26th Apr 2003 23:20
K. Changes made. New error:

Quote: "Could not determine parameter type of 'inc g_Matrix4' at line 101."


"Talk is cheap because supply exceeds demand."
- Unknown.
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 26th Apr 2003 23:41
101? for me 101 is a remarked description lol
try using (g_Matrix4=g_Matrix4+1) - if that works i'll add a section of #constant nextMatrix4 and such

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
Overdroid
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location:
Posted: 27th Apr 2003 00:03
Ok. Made those changes, got the same error. Realized the error was referring to the RestoreDeviceObjects function.

I changed the formatting of the local declarations in the RestoreDeviceObjects function and got a new error -

Quote: "Could not determine parameter type of 'set vector3 vecEye' at line 117."


I've included the updated code so far.

"Talk is cheap because supply exceeds demand."
- Unknown.

Login to post a reply

Server time is: 2026-07-11 09:30:23
Your offset time is: 2026-07-11 09:30:23