problemin coloring

Started by abhi13feb, March 19, 2008, 03:31:49 PM

Previous topic - Next topic

abhi13feb

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

EgonOlsen

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.

abhi13feb

is there any problem lying with jPCT in displaying color?

abhi13feb

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...

abhi13feb


EgonOlsen

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.

abhi13feb

so pls just guide me how to add diffuse colour to an object,...i think i am making mistake there only