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

  • Home
  • SEARCH
  • 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 6823953
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:50:40+00:00 2026-05-26T21:50:40+00:00

I have successfully created an object loader in java that loads in vertices, indices,

  • 0

I have successfully created an object loader in java that loads in vertices, indices, texture-coordinates and normals. The object loader, reads in from Wavefont OBJ files.

It is relatively simple, however as soon as I try to load in a more complex file with texture-coordinate indices, and normal indices, I have no idea what to do with these extra sets of index’s? I could not find any opengl (or in this case opengl es 1.1) methods to parse the texture and normal indices too. This has not only been bugging me in opengl for android but also previously did in webgl, so any help would be much appreciated.
It is rather annoying that there are so many tutorials that talk about how to load vertices, indices, texture coords and normals but I am yet to see one (for opengl es) where they load in texture and normal indices.

Do I have to reorder or rebuild the texture coords / normal arrays based on indices? or some function im missing or?

  • 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-05-26T21:50:41+00:00Added an answer on May 26, 2026 at 9:50 pm

    but I am yet to see one (for opengl es) where they load in texture and normal indices.

    There’s a reason for that: you can’t. This is generally why the Wavefront OBJ format is bad for loading into OpenGL/D3D applications.

    Each vertex, each combination of position/normal/texCoord/etc data, must be unique. If you are doing index rendering, each index refers to a specific combination of position/normal/texCoord/etc.

    In short, you can use only one index to render with. That index indexes into all of the attribute arrays simultaneously. So if your data indexes different attributes with different index lists, you must convert your data to do things correctly. The best way to do this is via some kind of off-line tool.

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

Sidebar

Related Questions

I have successfully created an app that reads from a bundled .plist file and
I have created a little program that reads in a Java file and feeds
I have successfully created my data source, which is a CLR object of the
With functionality from the RODBC package, I have successfully created an ODBC but receive
I have successfully connected to an Oracle database (10g) from C# (Visual Studio 2008)
I have successfully created an iHttpModule to replace my Global.asax file in many Web
Hi I am using JRuby to interact with a Java class. I have successfully
I have successfully created a number of UserControls with various functionality setting the DataContext
Here is the scenario: I have successfully bound two objects from a native ObjC
I have successfully created DragDrop functionality with user controls. Now I am trying to

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.