Hi,
oliver is working on a new really nice tutorial
http://www.oliver-abert.de/index.php?target=work
Andreas
GeoTexCoords3fPtr txcrd = GeoTexCoords3f::create();
beginEditCP (txcrd, GeoTexCoords3f::GeoPropDataFieldMask);
txcrd->getFieldPtr()->push_back((Vec3f(0, 0, 1));
beginEditCP (txcrd, GeoTexCoords3f::GeoPropDataFieldMask);
> hello,
>
> i am trying to feed opensg the tex coords for the cube map all by
> myself. This means using 3 dimensional coordinates. On, no problem, I
> think i should use GeoTexCoords3f.
> I've copied a snippet of code from an example reading:
>
> GeoTexCoords2fPtr txcrd = GeoTexCoords2f::create();
> beginEditCP (txcrd, GeoTexCoords2f::GeoPropDataFieldMask);
> {
> txcrd->addValue(Vec2f(0, 1));
> txcrd->addValue(Vec2f(0, 0));
> txcrd->addValue(Vec2f(1, 0));
> txcrd->addValue(Vec2f(1, 1));
> }
> endEditCP (txcrd, GeoTexCoords2f::GeoPropDataFieldMask);
>
> so i told myself: great, just swap all 2s with 3s and you are done.
> Wrong: all i get is a compilation error saying:
>
> 10loading.cpp:632: no matching function for call to `
> osg::GeoProperty<osg::GeoTexCoords3fPropertyDesc>::addValue(osg::Vec3f)'
> /usr/local/include/OpenSG/OSGGeoPropTexCoords.inl:138: candidates are:
> void
> osg::GeoProperty<GeoPropertyDesc>::addValue(GeoPropertyDesc::GenericType&)
> [with GeoPropertyDesc = osg::GeoTexCoords3fPropertyDesc]
>
> now what type of data should i use in the place of Vec3f?
>
> finally my last question: since it is better to teach the hungry man to
> fish, rather than giving him one fish, how can I guess myself what kind
> of data is GeoTexCoords3fPropertyDesc? I've read the doxigen stuff and
> gave a look at the src code, but didn't get very far...
>
> thx enrico
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: SourceForge.net Broadband
> Sign-up now for SourceForge Broadband and get the fastest
> 6.0/768 connection for only $19.95/mo for the first 3 months!
> http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
> _______________________________________________
> Opensg-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensg-users
>
--
NEU : GMX Internet.FreeDSL
Ab sofort DSL-Tarif ohne Grundgebühr: http://www.gmx.net/dsl
-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users