Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (480)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (547)
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  
  can't smooth a 3ds model  (Read 990 times)
0 Members and 1 Guest are viewing this topic.
Offline CthulhuLives

Junior Newbie




IA! IA! CTHULHU FHTAGN!


« Posted 2005-04-10 18:24:53 »

Hi folks,

I've been playing with Xith3d for a week or so now and am having fun and I'm checking out the different loaders.

Currently I'm trying out the Loader3DS v1.2 by Greg from Kinostudios.com and I'm seeing a small problem with the displaying of the model. It's probably all my fault but I can't seem to figure out why.

I can't seem to get the model to smooth. As you can see in the attached JPG you can see the vertices.

Here's the material I'm using

 mat2.setSpecularColor(0.0f,0.0f,0.0f);
 mat2.setAmbientColor(1.f,1.f,1.f);
 mat2.setDiffuseColor(1.0f,1.0f,1.0f);
 mat2.setShininess(0f);
 mat2.setColorTarget(Material.AMBIENT_AND_DIFFUSE);
 mat2.setLightingEnable(true);

The code I used is just his demo found at the web site.

Cheers
Cthulhu



PS: ther model is created in 3ds max (geosphere). I've tried just creating the sphere and exporting it, tried adding a mesh smooth, tried adjusting the normals, tried converting it to editable mesh before exporting.
Offline itistoday

Junior Member




There's too much blood in my caffeine system.


« Reply #1 - Posted 2005-04-27 00:11:59 »

hey, I'm no longer really working on this loader, but send me an email with your model and the code you're using and I'll try to take a look and see what's wrong.  This is very strange because I've loaded many sphere's before and I never noticed this.  My email: greg -at- kinostudios -dot- com

BTW, what version of 3DS Max are you using?

Offline CthulhuLives

Junior Newbie




IA! IA! CTHULHU FHTAGN!


« Reply #2 - Posted 2005-04-27 21:38:15 »

I'm using 3dsmax6.

If I have an ambient light it looks great but since it is for a space scene I'm using a PointLight and there is no ambient light in space (more or less anyways).

I sent you an e-mail with a slightly modified version of your example code so you won't have to search around much and the model+texture.

Thanks in advance Smiley

if you don't see the same thing then it's a problem on my side.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline itistoday

Junior Member




There's too much blood in my caffeine system.


« Reply #3 - Posted 2005-04-27 23:30:48 »

Check your mail. Smiley

Offline whome

Junior Member




Carte Noir Java


« Reply #4 - Posted 2005-04-28 07:09:00 »

Do you plan updating 3DS loader in xith3d-toolkit CVS base?
that is, if you managed to fix a sphere problem just mentioned..
Offline itistoday

Junior Member




There's too much blood in my caffeine system.


« Reply #5 - Posted 2005-05-01 03:56:24 »

Quote
Do you plan updating 3DS loader in xith3d-toolkit CVS base?
that is, if you managed to fix a sphere problem just mentioned..

Well, I didn't fix the problem yet (don't know if I will, again, I'm no longer actively working on this).  I just emailed him some suggestions and alternatives.  However, if anyone finds out what the problem is, they are of course more than welcome to fix it. A good place to look would be FacesDescriptionChunk. Until then I would just recommend using Xith's primitive's package to make Spheres.

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.

atombrot (23 views)
2014-08-19 09:29:53

Tekkerue (22 views)
2014-08-16 06:45:27

Tekkerue (21 views)
2014-08-16 06:22:17

Tekkerue (12 views)
2014-08-16 06:20:21

Tekkerue (19 views)
2014-08-16 06:12:11

Rayexar (57 views)
2014-08-11 02:49:23

BurntPizza (37 views)
2014-08-09 21:09:32

BurntPizza (29 views)
2014-08-08 02:01:56

Norakomi (36 views)
2014-08-06 19:49:38

BurntPizza (66 views)
2014-08-03 02:57:17
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!