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 / Possible problem with Evolved's Toon shader?

Author
Message
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 21st Sep 2009 11:55 Edited at: 21st Sep 2009 11:57
Here is a quick screenshot:


I am using Evolved's toon shader.

For some reason some of my objects come in not textured even though I am using the same piece of code to load them/texture/fx etc.

It might be the objects but I have tried re-exporting the files from scratch using the same settings, even tried new file formats (X & 3DS).

Is there some reason why some objects might not work with this shader when others do?

Hopefully I'm not the first person with this problem!

Thanks for reading...

PS.I am re-opening this thread here as I stupidly opened it in DLL first off, if a moderator could close it I'd be grateful:
http://forum.thegamecreators.com/?m=forum_view&t=157993&b=18
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 21st Sep 2009 11:56
I have been working on this and I can now expand on the problem a little.

I changed some of the objects to DBP primitives to check if it was just the object or how it was created/cloned/inserted and I get the same problem occuring slightly more randomly now: When I insert an object it appears textured sometimes and not at other times (the same object). I can also make all of the textures work on all of the objects but not every time...

I think it is a problem with Evolved's shader (I could be wrong) as everything was working fine until I applied it, you can try the working demo here:
http://forum.thegamecreators.com/?m=forum_view&t=157694&b=8
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 22nd Sep 2009 15:34
OK I fixed this and it was what I like to refer to as 'human error' on my part...

I was using randomise to choose my texture but not allowing for the fact that it chooses from '0' to the number in parenthesis not from '1'.

That is why I could manually get each texture up but not using my "Random" feature!!

Sorry Evolved!!

Login to post a reply

Server time is: 2024-04-20 14:15:57
Your offset time is: 2024-04-20 14:15:57