[osg-users] How do I move a Texture in an model of Openflight format (.flt) in the UV direction?
Trajce Nikolov NICK
trajce.nikolov.nick at gmail.com
Tue Sep 24 21:50:56 PDT 2019
Cool!
I just revisited the part of the code to set the texture parameters and
here is how it should be set more efficiently and more proper if the model
have assigned texture attribute on any level in the scenegraph
https://pastebin.com/P9z98FYS
On Wed, Sep 25, 2019 at 3:14 AM Dae Woo Ryu <osgforum at tevs.eu> wrote:
> Hi, Nick
>
> Thanks to you, I got a lot of knowledge.
>
> This time the Texture is moving as I want.
>
> Thank you so much.
>
> Have a good Time
>
>
> Trajce Nikolov NICK wrote:
> > Here you go
> >
> >
> > https://pastebin.com/2uuUC2zL (https://pastebin.com/2uuUC2zL)
> >
> >
> > Let me know if the url works for you. Otherwise I will post it here
> >
> >
> >
> > On Mon, Sep 23, 2019 at 8:57 AM Dae Woo Ryu < ()> wrote:
> >
> >
> > > Hi, Nick
> > >
> > > The reason I did _geom-> setUseVertexBufferObjects (true) was because
> the return value of _coord->getBufferObject() was NULL.
> > > So I added _geom-> setUseVertexBufferObjects (true) .
> > >
> > > Here is the cloud model I am testing(.flt).
> > > Can you move the cloud texture on the surface in uv direction?
> > >
> > >
> > >
> > >
> > > >
> > > >
> > > > Hi,
> > > >
> > > >
> > > > I don't think you should call
> _geom->setUseVertexBufferObjects(true); here. I bet the flt plugin is
> setting this on creation time. If you have a use case code you can share
> and the model it will help more for me to see what is going on
> > > >
> > > >
> > >
> > >
> > > ------------------
> > > Read this topic online here:
> > > http://forum.openscenegraph.org/viewtopic.php?p=76729#76729 (
> http://forum.openscenegraph.org/viewtopic.php?p=76729#76729)
> > >
> > >
> > >
> > > _______________________________________________
> > > osg-users mailing list
> > > ()
> > >
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> (http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> )
> > >
> >
> >
> > --
> > trajce nikolov nick
> >
> > ------------------
> > Post generated by Mail2Forum
> |-)
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=76742#76742
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
--
trajce nikolov nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20190925/3a283515/attachment.html>
More information about the osg-users
mailing list