Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9157703
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T13:05:14+00:00 2026-06-17T13:05:14+00:00

I’m trying to make an aplication that loads an 3d object. when i load

  • 0

I’m trying to make an aplication that loads an 3d object.

when i load this object (http://rgcouto.net/alexandre/COKE/fineObj/), all works fine.
screenshot: http://rgcouto.net/alexandre/COKE/Screenshot_2013-01-10-15-04-42.png

But when i try load my object (http://rgcouto.net/alexandre/COKE/myObj/), exported from blender, the texture doesn’t appear and the object is dark..
screenshot: http://rgcouto.net/alexandre/COKE/Screenshot_2013-01-10-15-02-27.png

What did I do wrong?
What i have to do, to make my object appear with texture?

My Blend file:http://rgcouto.net/alexandre/COKE/blend/

My renderer:

public class ObjRenderer extends RajawaliRenderer {
    private static final String TAG = "renderer";
    private BaseObject3D mObjectGroup;
    Number3D mAccValues;

    public ObjRenderer(Context context) {
        super(context);
        setFrameRate(60);
        mAccValues = new Number3D();

}

protected void initScene() {

    // mLight = new DirectionalLight(1, -1, 1);
    // mLight.setPower(.9f);
    DirectionalLight light = new DirectionalLight(0, 0, 1);
    light.setPower(1);

    // light.setPosition(0, 20, -20);
    // light.setLookAt(0, 0, 0);

    mCamera.setPosition(0, 0, -14);
    mCamera.setLookAt(0, 0, 0);

    ObjParser objParser = new ObjParser(mContext.getResources(),
            mTextureManager, R.raw.camaro_obj);
    objParser.parse();
    mObjectGroup = objParser.getParsedObject();
    Log.d(TAG, "carreguei");
    DiffuseMaterial material = new DiffuseMaterial();
    material.setUseColor(true);
    mObjectGroup.setMaterial(material);
    mObjectGroup.addLight(light);

    // mObjectGroup.setScale(3);
    addChild(mObjectGroup);

    // mCameraAnim = new RotateAnimation3D(Axis.Y, 360);
    // mCameraAnim.setDuration(8000);
    // mCameraAnim.setRepeatCount(Animation3D.INFINITE);
    // mCameraAnim.setTransformable3D(mObjectGroup);
}

public void onSurfaceCreated(GL10 gl, EGLConfig config) {
    super.onSurfaceCreated(gl, config);
    // mCameraAnim.start();
}

public void onDrawFrame(GL10 glUnused) {
    super.onDrawFrame(glUnused);
    mObjectGroup.setRotY(mObjectGroup.getRotY() + 1);
    // mObjectGroup.setRotation(mAccValues.y, mAccValues.x, mAccValues.z);
}}

Regards
Alex

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T13:05:15+00:00Added an answer on June 17, 2026 at 1:05 pm

    You have to add a color or texture to your material/object. See here: http://www.rozengain.com/blog/2011/12/05/rajawali-tutorial-3-materials/

    To tell you any more I’d have to see the OBJ text.

    Cheers

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I know there's a lot of other questions out there that deal with this
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I'm not entirely sure how I managed to jack this up. http://pretty-senshi.com If you
I'm trying to create an if statement in PHP that prevents a single post
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.