Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (475)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (530)
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  
  Added support for Vertex and Fragment Programs  (Read 1029 times)
0 Members and 1 Guest are viewing this topic.
Offline Yuri Vl. Gushchin

Senior Member




Speak Java!


« Posted 2004-02-22 14:43:20 »

Support for VertexProgram and FragmentProgram appearance attributes committed to CVS.
Also added a test based on NeHe Lesson 37 ported to Xith3D by JavaCoolDude
and minor modifications to GeomContainer in order to support TexCoord3f..

Current implementation should be treated as preliminary, because of it contains limited
support for different types of parameters, as well as supports only programmable shaders
based on ARB_vertex_program and ARB_fragment_program extension.

If these extensions are unavailable, shader implementations report it to stderr only once, and
the shaders will be blindliy ignored. This is up to application to check avaliability of
these extensions via com.xith3d.render.jogl.OpenGlExtensions or some other way.

Please check new functionality and post here if you have some issues.

Yuri

P.S. I checked additions with JCD's Phong Lighting (Vertex & Pixel Shaders Accelerated) by direct replacement of his version of xith3d.jar with new one and without recompiling the demo itself, and it worked OK.

Yuri Vl. Gushchin
JProof Group
Offline abies

Senior Member





« Reply #1 - Posted 2004-02-22 14:49:31 »

Any chance of getting things like lesson37 package out of src directory ? IMHO, entire com.xith3d.test package should go to different directory (maybe inside demo ? - similar to way junit tests are placed now). It will make packaging/moving core classes of xith3d easier.

Artur Biesiadowski
Offline Yuri Vl. Gushchin

Senior Member




Speak Java!


« Reply #2 - Posted 2004-02-22 15:21:24 »

Yes, sure. This is clear that we should somehow reorganize this part of code, but regarding the packaging, I would prefer to adjust build script to build two separate JAR files - one for Xith3D system classes, another for demos and tests.

As of moving tests away from src directory, I am not sure if this is a good idea. I see source distribution containing all of the code, including demos.

Anyway, alternative opinions are welcome.

Yuri

Yuri Vl. Gushchin
JProof Group
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline abies

Senior Member





« Reply #3 - Posted 2004-02-22 22:33:29 »

Quote

As of moving tests away from src directory, I am not sure if this is a good idea. I see source distribution containing all of the code, including demos.


It already does not contain junit tests. What with demos which need considerable resources, like textures, sounds, movies for animated textures etc ? IMHO, it would be more logical to put code and resources for given demo together in separate dir.
As far as ant is concerned, it is useful for command-line build, but it can be not so obvious for IDEs, which will for example rebuild all demos for rebuild all - it is a lot easier to not add another directory to source path then to remove one package from it Smiley

Artur Biesiadowski
Offline Yuri Vl. Gushchin

Senior Member




Speak Java!


« Reply #4 - Posted 2004-02-23 06:14:46 »

Right points. If you would reorganize the tests/demos code, how would you suggest to place sources/classes/data/launch files?

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.

pw (11 views)
2014-07-24 01:59:36

Riven (9 views)
2014-07-23 21:16:32

Riven (11 views)
2014-07-23 21:07:15

Riven (12 views)
2014-07-23 20:56:16

ctomni231 (42 views)
2014-07-18 06:55:21

Zero Volt (38 views)
2014-07-17 23:47:54

danieldean (32 views)
2014-07-17 23:41:23

MustardPeter (34 views)
2014-07-16 23:30:00

Cero (49 views)
2014-07-16 00:42:17

Riven (50 views)
2014-07-14 18:02:53
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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!