OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

Using .obj and .mtl files with OpenGL 3.3+


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General [3rdparty]
View previous topic :: View next topic  
Author Message
Khayzo
Newbie


Joined: 03 Jun 2014
Posts: 1

PostPosted: Tue Jun 03, 2014 9:17 am    Post subject:
Using .obj and .mtl files with OpenGL 3.3+
Reply with quote

Hi,

I'm trying to figure out how to use .obj files with their corresponding .mtl file.
I use osgDB::ReadNodeFile to load the model.
My questions are:

- Is the .mtl file and the textures of the model automatically loaded ?
- How can I send and access the textures in a GLSL shader with a version greater or equal to 330 ? Do I have to send manually the textures or are there some OSG "built-ins" like the matrices' ones (osg_ModelViewMatrix, ...) ?

Can you please post a minimal code doing this or redirect me to a tutorial.

Thank you!

Cheers,
Khazyo
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General [3rdparty] All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts OpenGL warning qiaokun General 1 Thu May 25, 2017 2:57 am View latest post
No new posts draw primitive sets and geometry shad... wernerM General 0 Wed May 24, 2017 3:20 pm View latest post
No new posts OpenGL error when using TextureBuffer MariusD General 1 Mon May 22, 2017 1:40 pm View latest post
No new posts About Shapefiles and .dbf files in os... Rambabu General 0 Tue Apr 25, 2017 4:57 am View latest post
No new posts Fix FBX conversion to OpenGL coordina... Farshid Lashkari Submission 1 Wed Mar 15, 2017 6:34 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP