Jump to content

Image of the Day

#QuestOfDungeons is an old-fashioned dungeon crawler. #ScreenshotSaturday  #PS4share

https://t.co/1mztLegxeN https://t.co/DpYimg3MZb
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net's newsletters to receive the latest updates and exclusive content.


Sign up now

Nitpicking Blender's OBJ Export option

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
2 replies to this topic

#1 Guy Named Zach   Members   

126
Like
0Likes
Like

Posted 19 March 2014 - 12:26 PM

Within the past year I've taken up graphics programming with OpenGL and have made Blender my preferred tool for creating obj models to load.

Right now I need a cube and I thought I could use Blender's default cube. This may sound nitpicky, but my output OBJ contains seven normals instead of six, and a corner is off slightly (off by 1.0e-5 units). Blender says my corners are correct though. Can I avoid this error somehow? Having axis aligned normals is something I want right now.

#2 TheChubu   Members   

9214
Like
0Likes
Like

Posted 19 March 2014 - 01:54 PM

You could just compute the cube's on your own if you want it perfect (its 8 vertices, 6 normals, and with some organizing to get correct per vertex normals for proper lightning you get 36 vertices and 36 normals).

 

A function to generate that kind of geometry is always useful to have around (along spheres, cones and cylinders).

 

Blender handles arbitrary units (even meters, inches, etc), maybe there is some unit conversion going on. And 1.0e-5 is 0.0001, pretty small, you could do the rounding on your own at load time too.


"I AM ZE EMPRAH OPENGL 3.3 THE CORE, I DEMAND FROM THEE ZE SHADERZ AND MATRIXEZ"

 

My journals: dustArtemis ECS framework and Making a Terrain Generator


#3 LorenzoGatti   Members   

4241
Like
0Likes
Like

Posted 20 March 2014 - 01:53 AM

Just curious: what's the seventh normal attached to?


Omae Wa Mou Shindeiru





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.