[osg-users] EXTERNAL: Re: EXTERNAL: Re: Writing texture coordinates on a mesh without going through traversal code?

Rowley, Marlin R marlin.r.rowley at lmco.com
Wed Apr 18 07:31:22 PDT 2018


Robert,

Excellent tips!  And I totally agree.  It’s a steep learning curve for sure.

Will keep in touch with my development here..

Thanks,

-M

----------------------------------------
Marlin Rowley
Software Engineer, Staff
[cid:image002.jpg at 01D39374.DEC5A2E0]
Missiles and Fire Control
972-603-1931 (office)
214-926-0622 (mobile)
marlin.r.rowley at lmco.com<mailto:marlin.r.rowley at lmco.com>

From: osg-users [mailto:osg-users-bounces at lists.openscenegraph.org] On Behalf Of Robert Osfield
Sent: Saturday, April 14, 2018 12:46 PM
To: OpenSceneGraph Users <osg-users at lists.openscenegraph.org>
Subject: EXTERNAL: Re: [osg-users] EXTERNAL: Re: Writing texture coordinates on a mesh without going through traversal code?



On 14 April 2018 at 17:27, Rowley, Marlin R <marlin.r.rowley at lmco.com<mailto:marlin.r.rowley at lmco.com>> wrote:
Hi Robert!

After a lot of hours staying up last night, this morning I found the solution.  It was surprisingly easy.

When I get back to work on Monday I will post the code that hopefully will help other people in the future.  It didn’t have to be as complicated as we were going from before.  Especially not with VS/PS 3.0+.  Fixed-function pipeline is all but obsolete these days.

Fixed function is still widely used, some OSG users still just use 100% fixed function and get on fine, other mix both, others go 100% shaders.  I don't know your background, skills or the real requirements of your application so at this point it's inappropriate to make assumptions about your particular needs.

For you it might be that a mix of fixed function and shaders will be the most productive approach, for instance you can mix fixed function with shaders via the built in uniforms that it provides.   So with my suggestion of looking at osg::ClipNode / osgclip example is starting place, to illustrate an example of positional state, osg::TexGenNode would be another.  Both of these are fixed function but also can be used directly in shaders when you use the compatible profile or GL2 builds.

As a general note, I'm here trying to help you.  I have almost 17 years of experience with helping new OSG users along the path of using the OSG effectively.  One the most common troubles that I see is in users getting a bit of ahead of themselves trying to solve the more complicated problems before understanding the basics of the OSG, this often leads to trying to force the OSG to work in a way that is far more complex than is actually required.  The best way to help is not to trying a resolve the complex route they have chosen for themselves but to get them to take a step back and explain the end goal that they are trying to achieve rather than solution that they have decided upon.

Once you know where they are going you can start point them in a more productive route and then help them take baby steps along this path.  Once they get on the right path they get to know the OSG API better and also how to think about solutions to problems.

Robert.





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20180418/e16f1ffc/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 3114 bytes
Desc: image001.jpg
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20180418/e16f1ffc/attachment.jpg>


More information about the osg-users mailing list