Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Blender25 support
09-16-2011, 11:06 PM,
#11
 
NaN Wrote:Blender only supports one normal per vertex. We are storing three normals per face.

In the JOE03 format, we are storing three normal indices per face, and three position indices per face (and three texcoord indices per face, by the way). The normal and position arrays are indexed separately (and have duplicates removed). You are saying that Blender only supports one vertex index per face, and that vertex contains both a position and normal, correct? If so, that's fine. OpenGL is the same way, and at runtime we convert to that arrangement (the VERT_ENTRY stuff at the end of ReadData in model_joe03.cpp). The MODEL class supports reading and writing a format that matches the final runtime format better (ReadFromFile and WriteToFile in model.cpp), although I'm not sure if it's faster since it goes through the serialization code instead of doing a bulk read into memory.
Reply


Messages In This Thread
Blender25 support - by NaN - 09-06-2011, 04:37 AM
[No subject] - by Timo 6 - 09-06-2011, 11:52 AM
[No subject] - by NaN - 09-07-2011, 09:46 AM
[No subject] - by NaN - 09-09-2011, 05:41 AM
[No subject] - by NaN - 09-09-2011, 06:13 AM
[No subject] - by NaN - 09-09-2011, 08:25 AM
[No subject] - by NaN - 09-12-2011, 04:29 AM
[No subject] - by NaN - 09-12-2011, 02:45 PM
[No subject] - by Timo 6 - 09-12-2011, 03:18 PM
[No subject] - by NaN - 09-13-2011, 04:35 AM
[No subject] - by joevenzon_phpbb2_import3 - 09-16-2011, 11:06 PM
[No subject] - by NaN - 09-17-2011, 06:45 AM
[No subject] - by portets - 10-04-2011, 05:23 PM
[No subject] - by NaN - 10-05-2011, 06:10 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)