Author Topic: help please  (Read 6715 times)

Offline freyes

  • byte
  • *
  • Posts: 6
    • View Profile
help please
« on: June 20, 2004, 04:12:20 am »
How can I load a 3ds file that have no textures, only materials

I want to show the model with the original materials

Offline freyes

  • byte
  • *
  • Posts: 6
    • View Profile
more info
« Reply #1 on: June 20, 2004, 05:30:01 am »
I need to make an applet to load 3ds models, i can load them but the render is too ugly

can you help me to configure for a good rendering?

Offline freyes

  • byte
  • *
  • Posts: 6
    • View Profile
help please
« Reply #2 on: June 20, 2004, 05:51:29 am »
if you can show an example, I'd be very happy

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
help please
« Reply #3 on: June 20, 2004, 01:38:18 pm »
jPCT is (per definition) a texture-only engine. For 3DS, there is the option to let jPCT create uni-colored textures for materials but that's basically all that is supported. I'm not sure what you mean by "too ugly"...what are you missing or what looks wrong? Maybe adding some colors or something would help...?

Offline freyes

  • byte
  • *
  • Posts: 6
    • View Profile
help please
« Reply #4 on: June 21, 2004, 06:05:52 am »
excuse my english I speak just a bit

I want to say that te render isn't good, the color are not correct for the materials.

Then you say that jpct it isn't appropriated for my project??

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
help please
« Reply #5 on: June 21, 2004, 05:28:27 pm »
jPCT uses the diffuse color of a material to color the polygons using this material. If this works fine for you but is still not what you want, then jPCT may not be suitable for you. If that is what you want but it's not working properly, i would be very interested in such a model to see for myself.

Offline freyes

  • byte
  • *
  • Posts: 6
    • View Profile
help please
« Reply #6 on: June 21, 2004, 08:25:30 pm »
Here is a render



and the model
http://macconsultores.cl/html/freyes/models/vroom.3ds

The source is only a modification of bounce.java

http://macconsultores.cl/html/freyes/Bounce.java

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
help please
« Reply #7 on: June 21, 2004, 11:15:36 pm »
This is how it looks now:



What i did is this: I opened and resaved the model in DeepExploration (a very powerfull 3D converter tool) and the colors were correct from there on (they were as wrong as your render shows before). I don't know why this has happened. It's either a flaw in jPCT's 3DS-loader (but one that doesn't occur on any other model i know of) or a flaw in the software you used to make this model (i doubt that, but you never know).
Anyway, i modified some parts of your code that suffered from a copy-and-paste disease... :wink:
You applied a rotation to every part of "vroom" right after loading. That's not a good idea, because it means that you rotate every part around its own rotation pivot...and that will screw up the model finally. I replaced this by rotating the mainObj only.
Second, you don't have to add mainObj to the world, because it's a dummy object.
Third, i removed the light sources and set ambient to max to show you, that the colors are really fine now.
Fourth...some other stuff i can't remember...
The sources can be found here: http://www.jpct.net/stuff/vroom

Anyway, please tell me which program you used to create the model, so i can track down this problem better...

Offline freyes

  • byte
  • *
  • Posts: 6
    • View Profile
help please
« Reply #8 on: June 22, 2004, 04:45:40 am »
Thank you very much!

I'll evaluate the posibility of implement my project with this engine