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 

AC3D Loader


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


Joined: 13 Dec 2016
Posts: 7

PostPosted: Tue Dec 13, 2016 5:46 am    Post subject:
AC3D Loader
Reply with quote

Hello,

I have 3 questions about the loader:

Does the line:

group->setCullingActive(false);

mean that no culling is active for the groups? Is that normal in loaders? Isn't that inefficient for big complex scenes?


Secondly, what about lines after:

else if (objectType == ObjectTypeLight) { // add a light source to the scene 1 Nov 2003

Why add a lightsource (if thats whats happening)? Isn't this loader used by many projects just to load fragments of a larger scene, will each fragment then get a lightsource?
Notice AC3D does not support lights in the fileformat to my knowledge.

Lastly, why tesselate geometry at all? Does OSG only handle triangles?

Thanks
- freqfly
Back to top
View user's profile Send private message
Chris Hanson
Guest





PostPosted: Wed Dec 14, 2016 6:45 pm    Post subject:
AC3D Loader
Reply with quote

On Mon, Dec 12, 2016 at 10:48 PM, Nikolai Christensen < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
Secondly, what about lines after:
else if (objectType == ObjectTypeLight) { // add a light source to the scene 1 Nov 2003
Why add a lightsource (if thats whats happening)? Isn't this loader used by many projects just to load fragments of a larger scene, will each fragment then get a lightsource?
Notice AC3D does not support lights in the fileformat to my knowledge.


  If you look at the code here:
http://trac.openscenegraph.org/projects/osg//browser/OpenSceneGraph/branches/OpenSceneGraph-3.0/src/osgPlugins/ac/ac3d.cpp#L1157



 it appears that the light being added IS specified in the AC3D file, so OSG is adding the light, as directed.
 
Quote:
Lastly, why tesselate geometry at all? Does OSG only handle triangles?


  Well, OSG does handle more than triangles (QUADS, TRISTRIPS, etc) but modern OpenGL actually only handle triangles internally and trianlges is what it renders best. Are you asking if OSG supports pure CSG primitives? it does not, because OpenGL does not.



--
Chris 'Xenon' Hanson, omo sanza lettere. http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 • GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Legal/IP • Code Forensics • Digital Imaging • GIS • GPS • osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile • iPhone/iPad/iOS • Android
@alphapixel facebook.com/alphapixel (775) 623-PIXL [7495]

------------------
Post generated by Mail2Forum
Back to top
freqfly
Newbie


Joined: 13 Dec 2016
Posts: 7

PostPosted: Fri Dec 23, 2016 12:27 am    Post subject:
Reply with quote

Hi,

thank you for your reply.

Cheers,
freqfly
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 FBX loader convert units options robertosfield Submission 1 Tue Apr 18, 2017 4:20 pm View latest post
No new posts Matrices interpreted wrong in AC load... freqfly Plugins [osgPlugins] 7 Sun Mar 12, 2017 4:37 am View latest post
No new posts FBX loader convert units options Farshid Lashkari Submission 1 Tue Nov 22, 2016 6:35 pm View latest post
No new posts TIFF loader: Error reding/decoding fi... _Alexander_ General [forum] 5 Wed Feb 25, 2015 5:26 pm View latest post
No new posts Fix crash in collada loader Farshid Lashkari Submission 2 Mon Dec 01, 2014 4:39 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