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.

FPSC Classic Product Chat / [FPSC Modding]Shaders and textures with AI

Author
Message
Hell_666
16
Years of Service
User Offline
Joined: 11th Jul 2009
Location: France
Posted: 25th Apr 2010 22:03
Hi, in the FPSC source code, when I use my own shader, if I disable it, my AI haven't textures, but I texture it with their own default textures when I delete the effect but I've a white model, not textured o_O


Can you help me please ?

thanks

Eternal suffering ...

I'm french
SH4773R
16
Years of Service
User Offline
Joined: 18th Jan 2010
Location: AMERICA!!!
Posted: 25th Apr 2010 22:17
No idea sorry, Try dumping mem and runing the cleaner?

Who the hell is General Failure? And why is he trying to read my hard disk?

My software never has bugs. It just develops random features.
zeza
18
Years of Service
User Offline
Joined: 27th Jun 2008
Location:
Posted: 26th Apr 2010 01:41
Could you post that code section for me? It would help for me to see it to say whats wrong.

I'd change the world, but I don't have the source code
Hell_666
16
Years of Service
User Offline
Joined: 11th Jul 2009
Location: France
Posted: 26th Apr 2010 19:33


This is my code, the switch is activated and desactivated by an other section (not important for the graphic aspect).

Eternal suffering ...

I'm french
zeza
18
Years of Service
User Offline
Joined: 27th Jun 2008
Location:
Posted: 26th Apr 2010 21:47
Quote: "if entityelement(e).eleprof.tex1id<>0 then texture object obj,1,entityelement(e).eleprof.tex1id
if entityelement(e).eleprof.tex2id<>0 then texture object obj,2,entityelement(e).eleprof.tex2id
if entityelement(e).eleprof.tex3id<>0 then texture object obj,3,entityelement(e).eleprof.tex3id
texture object obj,0,entityelement(e).eleprof.texdid"

okay, there's your problem.
If the entity was previously using a shader, then you use those textures, but you have to reset its shader. So you would do

If it wasn't using a shader then you just use


I'd change the world, but I don't have the source code
Hell_666
16
Years of Service
User Offline
Joined: 11th Jul 2009
Location: France
Posted: 26th Apr 2010 21:57
The previouseffect doesn't exist in the entityelement(e) profil type :s

So, I must make myself a system as this, or it exist already one as this ?

Eternal suffering ...

I'm french

Login to post a reply

Server time is: 2026-07-05 22:38:06
Your offset time is: 2026-07-05 22:38:06