Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

 
Advanced search

12073 Posts in 1597 Topics- by 595 Members - Latest Member: DannyRush

18. April 2014, 02:59:23 AM
Xith3D CommunityXith3D InternalsDeveloper discussion (Moderators: Marvin Fröhlich, 'n ddrylliog)XIN suggestions and "bugs"
Pages: [1]
Print
Author Topic: XIN suggestions and "bugs"  (Read 1567 times)
Arne Müller
Enjoying the stay
*
Offline Offline

Posts: 32

340473970
View Profile
« on: 25. April 2007, 01:21:10 PM »

Hi

for my JOODE doku, I try to follow the XIN as closely as possible to have as little Xith-overhead as possible. (and because the old ways of setting up xith, aint the ways nowadays Wink )

I had the following problems trying to implement the examples in XIN:

1. import statements aren't given, so I always had to search for those
2. in the src-code example in Chapter 3, the method on line 31 (InputAdapterRenderLoop.registerKeyboardAndMouse(Canvas3D) ), does not exist anymore.
3. Chapter8a: RenderLoop.scheduleOperation(ScheduledOperation) doesn't exist. + why do you have "new MyOperation2" as a parameter instead of "new MyOperation" ?

I haven't progressed further, so other stuff might follow

Arne
« Last Edit: 25. April 2007, 08:56:43 PM by Arne Müller » Logged

42.
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4414


May the 4th, be with you...


View Profile
« Reply #1 on: 25. April 2007, 04:42:18 PM »

I believe, the import statements would bloat the document. In the xith-tk project there's an org.xith3d.xin package, which contains all the XIN chapters' examples (with imports). And any release is shipped with these examples next to the XIN document. And the examples can be downloaded at xith.org next to the document. So I think, having the examples as code is sufficient and even better than bloating the document with the imports, which can at least easily be found by eclipse.

For the registerKeyboardAndMouse() method:
InputAdapterRenderLoop is a convenience extension of RenderLoop. It implements InputListener and its constructor automatically adds itself to the list of input listeners in the InputManager.
To register devices do the following:

In an (InputAdapter)RenderLoop extension:
Code:
this.getInputManager().registerKeyboardAndMouse( Canvas3D );

I will fix this in XIN. But I guess, you will find more things to fix and I will want to fix them all at once. So please edit the first posting in this thread any time you find something so that I can get all information from one posting when we're through.

Marvin
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic