Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (536)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Game Development / Networking & Multiplayer / Sending Object in JSDT on: 2004-05-23 22:52:04
Hi,

I am using JSDT (and Java3D) in a distributed application.

Sending and receiveing Strings works fine by using a ChannelConsumer.

>>>
 String dataStr = "Data from server " + String.valueOf(i);
 data = new Data(dataStr);
 
 try {
   demoChannel_1.sendToAll(demoServerJSDT, data);

  } catch (JSDTException e) {
    ...
<<<

But when trying to send a custom object I get this Exception in the ChannelConsumer.

java.lang.ClassNotFoundException: se.foo.demo.MyCustomObject

?
2  Java Game APIs & Engines / Java 3D / Re: Polarized Stereo 3D Application on: 2004-04-21 15:17:28
Trying again!

I have now generated the left eye view in one window, and the right eye view in another window.

It seems to be stereo but the windows do not overlap.
The left view is translated to the left and the right window to the rigth.

I have one ViewPlatform with one View attached.

The View has two Canvas3D objects added.

>>>
canvas3D_A.setMonoscopicViewPolic(View.LEFT_EYE_VIEW);

canvas3D_B.setMonoscopicViewPolicy(View.RIGHT_EYE_VIEW);
<<<

If I try:

>>>
canvas3D_A.setMonoscopicViewPolicy(View.CYCLOPEAN_EYE_VIEW);

canvas3D_B.setMonoscopicViewPolicy(View.CYCLOPEAN_EYE_VIEW);
<<<

The image in the two windows "overlap" perfectly, but I get no stereo of course.

Which parameters shall I tune?

Regards,
Erik
3  Java Game APIs & Engines / Java 3D / Polarized Stereo 3D Application on: 2004-04-14 12:58:27
I'm writing av Java3D application that will display a stereo view of a virtual world.

The left eye view will be displayed in one JFrame and the right eye view in another JFrame.

The executing PC will have two physical screens (or projectors really) and one JFrame will be displayed,
maximized and undecorated, on each screen.

The image from the two projectors will be polarized differently an then overlaid. The user will look at this using polarized glasses. No headtracking or more complicated stuff.


Extract from the code:

>>>

...

Canvas3D canvas3D_A = new Canvas3D(gc);
canvas3D_A.setMonoscopicViewPolicy(View.LEFT_EYE_VIEW);  // <--

Canvas3D canvas3D_B = new Canvas3D(gc);
canvas3D_B.setMonoscopicViewPolicy(View.RIGHT_EYE_VIEW);  // <--

...

View view = new View();
view.addCanvas3D(canvas3D_A);
view.addCanvas3D(canvas3D_B);

...

ViewPlatform viewPlatform = new ViewPlatform();
view.attachViewPlatform(viewPlatform);

...

<<<


Is this the right/best approach?

Which View Attach Policy:
View.NOMINAL_HEAD (default) or View.NOMINAL_SCREEN?

Which Window eyepoint policy (View object):
RELATIVE_TO_WINDOW or RELATIVE_TO_FIELD_OF_VIEW (default)?
(RELATIVE_TO_SCREEN, RELATIVE_TO_COEXISTENCE)

PhysicalBody: Default should do?

PhysicalEnvironment; not used really?

Is it easier to use compatibility mode?

Regards,
Erik
4  Java Game APIs & Engines / JInput / Re: Ascension Flock of Birds on: 2004-02-09 13:52:53
Thanks a lot Conzar!

I will test your code after I have finished working with a C-program interfacing with the FoB. Promised that to another project using C...

I might get back with futher questions.
5  Java Game APIs & Engines / JInput / Re: Ascension Flock of Birds on: 2004-02-09 13:48:48
From http://www.ascension-tech.com/products/

"Fast and accurate DC magnetic position and orientation tracking of 1-4 sensors with minimal occlusion, drift or distortion from conductive materials. Provides full six degrees-of-freedom (6DOF) tracking and connects to your host computer with a serial interface"

/Erik
6  Java Game APIs & Engines / JInput / Ascension Flock of Birds on: 2004-01-26 13:30:33
I am developing a distributed visualisation application (first version/demo version). An Ascension "Flock of Birds"-system will be used as an input device. The FoB-system has 4 sensors and an extended range transmitter. Computer hardware will be running Windows XP.

The system will be Java based using Java3D, Java2D, JSDT (Java Shared Data Toolkit) and possibly RMI
etc. The tracker data will distributed to different hosts on the network using JSDT.

I guess there are two methods of handling the FoB.

1) Develop a C-program and use JNI to access it from Java. There are some C examples etc included.
(I also need this C code version for another project)

2) Develop a Java program that uses Java Communications API for handling the serial port.

I have found the NCSA Portfolio (portfolio.jar) which seem to be a couple of years old.

I also found: http://ovrt.nist.gov/jvedi.


Anyone have any suggentions?
Pages: [1]
 

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

The first screenshot will be displayed as a thumbnail.

Riven (19 views)
2014-07-29 18:09:19

Riven (13 views)
2014-07-29 18:08:52

Dwinin (12 views)
2014-07-29 10:59:34

E.R. Fleming (31 views)
2014-07-29 03:07:13

E.R. Fleming (12 views)
2014-07-29 03:06:25

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

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

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

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

ctomni231 (60 views)
2014-07-18 06:55:21
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!