Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (499)
Games in Android Showcase (118)
games submitted by our members
Games in WIP (567)
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 1538 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 »

http://lwjgl.org/forum/viewtopic.php?t=819

Pages: [1]
  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.

Pippogeek (39 views)
2014-09-24 16:13:29

Pippogeek (30 views)
2014-09-24 16:12:22

Pippogeek (20 views)
2014-09-24 16:12:06

Grunnt (45 views)
2014-09-23 14:38:19

radar3301 (28 views)
2014-09-21 23:33:17

BurntPizza (63 views)
2014-09-21 02:42:18

BurntPizza (33 views)
2014-09-21 01:30:30

moogie (41 views)
2014-09-21 00:26:15

UprightPath (50 views)
2014-09-20 20:14:06

BurntPizza (54 views)
2014-09-19 03:14:18
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!