New Xith3DTerrainTest Demo WITH TEXTURES!

Hi all.

After seeing lots of questions (and essentially no answers) about texturing terrain, I took it upon myself to re-write the existing Xith3DTerrainTest to use textures. If you look at the source, pay close attention to the way the geo array is built as well as the TerrainShape class. Also, textures from web start jars seem to be problematic on the Mac for whatever reason. If anyone has any input on this, let me know.

UPDATE [Feb 08, 2004] I added a skybox :slight_smile:

Formatted Source
Full Jar
Web Start


http://users.xith.org/mike/Xith3DTerrainTest/ttd_screenshot2.jpg

nice going ;D

Regarding loading images from Jars - I have experianced some different behaviour on different platforms as well which is very frustrating.

The JWS xith demo’s at xith.org work on a mac (or so I’ve been told). The only “secret” is that the textures are not in any sub directories of a jar file. In the constructor of TextureLoader - you may notice: “registerJarPath(”/");" which registers that path. In my own app I do use sub directories which work fine on Linux and Windows but I havn’t had anyone try with a mac. It would be nice to get to the bottom of this problem or if there’s no problem at least publish the correct way to do it. One thing I have found out is that JWS uses a slightly different class loader which can mean that the textures will work as a plain .jar but not when used with JWS (however this code for Xith3D is taken care of by the TextureLoader IIRC).

If you would like some web space for xith3d related content - email me privately and I can set you up with some at “users.xith.org” theres a few people here using that.

Once you are happy that the demo’s finished - would you like it listed at http://xith.org/demo/ ?

Cheers,

Will.

Yeah, I found registerJarPath in the source (it didn’t exist in the javadoc that came with the source) and used it for this demo. I registered “/textures/” as a jarPath and it worked like a charm. As you stated, it works great in Linux and Windows, but it seems to fail on Mac OS X.

Putting this on http://www.xith.org/demo would be great, but only after getting some faster space for it. I’ll discuss it with you via e-mail. 8)

Thanks!

I moved the demo to a better, faster home. Speed should no longer be an issue.

Great job and fantastic effort which was well overdue ;). You would have thought some of the old hands would got this sorted sooner!
tomcat

Looks good, although eventually you reach the sky box. Would be sweeter if you used a background node. That way you’d never reach the box.

Still, very impressive.

Kev

PS. I suspect the “old hands” are busy doing the core software and their own projects :slight_smile:

/me runs off to look at background nodes in Xith

wrightmf,

where does your terrain demo live now?

thanks!

[quote]wrightmf,

where does your terrain demo live now?

thanks!
[/quote]
Ummm … looks like users.xith.org is down. JCD’s demos aren’t working either.

/me looks around at xith.org maintainers

Site looks up to me…

Will.

I get unknown host when trying to ping users.xith.org or access it in a browser. Maybe a DNS error?

well it looks ok to me:

http://www.checkdns.net/quickcheck.aspx?domain=users.xith.org&detailed=1

reports OK


 dig @ns1.deltait.net users.xith.org
 
; <<>> DiG 9.2.1 <<>> @ns1.deltait.net users.xith.org
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 35004
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2
 
;; QUESTION SECTION:
;users.xith.org.                        IN      A
 
;; ANSWER SECTION:
users.xith.org.         14400   IN      A       69.93.68.66
 
;; AUTHORITY SECTION:
users.xith.org.         14400   IN      NS      NS2.DELTAIT.NET.
users.xith.org.         14400   IN      NS      NS1.DELTAIT.NET.
 
;; ADDITIONAL SECTION:
NS1.DELTAIT.NET.        14400   IN      A       69.93.68.111
NS2.DELTAIT.NET.        14400   IN      A       69.93.68.112
 
;; Query time: 276 msec
;; SERVER: 69.93.68.111#53(ns1.deltait.net)
;; WHEN: Wed Apr  7 19:00:52 2004
;; MSG SIZE  rcvd: 127

Name servers appear authoritive, and reachable.

If there was a problem, there isn’t now (perhaps your ISP cached it when there was or something?)

try: http://69.93.68.66/~usersx/ if you want to download stuff (jws may not work as I think it likes to have the domain name)

Cheers,

Will.

The site works fine, but I can’t lookup users.xith.org. I also tried a DNS lookups on the web (http://www.kloth.net/services/nslookup.php), but it can’t find users.xith.org, so there is a problem somewhere.

Yesterday my nameservers couldn’t find users.xith.org. Today, they can, but I still can’t get to JCD’s or my own demos on that site. I tried both /userx and /~userx.

ok, I’ve found the problem and why it sometimes worked but sometimes didn’t.

I use the excellent (and free) http://xname.org/ service to provide a geographically seperate and redundant secondary DNS. My problem was that for users.xith.org I wasn’t using it (as that is in a seperate zone record). When you queried the domain - if by chance (1 in 3) you were sent to ns0.xname.org (which may be more the case in the EU as that is where it is) it would have come back saying NXDOMAIN. I have added some CNAME records to the master nameserver so that this shouldn’t happen again. Tthe reason why this wasn’t happening before is that those records were there a while back.

give it a few hours for the changes to propagate…

Will.