Re: [osg-users] problem with translparency in ac3d model loaded in OSG

2008-10-16 Thread Mathias Fröhlich

Hi,

On Thursday 16 October 2008 12:38, Robert Osfield wrote:
> It sounds like the ac3d loader hasn't placed your canopy in the
> transparent bin.  I'm not the author of this loader, nor a user of
> ac3d so I can't really help on the low level details.  You'll need to
> look at the ac3d plugin to see if there if what is going on w.r.t
> binning your data, or if you want others to ptich in a help solve the
> problem you'll need to provide an example dataset that illustrates the
> problem.
Well, these objects are placed in the transparent bin by the ac3d loader.

Common problems:
* The objects are that big, that the by drawable depth sorting algorithm 
cannot fix these dept ordering problems. Note that the sorting is done per 
drawable and not per triangle.
* Partly transparent textures on some objects will move that object into the 
transparent bin. If such objects are too huge then sorting might lead to 
strange effects. Avoid textures that have any transparent pixel if you do not 
need that.

If these are not the case, please provide a test case ...

Greetings

Mathias

-- 
Dr. Mathias Fröhlich, science + computing ag, Software Solutions
Hagellocher Weg 71-75, D-72070 Tuebingen, Germany
Phone: +49 7071 9457-268, Fax: +49 7071 9457-511
-- 
Vorstand/Board of Management:
Dr. Bernd Finkbeiner, Dr. Florian Geyer,
Dr. Roland Niemeier, Dr. Arno Steitz, Dr. Ingrid Zech
Vorsitzender des Aufsichtsrats/
Chairman of the Supervisory Board:
Prof. Dr. Hanns Ruder
Sitz/Registered Office: Tuebingen
Registergericht/Registration Court: Stuttgart
Registernummer/Commercial Register No.: HRB 382196 


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] problem with translparency in ac3d model loaded in OSG

2008-10-16 Thread Robert Osfield
Hi Juan,

It sounds like the ac3d loader hasn't placed your canopy in the
transparent bin.  I'm not the author of this loader, nor a user of
ac3d so I can't really help on the low level details.  You'll need to
look at the ac3d plugin to see if there if what is going on w.r.t
binning your data, or if you want others to ptich in a help solve the
problem you'll need to provide an example dataset that illustrates the
problem.

Please note that the OSG the order in the scene graph makes no
difference to rendering order as state sorting and bin assignment will
dictate the rendering order.  This means if you want a specific
rendering order you'll need to use bins to order them.

Robert.

On Thu, Oct 16, 2008 at 10:35 AM, Juan Sebastian Casanueva
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am doing an aircraft 3d model, using the Ac3d modeller, and I am having
> problems with the transparent canopy in OSG.
> In Ac3d, the canopy is transparent and you can see the cockpit inside. This
> is achieved by puting the tranparent cockpit last in the object hierarchy.
> However, when I use osgviewer to load the ac3d model, some of the cockpit
> elements (pilot, seat, etc..) dissapear and reappear when you move the
> camera.
> Has anybody had this problem before? anybody know how to solve this problem?
> thanks very much
>
> Juan
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] problem with translparency in ac3d model loaded in OSG

2008-10-16 Thread Juan Sebastian Casanueva
Hi,
 
I am doing an aircraft 3d model, using the Ac3d modeller, and I am having 
problems with the transparent canopy in OSG.
In Ac3d, the canopy is transparent and you can see the cockpit inside. This is 
achieved by puting the tranparent cockpit last in the object hierarchy.
However, when I use osgviewer to load the ac3d model, some of the cockpit 
elements (pilot, seat, etc..) dissapear and reappear when you move the camera.
Has anybody had this problem before? anybody know how to solve this problem? 
thanks very much
 
Juan
 
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org