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 / Undocumented Cube Map Commands?

Author
Message
Tv Xxx
16
Years of Service
User Offline
Joined: 23rd Sep 2007
Location: Behind You!
Posted: 21st May 2009 18:08
I've been looking at evolveds shadow shaders today, mainly the Cubic shadow mapping, and i was reading the code and saw it uses Cube Map Commands, such as...

Make Dynamic Cube Map
Apply Cube Map To Object
Render Dynamic Cube Map

but yet theres no help files on how to use these, and no paramaters on them either, so thus my question, what are the parimeters of them and how do i use them

Yours Tv.

Your signature has been erased by a mod - Please reduce it to 600x120 maximum size
Math89
20
Years of Service
User Offline
Joined: 23rd Jan 2004
Location: UK
Posted: 21st May 2009 19:56
I think you need to buy Dark Shader.

Your signature has been erased by a mod - Please reduce it to 600x120 maximum size
Lucifer
18
Years of Service
User Offline
Joined: 26th Dec 2005
Location:
Posted: 21st May 2009 19:58
Yeah, i think these are Darkshader commands.

Goat
Tv Xxx
16
Years of Service
User Offline
Joined: 23rd Sep 2007
Location: Behind You!
Posted: 22nd May 2009 00:23
but i compiles, which is annoying, TGC should release the help files

Your signature has been erased by a mod - Please reduce it to 600x120 maximum size
Master Xilo
17
Years of Service
User Offline
Joined: 8th Sep 2006
Location: Bern, Switzerland
Posted: 22nd May 2009 02:40
What? These commands compile now without DarkShader???

Tv Xxx
16
Years of Service
User Offline
Joined: 23rd Sep 2007
Location: Behind You!
Posted: 22nd May 2009 10:17
Yer, I just downloaded the Cubic shadow mapping from evolveds website and it compiled, the syntax even highlighted, so i have some kind of keywords file, but it doesnt give the parameters, so does anyone have a help file for the 3 commands above?

Make Dynamic Cube Map
Apply Cube Map To Object
Render Dynamic Cube Map

or can someone tell me the parameters?

Thanks Tv.

Your signature has been erased by a mod - Please reduce it to 600x120 maximum size
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 22nd May 2009 11:06
maybe they incloded the darkshader commands as default now?
Math89
20
Years of Service
User Offline
Joined: 23rd Jan 2004
Location: UK
Posted: 22nd May 2009 11:30
After a bit of research, there is a new DLL in the plugin-user directory (ShaderData.dll) which seems to have all the DarkShader commands.

Your signature has been erased by a mod - Please reduce it to 600x120 maximum size
Tv Xxx
16
Years of Service
User Offline
Joined: 23rd Sep 2007
Location: Behind You!
Posted: 22nd May 2009 13:13
Yer i knoticed that too, but if there releasing a version of the shader.dll, surly they can release the help files that go with it?
please TGC

yours Tv.

Your signature has been erased by a mod - Please reduce it to 600x120 maximum size
jeffhuys
17
Years of Service
User Offline
Joined: 24th May 2006
Location: No cheesy line here.
Posted: 22nd May 2009 13:23
Nice, if true!



You're the 'th to view this signature!
Master Xilo
17
Years of Service
User Offline
Joined: 8th Sep 2006
Location: Bern, Switzerland
Posted: 22nd May 2009 20:45
This is not very nice. These commands were one of the reasons why I bought DShader...
But what can I do, who cares...

bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 23rd May 2009 09:13
well i think that it was about time that they expanded the basic shader commands available as standard
kaedroho
16
Years of Service
User Offline
Joined: 21st Aug 2007
Location: Oxford,UK
Posted: 23rd May 2009 23:34
I noticed this a few months ago when a Dark Shader example from Dark Source compiled. I didnt post about it just incase Lee accidentally dropped it in.

Tv Xxx
16
Years of Service
User Offline
Joined: 23rd Sep 2007
Location: Behind You!
Posted: 25th May 2009 01:51
So can anyone who own DarkShader and has the parameters for thoose 3 commands, please i beg you, tell me them?

Thank Tv.

Your signature has been erased by a mod - Please reduce it to 600x120 maximum size
trogdor
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: Portsmouth, VA, USA
Posted: 27th May 2009 19:02
void dbMakeDynamicCubeMap( int iID, int size );
//creates a cube map of the specified resolution, valid ID = 1-10

void dbMakeDynamicCubeMap( int iID, int size, int mipmapped );
//creates a cube map of the specified resolution, with mipmap parameter

void dbApplyCubeMapToObject( int objID, int stage, int iID, int shader );
//applies a cube map to an object stage, use shader=1 if using an object shader

void dbApplyCubeMapToObject( int objID, int stage, int iID );
//applies a cube map to an object stage, shader=1

void dbRenderDynamicCubeMap( int iID, int camera, float x, float y, float z );
//renders a cube map with a camera (-1 for temp camera) at a position

Last night I lay in bed looking up at the stars in the sky and I thought to myself, where the heck is the ceiling.
Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 27th May 2009 19:20
@trogdor: That's only valid for Dark GDK.

Your signature has been erased by a mod because it is way too awesome!
trogdor
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: Portsmouth, VA, USA
Posted: 27th May 2009 20:36
I figured they'd use the same params for DarkBasic.
I don't know where else to look.
Sorry

Last night I lay in bed looking up at the stars in the sky and I thought to myself, where the heck is the ceiling.
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 27th May 2009 22:30 Edited at: 27th May 2009 22:51
Quote: "I figured they'd use the same params for DarkBasic."


I believe they do.

Quote: "I don't know where else to look."


I think I saw it in one of the update files.

Unfortunately you need to have installed the right update to have the right update file.

And I have no idea which update it was.

If I stumble across it, I'll post it (if I remember of course ).

Edit I think this is it - lurking in a file called ShaderData Commands.txt



It wasn't in an update file - it was buried in a folder on my old PC. [Note to self - I really must transfer every useful file to my new PC. If I go quiet for six months you'll know why. ]

Login to post a reply

Server time is: 2024-05-13 16:08:12
Your offset time is: 2024-05-13 16:08:12