Author Topic: problemin coloring  (Read 3144 times)

Offline abhi13feb

  • byte
  • *
  • Posts: 37
    • View Profile
problemin coloring
« on: March 19, 2008, 03:31:49 pm »
when I create a new sphere inside given building in example using 3d max and assign some color to it.WHen I run it using JPCTDemo.java...color is missing..instead whited texture is added....can anyone tell me how to color ...plzzzzzz

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: problemin coloring
« Reply #1 on: March 19, 2008, 03:38:06 pm »
If it has a texture assigned in 3ds, you have to load that texture in the application too and assign the correct name. Just like you did with the QLxx.JPG textures. If it has no texture assigned, it has to have a diffuse color in 3ds to make jPCT coloring it. In both cases, the log should tell you what jPCT did when loading it.

Offline abhi13feb

  • byte
  • *
  • Posts: 37
    • View Profile
Re: problemin coloring
« Reply #2 on: March 19, 2008, 03:38:34 pm »
is there any problem lying with jPCT in displaying color?

Offline abhi13feb

  • byte
  • *
  • Posts: 37
    • View Profile
Re: problemin coloring
« Reply #3 on: March 19, 2008, 03:43:00 pm »
I have not assiogned anyu texture to it.But I assigned a color to it using 3ds..it is showing color properly after rendering but its showing default white color when I run the prog...

Offline abhi13feb

  • byte
  • *
  • Posts: 37
    • View Profile
Re: problemin coloring
« Reply #4 on: March 19, 2008, 03:55:14 pm »
hey plz help me out.....

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: problemin coloring
« Reply #5 on: March 19, 2008, 05:15:40 pm »
Please post the log that jPCT prints out when you are loading the object. As said, it supports textures or diffuse color. If your color in 3ds is coming from something else, it will be ignored.

Offline abhi13feb

  • byte
  • *
  • Posts: 37
    • View Profile
Re: problemin coloring
« Reply #6 on: March 19, 2008, 05:28:10 pm »
so pls just guide me how to add diffuse colour to an object,...i think i am making mistake there only