Page 1 of 2

PerPixelLight with GLShadingLanguage in PureBasic

Posted: Tue Dec 27, 2005 2:37 pm
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: :)

Posted: Wed Dec 28, 2005 1:15 pm
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 :)

Posted: Wed Dec 28, 2005 1:39 pm
by Bonne_den_kule
Same error as SoulReaper with a radeon 9600 se with newest catalyst driver

Posted: Wed Dec 28, 2005 1:40 pm
by blueznl
no problem on my machine (using gforce 6600gt)

Posted: Wed Dec 28, 2005 1:58 pm
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.

Posted: Sat Jan 07, 2006 9:42 am
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.

Posted: Sat Jan 07, 2006 10:05 am
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?)

Posted: Sat Jan 07, 2006 10:59 am
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.

Posted: Sat Jan 07, 2006 11:30 am
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 ;)

Posted: Sat Jan 07, 2006 11:47 am
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?

Posted: Sat Jan 07, 2006 12:15 pm
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:

Posted: Sun Jan 08, 2006 11:13 am
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.

Posted: Sun Jan 08, 2006 1:49 pm
by Rings
pisser

Posted: Sun Jan 08, 2006 2:52 pm
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

Posted: Sun Jan 08, 2006 2:53 pm
by thefool
The young these days.. Blame it on the rap music! :o