3DS files and LWJGL

hi i’m having trouble getting the following code to compile:-
http://games.swizel-studios.com/tutorials/beta/src/beta_0.3.zip
i’m trying to get to grips with the 3ds loader so that i can have a play at loading in the models and getting them to move around.
i am using the latest lwjgl by the way 0.92 i think it is
cheers

The code on my site was created with LWJGL v0.7, so I can imagine you’d be having a lot of trouble trying to get it to compile. with v0.9.2.

I’m now using v0.9.2 myself so I’ll try and make a new build this weekend of those tutorials I wrote…not that they’re very good anyway.

I’m also fighting Jdeveloper, since it doesn’t support Java 1.5 yet, therefore static imports don’t work too well.

Check back on Monday for some changes.

Andy.

nice one andy! :slight_smile:

I’ve updated the beta_0.3.zip to include source code that compiles and runs using lwjgl v0.9.2 and Java v1.4.2 (i.e. no static imports).

You can get this file from the website using the following link.

http://games.swizel-studios.com/tutorials/beta/src/beta_0.3.zip

The website as a whole will be going through some changes this week, to get all the code and jnlp files up to date.

Enjoy,

Andy.

Andy, nice job with updating the code for loading in 3ds files. could you do me a favour though and tell me what code i need simply to load a 3ds file into a window so that i can get it moving left to right and so on, the bare
minimum. also as i am designing a space invaders game can you tell me how i could place these into rows i.e aliens so that i could get them moving in rows,
so that i can get several 3ds files moving left and right, you know the game. :slight_smile:
any reply would be greatly appreciated
cheers
Danny :slight_smile:

has anybody had trouble getting colour to show on the 3ds files when they have been laoded, i can get a file in but it has no texture
cheers
Danny

Danny,

The code in tutorial beta_0.3 IS the bare minimum, all it does is load the model and display it on the screen.

If you want more than 1 model displayed, you have 2 options.

  1. Just reuse the already loaded model and draw it twice, but in different places (glTranslatef() should do the trick)
  2. Load in a different model, I assume there will be different looking aliens. Once again draw each model and change their position using glTranslatef()

Andy.