[osg-users] Imported .obj file not showing textures.
JILJITH JOHN
jiljithjohncse at gmail.com
Wed Jan 15 01:15:11 PST 2020
Dear Tom,
Thank you for the reply. I tried to load your model. It is crashing in my
PC also.
OSG version is 3.6.4
On Tuesday, January 14, 2020 at 3:54:05 PM UTC+5:30, Tom Pollok wrote:
>
> Which version of openscenegraph are you using?
>
> Would you mind trying my obj model with mtl and jpg texture file.
>
> https://owncloud.iosb.fraunhofer.de/owncloud/s/dc8dkbXrQz3gTuh
> <https://www.google.com/url?q=https%3A%2F%2Fowncloud.iosb.fraunhofer.de%2Fowncloud%2Fs%2Fdc8dkbXrQz3gTuh&sa=D&sntz=1&usg=AFQjCNGQR0mkd74jVhmhZl1hMtC0PDspiA>
>
> Pw: osg
>
> I use the following to load it, but it crashes on my system with openscenegraph_3.4.1.
> Im curious if it works on your system.
>
> osgDB::Options* opt = new osgDB::Options;opt->setOptionString("noRotation");osg::ref_ptr<osg::Node> node = osgDB::readNodeFile(pathToObjFile, opt);
>
>
> Am Dienstag, 14. Januar 2020 10:52:54 UTC+1 schrieb JILJITH JOHN:
>>
>> [image: Capture.PNG]
>>
>> [image: Capture.PNG]
>> Hi,
>>
>> I am developing a tool for editing 3D models using openscenegraph. When I
>> tried to load an .obj file, the texture is not applied. I am getting only
>> black shade.
>> The model is imported using the below code.
>>
>>
>> osg::ref_ptr<osg::Node> model1= osgDB::readNodeFile(path.toStdString());
>> model1->setDataVariance(osg::Object::DYNAMIC);
>>
>>
>>
>>
--
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osg-users+unsubscribe at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/1f803fa5-c636-47c8-84df-1ddb8f81cd5a%40googlegroups.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20200115/ea7c8eab/attachment.html>
More information about the osg-users
mailing list