Hi John,

I presently working to fix the broken ac3d plugin, that was broken by
your own requests/needs, there are existing OSG users now with broken
models that previously worked fine.  There is a thread on osg-users
that I have instigated, but alas your haven't replied.  Please engage,
as so far it's wasted quite a bit of others peoples time.

All the evidence I have seen so far is that ac3d just supports texture
repeat, the official docs say that texture repeat is the default even
in absence of the texrep line.  ac3d itself exports files that don't
have the texrep but rely upon the default.

On Fri, Sep 26, 2008 at 9:35 PM, John Cummings <[EMAIL PROTECTED]> wrote:
> I noticed that when porting my application to OSG that some of my
> textures in my AC3D models would wrap even though they did not have a
> "texrep" line in them. After looking at the code, I found that currently
> the AC3D plugin uses GL_REPEAT for all textures. That works great if
> your texture makes use of the "texrep" line, but can cause some
> unintended wrapping otherwise. So, attached is a patch to use
> GL_CLAMP_TO_EDGE by default and GL_REPEAT when necessary. I have also
> added a bool to avoid an extra floating point multiplication. The patch
> is for the file:

>From all the research that I and others have done it looks like your
files are oddities, and that ac3d doesn't support clamp to edge,
unless it's some implicit rule.

Could you please engage on the mailing list on osg-users and post your
problem files, and explain where they were sourced from.

Right now I'm removing reverting to the default of texture repeat as
per set so the ac3d works to spec.  The code for texture clamping
looks like it should be removed completely, or handled in a very
different way.  The place to discuss future changes ac3d w.r.t texture
clamping is on the osg-users thread.

Thanks for you attention and assistance on sorting this mess out,
Robert.
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to