Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (582)
Games in Android Showcase (163)
games submitted by our members
Games in WIP (633)
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 1240 times)
0 Members and 1 Guest are viewing this topic.
Offline Yuri Vl. Gushchin

Senior Devvie

Speak Java!

« Posted 2004-02-22 13: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.


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 Devvie

« Reply #1 - Posted 2004-02-22 13: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 Devvie

Speak Java!

« Reply #2 - Posted 2004-02-22 14: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 Vl. Gushchin
JProof Group
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline abies

Senior Devvie

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


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 Devvie

Speak Java!

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

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


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

Gibbo3771 (11 views)
2015-05-29 06:54:17

Ralphanese (20 views)
2015-05-28 16:52:52

theagentd (31 views)
2015-05-27 22:21:17

theagentd (35 views)
2015-05-27 22:21:08

CopyableCougar4 (25 views)
2015-05-27 19:24:50

MrMapcom (24 views)
2015-05-23 20:26:16

MrMapcom (32 views)
2015-05-23 20:23:34

Waterwolf (37 views)
2015-05-20 15:01:45

chrislo27 (44 views)
2015-05-20 03:42:21

BurntPizza (79 views)
2015-05-10 15:53:18
Intersection Methods
by Roquen
2015-05-29 08:19:33

List of Learning Resources
by SilverTiger
2015-05-05 10:20:32

How to: JGO Wiki
by Mac70
2015-02-17 20:56:16

2D Dynamic Lighting
by ThePixelPony
2015-01-01 20:25:42

How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21

Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02 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‑
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!