yl3218 / min3d

Automatically exported from code.google.com/p/min3d
0 stars 0 forks source link

Can't change default-color of loaded .obj models #39

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Pick any .obj model and load it through the parser using the example 
provided in trunk
2. Set objModel.vertexColorsEnabled(false);
3. Set objModel.defaultColor(new Color4(255, 0, 0, 0));
(doesnt works with alpha 255 either)
4. Loaded objects are then kind of green on smartphone and yellow in the 
emulator

What is the expected output? What do you see instead?
I want to see the object in red. I have also tried several other options - 
either the object is white only or has the colors described above.

What version of the product are you using? On what operating system?
* Current trunk version as of 04.01.2011
* Emulator for Anroid 2.2 on Ubuntu
* HTC Desire with Android 2.2

Please provide any additional information below.
I have attached the object i want to load. Created using current Blender 
version with export settings as specified here: 
http://www.rozengain.com/blog/2010/05/17/loading-3d-models-with-the-min3d-framew
ork-for-android/

Original issue reported on code.google.com by radiatio...@gmx.net on 1 Apr 2011 at 10:21

Attachments:

GoogleCodeExporter commented 9 years ago
to be more specific:

With the mentioned setting, both emulator and HTC Desire will paint the model 
grey.

Only when setting

objModel.colorMaterialEnabled(true);

The model is painted yellow in Emulator and grey(!) on HTC Desire.

Original comment by radiok...@gmx.de on 2 Aug 2011 at 12:43

GoogleCodeExporter commented 9 years ago
hi all

min3d is working very fine .I just wanna to know can u take light and other 
body part as a separate object like tier and how can i chnage the colour of 
body.If yes den how can we do that.
any help regarding this will be greatly appreciated.

Original comment by goyal.ar...@gmail.com on 10 Dec 2012 at 11:27