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 

Sharing PrimitiveSets between Geometrys


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
Brian R Hill
Guest





PostPosted: Mon Oct 27, 2008 7:26 pm    Post subject:
Sharing PrimitiveSets between Geometrys
Reply with quote

Folks,

Can primitivesets be shared between geometrys similarly to vertexes,
colors, and texcoords?

Brian



------------------
Post generated by Mail2Forum
Back to top
Robert Osfield
Guest





PostPosted: Tue Oct 28, 2008 9:12 am    Post subject:
Sharing PrimitiveSets between Geometrys
Reply with quote

HI Brian,

On Mon, Oct 27, 2008 at 7:25 PM, Brian R Hill <> wrote:
Quote:
Can primitivesets be shared between geometrys similarly to vertexes,
colors, and texcoords?

I have never tried this, but it should work just fine.

Robert.


------------------
Post generated by Mail2Forum
Back to top
Brian R Hill
Guest





PostPosted: Tue Oct 28, 2008 12:56 pm    Post subject:
Sharing PrimitiveSets between Geometrys
Reply with quote

Robert,

It does work when adding them during runtime, but the .ive/.osg
reader/writer don't support sharing them. They always write out full
definitions and expect to read in full definitions. For my current use
(creating sequences from osgCal/cal3d models) the prim overhead isn't too
bad, at least not yet. I'll come back to the .ive/.osg plugins after I
finish what I'm currently doing.

Brian

wrote: -----

To: "OpenSceneGraph Users" <>
From: "Robert Osfield" <>
Sent by:
Date: 10/28/2008 05:12AM
Subject: Re: Sharing PrimitiveSets between Geometrys

HI Brian,

On Mon, Oct 27, 2008 at 7:25 PM, Brian R Hill <> wrote:
Quote:
Can primitivesets be shared between geometrys similarly to vertexes,
colors, and texcoords?

I have never tried this, but it should work just fine.

Robert.





------------------
Post generated by Mail2Forum
Back to top
Robert Osfield
Guest





PostPosted: Tue Oct 28, 2008 1:02 pm    Post subject:
Sharing PrimitiveSets between Geometrys
Reply with quote

Hi Brian,

On Tue, Oct 28, 2008 at 12:55 PM, Brian R Hill <> wrote:
Quote:
It does work when adding them during runtime, but the .ive/.osg
reader/writer don't support sharing them. They always write out full
definitions and expect to read in full definitions. For my current use
(creating sequences from osgCal/cal3d models) the prim overhead isn't too
bad, at least not yet. I'll come back to the .ive/.osg plugins after I
finish what I'm currently doing.

Sharing of vertex arrays and primitives set will need to be added to
.ive to enable you to do this, it shouldn't be too hard to do.

Robert.


------------------
Post generated by Mail2Forum
Back to top
Bill Prendergast
Guest





PostPosted: Tue Oct 28, 2008 5:42 pm    Post subject:
Sharing PrimitiveSets between Geometrys
Reply with quote

Quote:
Quote:
Can primitivesets be shared between geometrys similarly to vertexes,
colors, and texcoords?

Quote:
I have never tried this, but it should work just fine.

Slightly off-topic, but I recently made a visitor that looks for
duplicated texture coordinates (unit 1 uses same TC's as unit 0)
and deleted the duplicate array and shared unit 0 TC's with unit 1.

Treat this as anecdotal for now until I can poke into it a little
more, but this appeared to crash the Tri-Strip Optimizer if I tried
to share TC's before optimization.

Running the same visitor after optimization was OK and I could share
TC arrays with no problems.

- Bill




------------------
Post generated by Mail2Forum
Back to top
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General 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 Multiple cameras sharing multisample fbo ravidavi General 1 Sat Mar 11, 2017 8:17 am View latest post
No new posts 答复: osg-users Digest, Vol 105, Is... 韩志平 General 1 Thu Feb 09, 2017 3:03 am View latest post
No new posts PrimitiveSets and performance Riccardo Corsi General 3 Fri Dec 02, 2016 3:32 pm View latest post
No new posts Memory leak with PrimitiveSets who st... Fawkes General 1 Thu Jun 25, 2015 4:42 pm View latest post
No new posts OSG/OpenGL users in Israel? Chris Hanson General 0 Tue Mar 10, 2015 9: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