View previous topic :: View next topic |
|
Author |
Message |
Brian R Hill Guest
|
Posted: Mon Oct 27, 2008 7:26 pm Post subject: Sharing PrimitiveSets between Geometrys |
|
|
Folks,
Can primitivesets be shared between geometrys similarly to vertexes,
colors, and texcoords?
Brian
------------------
Post generated by Mail2Forum |
|
Back to top |
|
 |
Robert Osfield Guest
|
Posted: Tue Oct 28, 2008 9:12 am Post subject: 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 |
|
 |
Brian R Hill Guest
|
Posted: Tue Oct 28, 2008 12:56 pm Post subject: Sharing PrimitiveSets between Geometrys |
|
|
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
|
Posted: Tue Oct 28, 2008 1:02 pm Post subject: Sharing PrimitiveSets between Geometrys |
|
|
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
|
Posted: Tue Oct 28, 2008 5:42 pm Post subject: Sharing PrimitiveSets between Geometrys |
|
|
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 |
|
 |
|
|
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
|
|
Powered by phpBB © 2001, 2005 phpBB Group
|