Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update examples to newer idioms #123

Open
rpavlik opened this issue Oct 25, 2013 · 1 comment
Open

Update examples to newer idioms #123

rpavlik opened this issue Oct 25, 2013 · 1 comment
Labels

Comments

@rpavlik
Copy link
Member

rpavlik commented Oct 25, 2013

This is the output of util/find-deprecated.sh right now:

examples/advanced/light_example.lua:2:vrjLua.appendToModelSearchPath(getScriptFilename())
    [Replace with AddAppDirectory()]
examples/5-audio/sound_example.lua:3:vrjLua.appendToModelSearchPath(getScriptFilename())
    [Replace with AddAppDirectory()]
examples/in-progress/LineDrawingApp.lua:10:dofile(vrjLua.findInModelSearchPath("Line.lua"))    [Replace with runfile()]
examples/advanced/wandsphere.lua:3:wandXform = osg.MatrixTransform()    [Consider using MatrixTransform{}]
examples/3-interaction/DrawingApp.lua:15:       local xform = osg.MatrixTransform()    [Consider using MatrixTransform{}]
examples/3-interaction/Wand-Object.lua:11:      local xform = osg.MatrixTransform()    [Consider using MatrixTransform{}]
examples/2-input/Tracking.lua:10:local xform = osg.MatrixTransform()    [Consider using MatrixTransform{}]
examples/2-input/Tracking-Extended.lua:13:  local xform = osg.MatrixTransform()    [Consider using MatrixTransform{}]
examples/in-progress/LineDrawingApp.lua:19:     local xform = osg.MatrixTransform()    [Consider using MatrixTransform{}]
examples/advanced/osgnav.lua:8:scene = osg.PositionAttitudeTransform()    [Consider using Transform{}]
examples/advanced/osgnav.lua:28:    self.navtransform = osg.PositionAttitudeTransform()    [Consider using Transform{}]
examples/advanced/osgnav-statemachine.lua:7:    navtransform = osg.PositionAttitudeTransform()    [Consider using Transform{}]
examples/3-interaction/DrawingApp.lua:45:               local newPoint = osg.PositionAttitudeTransform()    [Consider using Transform{}]
examples/advanced/osgnav.lua:14:osgnav = {position = osg.Vec3d(0, 0, 0)}    [Use Vec() instead]
examples/advanced/osgnav-statemachine.lua:22:osgnav.position = osg.Vec3d(0, 0, 0)    [Use Vec() instead]
examples/advanced/osgnav-statemachine.lua:74:   navtransform:setAttitude(osg.Quat(simplerotation.degrees, osg.Vec3d(0, 1, 0)) )    [Use Vec() instead]
examples/in-progress/shadow-1.lua:19:sm:setTextureSize(osg.Vec2s(mapres, mapres))    [Use Vecs() instead]
@rpavlik
Copy link
Member Author

rpavlik commented Oct 25, 2013

cc @lpberg since he's interacting with the examples.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant