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 building the fbx plugin Tare Plugins [osgPlugins] 2 Wed Oct 10, 2018 3:04 pm View latest post
No new posts TIFF plugin reader does not handle im... Eric Sokolowsky Submission 0 Sat Sep 29, 2018 2:30 am View latest post
No new posts Load OSG trimesh to ODE: Read Vertice... TKoller General 2 Fri Jul 20, 2018 3:06 pm View latest post
No new posts decent font without free type plugin OmegaDoom General 0 Mon Jun 25, 2018 12:12 pm View latest post
No new posts Support for paletted images in dds pl... psi29a Plugins [osgPlugins] 1 Fri Jun 22, 2018 10:14 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