Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (498)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
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 2132 times)
0 Members and 1 Guest are viewing this topic.
Offline Yuri Vl. Gushchin

Senior Member




Speak Java!


« Posted 2004-01-24 07: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 15: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 17: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!
Legends of Yore - The Casual Retro Roguelike
Offline Yuri Vl. Gushchin

Senior Member




Speak Java!


« Reply #3 - Posted 2004-01-24 17: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 20: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 04: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 12: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 16: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 16: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 16: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!
Legends of Yore - The Casual Retro Roguelike
Offline Java Cool Dude

Senior Member




Java forever


« Reply #10 - Posted 2004-01-25 17: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 19: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 21: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 03:03:09 »

Please delete this thread
Offline aNt

Senior Member




AFK


« Reply #14 - Posted 2004-01-26 06: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 10: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.

 

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

The first screenshot will be displayed as a thumbnail.

BurntPizza (12 views)
2014-09-21 02:42:18

BurntPizza (11 views)
2014-09-21 01:30:30

moogie (13 views)
2014-09-21 00:26:15

UprightPath (23 views)
2014-09-20 20:14:06

BurntPizza (27 views)
2014-09-19 03:14:18

Dwinin (40 views)
2014-09-12 09:08:26

Norakomi (70 views)
2014-09-10 13:57:51

TehJavaDev (96 views)
2014-09-10 06:39:09

Tekkerue (49 views)
2014-09-09 02:24:56

mitcheeb (70 views)
2014-09-08 06:06:29
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
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!