PerPixelLight with GLShadingLanguage in PureBasic

Advanced game related topics

On a ...

... nVidia card I got the "Error linking shaders..." (quoted in the answer).
0
No votes
... nVidia card I got a graphical error (described[maybe with an image] in my answer).
0
No votes
... nVidia card I got no error.
11
42%
... ATI card I got the "Error linking shaders..." (quoted in the answer).
6
23%
... ATI card I got a graphical error (described[maybe with an image] in my answer).
0
No votes
... ATI card I got no error.
2
8%
I have no card that supports Vertex- or PixelShaders.
7
27%
 
Total votes: 26

DarkDragon
Addict
Addict
Posts: 2348
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

PerPixelLight with GLShadingLanguage in PureBasic

Post by DarkDragon »

Hello,

This topic is just for people with graphiccards which support PixelShaders.

What's the problem?
I've written a small GLSL Example with help of the UltimateGameprogramming Tutorials in PureBasic. Now I've given the application to some ATI card users and what have I noticed? It doesn't work there. Then I tried it with nVidia card users and look there! It works!

What do you want me to do?
I need more testers and maybe also helpers, which can find those errors in the GLSL-scriptfiles: "Vertex.glsl" and "Pixel.glsl". If you get an Error("Error linking shaders...") you will get a File called "ERROR.txt". Then post it in a quote here in the topic, please.
If you get errors in displaying: try a new gfx card driver if you can. If not, describe your graphical error here.
And as last step fill the poll with your data ;) .

Where can I see if it shows me all things correctly?
Look at the picture down in the Useful Links section. It should look like that.

Are there any control-settings?
Yes, the arrowkeys move the light and the left mouse button changes the light color.

Useful Links:
Application as ZIP(~16kb)
Correct Graphics(~62kb)

Thanks to everyone who tries it. :wink: :)
bye,
Daniel
SoulReaper
Enthusiast
Enthusiast
Posts: 372
Joined: Sun Apr 03, 2005 2:14 am
Location: England

Post by SoulReaper »

Hi I got the link error while checking, i have a radeon 9800 pro - dx 9.0c - Graphic driver version 8.172.0.0

Error

Link failed. All shader objects have not been successfully compiled.

I hope this helps :)
Bonne_den_kule
Addict
Addict
Posts: 841
Joined: Mon Jun 07, 2004 7:10 pm

Post by Bonne_den_kule »

Same error as SoulReaper with a radeon 9600 se with newest catalyst driver
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6172
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

no problem on my machine (using gforce 6600gt)
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB - upgrade incoming...)
( The path to enlightenment and the PureBasic Survival Guide right here... )
DarkDragon
Addict
Addict
Posts: 2348
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Post by DarkDragon »

Thanks, but ATI isn't very comfortable to developers:

- large, uncommented codes
- Errors which say nothing

Well all ATI users get the same error. When I downloaded a Tutorial, I had to change the GLSL scripts too, because they hadn't casted int to float and other datatypes. But I always got an error like this:

(59) - datatype conversion corrupt

I will try to fix it, but it's hard without ATI card.
bye,
Daniel
dagcrack
Addict
Addict
Posts: 1868
Joined: Sun Mar 07, 2004 8:47 am
Location: Argentina
Contact:

Post by dagcrack »

Hey kiddo, I can ensure you its possible, since its been done half an year ago in my engine :wink: - It's just bad programming from your side.

All I will say.
Stick the polls in a jar and blow it up.
! Black holes are where God divided by zero !
My little blog!
(Not for the faint hearted!)
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

Heya dagcrack,

If you're considering selling your engine when it is done, don't be so blooming abrupt and rude.

Pissed off people are not buyers.

Pissed off people are not just those you individually target, either.


:)


(This was a friendly neighbourhood free counselling session. The couch is now vacant. Next?)
@}--`--,-- A rose by any other name ..
DarkDragon
Addict
Addict
Posts: 2348
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Post by DarkDragon »

dagcrack wrote:Hey kiddo, I can ensure you its possible, since its been done half an year ago in my engine :wink: - It's just bad programming from your side.

All I will say.
Stick the polls in a jar and blow it up.
Why my side? It is a converted tutorial at first. So it's not directly my code. But it doesn't work on ATI cards. Why aren't you helping me finding the bug? The glsl files are there, so you can find it. I don't have an ATI card, so I can't find the bug. I downloaded some codes from ATI, but they are doing the same.

[EDIT]
And grr... I thought now I would have something that hasn't been done in PureBasic already.
bye,
Daniel
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

DarkDragon wrote: [EDIT]
And grr... I thought now I would have something that hasn't been done in PureBasic already.
Eventually i DID tell you nearly before you did it.. Just not who did it but i said it has been done, and that it also worked on ATI ;)
DarkDragon
Addict
Addict
Posts: 2348
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Post by DarkDragon »

thefool wrote:
DarkDragon wrote: [EDIT]
And grr... I thought now I would have something that hasn't been done in PureBasic already.
Eventually i DID tell you nearly before you did it.. Just not who did it but i said it has been done, and that it also worked on ATI ;)
No, you said it has been done with CgShaders, when I used them, not the GLSL ones ;)
[EDIT]
And why don't you answer to my messages in the msnm?
bye,
Daniel
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

DarkDragon wrote: And why don't you answer to my messages in the msnm?
I cant sit here all day you know :wink:
dagcrack
Addict
Addict
Posts: 1868
Joined: Sun Mar 07, 2004 8:47 am
Location: Argentina
Contact:

Post by dagcrack »

First, who said I was planning to sell it over here? :? - Plus I'm abrupt to who diserves that kind of treatment.
Second, it was GLSL.

And yes, other APIs are supported if needed, as well.
Its been done ages ago in pb, by me ;)

I don't remember having any trouble supporting ATI with all this.. I did had trouble with some other things, but all was fixed in no time as always.:wink: SO ITS YOUR FAULT IF IT DOESNT WORK OVER ATI, ALRIGHT. YOUR FAULT


If I sound rude and arrogant, I told you many months ago.. Get used to it, or ban me -if you are gay (sexually twisted)- of course.
If you're all soft and comfy, sooner or later someone will pass over you.

DarkDragon lil german, even if you've spent your entire life trying to develop an engine.. Hmm.. would you go any further than I ? :?:
Yours might be a little dream, mine is a buisness and has been already successfully used commercially. tsk tsk.


Thats life, you're in a jungle and you must survive. Don't let them go over you.. You, go over them before leaving them any chances. If you don't like it, join your local gay movement.



Hey you must admit I'm funny sometimes.
At least thefool will understand my message over here :lol:
Peace everyone; and don't be mad or there wont be any chocolate milk for you.
! Black holes are where God divided by zero !
My little blog!
(Not for the faint hearted!)
User avatar
Rings
Moderator
Moderator
Posts: 1435
Joined: Sat Apr 26, 2003 1:11 am

Post by Rings »

pisser
SPAMINATOR NR.1
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6172
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

dagcrack, i'm gonna' do something i don't do often: i'm gonna' react to something stupid... let me just give you two words:

grow up
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB - upgrade incoming...)
( The path to enlightenment and the PureBasic Survival Guide right here... )
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

The young these days.. Blame it on the rap music! :o
Post Reply