Hi, obj does support colouring by using mtl (material) associated text file where materials are defined with all the color and texture info in it. if the obj is text (not binary) you can set your material to be used per face for example in text editor - for binary you are left to your modelling software. And the osg obj loader uses the mtl file if present - from real cases with obj from Blender you might need to adjust some color properties in text editor
On Tue, Sep 27, 2022 at 8:42 PM [email protected] < [email protected]> wrote: > Hello Marco(?) > > Although wavefront .obj don't support vertex colours out of the box, it > appears the OSG obj plugin code can read vertex colours the way MeshLab > outputs it. I'm not sure how it's done, but I would give it a try. > > > On Tuesday, September 27, 2022 at 10:23:50 a.m. UTC-4 > [email protected] wrote: > >> Hi, >> >> if I can't use material to color the model loaded from obj file, now how >> can I color that model avoiding to use shaders? >> >> >> >> Thanks >> > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/osg-users/c4473ca3-286e-4c9d-8a9f-4870af61f197n%40googlegroups.com > <https://groups.google.com/d/msgid/osg-users/c4473ca3-286e-4c9d-8a9f-4870af61f197n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- trajce nikolov nick -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/CAO-%2Bzimi7of6ktgSU6RBUO0Vpycqww8jt6K8D3rZZgKNwcKRkw%40mail.gmail.com.
