Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (754)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (842)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  3d model texture/colour laoding problems-plz help  (Read 2359 times)
0 Members and 1 Guest are viewing this topic.
Offline ug02070

Senior Newbie

Java games rock!

« Posted 2004-11-30 18:06:17 »

Hi all,
I am trying to load a 3ds file into an opengl window using lwjgl. Unfortunately I have not been given much time to do this so I have not got the time to learn as much as I would like about opengl and lwjgl before i start this, i have to jump straight in really, I have no choice icon_sad.gif
Anyway, I have managed to output the vertices by outputting to a raw file and I have managed to store these in an array and I can get the model to display. Now this is where my problems begin!

If I load the 3ds model using 3d studio max then it loads up textures, colours everything, just the way that my model alien should look but unfortunately if I load it up in Rhino which is what I'm using then no colours are displayed, only the mesh icon_sad.gif

Anyway, I was thinking that I could set the colour of the vertices as I'm drawing them but I would lose marks for this as it's a crap way of doing it. So basically I'm hoping that anyone could please help me out and tell me if there is code out there that I could use to either get my model from 3dsmax into my window and remember all of the vertex information so I know where each alien is,
OR if i there is a way that I could colour the model myself in rhino and then somehow export this data and load it into my lwjgl code
OR if I would be better off just using the jmonkey engine.
the jmonkey engine looks great but the thing is I am doing a final year project on making a game using lwjgl and if i use jmonkey then i think i might get crap marks as it does everything for me.

I need to somehow just get the code to do what i want otherwise i will just have to use jmonkey and say that i couldn't do it, I am not very good at opengl i will admit but i would really like to get this done.

If it cant be done though as I have tried loads of ideas such as outputting as obj file and such, with no luck, then i would like to know off someone who knows the capabilities but i'm hoping that someone will step in to save my skin.

Anyway if it can be done or if there is code, please please let me know, otherwise plz let me know and i'll use jmonkey, probably lose laods of marks but at least it will be completed

i am not asking anyone to do my project before anyone says that, all i want to know is what is the best approach, thanks everyone

Thanks to everyone who replies
Danny icon_smile.gif
Offline Dosenbier

Senior Newbie

They EXIST !!!

« Reply #1 - Posted 2004-12-01 06:22:03 »

In some topic here you'll find a link to a 3ds loader, that just loads all data you need.
Just look in the shared code section....

Nonsense makes the world go round.

Offline ug02070

Senior Newbie

Java games rock!

« Reply #2 - Posted 2004-12-01 07:16:41 »

i have my alien stored in a float buffer as i got the vertices from a raw file but it would be great if i could use something else just to load in the colours maybe, would it work?? i dont want to use a whole package unless i really have to
thanks guys Smiley
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline CaptainJester

JGO Knight

Medals: 12
Projects: 2
Exp: 14 years

Make it work; make it better.

« Reply #3 - Posted 2004-12-01 10:20:58 »

Pages: [1]
  ignore  |  Print  

DesertCoockie (33 views)
2018-05-13 18:23:11

nelsongames (75 views)
2018-04-24 18:15:36

nelsongames (70 views)
2018-04-24 18:14:32

ivj94 (752 views)
2018-03-24 14:47:39

ivj94 (82 views)
2018-03-24 14:46:31

ivj94 (622 views)
2018-03-24 14:43:53

Solater (98 views)
2018-03-17 05:04:08

nelsongames (179 views)
2018-03-05 17:56:34

Gornova (405 views)
2018-03-02 22:15:33

buddyBro (1065 views)
2018-02-28 16:59:18
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 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‑
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!