Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (476)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (533)
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  
  GeomContainer and Colors  (Read 1377 times)
0 Members and 1 Guest are viewing this topic.
Offline cfmdobbie

Senior Member


Medals: 1


Who, me?


« Posted 2003-11-17 23:08:21 »

Are the javax.vecmath.Color* objects in common use, or are they to be avoided?  They seem a little oddly-designed, (with w, x, y and z used to access the colour components for example) so I'm not sure whether they are intended for use at the moment.

Also, am I barking up the wrong tree by playing around with GeomContainer?  Most of the methods just throw UnsupportedFunction exceptions - is it defunct, or just still under active development?

Assuming GeomContainer is the right thing to be playing with, what is the recommended way of getting colour information out of, for instance, a TriangleArray?

Hellomynameis Charlie Dobbie.
Offline cfmdobbie

Senior Member


Medals: 1


Who, me?


« Reply #1 - Posted 2003-11-26 09:53:31 »

Okay, a few more questions:

I'm a bit confused by the Shader order system.  How is the order in which Shaders are applied decided, and can I rely on it?

What makes a Shader get applied to a particular atom?  I notice a MaterialShader being applied to geometry that doesn't have a Material associated with it, and a PointShader not being applied when PointAttributes are set.  What determines this?

The Java3D docs are, of course, a good guide to the public Xith3D API.  Are there any design/developer documents?  Are there any significant deviations from the Java3D API that I should know about?

Hellomynameis Charlie Dobbie.
Offline Jens

Senior Member




Java for games!


« Reply #2 - Posted 2003-11-26 10:26:20 »

There exists an overview of Xith3D design and differences to Java3D written by David.

Xith3D Getting Started Guide (PDF,HTML,Source)
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 2003-11-26 12:07:39 »

Hi,

I can briefly describe the basics of Xith3D State Management.

1. All shaders applied before rendering Atom. Xith3D state management code tries to minimize number OpenGL state changes, so if shapes A and B that render sequentially share the same shader, it will be applied before rendering A and will NOT be re-applied before rendeing B. Xith3D performs state sorting before rendering atoms, and there are several ways of how to control (completely and partially) this process.

2. Every shader controls set of OpenGL state variables related to it, so even if no specific attributes explicitly set for some atom, the shader may be called to bring OpenGL state vars to known default state.

3. Regarding PointShader - unfortunately, it is not implemented in Xith3D for a moment... Maybe I have to implement it faster, but there was no explicit interest in it. Additionally, I was thinking to implement enhanced version of PointShader with support for NV_POINT_SPRITE extension useful for particle systems, but later figured out that only few cards support it.

4. Unfortunately, there are no developer/design docs for a moment, except generic doc from the post above. If you are interested in developer-specific questions and trying to make changes to Xith3D rendering core, you can ask me. and I'll try to help you.

Yuri

Yuri Vl. Gushchin
JProof Group
Offline cfmdobbie

Senior Member


Medals: 1


Who, me?


« Reply #4 - Posted 2003-11-26 20:15:49 »

Thanks Jens and Yuri, I'll digest all that and see if I get the hang of thiings now. Smiley

Hellomynameis Charlie Dobbie.
Offline cfmdobbie

Senior Member


Medals: 1


Who, me?


« Reply #5 - Posted 2003-11-26 23:15:35 »

Quick parallel-projection question:

View calculates a parallel projection as centered on (0, 0) with a width of 2 units and a height sufficient to maintain canvas aspect ratio.  My Java3D API Jump-Start book describes a parallel projection as centered on (0, 0) with both width and height of 2 units.  As this is frankly moronic, I'm guessing it is in error?

Or is this a Xith3D-specific deviation from the Java3D API?

Hellomynameis Charlie Dobbie.
Offline Yuri Vl. Gushchin

Senior Member




Speak Java!


« Reply #6 - Posted 2003-11-27 10:44:12 »

In Xith3D, parallel projection maintains aspect ratio. I did not check how it works in Java3D when implemented this in Xith3D, and Java3D JavaDoc AFAIK say nothing about this, so this is matter of test.

Anyway, if we will have to change it to something different, I think we will have to introduce additional projection policy (compatible with one Xith3D has now).

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 (18 views)
2014-07-24 01:59:36

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

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

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

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

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

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

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

Cero (51 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!