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 / can I do "Per-Pixel Lighting" in darkbasic pro?

Author
Message
hayzx
22
Years of Service
User Offline
Joined: 26th Feb 2003
Location:
Posted: 26th Feb 2003 07:46
the link :
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndrive/html/Directx11192001.asp?frame=true
Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 26th Feb 2003 08:32
yes... but you need a GeForce 3/4/FX and be able to understand the pointer for the light positions from the global pointer.

This is hard as hell to do natively within DirecX itself - within Pro you're talking about a good 3-4weeks of programming (mostly in ASM for the Shaders)

i'd wait until Patch 4.x is released because we should have a better explaination of the engines workings and pointers for data so we can make some true updates

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?
hayzx
22
Years of Service
User Offline
Joined: 26th Feb 2003
Location:
Posted: 26th Feb 2003 14:58
Thank you,
I have a Geforce2 GTS which don't support vertex shader and pixel shader but support "Per-Pixel Lighting" and bump,
but the command "set bump mapping on" don't work,the mesh
appear black,who did it successfully?
About "Per-Pixel Lighting",can you give me some hint,using
DLL?

Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 26th Feb 2003 15:47
oki... well first of all DarkBasic Professionals supported cards for Hardware Shaders are

GeForce 3 Ti 340,360,380
GeForce 4 Ti 4200,4400,4600,4800
GeForce FX 1000(620), 1400(640), 2000(680)

so any one of them will be able to be used (or thier Quadro counterparts)
to make this work within Pro will take ALOT of doing, and i'm pretty sure it isn't greatly possible right now.

However... i think your best bet at getting this to work, use a DLL to do all the mathematical calculations - it would also allow you to use a good majority of the C++ code, i'd pass the Object information that way ... construct a Pixel Shader and convert to FVF from the one on the site (which might take a while as they're not identical)

really all i'd do is try first to convert the working code on the site ... passing object/light data back and forth.
i mean all the Per-Pixel Lighting does is calculate a basic Raytrace and applies it to the rendered pixels of the object every cycle.

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?
hayzx
22
Years of Service
User Offline
Joined: 26th Feb 2003
Location:
Posted: 26th Feb 2003 18:37
It's so difficult.
I hope the patch 4 or 5 can do it.

Login to post a reply

Server time is: 2025-05-20 14:09:10
Your offset time is: 2025-05-20 14:09:10