Two classes from the referred post are compiling without any problems in my environment.
I use latest Xith3D sources from CVS, JDK 1.4.2_01 and ANT 1.5.4.
If you still have problems, I can help you to resolve it step-be-step.
Yuri
Two classes from the referred post are compiling without any problems in my environment.
I use latest Xith3D sources from CVS, JDK 1.4.2_01 and ANT 1.5.4.
If you still have problems, I can help you to resolve it step-be-step.
Yuri
Maybe classpath during the compilation is not what you expect it to be.
JCD, please check if you have Xith3D installed in your JDK’s lib/ext (both JDK and JRE), check that you don’t have CLASSPATH variable set, and JAVA_HOME points to valid JDK home…
…well, anyway, the same basic instructions…
Yuri
JCD, do you use plain javac or ant build script (build.xml)? Please use ant script - it should work just fine.
Yuri
I sometimes have similar, incidental & strange, compilation errors but in my JBuilder environment.
Exiting JBuilder, then deleting the project’s classes directory, and forcing a complete recompile has always
solved these errors for me.
Robert
OK, I will check this out, but I’ll be able to do this nearest in a week…
Yuri
Party time ;D ;D
I “think” I got them pixel and vertex shaders to work, lemmie see if I can make a little demo
PS:
This is how I declare them
appearance.setShaderProgram(new VertexShader(string, prarmeters));
appearance.setShaderProgram(new FragmentShader(string, prarmeters));
Damn, it works for few seconds with the right effect and then everything disappeared at once
You can find all the classes that I created/modified here
We’re almost there folks
Actually the first frame works just fine, and then the geometry disapears…
Ummm now I can see a flaw in the way I implemented PS and VS:
There could be only one program at once…doh
I need to create a ShaderProgramUnitState where I can have PS and VS shaders combined.
Tell me what you guys think, after all I’m not doing it for my sake alone
I see the secret behind disappearing object:
In ShaderProgramPeer, doneShading function is only called once during the entire program.
I checked TetureShaderPeer and it was in fact calling that same method all the time…
Hmmm back troublesooting
Man, only one thing to do and then w00 w00:
Getting doneShading in ShaderProgramPeer to be called more than once during runtime
:’(
W00h00 I got them fully working in Xith3D now yay.
/me off making a demo.
PS: I thought the good news deserved a new thread
Please delete this thread
dont- its good to see a mind at work history in the making ;D
There will be (I hope) a time when we will create more detailed developer’s guide on how internals of Xith3D work.
Yuri