16
Support / Re: jPCT benchmark?
« on: March 14, 2009, 12:29:23 am »
Great news!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
get my destination();
pos = get my position();
apply me my thrust(pos);
//--physics
apply me external forces();
compute coordinates using inertial mass and forces();
//etc...
float catmullRomSpline (float p1, float p2, float p3, float p4, float t) {
return(0.5*((-p1 + 3*p2 -3*p3 + p4)*t*t*t
+ (2*p1 -5*p2 + 4*p3 - p4)*t*t
+ (-p1+p3)*t
+ 2*p2));
}
One may do something like i'm doing in Robombs, i.e. open a small native GL window behind a JFrame, do you queries, close both([...)
This next bit needs to be added inside the CreateWindowGL function, the original code is left, with where you need to make modifications. Basically, we're doing a bit of overkill to get the job done. We can't request the pixel format (to query the multisampling) until we've created a window. But we can't create a FSAA screen, unless we know the pixel format will support it. Kinda the chicken and the egg thing. So, what I've done, is a little 2 pass system; We create the window, query the pixelFormat, then destroy/remake the window if multisampling is supported. Kinda nifty...
newmtl Explorer_Default
Ka 0.117647 0.117647 0.117647
Kd 0.752941 0.752941 0.752941
Ks 0.752941 0.752941 0.752941
illum 2
Ns 8
map_Kd
map_bump
bump
map_opacity
map_d
refl
map_kS
map_kA
map_Ns
File models\bzz_Drunk_transparent.mtl loaded...643 bytes
Processing new material textures_alpha_t1!
Processing new material textures_alpha_l1!
Processing new material Explorer_Default!
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1938)
at java.lang.String.substring(String.java:1905)
at com.threed.jpct.Loader.loadOBJ(Unknown Source)
at com.threed.jpct.Loader.loadOBJ(Unknown Source)
at CK.IA.Engine.loadObj(Engine.java:465)
at CK.IA.Engine.loadAndSetupModels(Engine.java:380)
at CK.IA.Engine.initializeScene(Engine.java:279)
at CK.IA.Engine.initialize(Engine.java:225)
at CK.IA.Engine.<init>(Engine.java:64)
at CK.IA.Engine.main(Engine.java:25)
map_Kd
map_bump
bump
map_opacity
map_d
refl
map_kS
map_kA
map_Ns
12 MIDI Devices:
kX Control SB0244 10k2 [a000]
kX Uart SB0244 10k2 [a000]
kX Uart2 SB0244 10k2 [a000]
Microsoft MIDI Mapper
Microsoft GS Wavetable SW Synth
kX Control SB0244 10k2 [a000]
kX Synth SB0244 10k2 [a000]
kX Synth2 SB0244 10k2 [a000]
kX Uart SB0244 10k2 [a000]
kX Uart2 SB0244 10k2 [a000]
Real Time Sequencer
Java Sound Synthesizer
Using 'Real Time Sequencer' as the Sequencer.
Variable 'sequencer' is NOT an instance of Synthesizer
Using 'Java Sound Synthesizer' as the Synthesizer.
Method 'getDefaultSoundbank()' did NOT return 'null'.
4 MIDI Devices:
Microsoft MIDI Mapper
Microsoft GS Wavetable SW Synth
Real Time Sequencer
Java Sound Synthesizer
Using 'Real Time Sequencer' as the Sequencer.
Variable 'sequencer' is NOT an instance of Synthesizer
Using 'Java Sound Synthesizer' as the Synthesizer.
Method 'getDefaultSoundbank()' did NOT return 'null'.
java version "1.6.0_11"
Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
Java HotSpot(TM) Client VM (build 11.0-b16, mixed mode, sharing)