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 

Vertices duplicated by FBX plugin


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Plugins [osgPlugins]
View previous topic :: View next topic  
Author Message
EonStrife
Newbie


Joined: 27 Oct 2016
Posts: 12

PostPosted: Tue Mar 27, 2018 7:45 am    Post subject:
Vertices duplicated by FBX plugin
Reply with quote

Hi all,

I am trying to do something which attach additional information (loaded from an external JSON file) to each vertex. The loaded information are loaded as texture in GPU. The only problem here is how to figure out which element of data to be used for particular vertex in vertex shader. I am trying to use gl_vertexID.

The model is in FBX format and they are loaded using FBX plugin. However the method I am using is not working because the FBX plugin duplicates the vertices, so I cannot establish one-to-one correspondence between texel in a texture (with information loaded from JSON file) and the vertex.

Attached is screenshot of statistics I output using osgUltil::StatsVisitor. The 3D model contains 382 vertices. If you see the statistics of object loaded using FBX plugin, it contains 2280 vertices. However, for object loaded using OBJ plugin, it contains exactly 382 vertices. Is there any way to preven FBX plugin from duplicating the vertices ? or there is other solution for this problem I am trying to solve ?

(we have to use FBX plugin because OBJ does not support animation).


Thanks.

Cheers,
Eon
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Plugins [osgPlugins] 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 SHP plugin fix Andreas Ekstrand Submission 1 Mon Apr 02, 2018 5:54 pm View latest post
No new posts obj plugin does not support diffuse ... robertosfield Submission 6 Mon Mar 12, 2018 5:17 pm View latest post
No new posts Looking for FBX models to test out ou... robertosfield General 6 Fri Mar 09, 2018 4:24 pm View latest post
No new posts FBX plugin improvement regarding text... a.terenzi Submission 7 Fri Jan 19, 2018 11:39 am View latest post
No new posts iOS/OSX: avfoundation plugin not repo... a.terenzi Plugins [osgPlugins] 2 Fri Jan 19, 2018 8:50 am 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