Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (581)
games submitted by our members
Games in WIP (500)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 [2] 3 4 ... 6
  ignore  |  Print  
  The JWS thread *Xith3D demos only*  (Read 29298 times)
0 Members and 1 Guest are viewing this topic.
Offline Java Cool Dude

Senior Member




Java forever


« Reply #30 - Posted 2003-12-18 13:19:10 »

Hey man how about you help a brother out:
I already posted the source (2 classes) and the dislayOption jar is located right here
You might as well convert the bmp textures into PNGs as I use a hacked version of xith3D which allows to load BMPs and Targas whether they are in a jar file or on the disk Smiley
Help will be much appreciated
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #31 - Posted 2003-12-18 14:08:16 »

I *want* to, it is just a matter of finding the time.  I have done nothing with Xith3D or JOGL or OpenGL yet...  have been purely Java2D so far.   I also mainly develop on Windows, the Mac is my laptop for testing, email, surfing, and light Java coding.  So many things I want to be doing with this stuff but so little time (argh!)...

I have a game idea that I want to use JOGL for, so I have to learn all this stuff anyway...  but my "real job" has been very busy lately.

Maybe over the holidays I will be able to take a crack at this.  For now I just offer my ability to double click JARs or JNLP files and report results.. which is much less time consuming Smiley but hopefully of some value.

Maybe if you can send me a version littered with prints and error checking I can quickly run it and  send you the output.  Should be quick to see what stage it gets stuck at.

Offline Java Cool Dude

Senior Member




Java forever


« Reply #32 - Posted 2003-12-19 00:46:53 »

@swpalmer: I'll see what I can do, however seeing that JoGL ports had hard time running on Mac OS due to pack() problem, I think the glitch is right there.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Java Cool Dude

Senior Member




Java forever


« Reply #33 - Posted 2003-12-19 11:05:07 »

New demo up: Water simulation and mouse interaction.
@Jens  Lehmann: Check out the modification that I've made to your interaction demo Wink

Edit: Special thanks for Kevglass and his awesome 3DS loader Smiley
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #34 - Posted 2003-12-19 14:05:18 »

Quote
@swpalmer: I'll see what I can do, however seeing that JoGL ports had hard time running on Mac OS due to pack() problem, I think the glitch is right there.

pack() issue aside, Martian Maddness and most of the windowed Xith examples work fine.  And the pack issue shouldn't effect full screen more as far as I can tell.

Offline Jens

Senior Member




Java for games!


« Reply #35 - Posted 2003-12-19 17:43:03 »

Quote
New demo up: Water simulation and mouse interaction.
@Jens  Lehmann: Check out the modification that I've made to your interaction demo Wink


Very nice. Smiley

Xith3D Getting Started Guide (PDF,HTML,Source)
Offline endolf

JGO Knight


Medals: 7
Projects: 1


Current project release date: sometime in 3003


« Reply #36 - Posted 2003-12-19 18:03:00 »

Quote
New demo up: Water simulation and mouse interaction.

Hi
 All your other demos work fine, but this one runs for maybe 1 second, then quits, no exception is thrown it seems (Nothing in the jws console or log), the window just closes after a few frames.

WinXP, GeForce 4 4200, jdk 1.4.2

Endolf

Offline zparticle

Senior Member




Thick As A Brick


« Reply #37 - Posted 2003-12-19 18:03:01 »

Quote
New demo up: Water simulation and mouse interaction.



That's odd the water demo won't run on my machine, all of the other seem to work. The window comes up and then immediately goes away.

Offline kevglass

JGO Kernel


Medals: 85
Projects: 25


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #38 - Posted 2003-12-19 18:05:24 »

Works fine on my ATI Radeon 9000 Mobility.

Kev

Offline endolf

JGO Knight


Medals: 7
Projects: 1


Current project release date: sometime in 3003


« Reply #39 - Posted 2003-12-19 18:06:37 »

Quote
Works fine on my ATI Radeon 9000 Mobility.

Kev


What gfx card you got zparticle?, nvidia?

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Java Cool Dude

Senior Member




Java forever


« Reply #40 - Posted 2003-12-19 21:23:11 »

Quote



That's odd the water demo won't run on my machine, all of the other seem to work. The window comes up and then immediately goes away.

Does it write an error log to your desktop??
Offline Java Cool Dude

Senior Member




Java forever


« Reply #41 - Posted 2003-12-20 02:19:44 »

Bug confirmed and damn annoying, funny thing is, it shows up sooooo randomly meaning I could run the demo so many times just fine, and then all of sudden have it crashing on me at the start up.
Bug is due to SPHERE_MAP passed as parameter to TexCoordGeneration...
The error log blames it on my ATi openGL driver, atioglxx...
/me shrugs, get me TextureCubeMap and I'll make it better
Offline kevglass

JGO Kernel


Medals: 85
Projects: 25


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #42 - Posted 2003-12-21 07:20:43 »

I have an idea for JCD, how about a single app that can run all your demos from the click of a button. Maybe with a pluggable interface so you add more demos later on.. would be nice to see all of them in a suite Smiley

The swimmer is pretty funky btw,

Kev

Offline Java Cool Dude

Senior Member




Java forever


« Reply #43 - Posted 2003-12-21 07:52:55 »

^Genius Grin
Will do so, actullay I'm flying to Germany tomorrow for a week, then I'll stop by Paris to finally settle for another 2 weeks in Tunisia, therefore I'll barely have any spare time to code for about a month.
I still have few demos laying around, procedural textures, physics, heightmaps etc...
Will start coding again as soon as I get back home in Massachusetts Tongue
Offline Jens

Senior Member




Java for games!


« Reply #44 - Posted 2003-12-21 07:59:25 »

Are you on holidays for one month? I wish I had the money and time to do this.  Roll Eyes

Xith3D Getting Started Guide (PDF,HTML,Source)
Offline Java Cool Dude

Senior Member




Java forever


« Reply #45 - Posted 2003-12-21 08:13:09 »

Yup, done with school for this semester and it's time for the anticipated winter break Grin
About the money, well I worked my butt off to afford my trip, besides I know few people here and there so I won't be charged the outrageous hotels expenses where I stay Tongue
Offline zparticle

Senior Member




Thick As A Brick


« Reply #46 - Posted 2003-12-22 14:39:39 »

This is on my work machine with an Intel 82845G/GL card and Win2K:

Water demo error log:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
39  
40  
41  
42  
43  
44  
45  
46  
47  
48  
49  
50  
51  
52  
53  
54  
55  
56  
57  
58  
59  
60  
61  
62  
63  
64  
65  
66  
67  
68  
69  
70  
71  
72  
73  
74  
75  
76  
77  
78  
79  
80  
81  
82  
83  
84  
85  
86  
87  
88  
89  
90  
91  
92  
93  
94  
95  
96  
97  
98  
99  
100  
101  
102  
103  
104  
105  
106  
107  
108  
109  
110  
111  
112  
113  
114  
115  
116  
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x34739C2
Function=DrvSetLayerPaletteEntries+0x8BAC2
Library=C:\WINNT\system32\ialmgicd.dll

Current Java thread:
      at net.java.games.jogl.impl.windows.WindowsGLImpl.glDrawArrays(Native Method)
      at com.xith3d.render.jogl.ShapeAtomPeer.drawGeometry(ShapeAtomPeer.java:485)
      at com.xith3d.render.jogl.ShapeAtomPeer.renderAtom(ShapeAtomPeer.java:666)
      at com.xith3d.render.CanvasPeerBase.render(CanvasPeerBase.java:101)
      at com.xith3d.render.jogl.CanvasPeerImpl.drawBin(CanvasPeerImpl.java:670)
      at com.xith3d.render.jogl.CanvasPeerImpl.display(CanvasPeerImpl.java:840)
      at net.java.games.jogl.impl.GLDrawableHelper.display(GLDrawableHelper.java:74)
      at net.java.games.jogl.GLCanvas$DisplayAction.run(GLCanvas.java:194)
      at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:192)
      - locked <0x10091548> (a net.java.games.jogl.impl.windows.WindowsOnscreenGLContext)
      at net.java.games.jogl.GLCanvas.displayImpl(GLCanvas.java:182)
      at net.java.games.jogl.GLCanvas.display(GLCanvas.java:82)
      at com.xith3d.render.jogl.CanvasPeerImpl.render(CanvasPeerImpl.java:941)
      at com.xith3d.scenegraph.View.renderOnce(View.java:722)
      - locked <0x10787d08> (a com.xith3d.scenegraph.View)
      at com.xith3d.scenegraph.View.renderOnce(View.java:655)
      - locked <0x10787d08> (a com.xith3d.scenegraph.View)
      at WaterSimulation.run(WaterSimulation.java:175)
      at java.lang.Thread.run(Unknown Source)

Dynamic libraries:
0x00400000 - 0x00407000       C:\Program Files\Java\j2re1.4.2_01\bin\javaw.exe
0x77F80000 - 0x77FFB000       C:\WINNT\system32\ntdll.dll
0x7C2D0000 - 0x7C332000       C:\WINNT\system32\ADVAPI32.dll
0x7C570000 - 0x7C623000       C:\WINNT\system32\KERNEL32.DLL
0x77D30000 - 0x77D9E000       C:\WINNT\system32\RPCRT4.DLL
0x77E10000 - 0x77E6F000       C:\WINNT\system32\USER32.dll
0x77F40000 - 0x77F79000       C:\WINNT\system32\GDI32.dll
0x78000000 - 0x78045000       C:\WINNT\system32\MSVCRT.dll
0x08000000 - 0x08136000       C:\Program Files\Java\j2re1.4.2_01\bin\client\jvm.dll
0x77570000 - 0x775A0000       C:\WINNT\system32\WINMM.dll
0x10000000 - 0x10007000       C:\Program Files\Java\j2re1.4.2_01\bin\hpi.dll
0x007E0000 - 0x007EE000       C:\Program Files\Java\j2re1.4.2_01\bin\verify.dll
0x007F0000 - 0x00808000       C:\Program Files\Java\j2re1.4.2_01\bin\java.dll
0x00810000 - 0x0081D000       C:\Program Files\Java\j2re1.4.2_01\bin\zip.dll
0x18270000 - 0x1837F000       C:\Program Files\Java\j2re1.4.2_01\bin\awt.dll
0x77800000 - 0x7781E000       C:\WINNT\system32\WINSPOOL.DRV
0x76620000 - 0x76631000       C:\WINNT\system32\MPR.DLL
0x75E60000 - 0x75E7A000       C:\WINNT\system32\IMM32.dll
0x77A50000 - 0x77B3C000       C:\WINNT\system32\ole32.dll
0x18380000 - 0x183D0000       C:\Program Files\Java\j2re1.4.2_01\bin\fontmanager.dll
0x51000000 - 0x51047000       C:\WINNT\system32\ddraw.dll
0x728A0000 - 0x728A6000       C:\WINNT\system32\DCIMAN32.dll
0x5C000000 - 0x5C0C8000       C:\WINNT\system32\D3DIM700.DLL
0x22630000 - 0x226B5000       C:\WINNT\system32\nView.dll
0x782F0000 - 0x78538000       C:\WINNT\system32\SHELL32.dll
0x70A70000 - 0x70AD5000       C:\WINNT\system32\SHLWAPI.DLL
0x71710000 - 0x71794000       C:\WINNT\system32\COMCTL32.DLL
0x690A0000 - 0x690AB000       C:\WINNT\system32\PSAPI.DLL
0x77820000 - 0x77827000       C:\WINNT\system32\VERSION.dll
0x759B0000 - 0x759B6000       C:\WINNT\system32\LZ32.DLL
0x227F0000 - 0x227FA000       C:\Program Files\Java\j2re1.4.2_01\javaws\javawspl.dll
0x22A90000 - 0x22A9F000       C:\Program Files\Java\j2re1.4.2_01\bin\net.dll
0x75030000 - 0x75044000       C:\WINNT\system32\WS2_32.dll
0x75020000 - 0x75028000       C:\WINNT\system32\WS2HELP.DLL
0x782C0000 - 0x782CC000       C:\WINNT\System32\rnr20.dll
0x77980000 - 0x779A4000       C:\WINNT\system32\DNSAPI.DLL
0x75050000 - 0x75058000       C:\WINNT\system32\WSOCK32.DLL
0x77340000 - 0x77353000       C:\WINNT\system32\iphlpapi.dll
0x77520000 - 0x77525000       C:\WINNT\system32\ICMP.DLL
0x77320000 - 0x77337000       C:\WINNT\system32\MPRAPI.DLL
0x75150000 - 0x7515F000       C:\WINNT\system32\SAMLIB.DLL
0x75170000 - 0x751BF000       C:\WINNT\system32\NETAPI32.DLL
0x7C340000 - 0x7C34F000       C:\WINNT\system32\SECUR32.DLL
0x751C0000 - 0x751C6000       C:\WINNT\system32\NETRAP.DLL
0x77950000 - 0x7797A000       C:\WINNT\system32\WLDAP32.DLL
0x779B0000 - 0x77A4B000       C:\WINNT\system32\OLEAUT32.DLL
0x773B0000 - 0x773DF000       C:\WINNT\system32\ACTIVEDS.DLL
0x77380000 - 0x773A3000       C:\WINNT\system32\ADSLDPC.DLL
0x77830000 - 0x7783E000       C:\WINNT\system32\RTUTILS.DLL
0x77880000 - 0x7790E000       C:\WINNT\system32\SETUPAPI.DLL
0x7C0F0000 - 0x7C151000       C:\WINNT\system32\USERENV.DLL
0x774E0000 - 0x77513000       C:\WINNT\system32\RASAPI32.DLL
0x774C0000 - 0x774D1000       C:\WINNT\system32\RASMAN.DLL
0x77530000 - 0x77552000       C:\WINNT\system32\TAPI32.DLL
0x77360000 - 0x77379000       C:\WINNT\system32\DHCPCSVC.DLL
0x777E0000 - 0x777E8000       C:\WINNT\System32\winrnr.dll
0x777F0000 - 0x777F5000       C:\WINNT\system32\rasadhlp.dll
0x74FD0000 - 0x74FEE000       C:\WINNT\system32\msafd.dll
0x75010000 - 0x75017000       C:\WINNT\System32\wshtcpip.dll
0x003C0000 - 0x003E2000       C:\Program Files\Java\j2re1.4.2_01\bin\dcpr.dll
0x02F00000 - 0x02F1E000       C:\Program Files\Java\j2re1.4.2_01\bin\jpeg.dll
0x03090000 - 0x03097000       C:\Program Files\Yahoo!\Messenger\idle.dll
0x030B0000 - 0x030B5000       C:\Program Files\Java\j2re1.4.2_01\bin\jawt.dll
0x030C0000 - 0x03136000       C:\Documents and Settings\SAS1780\.javaws\cache\http\Dwww.users.xith.org\P80\DMJavaCoolDude\DMJWS\DMlib\RNjogl-win32-native.jar\jogl.dll
0x69510000 - 0x695D7000       C:\WINNT\system32\OPENGL32.dll
0x6FAC0000 - 0x6FADF000       C:\WINNT\system32\GLU32.dll
0x033E0000 - 0x03598000       C:\WINNT\system32\ialmgicd.dll
0x035B0000 - 0x035D6000       C:\WINNT\system32\ialmgdev.dll
0x77920000 - 0x77943000       C:\WINNT\system32\imagehlp.dll
0x72A00000 - 0x72A2D000       C:\WINNT\system32\DBGHELP.dll

Heap at VM Abort:
Heap
 def new generation   total 576K, used 121K [0x10010000, 0x100b0000, 0x104f0000)
  eden space 512K,  11% used [0x10010000, 0x1001e598, 0x10090000)
  from space 64K,  99% used [0x10090000, 0x1009fff8, 0x100a0000)
  to   space 64K,   0% used [0x100a0000, 0x100a0000, 0x100b0000)
 tenured generation   total 5720K, used 3543K [0x104f0000, 0x10a86000, 0x14010000)
   the space 5720K,  61% used [0x104f0000, 0x10865ca0, 0x10865e00, 0x10a86000)
 compacting perm gen  total 9472K, used 9432K [0x14010000, 0x14950000, 0x18010000)
   the space 9472K,  99% used [0x14010000, 0x14946388, 0x14946400, 0x14950000)

Local Time = Mon Dec 22 09:36:01 2003
Elapsed Time = 15
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2_01-b06 mixed mode)
#

Offline Java Cool Dude

Senior Member




Java forever


« Reply #47 - Posted 2003-12-22 16:31:45 »

/me points to Xith3D.... Roll Eyes
Offline wrightmf

Senior Newbie




Is that on the list?


« Reply #48 - Posted 2003-12-22 19:46:32 »

Quote
I have an idea for JCD, how about a single app that can run all your demos from the click of a button. Maybe with a pluggable interface so you add more demos later on.. would be nice to see all of them in a suite Smiley

The swimmer is pretty funky btw,

Kev


Totally unnecessary kevglass. Try running javaws without any options. Assuming your version of javaws is current, you'll see a nice little list of javaws applications. In the "Location" field, type the URL of this forum topic:

http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=xith3d;action=display;num=1071038323

Hit return. You should see a current list of JCD's demos. To save this, go to View->Add Entry and give it a name like "JCD's Xith Demos". Now, any time you start javaws with no options, you can go to View->JCD's Xith Demos and see an up-to-date list of his demos available to run right from the javaws application manager.

HTH

Offline kevglass

JGO Kernel


Medals: 85
Projects: 25


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #49 - Posted 2003-12-22 20:03:55 »

Well, yes, thats great.. but each and every webstart has its own Xith jar.. although this might be nessercary in some cases.. if it was just one download it would save some download

Of course the other side is some people can't use webstart so it'd be nice for them to have a downloadable collection..

Kev

Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #50 - Posted 2003-12-22 21:09:29 »

Quote
/me points to Xith3D.... Roll Eyes


me points to JOGL Wink

java code shouldn't cause a native crash like that Smiley

Will.

Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #51 - Posted 2003-12-22 21:11:53 »

Quote
Well, yes, thats great.. but each and every webstart has its own Xith jar.. although this might be nessercary in some cases.. if it was just one download it would save some download

Of course the other side is some people can't use webstart so it'd be nice for them to have a downloadable collection..

Kev


Several Xith3D apps can share a single xith3d.jar file - we do that at xith.org.  Infact the only difference between any of the demo's in a single collection is the main class attribute of the JNLP file.  The only difference between the collections of demos is the "resources" they use.

Will.

Offline aNt

Senior Member




AFK


« Reply #52 - Posted 2004-01-01 17:36:24 »

humm- i turn the box upside down and the water dont fall out Smiley LOL-- top stuff as always..

what about volumatic fog effects? anyone?
Offline Java Cool Dude

Senior Member




Java forever


« Reply #53 - Posted 2004-01-03 09:12:19 »

Greetings from Tunisia where I m currently enjoying some great vacation Grin
Got some good and bad news too:
Good news first: I got per pixel lighting to perfectly work.
Bad news: Can t upload the demo as well as the source till I get back home, Massachusetts :/
Well take care of yourselves fellas
c ya soon ^_^
Offline aNt

Senior Member




AFK


« Reply #54 - Posted 2004-01-03 15:12:48 »

have a great time there- hope u love salt lakes! amazing in the morning 'a must see- the sun coming up'!
Offline Java Cool Dude

Senior Member




Java forever


« Reply #55 - Posted 2004-01-20 18:25:09 »

Demo Release tonight Smiley
Offline Java Cool Dude

Senior Member




Java forever


« Reply #56 - Posted 2004-01-20 20:27:15 »

Tada, check the first post Tongue
PS: Hey William, can I have both Water and PPL demos up on the demo page please?
Edit: I had to modify the TextureShaderPeer to add the DOT3 extension, Smiley
Offline kevglass

JGO Kernel


Medals: 85
Projects: 25


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #57 - Posted 2004-01-21 05:31:14 »

Looks great! What sort of FPS are you getting out of it and on what card?

I ask since I implemented per-pixel lighting on a non-trivial scene with shadowed area support but couldn't get it running fast enough to implement the game.

Kev

Offline Yuri Vl. Gushchin

Senior Member




Speak Java!


« Reply #58 - Posted 2004-01-21 07:45:11 »

Quote
Edit: I had to modify the TextureShaderPeer to add the DOT3 extension,


Can you submit a diff to IssueZilla, so we can apply it to codebase?

Yuri

Yuri Vl. Gushchin
JProof Group
Offline Java Cool Dude

Senior Member




Java forever


« Reply #59 - Posted 2004-01-21 14:08:46 »

Ok PerPixel Lighting source code is up on the first page Smiley
The reason behind the delay in posting it is because I had to sit and think about my very OWN algorithm to make a pretty torus with lotta flexible parameters Smiley
My approach to PPL, unlike many demos I've seen floating around on the web, will work with ANY model or mesh out there, not just torii. Smiley
As I mentioned before, I had to modify the TextureShaderPeer class to add the Dot3 extension.
Problem is, I don't think I've implemented it the right way since Java3D's version of this demo is a tiny bit different.
Let me show you:
Java3D
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
    textureAttributes[0] =   new TextureAttributes();
    textureAttributes[0].setTextureMode(TextureAttributes.COMBINE);
    textureAttributes[0].setCombineRgbMode(TextureAttributes.COMBINE_DOT3);
    textureAttributes[0].setCombineRgbSource(0,TextureAttributes.COMBINE_TEXTURE_COLOR);
    textureAttributes[0].setCombineRgbFunction(0,TextureAttributes.COMBINE_SRC_COLOR);
    textureAttributes[0].setCombineRgbSource(1,TextureAttributes.COMBINE_OBJECT_COLOR);
    textureAttributes[0].setCombineRgbFunction(1,TextureAttributes.COMBINE_SRC_COLOR);

    textureAttributes[1] = new TextureAttributes();
    textureAttributes[1].setTextureMode(TextureAttributes.COMBINE);
    textureAttributes[1].setCombineRgbMode(TextureAttributes.COMBINE_MODULATE);
    textureAttributes[1].setCombineRgbSource(0,TextureAttributes.COMBINE_PREVIOUS_TEXTURE_UNIT_STATE);
    textureAttributes[1].setCombineRgbFunction(0,TextureAttributes.COMBINE_SRC_COLOR);
    textureAttributes[1].setCombineRgbSource(1,TextureAttributes.COMBINE_TEXTURE_COLOR);
    textureAttributes[1].setCombineRgbFunction(1,TextureAttributes.COMBINE_SRC_COLOR);


Xith3D (modified)
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
    textureAttributes[0] =   new TextureAttributes();
    textureAttributes[0].setTextureMode(TextureAttributes.COMBINE);
    textureAttributes[0].setCombineRgbMode(TextureAttributes.COMBINE_DOT3);
    textureAttributes[0].setCombineRgbSource(0,TextureAttributes.COMBINE_TEXTURE_COLOR);
    textureAttributes[0].setCombineRgbFunction(0,TextureAttributes.COMBINE_SRC_COLOR);
    textureAttributes[0].setCombineRgbSource(1,TextureAttributes.COMBINE_OBJECT_COLOR);
    textureAttributes[0].setCombineRgbFunction(1,TextureAttributes.COMBINE_SRC_COLOR);

    textureAttributes[1] = new TextureAttributes();
    textureAttributes[1].setTextureMode(TextureAttributes.COMBINE_MODULATE);
    textureAttributes[1].setCombineRgbSource(0,TextureAttributes.COMBINE_PREVIOUS_TEXTURE_UNIT_STATE);
    textureAttributes[1].setCombineRgbFunction(0,TextureAttributes.COMBINE_SRC_COLOR);
    textureAttributes[1].setCombineRgbSource(1,TextureAttributes.COMBINE_TEXTURE_COLOR);
    textureAttributes[1].setCombineRgbFunction(1,TextureAttributes.COMBINE_SRC_COLOR);


Check out the difference in the second textureAttribute setting.
When I try to copy the code just as it is from Java3D to Xith3D, I get a nice DOT3 bumped GOLDEN torus!!!!

Anyways, here's what I did to TextureShaderPeer.java
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
    private static void setCombineMode(GL gl, int channel, int mode) {
                switch (mode) {
                    case TextureAttributes.COMBINE_ADD:
                        gl.glTexEnvf(GL.GL_TEXTURE_ENV, channel, GL.GL_ADD);
                        break;
                    case TextureAttributes.COMBINE_ADD_SIGNED:
                        gl.glTexEnvf(GL.GL_TEXTURE_ENV, channel, GL.GL_ADD_SIGNED);
                        break;
                    case TextureAttributes.COMBINE_REPLACE:
                        gl.glTexEnvf(GL.GL_TEXTURE_ENV, channel, GL.GL_REPLACE);
                        break;
                    case TextureAttributes.COMBINE_MODULATE:
                        gl.glTexEnvf(GL.GL_TEXTURE_ENV, channel, GL.GL_MODULATE);
                        break;
                    case TextureAttributes.COMBINE_DOT3:
                        gl.glTexEnvf(GL.GL_TEXTURE_ENV, channel, GL.GL_DOT3_RGB);
                        break;
                }
    }

I might have screwed up and put the DOT3 extension where it doesn't belong, but hey it's Yuri's Job not mine Grin.
PS: In response to Kev.
Using the first texture set, I get around 700 FPS on this Athlon 2.1Ghz, Radeon 9700Pro, NForce2 Mobo and 512 DDR.
The second texture set however, the ATi Radeon one, I get over 1000 FPS...
Pages: 1 [2] 3 4 ... 6
  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.

xsi3rr4x (59 views)
2014-04-15 18:08:23

BurntPizza (57 views)
2014-04-15 03:46:01

UprightPath (70 views)
2014-04-14 17:39:50

UprightPath (53 views)
2014-04-14 17:35:47

Porlus (70 views)
2014-04-14 15:48:38

tom_mai78101 (96 views)
2014-04-10 04:04:31

BurntPizza (156 views)
2014-04-08 23:06:04

tom_mai78101 (251 views)
2014-04-05 13:34:39

trollwarrior1 (206 views)
2014-04-04 12:06:45

CJLetsGame (213 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
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!