Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (407)
games submitted by our members
Games in WIP (293)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Re: Help me implementing PS and VS shaders  (Read 1774 times)
0 Members and 1 Guest are viewing this topic.
Offline Yuri Vl. Gushchin

Senior Member




Speak Java!


« Posted 2004-01-24 08:14:45 »

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

Yuri Vl. Gushchin
JProof Group
Offline whome

Junior Member




Carte Noir Java


« Reply #1 - Posted 2004-01-24 16:51:51 »

Maybe classpath during the compilation is not what you expect it to be.
Offline Yuri Vl. Gushchin

Senior Member




Speak Java!


« Reply #2 - Posted 2004-01-24 18:10:06 »

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

Yuri Vl. Gushchin
JProof Group
Games published by our own members! Check 'em out!
Try the Free Demo of Titan Attacks
Offline Yuri Vl. Gushchin

Senior Member




Speak Java!


« Reply #3 - Posted 2004-01-24 18:53:49 »

JCD, do you use plain javac or ant build script (build.xml)? Please use ant script - it should work just fine.

Yuri

Yuri Vl. Gushchin
JProof Group
Offline robertMerkle

Junior Newbie




Java games rock!


« Reply #4 - Posted 2004-01-24 21:34:24 »

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
Offline Yuri Vl. Gushchin

Senior Member




Speak Java!


« Reply #5 - Posted 2004-01-25 05:07:38 »

OK, I will check this out, but I'll be able to do this nearest in a week...

Yuri

Yuri Vl. Gushchin
JProof Group
Offline Java Cool Dude

Senior Member




Java forever


« Reply #6 - Posted 2004-01-25 13:59:57 »

Party time Grin Grin
I "think" I got them pixel and vertex shaders to work, lemmie see if I can make a little demo Tongue
PS:
This is how I declare them
appearance.setShaderProgram(new VertexShader(string, prarmeters));
appearance.setShaderProgram(new FragmentShader(string, prarmeters));
Offline Java Cool Dude

Senior Member




Java forever


« Reply #7 - Posted 2004-01-25 17:29:50 »

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 :p
Offline Java Cool Dude

Senior Member




Java forever


« Reply #8 - Posted 2004-01-25 17:41:58 »

Actually the first frame works just fine,  and then the geometry disapears...
Offline Java Cool Dude

Senior Member




Java forever


« Reply #9 - Posted 2004-01-25 17:47:17 »

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
Games published by our own members! Check 'em out!
Try the Free Demo of Droid Assault
Offline Java Cool Dude

Senior Member




Java forever


« Reply #10 - Posted 2004-01-25 18:28:44 »

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
Offline Java Cool Dude

Senior Member




Java forever


« Reply #11 - Posted 2004-01-25 20:23:12 »

Man, only one thing to do and then w00 w00:
Getting doneShading in ShaderProgramPeer to be called more than once during runtime
Cry
Offline Java Cool Dude

Senior Member




Java forever


« Reply #12 - Posted 2004-01-25 22:22:32 »

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 Tongue
Offline Java Cool Dude

Senior Member




Java forever


« Reply #13 - Posted 2004-01-26 04:03:09 »

Please delete this thread
Offline aNt

Senior Member




AFK


« Reply #14 - Posted 2004-01-26 07:27:07 »

dont- its good to see a mind at work Smiley history in the making  Grin
Offline Yuri Vl. Gushchin

Senior Member




Speak Java!


« Reply #15 - Posted 2004-02-02 11:28:19 »

There will be (I hope) a time when we will create more detailed developer's guide on how internals of Xith3D work.

Yuri

Yuri Vl. Gushchin
JProof Group
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Browse for soundtracks for your game!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (94 views)
2013-05-17 21:29:12

alaslipknot (102 views)
2013-05-16 21:24:48

gouessej (132 views)
2013-05-16 00:53:38

gouessej (127 views)
2013-05-16 00:17:58

theagentd (138 views)
2013-05-15 15:01:13

theagentd (126 views)
2013-05-15 15:00:54

StreetDoggy (167 views)
2013-05-14 15:56:26

kutucuk (189 views)
2013-05-12 17:10:36

kutucuk (192 views)
2013-05-12 15:36:09

UnluckyDevil (199 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!
Page created in 0.102 seconds with 21 queries.